Expand description
Renderer-neutral connection gesture helpers.
Adapters own pointer capture and platform hit testing. The runtime owns deterministic connection activation and handle proximity policy that should feel like XyFlow across renderers.
Structs§
- Closest
Connection Handle - Closest handle resolution result.
- Closest
Connection Handle Input - Input for resolving the closest connection handle near a pointer.
- Connect
Edge Request - Rules-driven request for connecting two existing ports.
- Connection
Drag Activation Input - Screen-space input for deciding whether a connection drag should activate.
- Connection
Handle Candidate - Renderer-normalized handle geometry in canvas coordinates.
- Connection
Handle Connection - XyFlow-shaped connection endpoints resolved from a start handle and target handle.
- Connection
Handle Indicator - XyFlow-style per-handle interaction indicator state.
- Connection
Handle Indicator Input - Input for resolving XyFlow-style handle interaction indicator state.
- Connection
Handle Ref - Stable identity for a renderer handle participating in a connection gesture.
- Connection
Target Candidate - Renderer-normalized target-handle geometry plus target connectability policy.
- Connection
Target From Handles Input - Input for resolving the current connection target from renderer-normalized handle candidates.
- Connection
Target Handle - Candidate target handle plus adapter-resolved connectability policy.
- Connection
Target Input - Input for resolving whether a target handle can complete a connection gesture.
- Reconnect
Edge Request - Rules-driven request for reconnecting one endpoint of an existing edge.
- Resolved
Connection Target - Resolved target semantics for connection feedback and completion callbacks.
Enums§
- Connect
Edge Error - Error returned when a connect request could not be committed.
- Connection
Handle Validity - XyFlow-compatible validity state for a connection target candidate.
- Reconnect
Edge Error - Error returned when a reconnect request could not be committed.
Constants§
- CONNECT_
EDGE_ TRANSACTION_ LABEL - Default transaction label used for committed connect updates.
- RECONNECT_
EDGE_ TRANSACTION_ LABEL - Default transaction label used for committed reconnect updates.
Functions§
- closest_
connection_ handle - Returns the nearest handle inside
connection_radius, matching XyFlow tie semantics. - connect_
edge_ transaction - connect_
edge_ transaction_ with_ edge_ id - connection_
drag_ threshold_ met - Returns whether pointer movement should start a connection drag.
- connection_
handle_ validity - Resolves XyFlow’s
true | false | nullconnection feedback into a Rust enum. - reconnect_
edge_ transaction - resolve_
connection_ handle_ indicator - Resolves the handle booleans used by XyFlow’s Handle component.
- resolve_
connection_ target - Resolves XyFlow handle target semantics without depending on DOM hit testing.
- resolve_
connection_ target_ from_ handles - Resolves connection target feedback from renderer-normalized handle geometry and policies.