code wiki / _hdl_build / nx_brand_snap.nx
nx_brand_snap.nx
buildroot/runtime/_hdl_build/nx_brand_snap.nx
about
nx_brand_snap.nx -- editor-maturity primitives: grid SNAPPING + alignment GUIDES for the free-form canvas.
bs_snap rounds a placement coord to the nearest grid line (so dragged elements land on the rhythm); bs_aligned
detects when two elements share an edge within a tolerance (-> draw an alignment guide). Engine-level (deterministic,
no-float), so the studio canvas snaps BY CONSTRUCTION, not just via a JS hint. (Webflow-depth widget breadth stays
the R6 honest BEHIND.) Library. 100% sovereign. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_brand_snap_gate.nxnx_editor_canvas.nx
structs
| none |
consts
| none |
functions
| 9 | func bs_snap(v: i64, grid: i64) -> i64 |
| 14 | func bs_aligned(a: i64, b: i64, tol: i64) -> i64 called by 1: main |
| 21 | func bs_snap_place(buf: *i64, grid: i64) -> i64 |