@mocanvas/mocanvas · function
declare function copyAs(editor: Editor, format?: ExportFormat | "json", ids?: readonly ShapeId[], opts?: CopyAsOptions): Promise<void>Put a rendered copy of the shapes on the system clipboard.
"json" writes mocanvas's own content format, which is what paste reads;
the image formats write a blob, which is what another application reads.
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.