Neo4j Visualization Library
    Preparing search index...

    Type Alias LassoInteractionCallbacks

    Callbacks for the lasso interaction handler.

    type LassoInteractionCallbacks = {
        onLassoSelect?:
            | (
                (
                    { nodes, rels }: { nodes: Node[]; rels: Relationship[] },
                    event: MouseEvent,
                ) => void
            )
            | boolean;
        onLassoStarted?: ((event: MouseEvent) => void) | boolean;
    }
    Index
    onLassoSelect?:
        | (
            (
                { nodes, rels }: { nodes: Node[]; rels: Relationship[] },
                event: MouseEvent,
            ) => void
        )
        | boolean

    Called once when the user releases the mouse after lasso selecting.

    The selected nodes and relationships.

    The original mouse event.

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

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

    The original mouse event.