Skip to content

Commit

Permalink
fi
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Oct 2, 2024
1 parent b79cc9f commit 1f9e16e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
20 changes: 12 additions & 8 deletions excalidraw-app/components/AI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ export const AIComponents = ({
const appState = excalidrawAPI.getAppState();

const blob = await exportToBlob({
elements: children,
appState: {
...appState,
exportBackground: true,
viewBackgroundColor: appState.viewBackgroundColor,
data: {
elements: children,
appState: {
...appState,
exportBackground: true,
viewBackgroundColor: appState.viewBackgroundColor,
},
files: excalidrawAPI.getFiles(),
},
config: {
exportingFrame: frame,
mimeType: MIME_TYPES.jpg,
},
exportingFrame: frame,
files: excalidrawAPI.getFiles(),
mimeType: MIME_TYPES.jpg,
});

const dataURL = await getDataURL(blob);
Expand Down
2 changes: 1 addition & 1 deletion excalidraw-app/components/DebugCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const _debugRenderer = (
scale,
normalizedWidth,
normalizedHeight,
viewBackgroundColor: "transparent",
canvasBackgroundColor: "transparent",
});

// Apply zoom
Expand Down
2 changes: 1 addition & 1 deletion packages/excalidraw/scene/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ export const exportToSvg = async ({
width="${frame.width}"
height="${frame.height}"
${
exportingFrame
cfg.exportingFrame
? ""
: `rx=${FRAME_STYLE.radius} ry=${FRAME_STYLE.radius}`
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/buildPackage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const { build } = require("esbuild");
const { sassPlugin } = require("esbuild-sass-plugin");
const { externalGlobalPlugin } = require("esbuild-plugin-external-global");
const { parseEnvVariables } = require("../packages/excalidraw/env.cjs");

// Will be used later for treeshaking
//const fs = require("fs");
// const path = require("path");
Expand Down

0 comments on commit 1f9e16e

Please sign in to comment.