code wiki / _hdl_build / nx_viz_treemap.nx
nx_viz_treemap.nx
buildroot/runtime/_hdl_build/nx_viz_treemap.nx
about
nx_viz_treemap.nx -- the TREEMAP layer of the sovereign Nishi viz library (the d3-hierarchy treemap equivalent,
bits-up). Slice-and-dice: partition a rectangle among N weighted values proportionally, slicing along the
LONGER axis (better aspect than always-horizontal). One level; recurse per child for nesting. Pure integer.
rects_out = 4 ints/value: x, y, w, h. Closes layout-treemap. license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_viz_treemap_gate.nx
structs
| none |
consts
| none |
functions
| 7 | func vt_treemap(values: *i64, n: i64, x: i64, y: i64, w: i64, h: i64, rects_out: *i64) -> i64 called by 1: main |
| 35 | func main() -> i64 { return 0 } |