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