add a prefix to the extension for image embbedding sceneData (#5079)
This commit is contained in:
parent
9423ac3263
commit
8f0863d335
@ -94,7 +94,9 @@ export const MIME_TYPES = {
|
|||||||
excalidrawlib: "application/vnd.excalidrawlib+json",
|
excalidrawlib: "application/vnd.excalidrawlib+json",
|
||||||
json: "application/json",
|
json: "application/json",
|
||||||
svg: "image/svg+xml",
|
svg: "image/svg+xml",
|
||||||
|
"excalidraw.svg": "image/svg+xml",
|
||||||
png: "image/png",
|
png: "image/png",
|
||||||
|
"excalidraw.png": "image/png",
|
||||||
jpg: "image/jpeg",
|
jpg: "image/jpeg",
|
||||||
gif: "image/gif",
|
gif: "image/gif",
|
||||||
binary: "application/octet-stream",
|
binary: "application/octet-stream",
|
||||||
|
@ -13,7 +13,9 @@ type FILE_EXTENSION =
|
|||||||
| "gif"
|
| "gif"
|
||||||
| "jpg"
|
| "jpg"
|
||||||
| "png"
|
| "png"
|
||||||
|
| "excalidraw.png"
|
||||||
| "svg"
|
| "svg"
|
||||||
|
| "excalidraw.svg"
|
||||||
| "json"
|
| "json"
|
||||||
| "excalidraw"
|
| "excalidraw"
|
||||||
| "excalidrawlib";
|
| "excalidrawlib";
|
||||||
|
@ -56,7 +56,7 @@ export const exportCanvas = async (
|
|||||||
{
|
{
|
||||||
description: "Export to SVG",
|
description: "Export to SVG",
|
||||||
name,
|
name,
|
||||||
extension: "svg",
|
extension: appState.exportEmbedScene ? "excalidraw.svg" : "svg",
|
||||||
fileHandle,
|
fileHandle,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
@ -89,7 +89,7 @@ export const exportCanvas = async (
|
|||||||
return await fileSave(blob, {
|
return await fileSave(blob, {
|
||||||
description: "Export to PNG",
|
description: "Export to PNG",
|
||||||
name,
|
name,
|
||||||
extension: "png",
|
extension: appState.exportEmbedScene ? "excalidraw.png" : "png",
|
||||||
fileHandle,
|
fileHandle,
|
||||||
});
|
});
|
||||||
} else if (type === "clipboard") {
|
} else if (type === "clipboard") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user