画布json加载成功事件
This commit is contained in:
@@ -70,6 +70,7 @@ export class CanvasManager {
|
||||
this.eraserStateManager = null; // 橡皮擦状态管理器引用
|
||||
this.handleCanvasInit = null; // 画布初始化回调函数
|
||||
this.props = options.props || {};
|
||||
this.emit = options.emit || (() => {});
|
||||
// 初始化画布
|
||||
this.initializeCanvas();
|
||||
}
|
||||
@@ -1328,9 +1329,9 @@ export class CanvasManager {
|
||||
|
||||
// 确保所有对象的交互性正确设置
|
||||
await this.layerManager?.updateLayersObjectsInteractivity?.();
|
||||
console.log(this.layerManager.layers.value);
|
||||
|
||||
await calllBack?.();
|
||||
this.emit("canvas-load-json-success");
|
||||
// 更新所有缩略图
|
||||
setTimeout(() => {
|
||||
this.updateAllThumbnails();
|
||||
|
||||
Reference in New Issue
Block a user