From 4ea5a0c7efb188493ac5621ba2d0620604b378cc Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 6 Aug 2024 14:40:53 +0900 Subject: [PATCH] =?UTF-8?q?startPoint,=20endPoint=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fabric/QLine.js | 2 ++ 1 file changed, 2 insertions(+) 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