This commit is contained in:
lzp
2026-03-13 17:31:47 +08:00
parent db06565dab
commit dd29428c40
3 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ export class LayerManager {
this.stateManager.toolManager.setTool(OperationType.SELECT)
}
}
getActiveLayer() {
return this.getLayerById(this.activeID.value)
}
getLayerById(id) {
return this.layers.value.find((item: any) => item.info.id === id)
}