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]