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.
class:Vec<String>— Class names, joined with spaces into one
class attribute.data:Vec<(String, String)>—
(name, value) pairs, each emitted as data-<name>="<value>".extra:Vec<(String, String)>— Free-form attributes, escaped but otherwise untouched.
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.[items]:Decoration— Something drawn along an edge.
Bands are painted under the edge's own path, in list 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.
[items]:EdgeLabel— A text label riding on an edge.
marker_end:MarkerRef— Which marker an edge end uses.
variant 1:struct— No marker.
variant 2:struct— One of the renderer's own markers, emitted once per distinct marker, colour and size.
marker_start:MarkerRef— Which marker an edge end uses.
variant 1:struct— No marker.
variant 2:struct— One of the renderer's own markers, emitted once per distinct marker, colour and size.
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.linecap:LineCap— How a stroked line ends.
opacity:Option<f64>—
stroke-opacity in 0..=1. None leaves it out (fully opaque).paint:Paint— What a stroke or fill is painted with.
width:f64— Stroke width in scene units. Defaults to
1.Example JSON Value
{}