code wiki / _hdl_build / nx_viz_axis.nx
nx_viz_axis.nx
buildroot/runtime/_hdl_build/nx_viz_axis.nx
about
nx_viz_axis.nx -- the AXIS layer of the sovereign Nishi viz library (the d3-axis equivalent, bits-up).
Composes scales (vs_ticks for tick values + vs_linear for value->pixel) + shapes' serializer (vsh_n/vsh_lit)
to emit a full SVG axis: baseline + tick marks + numeric labels. va_ticks is the KAT-able numeric core
(tick values + their pixel positions); va_axis_bottom is the render. Closes axis-ticks. license_tier: ORIGINAL
dependencies 3 imports · 3 importers
imports: nx_viz_scale.nxnx_viz_shape.nxnx_syscalls.nx
imported by: nx_chart.nxnx_viz_axis_gate.nxnx_viz_chart.nx
structs
| none |
consts
| none |
functions
| 10 | func va_ticks(d0: i64, d1: i64, target: i64, px0: i64, px1: i64, vals_out: *i64, px_out: *i64) -> i64 |
| 20 | func va_axis_bottom(d0: i64, d1: i64, px0: i64, px1: i64, target: i64, axis_y: i64, out: *u8) -> i64 |
| 42 | func va_axis_left(d0: i64, d1: i64, py0: i64, py1: i64, target: i64, axis_x: i64, out: *u8) -> i64 |
| 64 | func main() -> i64 { return 0 } |