EdgeRelinkEndedEvent
since v1.4.0Event payload emitted when an edge relink gesture ends, regardless of outcome.
On success the edge was either reconnected (target and targetPort are
set) or left dangling (edge has a free endpoint anchored at
dropPosition). On failure the edge is unchanged and reason explains why.
Properties
Section titled “Properties”dropPosition
Section titled “dropPosition”dropPosition:
Point
The position where the pointer was released.
edge:
Edge
The edge after the relink (unchanged snapshot when success is false).
end:
EdgeEnd
Which endpoint was dragged.
previousNode?
Section titled “previousNode?”
optionalpreviousNode:Node
The node the endpoint was connected to before the relink, if any.
previousPort?
Section titled “previousPort?”
optionalpreviousPort:string
The port the endpoint was connected to before the relink, if any.
previousPosition?
Section titled “previousPosition?”
optionalpreviousPosition:Point
The anchor position of the endpoint before the relink, present only when the endpoint was free (dangling).
reason?
Section titled “reason?”
optionalreason:EdgeRelinkCancelReason
The reason the relink was reverted (only present on failure).
success
Section titled “success”success:
boolean
Whether the edge was changed (reconnected or left dangling).
target?
Section titled “target?”
optionaltarget:Node
The node the endpoint was reconnected to (only present on reconnect).
targetPort?
Section titled “targetPort?”
optionaltargetPort:string
The port the endpoint was reconnected to (only present on reconnect).