Skip to content

LinkingActionState

since v0.8.0

State tracking an edge creation operation in progress.

optional cancelReason: EdgeDrawCancelReason

Reason the linking gesture was cancelled (set by finishLinking on failure paths).


optional dropPosition: Point

Position where the pointer was released.


optional relink: 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


optional relinkCancelReason: EdgeRelinkCancelReason

Reason the relink gesture ended without changing the edge (set by finishRelinking when the relink fails).

1.4.0


sourceNodeId: string

ID of the node where the edge starts.


sourcePortId: string

ID of the port where the edge starts.


temporaryEdge: null | Edge<object>

Temporary edge displayed while creating the connection.