From fd024cf30bd92e8b0902f0150a17b7f92e2bc69e Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee Date: Fri, 19 Dec 2025 14:17:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BC=80=EB=9D=BC=EB=B0=94=20=EB=B2=BD?= =?UTF-8?q?=EC=B7=A8=ED=95=A9=20=EC=A1=B0=ED=95=A9=EC=97=90=EC=84=9C?= =?UTF-8?q?=EC=9D=98=20=EB=B2=84=EA=B7=B8=20=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 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index f8c011f0..7d671a3a 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -2591,6 +2591,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => { case LINE_TYPE.WALLLINE.JERKINHEAD: offset = oppLine.attributes.width / 2 break + case LINE_TYPE.WALLLINE.WALL: + offset = 0 + break default: break } @@ -2936,6 +2939,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => { case LINE_TYPE.WALLLINE.JERKINHEAD: offset = oppLine.attributes.width / 2 break + case LINE_TYPE.WALLLINE.WALL: + offset = 0 + break default: break } @@ -3396,6 +3402,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => { case LINE_TYPE.WALLLINE.JERKINHEAD: offset = oppLine.attributes.width / 2 break + case LINE_TYPE.WALLLINE.WALL: + offset = 0 + break default: break } @@ -3515,7 +3524,7 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => { const oMidX = (oppLine.x1 + oppLine.x2) / 2 const oMidY = (oppLine.y1 + oppLine.y2) / 2 const cOffset = currentLine.attributes.offset - const oOffset = oppLine.attributes.offset + const oOffset = oppLine.attributes.type === LINE_TYPE.WALLLINE.WALL ? 0 : oppLine.attributes.offset const ridgeVector = { x: Math.sign(clamp01(cMidX - oMidX)), y: Math.sign(clamp01(cMidY - oMidY)) } const ridgePoint = [ cMidX + ridgeVector.x * cOffset, @@ -3531,6 +3540,9 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => { case LINE_TYPE.WALLLINE.JERKINHEAD: offset = oppLine.attributes.width / 2 break + case LINE_TYPE.WALLLINE.WALL: + offset = 0 + break default: break }