exportToBlob

See source code

Export the given shapes as a blob.

function exportToBlob({
  editor,
  ids,
  format,
  opts,
}: {
  editor: Editor
  format: TLExportType
  ids: TLShapeId[]
  opts?: TLImageExportOptions
}): Promise<Blob>

Parameters

NameDescription

{ editor, ids, format, opts, }

{
  editor: Editor
  format: TLExportType
  ids: TLShapeId[]
  opts?: TLImageExportOptions
}

Returns

Promise<Blob>

A promise that resolves to a blob.

Prev
exportAs
Next
fitFrameToContent