feat: 更新填充组图层背景命令,增强图层管理和颜色填充功能,优化图层选择和渲染逻辑
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user