From 0f481e2933b49bfd35ce69baae7c0e5eea896a41 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 13 Jan 2026 13:32:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=84=A0=EC=9D=B4=20=EA=B0=80=EC=A7=80?= =?UTF-8?q?=EA=B3=A0=EC=9E=88=EB=8A=94=20planeSize=EB=A1=9C=20=EA=B3=84?= =?UTF-8?q?=EC=82=B0=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useLine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useLine.js b/src/hooks/useLine.js index c9de0194..f61b977b 100644 --- a/src/hooks/useLine.js +++ b/src/hooks/useLine.js @@ -172,9 +172,9 @@ export const useLine = () => { const isHorizontal = y1 === y2 const isVertical = x1 === x2 const isDiagonal = !isHorizontal && !isVertical - const lineLength = line.getLength() + const lineLength = line.attributes.planeSize ?? line.getLength() - line.attributes = { ...line.attributes, planeSize: line.getLength(), actualSize: line.getLength() } + // line.attributes = { ...line.attributes, planeSize: line.getLength(), actualSize: line.getLength() } if (+roofSizeSet === 1) { if (direction === 'south' || direction === 'north') { -- 2.47.2 From 4fdd7d55d0e327c2784d1e7afbd519539663ea40 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 13 Jan 2026 13:44:29 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=ED=98=95=EC=98=AC=EB=A6=BC=EB=82=B4?= =?UTF-8?q?=EB=A6=BC=20=EC=8B=9C=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useLine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useLine.js b/src/hooks/useLine.js index f61b977b..30cc9ba9 100644 --- a/src/hooks/useLine.js +++ b/src/hooks/useLine.js @@ -174,7 +174,7 @@ export const useLine = () => { const isDiagonal = !isHorizontal && !isVertical const lineLength = line.attributes.planeSize ?? line.getLength() - // line.attributes = { ...line.attributes, planeSize: line.getLength(), actualSize: line.getLength() } + line.attributes = { ...line.attributes, planeSize: lineLength, actualSize: lineLength } if (+roofSizeSet === 1) { if (direction === 'south' || direction === 'north') { -- 2.47.2