code wiki / _hdl_build / nx_viz_treemap.nx

nx_viz_treemap.nx

buildroot/runtime/_hdl_build/nx_viz_treemap.nx

1296 B35 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_viz_treemap.nx nx_viz_treemap_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_treemap_gate.nx

structs

none

consts

none

functions

7func vt_treemap(values: *i64, n: i64, x: i64, y: i64, w: i64, h: i64, rects_out: *i64) -> i64
called by 1: main
35func main() -> i64 { return 0 }