Skip to content

Interface: LayerColorPreviewDescriptor ​

Defined in: controls/ControlTarget.ts:95

Properties ​

kind ​

ts
readonly kind: "colormap" | "solid" | "categorical";

Defined in: controls/ControlTarget.ts:96


label ​

ts
readonly label: string;

Defined in: controls/ControlTarget.ts:97


css ​

ts
readonly css: string;

Defined in: controls/ControlTarget.ts:99

Compact CSS swatch (a short gradient for colormaps).


stops? ​

ts
readonly stops?: readonly string[];

Defined in: controls/ControlTarget.ts:106

Colormap previews only: CSS colours sampled evenly with the layer's own colour lookup from the low to the high end of range, ignoring the threshold mask. Present when the layer can sample its colour key, so custom colour arrays preview as drawn rather than as a generic ramp.


range? ​

ts
readonly range?: readonly [number, number];

Defined in: controls/ControlTarget.ts:108

The value interval stops span (the layer's colour-key range).

Released under the MIT License.