From 96b5cfc35df4e67bd1d44a98fc603eb646fb779f Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Wed, 4 Dec 2024 14:33:45 +0800 Subject: [PATCH] fix data param --- packages/excalidraw/data/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/excalidraw/data/index.ts b/packages/excalidraw/data/index.ts index 32bf784f1..907c48d24 100644 --- a/packages/excalidraw/data/index.ts +++ b/packages/excalidraw/data/index.ts @@ -121,13 +121,12 @@ export const exportAsImage = async ({ exportBackground: cfg.exportBackground, exportWithDarkMode: data.appState.exportWithDarkMode, viewBackgroundColor: data.appState.viewBackgroundColor, - exportPadding: cfg.padding, exportScale: data.appState.exportScale, exportEmbedScene: data.appState.exportEmbedScene && type === "svg", }, files: data.files, }, - config: { exportingFrame: cfg.exportingFrame }, + config: { exportingFrame: cfg.exportingFrame, padding: cfg.padding }, }); if (type === "svg") { return fileSave(