Overlay
A fragment or panel drawn outside the node/edge stack.
Used as Input
0
functions accept this type(+1 nested)
Used as Output
0
functions return this type(+8 nested)
Type Definition
131 nested items
struct— A fragment or panel drawn outside the node/edge stack.
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.variant 2:Panel— A block of legend entries, stacked top-down from
origin.z:ZOrder— Whether an overlay is drawn under or over the graph.
variant 1:"under"— Under the nodes and edges, over the background.
variant 2:"over"— Over the nodes and edges.
Example JSON Value
json
{
"content": {
"kind": "raw"
}
}