code wiki / _hdl_build / nx_viz_partition.nx
nx_viz_partition.nx
buildroot/runtime/_hdl_build/nx_viz_partition.nx
about
nx_viz_partition.nx -- the PARTITION layer of the sovereign Nishi viz library (the d3-hierarchy partition /
icicle / sunburst core, bits-up). Given a tree (parent[] + per-node value[]), assigns every node a normalized
span [x0,x1] within [0,total] (proportional to subtree value, partitioned among siblings) + its depth. Render
as rectangles (icicle) or annular arcs (sunburst). Pure integer. Closes layout-partition. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_viz_icicle.nxnx_viz_partition_gate.nx
structs
| none |
consts
| 6 | const K_MAGIC_32768: i64 = 32768 |
functions
| 10 | func vp_partition(n: i64, parent: *i64, value: *i64, span_out: *i64, depth_out: *i64) -> i64 |
| 68 | func main() -> i64 { return 0 } |