fix data param
This commit is contained in:
parent
9da26fb7e0
commit
96b5cfc35d
@ -121,13 +121,12 @@ export const exportAsImage = async ({
|
|||||||
exportBackground: cfg.exportBackground,
|
exportBackground: cfg.exportBackground,
|
||||||
exportWithDarkMode: data.appState.exportWithDarkMode,
|
exportWithDarkMode: data.appState.exportWithDarkMode,
|
||||||
viewBackgroundColor: data.appState.viewBackgroundColor,
|
viewBackgroundColor: data.appState.viewBackgroundColor,
|
||||||
exportPadding: cfg.padding,
|
|
||||||
exportScale: data.appState.exportScale,
|
exportScale: data.appState.exportScale,
|
||||||
exportEmbedScene: data.appState.exportEmbedScene && type === "svg",
|
exportEmbedScene: data.appState.exportEmbedScene && type === "svg",
|
||||||
},
|
},
|
||||||
files: data.files,
|
files: data.files,
|
||||||
},
|
},
|
||||||
config: { exportingFrame: cfg.exportingFrame },
|
config: { exportingFrame: cfg.exportingFrame, padding: cfg.padding },
|
||||||
});
|
});
|
||||||
if (type === "svg") {
|
if (type === "svg") {
|
||||||
return fileSave(
|
return fileSave(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user