Compare commits

...

2 Commits

Author SHA1 Message Date
yjnoh
617afb8b1f Merge branch 'dev' into feature/dev-yj-surface 2025-03-20 18:00:30 +09:00
6919dac8f1 getCurrentPoints로 수정 2025-03-20 16:48:35 +09:00

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,