code wiki / _hdl_build / nx_viz_partition.nx

nx_viz_partition.nx

buildroot/runtime/_hdl_build/nx_viz_partition.nx

2423 B68 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_viz_partition.nx nx_viz_icicle.nx nx_viz_partition_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_icicle.nxnx_viz_partition_gate.nx

structs

none

consts

6const K_MAGIC_32768: i64 = 32768

functions

10func vp_partition(n: i64, parent: *i64, value: *i64, span_out: *i64, depth_out: *i64) -> i64
called by 2: mainmain calls 1: sys_mmap
68func main() -> i64 { return 0 }