TreeRequest
A tidy-tree request: a rooted tree or forest, and the TreeOptions fields to change.
Used as Input
1
function accept this type
Used as Output
0
functions return this type(+1 nested)
Type Definition
102 nested items
struct— A tidy-tree request: a rooted tree or forest, and the
TreeOptions fields to change.graph:Graph= {...}— The graph to lay out: nodes addressed by index, edges referring to those indices.
direction:Direction= "topbottom"— Primary flow direction of the layered layout. Default
Direction::LeftRight.edge_style:TreeEdgeStyle= "elbow"— How a tree edge is drawn between parent and child.
level_alignment:LevelAlignment= "by_depth"— Which row a node is drawn in, along the axis the tree grows.
row_gap:f64= 56— Gap between two depth rows, on the axis the tree grows along, in px. Defaults to
56.sibling_gap:f64= 28— Clearance between the boxes of two neighbouring siblings, in px. Defaults to
28.subtree_gap:f64= 28— Clearance between two nodes that face each other on the contours of different subtrees,
Example JSON Value
{}