Remove unused project name from export dialog (#2427)

* Remove unused project name from export dialog

* snaps
This commit is contained in:
Lipis 2020-11-29 15:42:44 +02:00 committed by GitHub
parent ca60244aa3
commit 204c8370a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 0 additions and 605 deletions

View file

@ -283,14 +283,12 @@ export const exportCanvas = async (
exportBackground,
exportPadding = 10,
viewBackgroundColor,
name,
scale = 1,
shouldAddWatermark,
}: {
exportBackground: boolean;
exportPadding?: number;
viewBackgroundColor: string;
name: string;
scale?: number;
shouldAddWatermark: boolean;
},
@ -316,7 +314,6 @@ export const exportCanvas = async (
});
if (type === "svg") {
await fileSave(new Blob([tempSvg.outerHTML], { type: "image/svg+xml" }), {
fileName: `${name}.svg`,
extensions: [".svg"],
});
return;
@ -337,7 +334,6 @@ export const exportCanvas = async (
document.body.appendChild(tempCanvas);
if (type === "png") {
const fileName = `${name}.png`;
let blob = await canvasToBlob(tempCanvas);
if (appState.exportEmbedScene) {
blob = await (
@ -349,7 +345,6 @@ export const exportCanvas = async (
}
await fileSave(blob, {
fileName: fileName,
extensions: [".png"],
});
} else if (type === "clipboard") {