code wiki / _hdl_build / nx_viz_zoom_page.nx

nx_viz_zoom_page.nx

buildroot/runtime/_hdl_build/nx_viz_zoom_page.nx

6641 B93 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_zoom_page.nx -- COMPOSED live WASM zoom/pan page. Reads zoom.wasm (compiled from our zoom.wat by nx_wat_compiler), base64-embeds it inline (one self-contained file, no CDN/no fetch), emits a zoomable SVG grid in a <g id=stage>, and the THIN platform glue (instantiate wasm + bind wheel/drag -> call zoom_k/zoom_t/pan_t -> set the transform). ALL transform math is in the sovereign WASM; the JS is only the unavoidable DOM binding (no d3.js, no transform math in JS). usage: nx_viz_zoom_page [zoom.wasm] [out.html]. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_viz_shape.nx nx_syscalls.nx nx_viz_zoom_page.nx

imports: nx_viz_shape.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close cw sys_write b64_enc vsh_lit vsh_n sys_mmap ↻ sys_openat_wr sys_write ↻ sys_close ↻

structs

none

consts

8const K_MAGIC_65536: i64 = 65536
9const K_MAGIC_262144: i64 = 262144

functions

11func cw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main calls 1: sys_write
13func b64_enc(src: *u8, n: i64, out: *u8) -> i64
called by 1: main
34func main(argc: i64, argv: *i64) -> i64