g3-toolkit API Reference
    Preparing search index...

    Interface G3tEvents

    Event bus: framework-agnostic pub/sub for toolkit events (M10.5.E3.T2).

    Allows adopters to observe toolkit state changes without depending on Zustand. The selection store, theme store, and other internal stores emit to this bus.

    Framework-agnostic (D6).

    interface G3tEvents {
        "context:editAppearance": { nodeId: string };
        "context:findPath": { sourceId: string; targetId: string };
        "context:focusNode": { hops: number; nodeId: string };
        "context:hideNodes": { nodeIds: string[] };
        "context:inspect": { nodeId: string };
        "context:pinNodes": { nodeIds: string[] };
        "context:viewNeighbors": { hops: number; nodeId: string };
        "context:viewSubgraph": { nodeIds: string[] };
        "edge:selected": { edgeIds: string[] };
        "encoding:changed": { channel: string; property: string };
        "filter:changed": { visibleNodeIds: string[] | null };
        "layout:changed": { layoutId: string };
        "node:deselected": { nodeIds: string[] };
        "node:doubleClicked": { nodeId: string };
        "node:hovered": { nodeId: string | null };
        "node:rightClicked": { nodeId: string; x: number; y: number };
        "node:selected": { nodeIds: string[] };
        "query:executed": { nodeCount: number; query: string };
        "selection:cleared": Record<string, never>;
        "theme:changed": { themeId: string };
        "ugm:changed": { edgeCount: number; nodeCount: number };
    }
    Index

    Properties

    "context:editAppearance": { nodeId: string }
    "context:findPath": { sourceId: string; targetId: string }
    "context:focusNode": { hops: number; nodeId: string }
    "context:hideNodes": { nodeIds: string[] }
    "context:inspect": { nodeId: string }

    Review 4.11: a host wires this to an inspector panel.

    "context:pinNodes": { nodeIds: string[] }
    "context:viewNeighbors": { hops: number; nodeId: string }
    "context:viewSubgraph": { nodeIds: string[] }
    "edge:selected": { edgeIds: string[] }
    "encoding:changed": { channel: string; property: string }
    "filter:changed": { visibleNodeIds: string[] | null }
    "layout:changed": { layoutId: string }
    "node:deselected": { nodeIds: string[] }
    "node:doubleClicked": { nodeId: string }
    "node:hovered": { nodeId: string | null }
    "node:rightClicked": { nodeId: string; x: number; y: number }
    "node:selected": { nodeIds: string[] }
    "query:executed": { nodeCount: number; query: string }
    "selection:cleared": Record<string, never>
    "theme:changed": { themeId: string }
    "ugm:changed": { edgeCount: number; nodeCount: number }