画布印花合成
This commit is contained in:
@@ -3436,4 +3436,22 @@ export class LayerManager {
|
||||
|
||||
console.log("🎨 已设置组遮罩移动同步 - 使用 object:modified 事件");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取印花和颜色图层设置了blendMode的图层ID
|
||||
* @returns {string[]} - 包含blendMode的图层ID数组
|
||||
*/
|
||||
getBlendModeLayerIds() {
|
||||
const blendModeLayerIds = [];
|
||||
this.layers.value.forEach(layer => {
|
||||
if(layer.id === SpecialLayerId.SPECIAL_GROUP){
|
||||
layer.children.forEach(child => {
|
||||
if(child.blendMode && child.blendMode !== BlendMode.NORMAL){
|
||||
blendModeLayerIds.push(child.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
return blendModeLayerIds;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user