Skip to content

Interface: FigureExportOptions ​

Defined in: StylePresets.ts:154

Properties ​

preset? ​

ts
preset?: 
  | SurfViewStylePresetName
  | SurfViewStylePreset;

Defined in: StylePresets.ts:155


width? ​

ts
width?: number;

Defined in: StylePresets.ts:156


height? ​

ts
height?: number;

Defined in: StylePresets.ts:157


dpi? ​

ts
dpi?: number;

Defined in: StylePresets.ts:158


background? ​

ts
background?: FigureBackground;

Defined in: StylePresets.ts:164

Explicit background; overrides transparent and backgroundColor. When omitted, transparent falls back to the preset's figure default and the colour to the live viewer background.


transparent? ​

ts
transparent?: boolean;

Defined in: StylePresets.ts:165


colorbar? ​

ts
colorbar?: boolean;

Defined in: StylePresets.ts:166


colorbarLayer? ​

ts
colorbarLayer?: string;

Defined in: StylePresets.ts:168

Layer whose colormap, range, threshold and caps the colour key shows (default: the active layer).


colorbarLabel? ​

ts
colorbarLabel?: string;

Defined in: StylePresets.ts:169


colorbarRange? ​

ts
colorbarRange?: [number, number];

Defined in: StylePresets.ts:170


colorbarColors? ​

ts
colorbarColors?: string[];

Defined in: StylePresets.ts:171


colorbarThreshold? ​

ts
colorbarThreshold?: [number, number] | null;

Defined in: StylePresets.ts:173

Masked interval drawn as a hatched band on the key; null hides the band.


colorbarCaps? ​

ts
colorbarCaps?: Partial<FigureColorbarCaps>;

Defined in: StylePresets.ts:174


roiLabels? ​

ts
roiLabels?: boolean | FigureExportLabel[];

Defined in: StylePresets.ts:175


scaleBar? ​

ts
scaleBar?: boolean;

Defined in: StylePresets.ts:176


scaleBarLabel? ​

ts
scaleBarLabel?: string;

Defined in: StylePresets.ts:177


scaleBarLength? ​

ts
scaleBarLength?: number;

Defined in: StylePresets.ts:178


fontScale? ​

ts
fontScale?: number;

Defined in: StylePresets.ts:179


backgroundColor? ​

ts
backgroundColor?: number;

Defined in: StylePresets.ts:180


title? ​

ts
title?: string;

Defined in: StylePresets.ts:181


subtitle? ​

ts
subtitle?: string;

Defined in: StylePresets.ts:182


downloadFilename? ​

ts
downloadFilename?: string;

Defined in: StylePresets.ts:183

Released under the MIT License.