From dfed51a7586ab300b23c403b86f526b205fa1d3a Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 30 Sep 2025 09:55:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EA=B0=81=EB=8F=84=20=EA=B3=84=EC=82=B0?= =?UTF-8?q?=EC=8B=9D=20=EC=86=8C=EC=88=98=EC=A0=90=20=EB=91=98=EC=A7=B8?= =?UTF-8?q?=EC=9E=90=EB=A6=AC=EA=B9=8C=EC=A7=80=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/canvas-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/canvas-util.js b/src/util/canvas-util.js index 0af492a1..243936da 100644 --- a/src/util/canvas-util.js +++ b/src/util/canvas-util.js @@ -260,7 +260,7 @@ export const getDegreeByChon = (chon) => { // tan(theta) = height / base const radians = Math.atan(chon / 10) // 라디안을 도 단위로 변환 - return Number((radians * (180 / Math.PI)).toFixed(1)) + return Number((radians * (180 / Math.PI)).toFixed(2)) } /** From 384c68c1ef31e65fc47e472d28b96b70626189f5 Mon Sep 17 00:00:00 2001 From: ysCha Date: Tue, 30 Sep 2025 13:29:09 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[big.js]=20Division=20by=20zero=20-=20actua?= =?UTF-8?q?lSize=20=EA=B0=80=200=EC=9D=B4=20=EB=90=98=EC=96=B4=20=EB=82=98?= =?UTF-8?q?=EB=88=84=EA=B8=B0=EC=97=90=20=EB=AC=B8=EC=A0=9C=EA=B0=80=20?= =?UTF-8?q?=EB=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QPolygon.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index d712b3f1..6021afc2 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -6,6 +6,7 @@ import { calculateAngle, drawGableRoof, drawRidgeRoof, drawShedRoof, toGeoJSON } 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', @@ -335,6 +336,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); } else if (isGableRoof(types)) { // A형, B형 박공 지붕 console.log('패턴 지붕')