Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

toFile

toFile(sigma, opts?): Promise<File>

Defined in: packages/export-image/src/toImage.ts:32

This function takes a Sigma instance, calls toBlob, and returns a File instance of the given blob.

Parameters

sigma

Sigma

opts?

Partial<ToImageOptions> = {}

Returns

Promise<File>