보조선 원복

This commit is contained in:
hyojun.choi 2024-09-20 17:50:29 +09:00
parent 7626a9a0bc
commit 3cacc2dcaa

View File

@ -201,12 +201,7 @@ export default function OuterLineWall(props) {
canvas?.add(line) canvas?.add(line)
addLineText(line) addLineText(line)
} else { } else {
const nearPoint = const guideLine1 = new QLine([lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y], {
distanceBetweenPoints(firstPoint, { x: lastPoint.x, y: firstPoint.y }) <=
distanceBetweenPoints(firstPoint, { x: firstPoint.x, y: lastPoint.y })
? [lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y]
: [lastPoint.x, lastPoint.y, firstPoint.x, lastPoint.y]
const guideLine1 = new QLine(nearPoint, {
stroke: 'grey', stroke: 'grey',
strokeWidth: 1, strokeWidth: 1,
strokeDashArray: [1, 1, 1], strokeDashArray: [1, 1, 1],