Merge pull request '[1447]실측값 입력의 대각선 입력' (#633) from dev into dev-deploy
Reviewed-on: #633
This commit is contained in:
commit
5cb39eddde
@ -496,6 +496,10 @@ export function useAuxiliaryDrawing(id, isUseEffect = true) {
|
||||
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y + length2Value / 10 })
|
||||
} else if (arrow1Value === '→' && arrow2Value === '↑') {
|
||||
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y - length2Value / 10 })
|
||||
} else if (arrow1Value === '←' && arrow2Value === '↓') {
|
||||
mousePointerArr.current.push({ x: lastPoint.x - length1Value / 10, y: lastPoint.y + length2Value / 10 })
|
||||
} else if (arrow1Value === '←' && arrow2Value === '↑') {
|
||||
mousePointerArr.current.push({ x: lastPoint.x - length1Value / 10, y: lastPoint.y - length2Value / 10 })
|
||||
}
|
||||
drawLine()
|
||||
}
|
||||
|
||||
@ -678,6 +678,32 @@ export function useOuterLineWall(id, propertiesId) {
|
||||
},
|
||||
]
|
||||
})
|
||||
} else if (arrow1Value === '←' && arrow2Value === '↓') {
|
||||
setPoints((prev) => {
|
||||
if (prev.length === 0) {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
...prev,
|
||||
{
|
||||
x: prev[prev.length - 1].x - length1Value / 10,
|
||||
y: prev[prev.length - 1].y + length2Value / 10,
|
||||
},
|
||||
]
|
||||
})
|
||||
} else if (arrow1Value === '←' && arrow2Value === '↑') {
|
||||
setPoints((prev) => {
|
||||
if (prev.length === 0) {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
...prev,
|
||||
{
|
||||
x: prev[prev.length - 1].x - length1Value / 10,
|
||||
y: prev[prev.length - 1].y - length2Value / 10,
|
||||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -680,6 +680,32 @@ export function usePlacementShapeDrawing(id) {
|
||||
},
|
||||
]
|
||||
})
|
||||
} else if (arrow1Value === '←' && arrow2Value === '↓') {
|
||||
setPoints((prev) => {
|
||||
if (prev.length === 0) {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
...prev,
|
||||
{
|
||||
x: prev[prev.length - 1].x - length1Value / 10,
|
||||
y: prev[prev.length - 1].y + length2Value / 10,
|
||||
},
|
||||
]
|
||||
})
|
||||
} else if (arrow1Value === '←' && arrow2Value === '↑') {
|
||||
setPoints((prev) => {
|
||||
if (prev.length === 0) {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
...prev,
|
||||
{
|
||||
x: prev[prev.length - 1].x - length1Value / 10,
|
||||
y: prev[prev.length - 1].y - length2Value / 10,
|
||||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user