code wiki / _hdl_build / nx_viz_scale.nx
nx_viz_scale.nx
buildroot/runtime/_hdl_build/nx_viz_scale.nx
about
nx_viz_scale.nx -- the SCALES layer of the sovereign Nishi viz library (the d3-scale equivalent, bits-up).
Scales map abstract data -> visual position/size/color: the basis of EVERY chart. Fixed-point i64 (callers
scale up for fractions; permil = parts-per-1000 where d3 uses 0..1). Sovereign, no d3.js. First layer of the
measured-exceed build (closes scale-linear / scale-ordinal / scale-color in viz_capability_target.tsv).
license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_viz_axis.nxnx_viz_scale_gate.nx
structs
| none |
consts
| none |
functions
| 9 | func vs_linear(d0: i64, d1: i64, r0: i64, r1: i64, v: i64) -> i64 |
| 14 | func vs_band_pos(n: i64, idx: i64, r0: i64, r1: i64, pad_permil: i64) -> i64 called by 1: main |
| 20 | func vs_band_width(n: i64, r0: i64, r1: i64, pad_permil: i64) -> i64 called by 1: main |
| 26 | func vs_color_lerp(c0: i64, c1: i64, t_permil: i64) -> i64 called by 1: main |
| 35 | func vs_ticks(d0: i64, d1: i64, count: i64, ticks_out: *i64) -> i64 |
| 42 | func main() -> i64 { return 0 } |