LinkingActionState
since v0.8.0State tracking an edge creation operation in progress.
Properties
Section titled “Properties”cancelReason?
Section titled “cancelReason?”
optionalcancelReason:EdgeDrawCancelReason
Reason the linking gesture was cancelled (set by finishLinking on failure paths).
dropPosition?
Section titled “dropPosition?”
optionaldropPosition:Point
Position where the pointer was released.
relink?
Section titled “relink?”
optionalrelink:LinkingRelinkContext
Present while an endpoint of an existing edge is being relinked. Until the
gesture ends, the original edge is not rendered and the temporary edge
represents it. relink.end is the end of the temporary edge that follows
the pointer (a normal draw always drags the target end).
1.4.0
relinkCancelReason?
Section titled “relinkCancelReason?”
optionalrelinkCancelReason:EdgeRelinkCancelReason
Reason the relink gesture ended without changing the edge (set by
finishRelinking when the relink fails).
1.4.0
sourceNodeId
Section titled “sourceNodeId”sourceNodeId:
string
ID of the node where the edge starts.
sourcePortId
Section titled “sourcePortId”sourcePortId:
string
ID of the port where the edge starts.
temporaryEdge
Section titled “temporaryEdge”temporaryEdge:
null|Edge<object>
Temporary edge displayed while creating the connection.