pivotick - v2.0.1
    Preparing search index...

    Interface NeighborsPanel

    Represents the configuration for the neighbors panel in the graph UI's sidebar

    Defines how to compute and display neighbors for nodes and edges.

    All neighbor for the chosen entity
    
    interface NeighborsPanel {
        enabled?: boolean;
        render?:
            | string
            | HTMLElement
            | (
                (
                    element: Node | Edge | Node[] | Edge[] | null,
                    ctx: RenderContext,
                ) => RenderResult
            );
    }
    Index

    Properties

    Properties

    enabled?: boolean

    Whether the sidebar shows a neighbours panel at all. false removes it and its separator — right for a graph whose edges say nothing worth listing.

    true
    
    render?:
        | string
        | HTMLElement
        | (
            (
                element: Node | Edge | Node[] | Edge[] | null,
                ctx: RenderContext,
            ) => RenderResult
        )

    A returned string renders as plain text; return an HTMLElement to render HTML. May be async: the slot shows a placeholder until it resolves, and a result arriving after the selection moved on is dropped.