Skip to main content
Rust4PM

Scene

One complete drawing.
Used as Input

1

function accept this type

Used as Output

8

functions return this type

Type Definition

859 nested items
Scene— One complete drawing.
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.
background:Option<String>— Colour of a rectangle filling the whole view box, padding included. None leaves the
defs:Vec<RawSvg>— User <defs> content, emitted verbatim.
edges:Vec<SceneEdge>— The edges, painted in list order.
font:FontSpec— The font a text run is measured and drawn with.
family:String— CSS font-family list. Defaults to Inter, system-ui, -apple-system, sans-serif.
italic:bool— Italic style, passed to the crate::svg::TextMeasurer and drawn with
size:f64— Font size in scene units. Defaults to 12.5.
weight:f64— CSS numeric font weight (400 regular, 700 bold). Defaults to 400.
markers:Vec<MarkerDef>— Custom markers, for MarkerRef::Custom.
nodes:Vec<SceneNode>— The nodes, painted in list order.
order:DrawOrder— Whether edges are painted before or after nodes.
variant 1:"edges_under_nodes"— Edges first, so the nodes cover any part of an edge that reaches into them.
variant 2:"edges_over_nodes"— Nodes first, so markers centred on a node border sit on top of it.
overlays:Vec<Overlay>— Fragments and panels drawn under or over the graph.
padding:f64— Space kept around the scene's bounding box.
symbols:Vec<SymbolDef>— Reusable fragments, emitted whether or not anything uses them.

Example JSON Value

{}

Functions Accepting This Type(1)

Functions Returning This Type(8)