g3-toolkit API Reference
    Preparing search index...

    Interface EmphasisState

    interface EmphasisState {
        active: boolean;
        clear: () => void;
        effectNodeIds: ReadonlySet<string>;
        emphasizedEdgeIds: ReadonlySet<string>;
        label: string | null;
        setPathEffect: (
            nodeIds: readonly string[],
            edgeIds: readonly string[],
            label?: string,
        ) => void;
    }
    Index

    Properties

    active: boolean
    clear: () => void
    effectNodeIds: ReadonlySet<string>

    Nodes that are PART of the effect: full opacity, no styling.

    emphasizedEdgeIds: ReadonlySet<string>

    Edges the effect emphasizes (e.g. the path's edges).

    label: string | null

    Human-readable description for a host's clear-affordance chip.

    setPathEffect: (
        nodeIds: readonly string[],
        edgeIds: readonly string[],
        label?: string,
    ) => void