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

@@ -53,10 +53,10 @@ export class ExportManager {
return this._exportMultipleLayers(
layerIdArray,
expPicType,
isContainBg,
isContainFixed,
isRedGreenMode,
restoreOpacityInRedGreen,
isContainBg,
isCropByBg
);
}
@@ -619,7 +619,7 @@ export class ExportManager {
// this.canvasManager?.canvasHeight?.value || this.canvas.height;
// console.log(`普通模式导出,画布尺寸: ${canvasWidth}x${canvasHeight}`);
debugger;
// 使用图层栅格化的方法导出图片
const dataURL = await createRasterizedImage({
canvas: this.canvas,
@@ -629,6 +629,7 @@ export class ExportManager {
maskObject: maskObject ?? null, // 使用裁剪对象
trimWhitespace: true, // 裁剪空白
trimPadding: 0, // 裁剪边距
restoreOpacityInRedGreen,
});
console.log("导出图片数据URL:", dataURL);