feat: 添加对图层操作的支持,优化图层粘贴和变换命令,增强组图层遮罩位置更新逻辑
This commit is contained in:
@@ -35,6 +35,7 @@ export class CanvasManager {
|
||||
this.maskLayer = null; // 添加蒙层引用
|
||||
this.editorMode = CanvasConfig.defaultTool; // 默认编辑器模式
|
||||
this.layers = options.layers || null; // 图层引用
|
||||
this.lastSelectLayerId = options.lastSelectLayerId || null; // 最后选择的图层ID
|
||||
this.canvasWidth = options.canvasWidth || this.width; // 画布宽度
|
||||
this.canvasHeight = options.canvasHeight || this.height; // 画布高度
|
||||
this.canvasColor = options.canvasColor || "#ffffff"; // 画布背景颜色
|
||||
@@ -282,6 +283,7 @@ export class CanvasManager {
|
||||
activeElementId: activeElementId,
|
||||
layerManager: layerManager,
|
||||
layers: this.layers,
|
||||
lastSelectLayerId: this.lastSelectLayerId,
|
||||
});
|
||||
|
||||
// 设置动画交互效果
|
||||
|
||||
Reference in New Issue
Block a user