g3-toolkit API Reference
    Preparing search index...

    Interface StyleGraph

    interface StyleGraph {
        elements: readonly StyleElement[];
        neighbors?: (id: string) => readonly string[];
    }
    Index

    Properties

    Properties

    elements: readonly StyleElement[]
    neighbors?: (id: string) => readonly string[]

    Adjacency accessor for adjacency-dependent rules. Optional: a graph without it treats adjacency rules as having no neighbor fan-out (and the engine emits STYLE_ADJACENCY_WITHOUT_NEIGHBORS once if such a rule exists).