pivotick - v3.0.0
    Preparing search index...

    Interface SimplifyOptions

    UI.simplify: which rules fold the graph, and how groups are named.

    interface SimplifyOptions {
        colorOf?: (node: Node) => string | undefined;
        enabled?: boolean;
        openConfirmAbove?: number;
        rules?: SimplifyRule[];
        typeLabel?: (type: string | undefined, count: number) => string;
        typeOf?: (node: Node) => string | undefined;
    }
    Index

    Properties

    colorOf?: (node: Node) => string | undefined

    The colour a node stands for in a group: the disc and ring, the open wash, the tooltip's chips, a mixed ring's share. For hosts whose nodes carry no color. Returning undefined falls back to the node's resolved style colour.

    the node's resolved style colour
    
    enabled?: boolean

    false removes the feature: no rules run and the Simplify rail mode is gone.

    true
    
    openConfirmAbove?: number

    Opening a group with more members than this asks first.

    100
    
    rules?: SimplifyRule[]

    The rules, in the order they run; each one sees the groups the ones above it made. Left out, full mode offers the built-in rules switched off, and the other modes run none.

    typeLabel?: (type: string | undefined, count: number) => string

    The name of a group's part, e.g. (type, count) => `${count} IPs` . type is undefined for nodes with no type.

    ${count} × ${type}

    typeOf?: (node: Node) => string | undefined

    The type every rule groups by and every group counts its parts by. A rule's own typeOf still wins for that rule.

    render.nodeTypeAccessor