|
|
@ -314,6 +314,7 @@ export const exportCanvas = async (
|
|
|
|
if (type === "svg") {
|
|
|
|
if (type === "svg") {
|
|
|
|
await fileSave(new Blob([tempSvg.outerHTML], { type: "image/svg+xml" }), {
|
|
|
|
await fileSave(new Blob([tempSvg.outerHTML], { type: "image/svg+xml" }), {
|
|
|
|
fileName: `${name}.svg`,
|
|
|
|
fileName: `${name}.svg`,
|
|
|
|
|
|
|
|
extensions: ["svg"],
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else if (type === "clipboard-svg") {
|
|
|
|
} else if (type === "clipboard-svg") {
|
|
|
@ -338,6 +339,7 @@ export const exportCanvas = async (
|
|
|
|
if (blob) {
|
|
|
|
if (blob) {
|
|
|
|
await fileSave(blob, {
|
|
|
|
await fileSave(blob, {
|
|
|
|
fileName: fileName,
|
|
|
|
fileName: fileName,
|
|
|
|
|
|
|
|
extensions: ["png"],
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|