exportAs
See source codeExport the given shapes as files.
function exportAs(
editor: Editor,
ids: TLShapeId[],
format: TLExportType | undefined,
name: string | undefined,
opts?: TLImageExportOptions
): Promise<void>
Parameters
Name | Description |
---|---|
| The editor instance. |
| The ids of the shapes to export. |
|
The format to export as. |
|
Name of the exported file. If undefined a predefined name, based on the selection, will be used. |
| Options for the export. |
Returns
Promise<void>
Prev
downsizeImageNext
exportToBlob