@mocanvas/mocanvas · function

useExportAs

declare function useExportAs(): (ids: readonly ShapeId[], opts?: ExportAsOptions & {
    format?: ExportFormat;
}) => Promise<void>

"Export as PNG/SVG", with the same error toast.

Takes the ids first and the format in the options object, which is the shape the action list calls it with.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.