深度画布返回保存
This commit is contained in:
@@ -100,6 +100,7 @@ export class AISelectboxToolManager {
|
||||
this.demoObject = null
|
||||
}
|
||||
createIndicatorObject() {
|
||||
this.clearIndicatorObject()
|
||||
const rect = new fabric.Rect({
|
||||
left: this.startX,
|
||||
top: this.startY,
|
||||
@@ -198,8 +199,8 @@ export class AISelectboxToolManager {
|
||||
if (!this.isDragging) return;
|
||||
this.isDragging = false;
|
||||
const object = this.indicatorObject.toJSON("evented")
|
||||
if (object.width === 0) object.width = 100
|
||||
if (object.height === 0) object.height = 100
|
||||
// if (object.width === 0) object.width = 100
|
||||
// if (object.height === 0) object.height = 100
|
||||
this.clearIndicatorObject()
|
||||
this.canvasManager.canvas.renderAll()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user