Skip to content

Commit

Permalink
fi
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Sep 11, 2024
1 parent 8a60dc9 commit fe39bc4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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 @@ -79,7 +79,7 @@ const _debugRenderer = (
scale,
normalizedWidth,
normalizedHeight,
viewBackgroundColor: "transparent",
canvasBackgroundColor: "transparent",
});

// Apply zoom
Expand Down

0 comments on commit fe39bc4

Please sign in to comment.