diff --git a/src/components/fabric/QLine.js b/src/components/fabric/QLine.js index e6a2bc65..0d05a959 100644 --- a/src/components/fabric/QLine.js +++ b/src/components/fabric/QLine.js @@ -29,6 +29,8 @@ export const QLine = fabric.util.createClass(fabric.Line, { this.setLength() this.direction = options.direction ?? getDirection({ x: this.x1, y: this.y1 }, { x: this.x2, y: this.y2 }) + this.startPoint = { x: this.x1, y: this.y1 } + this.endPoint = { x: this.x2, y: this.y2 } if (canvas) { this.canvas = canvas