From 3cacc2dcaac58f68c289a8a7d73e7660e7542088 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Fri, 20 Sep 2024 17:50:29 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=B4=EC=A1=B0=EC=84=A0=20=EC=9B=90?= =?UTF-8?q?=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../floor-plan/modal/outerlinesetting/OuterLineWall.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx b/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx index 0548c73c..52056e39 100644 --- a/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx +++ b/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx @@ -201,12 +201,7 @@ export default function OuterLineWall(props) { canvas?.add(line) addLineText(line) } else { - const nearPoint = - 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, { + const guideLine1 = new QLine([lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y], { stroke: 'grey', strokeWidth: 1, strokeDashArray: [1, 1, 1],