pub fn SeatEdges(_: SeatEdgesProps) -> ElementExpand description
The curves of seat-anchored edges, as one world-space layer.
Both inputs are the caller’s: the edge list, and the solved anchors — so
an application whose gestures decide what the solver sees (transient
preview links, a hidden edge mid-drag) runs ports::solve_ports itself,
once, and every layer drawn from it — this one, its own beads, its own
previews — agrees. crate::Flow’s seat mode wires both up from its node
and edge signals.
Labels deliberately do not render here: they belong to
SeatEdgeLabels, a separate layer, so a crossing edge’s stroke never
draws through another’s words.
§Props
For details, see the props struct definition.
edges:ReadSignal<Vec<Edge>>The edges to draw, in paint order.
anchors:ReadSignal<std::collections::BTreeMap<Id,ports::EdgeAnchors>>Solved anchors by edge id, from
ports::solve_ports.edge_view:Option<Callback<SeatEdgeViewCtx,Element>>Custom renderer for an edge’s SVG. Receives the full geometry.
on_edge_click:Option<EventHandler<Id>>Pointer down on an edge’s default hit path (see
hit_paths).hit_paths:boolWhether this layer adds an invisible grab band per edge, with the default select-on-press behavior. Applications whose custom views carry their own hit paths and press semantics turn it off.
class:Option<String>Extra classes for the layer’s
<svg>.