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