From 5d1b2ef5907d8f9f5d1486cc8a46a3c09bc4f17a Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 11 Jul 2024 17:05:29 +0900 Subject: [PATCH] =?UTF-8?q?=EB=81=BC=EC=9B=8C=EB=A7=9E=EC=B6=94=EA=B8=B0?= =?UTF-8?q?=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Roof2.jsx | 2 +- src/components/fabric/QPolygon.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Roof2.jsx b/src/components/Roof2.jsx index a4b80b6f..270e4fda 100644 --- a/src/components/Roof2.jsx +++ b/src/components/Roof2.jsx @@ -169,7 +169,7 @@ export default function Roof2() { ] if (canvas) { const polygon = new QPolygon( - type4, + type2, { fill: 'transparent', stroke: 'black', diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index 7310456e..2f1842ed 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -735,6 +735,7 @@ export default class QPolygon extends fabric.Group { stroke: 'black', strokeWidth: 1, }, + Math.abs(realLine1.length - realLine3.length), ) this.addWithUpdate(realLine1)