feat: 更新填充组图层背景命令,增强图层管理和颜色填充功能,优化图层选择和渲染逻辑

This commit is contained in:
bighuixiang
2025-07-17 13:46:13 +08:00
parent 26581b234a
commit 695f8045f9
8 changed files with 126 additions and 54 deletions

View File

@@ -17,6 +17,11 @@ export class BackgroundFillManager {
* @returns {Promise<void>}
*/
async fillLayerBackground(layerId, fillColor, undoable) {
if (!layerId || !fillColor) {
console.warn("图层ID或填充颜色不能为空");
return;
}
const command = new FillGroupLayerBackgroundCommand({
canvas: this.canvas,
layers: this.layers,