g3-toolkit API Reference
    Preparing search index...

    Interface FacetFilterProps

    interface FacetFilterProps {
        className?: string;
        colorForType?: (type: string) => string | undefined;
        onFilterChange: (hiddenTypes: Set<string>) => void;
        ugm: UGM;
    }
    Index

    Properties

    className?: string
    colorForType?: (type: string) => string | undefined

    Optional resolver so the swatch for each type matches the color the graph encoding actually assigns it. Without this the filter falls back to an independent Okabe-Ito index, which can disagree with the canvas (the categorical scale assigns colors in data insertion order, not sorted order).

    onFilterChange: (hiddenTypes: Set<string>) => void

    Called when the visible types change.

    ugm: UGM