Skip to main content

Interface: GeovisWorkspaceSidebarSliderSetting

Defined in: context/GeovisWorkspaceContext.ts:475

A numeric setting: a continuous range, or a ladder when stops is given.

The two are one control because they are one gesture — drag a handle along a track — and splitting them would put the stepper buttons, the end captions and the readout in two places to drift apart. stops is what decides which: with rungs the handle snaps between them and reads their labels, without them it sweeps min..max and reads the number itself.

Properties​

defaultValue​

defaultValue: number

Defined in: context/GeovisWorkspaceContext.ts:491

Value the track starts at.


endLabels?​

optional endLabels?: [string, string]

Defined in: context/GeovisWorkspaceContext.ts:499

The two ends of the scale, e.g. ['Broad', 'Detailed']. Rendered as one caption joining them with an em dash, centred under the track — they name what the direction means, which the values alone cannot.


kind​

kind: "slider"

Defined in: context/GeovisWorkspaceContext.ts:476


max?​

optional max?: number

Defined in: context/GeovisWorkspaceContext.ts:487

Highest value of a continuous track. Ignored when stops is set.


menuId: string

Defined in: context/GeovisWorkspaceContext.ts:478

Menu id the value is reported under.


min?​

optional min?: number

Defined in: context/GeovisWorkspaceContext.ts:485

Lowest value of a continuous track. Ignored when stops is set.


step?​

optional step?: number

Defined in: context/GeovisWorkspaceContext.ts:489

Granularity of a continuous track. Defaults to 1.


stepButtons?​

optional stepButtons?: boolean

Defined in: context/GeovisWorkspaceContext.ts:501

Adds the −/+ buttons under the track. Defaults to false.


stops?​

optional stops?: GeovisWorkspaceSidebarSliderStop[]

Defined in: context/GeovisWorkspaceContext.ts:483

Discrete rungs, in track order. When given, the handle snaps to them and min/max/step are ignored — the rungs already say where it can rest.


unit?​

optional unit?: string

Defined in: context/GeovisWorkspaceContext.ts:493

Suffix on a continuous track's readout, e.g. '%'.