code wiki / _hdl_build / nx_viz_chord.nx
nx_viz_chord.nx
buildroot/runtime/_hdl_build/nx_viz_chord.nx
about
nx_viz_chord.nx -- the CHORD layer of the sovereign Nishi viz library (the d3-chord equivalent, bits-up).
Maps an N x N flow matrix to a circular layout: each group gets an arc proportional to its row-sum; within it,
sub-arcs per target; a chord (i,j) connects group i's sub-arc-for-j to group j's sub-arc-for-i. Angles in
centi-degrees (0..36000) for integer precision. Render with arcs (groups) + curves (chords). Closes
layout-chord. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_viz_chord_gate.nxnx_viz_chord_page.nx
structs
| none |
consts
| 7 | const K_MAGIC_36000: i64 = 36000 |
functions
| 9 | func vch_rowsum(matrix: *i64, n: i64, i: i64) -> i64 |
| 14 | func vch_total(matrix: *i64, n: i64) -> i64 called by 1: vch_groups |
| 20 | func vch_groups(matrix: *i64, n: i64, garc_out: *i64) -> i64 |
| 34 | func vch_sub_mid(matrix: *i64, n: i64, i: i64, j: i64, garc_out: *i64) -> i64 |
| 44 | func main() -> i64 { return 0 } |