From 4b32c0399475086699e85eedafdf2b046b14d437 Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Mon, 14 Dec 2020 22:11:48 +0900 Subject: [PATCH] feat: export exportToCanvas in utils (#2583) --- src/packages/utils.ts | 2 +- src/packages/utils/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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";