From 6919dac8f1c707caa5489b5c493e8f68010f3df8 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 20 Mar 2025 16:48:35 +0900 Subject: [PATCH] =?UTF-8?q?getCurrentPoints=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QPolygon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index 4b15d687..396ae6af 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -186,7 +186,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { this.lines = [] this.getCurrentPoints().forEach((point, i) => { - const nextPoint = this.points[(i + 1) % this.points.length] + const nextPoint = this.getCurrentPoints()[(i + 1) % this.points.length] const line = new QLine([point.x, point.y, nextPoint.x, nextPoint.y], { stroke: this.stroke, strokeWidth: this.strokeWidth,