interface ExportBlobOptions {
    bg?: string;
    full?: boolean;
    maxHeight?: number;
    maxWidth?: number;
    output?: "blob";
    scale?: number;
}

Hierarchy (view full)

Properties

bg?: string

The background colour of the image (transparent by default).

full?: boolean

Whether to export the current viewport view (false, default) or the entire graph (true).

maxHeight?: number

Specifies the scale automatically in combination with maxWidth such that the resultant image is no taller than maxHeight.

maxWidth?: number

Specifies the scale automatically in combination with maxHeight such that the resultant image is no wider than maxWidth.

output

output Whether the output should be 'base64uri' (default), 'base64', or 'blob'.

scale?: number

This value specifies a positive number that scales the size of the resultant image.