Merge branch 'dev' into feature/dev-yj-surface
This commit is contained in:
commit
617afb8b1f
@ -186,7 +186,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
|||||||
this.lines = []
|
this.lines = []
|
||||||
|
|
||||||
this.getCurrentPoints().forEach((point, i) => {
|
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], {
|
const line = new QLine([point.x, point.y, nextPoint.x, nextPoint.y], {
|
||||||
stroke: this.stroke,
|
stroke: this.stroke,
|
||||||
strokeWidth: this.strokeWidth,
|
strokeWidth: this.strokeWidth,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user