Skip to content

EdgeDrawEndedEvent

since v1.2.0

Event payload emitted when an edge draw gesture ends, regardless of outcome.

Fires on every linking completion — both successful and cancelled. For successful completions, edge, target, and targetPort are populated. For cancellations, reason indicates why the gesture was cancelled.

dropPosition: Point

The position where the pointer was released


optional edge: Edge<object>

The created edge (only present on success)


optional reason: EdgeDrawCancelReason

The reason the draw was cancelled (only present on cancel)


source: Node

The source node from which the edge was drawn


optional sourcePort: string

Source port identifier if connected to a specific port


success: boolean

Whether the edge was successfully created


optional target: Node

The target node (only present on success)


optional targetPort: string

Target port identifier (only present on success)