Copy the given shapes to the clipboard.

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

Parameters

NameDescription

editor

The editor instance.

ids

The ids of the shapes to copy.

format

The format to copy as.

opts

Options for the copy.

Returns

Promise<void>
Prev
containBoxSize
Next
createMediaAssetInfoSkeleton