Type alias BeforeMoveConnectionInterceptor

BeforeMoveConnectionInterceptor: ((source, target, edge) => any)

A function to run before an edge of the given type is relocated from its current source or target to a new source or target. Returning false from this method will abort the move.

Type declaration

    • (source, target, edge): any
    • Parameters

      • source: Vertex

        Candidate source. May be the edge's current source, or may be a new source.

      • target: Vertex

        Candidate target. May be the edge's current target, or may be a new target.

      • edge: Edge

        The edge that is being moved.

      Returns any