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>= null— The element's
id.style:Option<String>= null— Inline CSS, emitted as the
style attribute.markup:String= ""— Markup in
view_box coordinates, emitted verbatim inside the <marker>.orient_auto:bool= true— 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= 0— How far the path end is pulled back so the marker's visible tip lands on the endpoint, in
Example JSON Value
{}