diff --git a/src/packages/utils.ts b/src/packages/utils.ts index 54d40faa..442d6db1 100644 --- a/src/packages/utils.ts +++ b/src/packages/utils.ts @@ -16,7 +16,7 @@ type ExportOpts = { ) => { width: number; height: number; scale: number }; }; -const exportToCanvas = ({ +export const exportToCanvas = ({ elements, appState = getDefaultAppState(), getDimensions = (width, height) => ({ width, height, scale: 1 }), diff --git a/src/packages/utils/index.js b/src/packages/utils/index.js index e5c897f2..4dc03e93 100644 --- a/src/packages/utils/index.js +++ b/src/packages/utils/index.js @@ -1 +1 @@ -export { exportToBlob, exportToSvg } from "../utils.ts"; +export { exportToBlob, exportToSvg, exportToCanvas } from "../utils.ts";