code wiki / _hdl_build / nx_viz_shape.nx
nx_viz_shape.nx
buildroot/runtime/_hdl_build/nx_viz_shape.nx
about
nx_viz_shape.nx -- the SHAPES layer of the sovereign Nishi viz library (the d3-shape + d3-path equivalent,
bits-up). Generates SVG path strings from data points: line + area (the basis of line/area charts). Composes
with nx_viz_scale (scale data -> pixel coords, then shape -> path). No d3.js. Arc/pie await the trig layer.
Closes shape-line-area + path-serialize in viz_capability_target.tsv. Arc/pie via nx_viz_trig. license_tier: ORIGINAL
dependencies 2 imports · 7 importers
imports: nx_syscalls.nxnx_viz_trig.nx
imported by: nx_viz_axis.nxnx_viz_chord_page.nxnx_viz_graph.nxnx_viz_icicle.nxnx_viz_sankey_page.nxnx_viz_shape_gate.nxnx_viz_zoom_page.nx
structs
| none |
consts
| 7 | const K_MAGIC_10000: i64 = 10000 |
functions
| 10 | func vsh_n(out: *u8, off: i64, val: i64) -> i64 |
| 20 | func vsh_lit(out: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { out[o] = s[i]; o = o + 1; i = i + 1 } return o } |
| 23 | func vs_line(xs: *i64, ys: *i64, n: i64, out: *u8) -> i64 |
| 37 | func vs_area(xs: *i64, ys: *i64, n: i64, baseline: i64, out: *u8) -> i64 |
| 48 | func vs_arc(cx: i64, cy: i64, r: i64, a0_deg: i64, a1_deg: i64, out: *u8) -> i64 |
| 66 | func vs_symbol(typ: i64, cx: i64, cy: i64, r: i64, out: *u8) -> i64 |
| 92 | func vs_link(x0: i64, y0: i64, x1: i64, y1: i64, out: *u8) -> i64 |
| 101 | func main() -> i64 { return 0 } |