거리 0이 아닌 1 미만으로 범위 수정
This commit is contained in:
parent
4b120326db
commit
e8457da05f
@ -722,7 +722,7 @@ export function useAuxiliaryDrawing(id, isUseEffect = true) {
|
|||||||
const distance1 = distanceBetweenPoints({ x: line1.x1, y: line1.y1 }, intersectionPoint)
|
const distance1 = distanceBetweenPoints({ x: line1.x1, y: line1.y1 }, intersectionPoint)
|
||||||
const distance2 = distanceBetweenPoints({ x: line1.x2, y: line1.y2 }, intersectionPoint)
|
const distance2 = distanceBetweenPoints({ x: line1.x2, y: line1.y2 }, intersectionPoint)
|
||||||
|
|
||||||
if (distance1 === 0 || distance2 === 0) {
|
if (distance1 < 1 || distance2 < 1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//historyLine에서 기존 line을 제거한다.
|
//historyLine에서 기존 line을 제거한다.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user