Copy the given shapes to the clipboard.

function copyAs(
  editor: Editor,
  ids: TLShapeId[],
  format?: TLCopyType,
  opts?: TLSvgOptions
): Promise<void>
Parameters
NameDescription

editor

Editor

The editor instance.

ids

TLShapeId[]

The ids of the shapes to copy.

format

TLCopyType

The format to copy as.

opts

TLSvgOptions

Options for the copy.

Returns
Promise<void>
containBoxSizedownsizeImage