pub struct Edge {
pub kind: EdgeKind,
pub from: PortId,
pub to: PortId,
pub hidden: bool,
pub selectable: Option<bool>,
pub focusable: Option<bool>,
pub interaction_width: Option<f32>,
pub deletable: Option<bool>,
pub reconnectable: Option<EdgeReconnectable>,
pub data: Value,
pub view: EdgeViewDescriptor,
}Expand description
Edge between two ports.
Fields§
§kind: EdgeKindEdge kind.
from: PortIdSource port.
to: PortIdTarget port.
Whether the edge is hidden (XyFlow edge.hidden).
Hidden edges are excluded from derived selection and rendering surfaces.
selectable: Option<bool>Whether the edge can be selected (XyFlow edge.selectable).
When omitted, the global NodeGraphInteractionState.edges_selectable decides.
focusable: Option<bool>Whether the edge can receive keyboard focus (XyFlow edge.focusable).
When omitted, the global NodeGraphInteractionState.edges_focusable decides.
interaction_width: Option<f32>Optional edge hit-test interaction width in logical pixels (XyFlow edge.interactionWidth).
When omitted, the global NodeGraphInteractionState.edge_interaction_width decides.
deletable: Option<bool>Whether the edge can be deleted via editor interactions (XyFlow edge.deletable).
When omitted, the global NodeGraphInteractionState.edges_deletable decides.
reconnectable: Option<EdgeReconnectable>Whether the edge can be reconnected via editor interactions (XyFlow edge.reconnectable).
In XyFlow this field is a boolean | 'source' | 'target'. true enables reconnecting both
endpoints, 'source' only enables reconnecting the source endpoint and 'target' only
enables reconnecting the target endpoint.
When omitted, the global NodeGraphInteractionState.edges_reconnectable decides.
data: ValueOpaque edge payload (domain-owned).
This is for product facts that belong to the relationship itself: branch conditions, cardinality, error-path facts, and adapter-readable labels that are part of graph meaning.
view: EdgeViewDescriptorRenderer-neutral presentation metadata for this edge.
Adapter-ephemeral state such as hover, selection, focused editor widgets, or open toolbars must remain outside the graph.