Compare commits
No commits in common. "9680824b8756a4e4078a58760eced5026cc7b4a5" and "383e1badbf493474a162bdbdb42e0a32144e698f" have entirely different histories.
9680824b87
...
383e1badbf
@ -496,10 +496,6 @@ export function useAuxiliaryDrawing(id, isUseEffect = true) {
|
|||||||
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y + length2Value / 10 })
|
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y + length2Value / 10 })
|
||||||
} else if (arrow1Value === '→' && arrow2Value === '↑') {
|
} else if (arrow1Value === '→' && arrow2Value === '↑') {
|
||||||
mousePointerArr.current.push({ x: lastPoint.x + length1Value / 10, y: lastPoint.y - length2Value / 10 })
|
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()
|
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