mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
feat: export exportToCanvas in utils (#2583)
This commit is contained in:
parent
222dbdcc00
commit
4b32c03994
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ type ExportOpts = {
|
||||||
) => { width: number; height: number; scale: number };
|
) => { width: number; height: number; scale: number };
|
||||||
};
|
};
|
||||||
|
|
||||||
const exportToCanvas = ({
|
export const exportToCanvas = ({
|
||||||
elements,
|
elements,
|
||||||
appState = getDefaultAppState(),
|
appState = getDefaultAppState(),
|
||||||
getDimensions = (width, height) => ({ width, height, scale: 1 }),
|
getDimensions = (width, height) => ({ width, height, scale: 1 }),
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export { exportToBlob, exportToSvg } from "../utils.ts";
|
export { exportToBlob, exportToSvg, exportToCanvas } from "../utils.ts";
|
||||||
|
|
Loading…
Add table
Reference in a new issue