Neo4j Visualization Library
    Preparing search index...

    Type Alias BoxSelectInteractionCallbacks

    Callbacks for the box select interaction handler.

    type BoxSelectInteractionCallbacks = {
        onBoxSelect?:
            | (
                (
                    { nodes, rels }: { nodes: Node[]; rels: Relationship[] },
                    event: MouseEvent,
                ) => void
            )
            | boolean;
        onBoxStarted?: ((event: MouseEvent) => void) | boolean;
    }
    Index
    onBoxSelect?:
        | (
            (
                { nodes, rels }: { nodes: Node[]; rels: Relationship[] },
                event: MouseEvent,
            ) => void
        )
        | boolean

    Called once the user releases the mouse after multi-selecting.

    The selected nodes and relationships.

    The original mouse event.

    onBoxStarted?: ((event: MouseEvent) => void) | boolean

    Called once when the user presses the mouse on the canvas, starting the box selection.

    The original mouse event.