Skip to main content

CategoryColour

Colour by category, for alert levels and kinds.

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

Signature​

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

interface CategoryColour

Properties​

categories​

readonly categories: readonly StyleCategory[];

The categories, each with a value, a label and a colour.

field​

readonly field: string;

The decoded field whose value picks the category.

kind​

readonly kind: "category";

Tells a category colour rule from the other rules.

other​

readonly other: {
readonly label: DefinitionText;
readonly colour: PaletteSlot;
};

Used for a value no category names.

See also​

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