From 86d595ef5242f4521e445c0d66fd94314dbf45ea Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee Date: Wed, 17 Dec 2025 17:50:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=84=9D=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EC=95=88=EB=90=9C=EA=B3=B3=20=EC=B2=98=EB=A6=AC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QPolygon.js | 3 ++- src/util/qpolygon-utils.js | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index fd7352eb..c87d161f 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -6,6 +6,7 @@ import { calculateAngle, drawGableRoof, drawRoofByAttribute, drawShedRoof, toGeo import * as turf from '@turf/turf' import { LINE_TYPE, POLYGON_TYPE } from '@/common/common' import Big from 'big.js' +import { drawSkeletonRidgeRoof } from '@/util/skeleton-utils' export const QPolygon = fabric.util.createClass(fabric.Polygon, { type: 'QPolygon', @@ -340,7 +341,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { // 용마루 -- straight-skeleton console.log('용마루 지붕') ///drawRidgeRoof(this.id, this.canvas, textMode) - drawSkeletonRidgeRoof(this.id, this.canvas, textMode); + drawSkeletonRidgeRoof(this.id, this.canvas, textMode) } else if (isGableRoof(types)) { // A형, B형 박공 지붕 console.log('패턴 지붕') diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index 9eb774e1..3a38edd8 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -4342,11 +4342,11 @@ export const drawRoofByAttribute = (roofId, canvas, textMode) => { partner = j } } - canvas.remove(checkCircle).renderAll() + // canvas.remove(checkCircle).renderAll() } - canvas.remove(checkNLine).renderAll() + // canvas.remove(checkNLine).renderAll() }) - canvas.remove(checkCLine).renderAll() + // canvas.remove(checkCLine).renderAll() if (intersectPoint) { intersections.push({ index: i, intersect: intersectPoint, linePoint, partner }) } @@ -9617,8 +9617,8 @@ export const drawRidgeRoof = (roofId, canvas, textMode) => { return } - canvas.remove(prevGableLine) - canvas.remove(nextGableLine) + // canvas.remove(prevGableLine) + // canvas.remove(nextGableLine) baseHipLines = baseHipLines.filter((base) => base.line !== prevGableLine && base.line !== nextGableLine) const points = [prevGableLine.x1, prevGableLine.y1, nextGableLine.x1, nextGableLine.y1]