SceneNode
One node: a shape at a position, plus whatever is drawn inside it.
Used as Input
0
functions accept this type(+1 nested)
Used as Output
0
functions return this type(+8 nested)
Type Definition
286 nested items
struct— One node: a shape at a position, plus whatever is drawn inside it.
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.content:Vec<NodeContent>— What is drawn inside, in list order, over the fill and border.
[items]:NodeContent— What is drawn inside a node, in list order, over its fill and border.
fill:Option<String>— Fill colour. Falls back to the theme's node background.
h*:f64— Height.
w*:f64— Width.
x*:f64— Left edge.
y*:f64— Top edge.
shape:Shape— Node outline shape.
variant 1:struct— Rounded rectangle filling the node's box. The radius is clamped like CSS
border-radius.variant 2:struct— Ellipse inscribed in the node's box.
variant 3:struct— Circle of diameter
rect.w (the height is ignored).stroke:Option<Stroke>— Border stroke.
None draws a 1-unit border in the theme's node border colour.variant 1:Stroke— A stroke: what to paint with, how wide, dashed how, capped how.
variant 2:()
Example JSON Value
{}