getCurrentPoints로 수정

This commit is contained in:
hyojun.choi 2025-03-20 16:48:35 +09:00
parent 79d873c135
commit 6919dac8f1

View File

@ -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,