From 8c153430cda494297eca21edafc9a5056c8efbf3 Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee Date: Wed, 13 Aug 2025 13:23:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=A9=EB=A7=88=EB=A3=A8,=20=EB=B0=95?= =?UTF-8?q?=EA=B3=B5=20=EC=A7=80=EB=B6=95=20=EC=B6=94=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QPolygon.js | 1 - src/util/qpolygon-utils.js | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index 0022b820..c7628088 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -330,7 +330,6 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { } else if (isGableRoof(types)) { // A형, B형 박공 지붕 console.log('패턴 지붕') - isGableRoof(types) } else if (isShedRoof(types, this.lines)) { console.log('한쪽흐름 지붕') drawShedRoof(this.id, this.canvas, textMode) diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index 482693dc..ba451009 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -489,6 +489,26 @@ export const isSamePoint = (a, b) => { return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 2 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 2 } +/** + * 용마루 지붕 + * @param roofId + * @param canvas + * @param textMode + */ +export const drawEavesRoof = (roofId, canvas, textMode) => { + +} + +/** + * 박공지붕(A,B 패턴) + * @param roofId + * @param canvas + * @param textMode + */ +export const drawGableRoof = (roofId, canvas, textMode) => { + +} + /** * 한쪽흐름 지붕 * @param roofId