동이동변경

This commit is contained in:
ysCha 2025-12-19 08:55:39 +09:00
parent e3d8528240
commit e47788e487

View File

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