code wiki / _hdl_build / nx_viz_scale.nx

nx_viz_scale.nx

buildroot/runtime/_hdl_build/nx_viz_scale.nx

2227 B42 linesdepth 2pulls 2 transitivereach 7 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_viz_scale.nx nx_viz_axis.nx nx_viz_scale_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_axis.nxnx_viz_scale_gate.nx

structs

none

consts

none

functions

9func vs_linear(d0: i64, d1: i64, r0: i64, r1: i64, v: i64) -> i64
14func vs_band_pos(n: i64, idx: i64, r0: i64, r1: i64, pad_permil: i64) -> i64
called by 1: main
20func vs_band_width(n: i64, r0: i64, r1: i64, pad_permil: i64) -> i64
called by 1: main
26func vs_color_lerp(c0: i64, c1: i64, t_permil: i64) -> i64
called by 1: main
35func vs_ticks(d0: i64, d1: i64, count: i64, ticks_out: *i64) -> i64
42func main() -> i64 { return 0 }