code wiki / _hdl_build / nx_viz_shape.nx

nx_viz_shape.nx

buildroot/runtime/_hdl_build/nx_viz_shape.nx

6031 B101 linesdepth 3pulls 3 transitivereach 12 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_viz_trig.nx nx_viz_shape.nx nx_viz_axis.nx nx_viz_chord_page.nx nx_viz_graph.nx nx_viz_icicle.nx nx_viz_sankey_page.nx nx_viz_shape_gate.nx nx_viz_zoom_page.nx

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

7const K_MAGIC_10000: i64 = 10000

functions

10func vsh_n(out: *u8, off: i64, val: i64) -> i64
20func 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 }
23func vs_line(xs: *i64, ys: *i64, n: i64, out: *u8) -> i64
called by 2: vs_areamain calls 2: vsh_litvsh_n
37func vs_area(xs: *i64, ys: *i64, n: i64, baseline: i64, out: *u8) -> i64
called by 1: main calls 3: vs_linevsh_litvsh_n
48func vs_arc(cx: i64, cy: i64, r: i64, a0_deg: i64, a1_deg: i64, out: *u8) -> i64
called by 1: main calls 4: vs_cosvs_sinvsh_litvsh_n
66func vs_symbol(typ: i64, cx: i64, cy: i64, r: i64, out: *u8) -> i64
called by 1: main calls 2: vsh_litvsh_n
101func main() -> i64 { return 0 }