mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-17 03:04:26 +01:00
feat: export exportToCanvas in utils (#2583)
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user