深度画布测试保存

This commit is contained in:
lzp
2026-03-19 11:32:23 +08:00
parent cb8bee736f
commit 88b3e8cd31
5 changed files with 13 additions and 7 deletions

View File

@@ -343,10 +343,11 @@ export class LayerManager {
const index = this.canvasManager.getObjects().indexOf(targetLayer);
this.deleteLayerById(targetLayer.info.id, false)
this.setActiveID(mergedImage.info.id, false)
await this.canvasManager.add(mergedImage);
await this.canvasManager.add(mergedImage, false);
this.canvasManager.canvas.moveTo(mergedImage, index);
this.canvasManager.renderAll()
this.updateLayers()
this.stateManager.recordState()
return true;
}
/** 设置激活对象可擦除 */