Skip to main content
Rust4PM

SceneEdge

One edge: an already-routed polyline plus its styling, markers, labels and decorations.
Used as Input

0

functions accept this type(+1 nested)

Used as Output

0

functions return this type(+8 nested)

Type Definition

340 nested items
struct— One edge: an already-routed polyline plus its styling, markers, labels and decorations.
attrs:Attrs— Escape-hatch attributes available on every drawable.
id:Option<String>— The element's id.
style:Option<String>— Inline CSS, emitted as the style attribute.
corner_radius:f64— Radius the interior joins are rounded with. 0 draws straight segments.
decorations:Vec<Decoration>— Dots, ticks, glyphs and bands along the edge. See Decoration for the paint order.
hop_radius:f64— Radius of the semicircle a horizontal run of this edge draws where it crosses another
labels:Vec<EdgeLabel>— Text labels, drawn over the path and its decorations.
marker_end:MarkerRef— Which marker an edge end uses.
marker_start:MarkerRef— Which marker an edge end uses.
points:Vec<Point>— The polyline in scene coordinates, source first. Fewer than two points draws nothing.
simplify:f64— Ramer-Douglas-Peucker tolerance applied to the drawn path only (0 = draw as given).
stroke:Stroke— A stroke: what to paint with, how wide, dashed how, capped how.
dash:Option<String>— SVG stroke-dasharray, e.g., "4 2". None draws a solid line.
opacity:Option<f64>— stroke-opacity in 0..=1. None leaves it out (fully opaque).
width:f64— Stroke width in scene units. Defaults to 1.

Example JSON Value

{}