Skip to main content

StepColour

Colour by ordered value ranges, using an ordered (ordinal) palette.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { StepColour } from "@mapcairn/core";

interface StepColour

Properties​

field​

readonly field: string;

The numeric field the steps are read from.

kind​

readonly kind: "steps";

Tells a stepped rule from the other colour rules.

steps​

readonly steps: readonly {
readonly min: number;
readonly label: DefinitionText;
readonly colour: PaletteSlot;
}[];

Ascending minimums; the first applies to everything below the second.

See also​

Source: packages/core/src/layers/definition.ts:350