getCurrentPoints로 수정
This commit is contained in:
parent
79d873c135
commit
6919dac8f1
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user