Compare commits

..

No commits in common. "617afb8b1ff0f44b61ab0849d1be4d0bed6f4193" and "414d6fa0c5ca5884684e44ad378a7240f83d6448" have entirely different histories.

View File

@ -186,7 +186,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
this.lines = []
this.getCurrentPoints().forEach((point, i) => {
const nextPoint = this.getCurrentPoints()[(i + 1) % this.points.length]
const nextPoint = this.points[(i + 1) % this.points.length]
const line = new QLine([point.x, point.y, nextPoint.x, nextPoint.y], {
stroke: this.stroke,
strokeWidth: this.strokeWidth,