Export the given shapes as files.

function exportAs(
  editor: Editor,
  ids: TLShapeId[],
  opts: ExportAsOptions
): Promise<void>

Parameters

NameDescription

editor

Editor

The editor instance.

ids

TLShapeId[]

The ids of the shapes to export.

opts

Options for the export.

Returns

Promise<void>
Prev
downsizeImage
Next
fitFrameToContent