A tree layout that spreads children to both sides of their parent. Like
G6's other tree layouts, it expects a forest; for any graph, see
spanning_tree_layout().
Usage
mindmap_layout(
direction = c("H", "LR", "RL"),
getWidth = NULL,
getHeight = NULL,
getHGap = NULL,
getVGap = NULL,
getSide = NULL,
...
)Arguments
- direction
"H" (both sides), "LR" or "RL".
- getWidth, getHeight, getHGap, getVGap, getSide
Optional JS callbacks, see
compact_box_layout().- ...
Additional parameters passed to the layout. See https://g6.antv.antgroup.com/en/manual/layout/mindmap-layout.