copyAs

See source code

Copy the given shapes to the clipboard.

function copyAs(
  editor: Editor,
  ids: TLShapeId[],
  opts: CopyAsOptions,
): Promise<void>;

Parameters

NameDescription

editor

Editor;

The editor instance.

ids

TLShapeId[];

The ids of the shapes to copy.

opts

Options for the copy.

Returns

Promise<void>;
Prev
containBoxSize
Next
createBookmarkFromUrl