From 4e5d9f3d4603802f8f8918b71b7d5628e34abd48 Mon Sep 17 00:00:00 2001 From: yscha Date: Sun, 25 Jan 2026 23:55:35 +0900 Subject: [PATCH] =?UTF-8?q?actureSize=20-=20=EC=86=8C=EC=88=98=EC=A0=90?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/qpolygon-utils.js | 6 +++--- src/util/skeleton-utils.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index 6da3fd6a..47e8f4e9 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -6000,9 +6000,9 @@ export const calcLineActualSize2 = (points, degree = 0) => { const hx = xLength * Math.tan(degree * (Math.PI / 180)) const hy = yLength * Math.tan(degree * (Math.PI / 180)) - const actualSize = Math.sqrt(hx ** 2 + planeSize ** 2) - const actualSize2 = Math.sqrt(hy ** 2 + planeSize ** 2) - return actualSize + const actualSize = Number(Math.sqrt(hx ** 2 + planeSize ** 2)).toFixed(0) + const actualSize2 = Number(Math.sqrt(hy ** 2 + planeSize ** 2)).toFixed(0) + return actualSize } /** diff --git a/src/util/skeleton-utils.js b/src/util/skeleton-utils.js index 87630e0e..9c57828e 100644 --- a/src/util/skeleton-utils.js +++ b/src/util/skeleton-utils.js @@ -822,7 +822,7 @@ const createInnerLinesFromSkeleton = (roofId, canvas, skeleton, textMode) => { type: 'eaveHelpLine', isStart: true, pitch: wallLine.attributes.pitch, - actualSize: (isDiagonal) ? calcLineActualSize( + actualSize: (isDiagonal) ? calcLineActualSize2( { x1: p1.x, y1: p1.y,