Compare commits
No commits in common. "5cb39eddde8fc452caad214940c873cb1e29aefe" and "67fd6c8c453f09a018a1e44c00e4865152c6a5f0" have entirely different histories.
5cb39eddde
...
67fd6c8c45
@ -496,10 +496,6 @@ 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,32 +678,6 @@ 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,32 +680,6 @@ 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