Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Sep 29, 2023
1 parent a635018 commit d23cbd3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/packages/excalidraw/example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -806,18 +806,18 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
if (!excalidrawAPI) {
return;
}
const canvas = await exportToCanvas({
elements: excalidrawAPI.getSceneElements(),
appState: {
...initialData.appState,
exportWithDarkMode,
},
files: excalidrawAPI.getFiles(),
});
const ctx = canvas.getContext("2d")!;
ctx.font = "30px Virgil";
ctx.strokeText("My custom text", 50, 60);
setCanvasUrl(canvas.toDataURL());
// const canvas = await exportToCanvas({
// elements: excalidrawAPI.getSceneElements(),
// appState: {
// ...initialData.appState,
// exportWithDarkMode,
// },
// files: excalidrawAPI.getFiles(),
// });
// const ctx = canvas.getContext("2d")!;
// ctx.font = "30px Virgil";
// ctx.strokeText("My custom text", 50, 60);
// setCanvasUrl(canvas.toDataURL());
}}
>
Export to Canvas
Expand Down

0 comments on commit d23cbd3

Please sign in to comment.