深度画布智能选区

This commit is contained in:
lzp
2026-03-23 16:43:08 +08:00
parent 73845df594
commit eccc00dc53
10 changed files with 532 additions and 374 deletions

View File

@@ -730,8 +730,10 @@ export class CanvasEventManager {
});
this.canvas.on("object:modified", async (e) => {
// updateLayers(e);
const id = e.target?.info?.id;
const target = e.target;
const id = target?.info?.id;
if (id) await this.layerManager.updateLayerThumbnailsById(id)
if (target.type === "group") await this.canvasManager.updateSubLayerClipPath()
this.stateManager.recordState();
});
this.canvas.on("object:removed", (e) => {