pivotick - v3.0.0
    Preparing search index...

    Interface CustomRule

    A rule of the app's own.

    interface CustomRule {
        description?: string;
        enabled?: boolean;
        id: string;
        kind: "custom";
        label?: string;
        minSize?: number;
        partition: (view: GraphView) => Map<string, string>;
    }
    Index

    Properties

    description?: string

    One line on its card saying what it folds.

    enabled?: boolean
    true
    
    id: string

    Unique among the rules; also GroupInfo.rule.

    kind: "custom"
    label?: string

    The name on its card in the Simplify flyout.

    the id
    
    minSize?: number

    Fewer nodes sharing a key than this stay plain nodes.

    2
    
    partition: (view: GraphView) => Map<string, string>

    Give each node to group a key; nodes sharing a key become one group. A node left out stays itself, and ids that are not in view.nodes are ignored. A rule that throws is switched off and the others still run.