Skip to content

Interface: FigureExportOptions ​

Defined in: StylePresets.ts:142

Properties ​

preset? ​

ts
optional preset?: 
  | SurfViewStylePresetName
  | SurfViewStylePreset;

Defined in: StylePresets.ts:143


width? ​

ts
optional width?: number;

Defined in: StylePresets.ts:144


height? ​

ts
optional height?: number;

Defined in: StylePresets.ts:145


dpi? ​

ts
optional dpi?: number;

Defined in: StylePresets.ts:146


background? ​

ts
optional background?: FigureBackground;

Defined in: StylePresets.ts:152

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
optional transparent?: boolean;

Defined in: StylePresets.ts:153


colorbar? ​

ts
optional colorbar?: boolean;

Defined in: StylePresets.ts:154


colorbarLayer? ​

ts
optional colorbarLayer?: string;

Defined in: StylePresets.ts:156

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


colorbarLabel? ​

ts
optional colorbarLabel?: string;

Defined in: StylePresets.ts:157


colorbarRange? ​

ts
optional colorbarRange?: [number, number];

Defined in: StylePresets.ts:158


colorbarColors? ​

ts
optional colorbarColors?: string[];

Defined in: StylePresets.ts:159


colorbarThreshold? ​

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

Defined in: StylePresets.ts:161

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


colorbarCaps? ​

ts
optional colorbarCaps?: Partial<FigureColorbarCaps>;

Defined in: StylePresets.ts:162


roiLabels? ​

ts
optional roiLabels?: boolean | FigureExportLabel[];

Defined in: StylePresets.ts:163


scaleBar? ​

ts
optional scaleBar?: boolean;

Defined in: StylePresets.ts:164


scaleBarLabel? ​

ts
optional scaleBarLabel?: string;

Defined in: StylePresets.ts:165


scaleBarLength? ​

ts
optional scaleBarLength?: number;

Defined in: StylePresets.ts:166


fontScale? ​

ts
optional fontScale?: number;

Defined in: StylePresets.ts:167


backgroundColor? ​

ts
optional backgroundColor?: number;

Defined in: StylePresets.ts:168


title? ​

ts
optional title?: string;

Defined in: StylePresets.ts:169


subtitle? ​

ts
optional subtitle?: string;

Defined in: StylePresets.ts:170


downloadFilename? ​

ts
optional downloadFilename?: string;

Defined in: StylePresets.ts:171

Released under the MIT License.