From a64eaae57df3acc9503539225854f07d3f8fcdee Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee Date: Wed, 23 Jul 2025 14:59:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BC=80=EB=9D=BC=EB=B0=94=20=EC=A7=80?= =?UTF-8?q?=EB=B6=95=208=EA=B0=81=EC=9D=B4=EC=83=81=20=EB=8F=99=EC=84=A0,?= =?UTF-8?q?=20=ED=98=95=EC=9D=B4=EB=8F=99=20=EC=8B=9C=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=EC=A0=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/qpolygon-utils.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index ae079777..b160998f 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -995,6 +995,21 @@ export const drawRidgeRoof = (roofId, canvas, textMode) => { const prevLine = prevBaseLine.line const nextLine = nextBaseLine.line + if (prevBaseLine.size !== prevLine.attributes.planeSize) { + prevLine.x1 = prevBaseLine.x1 + prevLine.y1 = prevBaseLine.y1 + prevLine.x2 = prevBaseLine.x2 + prevLine.y2 = prevBaseLine.y2 + prevLine.setCoords() + } + if (nextBaseLine.size !== nextLine.attributes.planeSize) { + nextLine.x1 = nextBaseLine.x1 + nextLine.y1 = nextBaseLine.y1 + nextLine.x2 = nextBaseLine.x2 + nextLine.y2 = nextBaseLine.y2 + nextLine.setCoords() + } + let { x1, x2, y1, y2, size } = currentBaseLine let beforePrevBaseLine, afterNextBaseLine @@ -1616,8 +1631,8 @@ export const drawRidgeRoof = (roofId, canvas, textMode) => { currentAngle === afterNextAngle ? Big(afterNextLine.attributes.offset) : Big(afterNextLine.attributes.offset).plus(currentLine.attributes.offset) - const prevSize = Big(prevLine.attributes.planeSize).div(10) - const nextSize = Big(nextLine.attributes.planeSize).div(10) + const prevSize = Big(calcLinePlaneSize(prevLine)).div(10) + const nextSize = Big(calcLinePlaneSize(nextLine)).div(10) let prevHipCoords, nextHipCoords