Skip to content

Commit

Permalink
fi
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Aug 23, 2024
1 parent cdf1cba commit d42e47a
Showing 1 changed file with 12 additions and 8 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

0 comments on commit d42e47a

Please sign in to comment.