ShapeCategoryColour
Colour by category: a field's value picks the class.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { ShapeCategoryColour } from "@mapcairn/core";
interface ShapeCategoryColour
Properties
categories
readonly categories: readonly ShapeCategory[];
The categories, each with a value, a label and a colour.
field
readonly field: string;
The tile property or decoded field whose value picks the category.
kind
readonly kind: "category";
Tells a category rule from the other shape colour rules.
other
readonly other: ShapeMarks & {
readonly label: DefinitionText;
readonly colour: PaletteSlot;
};
Used for a value no category names.