Interface RendererLegendItemExperimental

One legend entry derived from a renderer descriptor. This is a stable contract (issue #497 REQ-005): label and color are always present; value is set for unique-value entries, minValue/maxValue for ranged entries (class breaks, cluster steps), and heatmap stops carry the ramp position in value.

interface RendererLegendItem {
    color: string;
    kind:
        | "default"
        | "class-break"
        | "unique-value"
        | "heatmap-stop"
        | "cluster-step";
    label: string;
    maxValue?: number;
    minValue?: number;
    value?:
        | null
        | string
        | number
        | boolean;
}

Properties

color: string

CSS color for the legend swatch.

kind:
    | "default"
    | "class-break"
    | "unique-value"
    | "heatmap-stop"
    | "cluster-step"
label: string
maxValue?: number
minValue?: number
value?:
    | null
    | string
    | number
    | boolean