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)