interface ExportJpgOptions {
    bg?: string;
    full?: boolean;
    maxHeight?: number;
    maxWidth?: number;
    quality?: number;
    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.

quality?: number

quality Specifies the quality of the image from 0 (low quality, low filesize) to 1 (high quality, high filesize). If not set, the browser's default quality value is used.

scale?: number

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