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

Callbacks for the box select interaction handler.

Type declaration

  • OptionalonBoxSelect?: (({ nodes, rels }: {
        nodes: Node[];
        rels: Relationship[];
    }, event: MouseEvent) => void) | boolean

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

    The selected nodes and relationships.

    The original mouse event.

  • OptionalonBoxStarted?: ((event: MouseEvent) => void) | boolean

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

    The original mouse event.