feat: 添加选择图层下所有对象的功能,优化图层交互性管理

This commit is contained in:
bighuixiang
2025-07-17 14:58:13 +08:00
parent 695f8045f9
commit 074c336ca8
2 changed files with 45 additions and 0 deletions

View File

@@ -590,6 +590,8 @@ function handleLayerClick(layer, event) {
// 否则直接设置当前图层为活动图层
setActiveLayer(layer.id);
layerManager?.updateLayersObjectsInteractivity();
// 选中画布中的图层对象
layerManager?.selectLayerObjects(layer.id);
}
}
lastSelectedIndex.value = sortableRootLayers.value.findIndex((l) => l.id === layer.id);