diff --git a/src/components/fabric/QLine.js b/src/components/fabric/QLine.js index 02448cd7..830adf7d 100644 --- a/src/components/fabric/QLine.js +++ b/src/components/fabric/QLine.js @@ -12,6 +12,7 @@ export const QLine = fabric.util.createClass(fabric.Line, { length: 0, direction: null, idx: 0, + drawNo: 0, area: 0, children: [], padding: 5, @@ -31,6 +32,7 @@ export const QLine = fabric.util.createClass(fabric.Line, { this.line = this this.idx = options.idx ?? 0 + this.drawNo = options.drawNo ?? 0 this.direction = options.direction ?? getDirectionByPoint({ x: this.x1, y: this.y1 }, { x: this.x2, y: this.y2 }) this.textMode = options.textMode ?? 'plane' // plane:복시도, actual:실측, none:표시안함 this.textVisible = options.textVisible ?? true