startPoint, endPoint 추가

This commit is contained in:
hyojun.choi 2024-08-06 14:40:53 +09:00
parent 5972778dfd
commit 4ea5a0c7ef

View File

@ -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