feat: 优化跨层级移动和套索抠图命令,支持异步执行,改进画布刷新逻辑,新增背景裁剪选项
This commit is contained in:
@@ -977,7 +977,6 @@ export class CanvasManager {
|
||||
}
|
||||
|
||||
this.layers.value = tempLayers;
|
||||
debugger;
|
||||
|
||||
// this.canvasWidth.value = parsedJson.canvasWidth || this.width;
|
||||
// this.canvasHeight.value = parsedJson.canvasHeight || this.height;
|
||||
@@ -1039,8 +1038,10 @@ export class CanvasManager {
|
||||
// 使用LayerSort工具重新排列画布对象(如果可用)
|
||||
await this?.layerManager?.layerSort?.rearrangeObjects();
|
||||
|
||||
this.layerManager.activeLayerId.value =
|
||||
this.layers.value[0]?.id || parsedJson?.activeLayerId || null;
|
||||
this.layerManager.activeLayerId.value = this.layers.value[0]
|
||||
.children?.length
|
||||
? this.layers.value[0].children[0].id
|
||||
: this.layers.value[0]?.id || parsedJson?.activeLayerId || null;
|
||||
|
||||
// // 如果检测到红绿图模式内容,进行缩放调整
|
||||
// if (this.enabledRedGreenMode) {
|
||||
|
||||
Reference in New Issue
Block a user