Skip to main content
Rust4PM

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>.
attrs:Attrs= {...}— Escape-hatch attributes available on every drawable.
id:Option<String>= null— The element's id.
style:Option<String>= null— 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 has
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"). false
ref_point:Point= {...}— A point in output (drawing) space, in px.
x*:f64— Horizontal coordinate, growing to the right.
y*:f64— Vertical coordinate, growing downwards (SVG convention).
size:SceneSize= {...}— A width/height pair.
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
view_box:SceneRect= {...}— An axis-aligned rectangle, given by its top-left corner and its size.
h*:f64— Height.
w*:f64— Width.
x*:f64— Left edge.
y*:f64— Top edge.

Example JSON Value

{}