Browse Source

fix data param

Ryan Di 9 tháng trước cách đây
mục cha
commit
96b5cfc35d
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      packages/excalidraw/data/index.ts

+ 1 - 2
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(