EdgeDrawEndedEvent
since v1.2.0Event 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.
Properties
Section titled “Properties”dropPosition
Section titled “dropPosition”dropPosition:
Point
The position where the pointer was released
optionaledge:Edge<object>
The created edge (only present on success)
reason?
Section titled “reason?”
optionalreason:EdgeDrawCancelReason
The reason the draw was cancelled (only present on cancel)
source
Section titled “source”source:
Node
The source node from which the edge was drawn
sourcePort?
Section titled “sourcePort?”
optionalsourcePort:string
Source port identifier if connected to a specific port
success
Section titled “success”success:
boolean
Whether the edge was successfully created
target?
Section titled “target?”
optionaltarget:Node
The target node (only present on success)
targetPort?
Section titled “targetPort?”
optionaltargetPort:string
Target port identifier (only present on success)