Skip to content

Commit 1c069ba

Browse files
committed
🚑 修复背景透明度调整失效问题
1 parent 20b0bda commit 1c069ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/src/core/render/canvas2d/renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export namespace Renderer {
108108
* 仅在导出png时开启
109109
*/
110110
// eslint-disable-next-line prefer-const
111-
export let isRenderBackground = true;
111+
export let isRenderBackground = false;
112112
let isShowBackgroundCartesian = false;
113113
export let isAlwaysShowDetails = false;
114114
export let protectingPrivacy = false;

app/src/core/service/dataGenerateService/stageExportEngine/StageExportPng.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export namespace StageExportPng {
2525
/**
2626
* 是否有背景
2727
*/
28-
let isHaveBackground = true;
28+
let isHaveBackground = false;
2929
export function setHaveBackground(have: boolean) {
3030
isHaveBackground = have;
3131
}

app/src/pages/_fixed_panel/_export_png_panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function ExportPNGPanel() {
1919
const [isRendering, setIsRendering] = useState(false);
2020
const [current, setCurrent] = useState(0);
2121
const [total, setTotal] = useState(0);
22-
const [isTransparentBackground, setIsTransparentBackground] = useState(false);
22+
const [isTransparentBackground, setIsTransparentBackground] = useState(true);
2323

2424
useEffect(() => {
2525
if (!isExportPngPanelOpen) {

0 commit comments

Comments
 (0)