MarkerDef
A user-defined
<marker>.Used as Input
0
functions accept this type(+1 nested)
Used as Output
0
functions return this type(+8 nested)
Type Definition
28 nested items
struct— A user-defined
<marker>.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.id:String— The id
MarkerRef::Custom refers to it by. A reference to an id that no marker hasmarkup:String— Markup in
view_box coordinates, emitted verbatim inside the <marker>.orient_auto:bool— Rotate the marker to follow the path's direction at its end (
orient="auto"). falsex*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).
h*:f64— Height, in scene units.
w*:f64— Width, in scene units.
tip_gap:f64— How far the path end is pulled back so the marker's visible tip lands on the endpoint, in
Example JSON Value
{}