feat: export exportToCanvas in utils (#2583)

This commit is contained in:
Daishi Kato 2020-12-14 22:11:48 +09:00 committed by GitHub
parent 222dbdcc00
commit 4b32c03994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 }),

View File

@ -1 +1 @@
export { exportToBlob, exportToSvg } from "../utils.ts"; export { exportToBlob, exportToSvg, exportToCanvas } from "../utils.ts";