code wiki / _hdl_build / nx_viz_tree.nx
nx_viz_tree.nx
buildroot/runtime/_hdl_build/nx_viz_tree.nx
about
nx_viz_tree.nx -- the TIDY-TREE layer of the sovereign Nishi viz library (the d3-hierarchy tree core, bits-up).
Assigns x by leaf order (spacing 100) then centres each internal node over its children (post-order by
decreasing depth); y = depth. Cleaner than naive layered stacking (parents sit above their subtree's middle).
Closes layout-tree. license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_viz_tree_gate.nx
structs
| none |
consts
| none |
functions
| 7 | func vt_tree(n: i64, parent: *i64, x_out: *i64, depth_out: *i64) -> i64 called by 1: main |
| 43 | func main() -> i64 { return 0 } |