fix: restore svg image DataURL dimensions (#8730)

This commit is contained in:
David Luzar
2024-10-29 22:40:24 +01:00
committed by GitHub
parent f9815b8b4f
commit 79b181bcdc
13 changed files with 196 additions and 94 deletions
+1 -3
View File
@@ -319,9 +319,7 @@ export const exportToSvg = async (
// the tempScene hack which duplicates and regenerates ids
if (exportEmbedScene) {
try {
metadata = await (
await import("../data/image")
).encodeSvgMetadata({
metadata = (await import("../data/image")).encodeSvgMetadata({
// when embedding scene, we want to embed the origionally supplied
// elements which don't contain the temp frame labels.
// But it also requires that the exportToSvg is being supplied with