exportAs
Public function
Export the given shapes as files.
Signature
function exportAs(
editor: Editor,
ids: TLShapeId[],
format?: TLExportType,
opts?: Partial<TLSvgOptions>
): Promise<void>
Parameters
Name | Description |
---|---|
|
The editor instance. |
|
The ids of the shapes to export. |
|
The format to export as. |
|
Options for the export. |
Returns
Promise<void>
References
Editor, TLShapeId, TLSvgOptions
Source