Skip to main content
Rust4PM

TreeOptions

What steers a tidy-tree layout.
Used as Input

0

functions accept this type(+6 nested)

Used as Output

0

functions return this type

Type Definition

11 nested items
struct— What steers a tidy-tree layout.
direction:Direction— Primary flow direction of the layered layout. Default Direction::LeftRight.
variant 1:"leftright"— Layers advance left to right.
variant 2:"topbottom"— Layers advance top to bottom.
edge_style:TreeEdgeStyle— How a tree edge is drawn between parent and child.
variant 1:"straight"— The straight parent-to-child line, clipped to both borders. A wide fan's outer edges run
variant 2:"elbow"— The org-chart elbow through the middle of the row gap, where no node is. This is the
level_alignment:LevelAlignment— Which row a node is drawn in, along the axis the tree grows.
variant 1:"by_depth"— One row per depth, shared by the whole drawing. A node of depth d sits in row d, and
row_gap:f64— Gap between two depth rows, on the axis the tree grows along, in px. Defaults to 56.
sibling_gap:f64— Clearance between the boxes of two neighbouring siblings, in px. Defaults to 28.
subtree_gap:f64— Clearance between two nodes that face each other on the contours of different subtrees,

Example JSON Value

{}