startPoint, endPoint 추가
This commit is contained in:
parent
5972778dfd
commit
4ea5a0c7ef
@ -29,6 +29,8 @@ export const QLine = fabric.util.createClass(fabric.Line, {
|
|||||||
this.setLength()
|
this.setLength()
|
||||||
|
|
||||||
this.direction = options.direction ?? getDirection({ x: this.x1, y: this.y1 }, { x: this.x2, y: this.y2 })
|
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) {
|
if (canvas) {
|
||||||
this.canvas = canvas
|
this.canvas = canvas
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user