exportToBlob

See source code

Export the given shapes as a blob.

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

Parameters

NameDescription

{ editor, ids, format, opts, }

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

Returns

Promise<Blob>

A promise that resolves to a blob.

Prev
exportAs
Next
fitFrameToContent