fix: 修改红绿图模式下透明度恢复的默认值,优化导出逻辑

This commit is contained in:
bighuixiang
2025-07-22 21:40:39 +08:00
parent 46ef450dfb
commit 4170cae964
4 changed files with 108 additions and 31 deletions

View File

@@ -827,7 +827,7 @@ export class CanvasManager {
restoreOpacityInRedGreen:
options.restoreOpacityInRedGreen !== undefined
? options.restoreOpacityInRedGreen
: true, // 默认在红绿图模式下恢复透明度
: false, // 默认在红绿图模式下恢复透明度
};
// 如果在红绿图模式下且没有指定具体的图层,自动包含所有普通图层
@@ -851,7 +851,6 @@ export class CanvasManager {
console.log("红绿图模式导出图层:", normalLayerIds);
}
}
return await this.exportManager.exportImage(enhancedOptions);
} catch (error) {
console.error("CanvasManager导出图片失败:", error);