ConnectionState
The ConnectionState type describes an in-progress connection: the from / to
handles and nodes, the pointer position, and whether it isValid. When no
connection is being made, inProgress is false and the other fields are null.
Read it with useConnection().
Fields
| Name | Type | Default |
|---|---|---|
inProgress | booleanIndicates whether a connection is currently in progress. | |
isValid | boolean | nullIf an ongoing connection is above a handle or inside the connection radius, this will be | |
from | XYPosition | nullReturns the xy start position in flow coordinates or | |
fromHandle | HandleBounds | nullReturns the start handle or | |
fromPosition | Position | nullReturns the side (called position) of the start handle or | |
fromNode | NodeType | nullReturns the start node or | |
to | XYPosition | nullReturns the xy end position in flow coordinates or | |
toHandle | HandleBounds | nullReturns the end handle or | |
toPosition | Position | nullReturns the side (called position) of the end handle or | |
toNode | NodeType | nullReturns the end node or | |
pointer | XYPosition | nullReturns the pointer position relative to the pane, in screen coordinates, or |