code wiki / _hdl_build / nx_editor_loop.nx

nx_editor_loop.nx

buildroot/runtime/_hdl_build/nx_editor_loop.nx

4804 B80 linesdepth 4pulls 5 transitivereach 1 importersview sourcekind librarytopic editor
docsdependenciesstructsconstsfunctions

about

nx_editor_loop.nx -- the NO-JS edit LOOP: the Nishi ecosystem MANAGING a layout with zero JavaScript. The editor surface is rendered (ec_render) with a NATIVE HTML <form> of op buttons; submitting POSTs an op; the server APPLIES the engine op (el_apply -> nx_editor_canvas) and RE-RENDERS. Every edit is a server round-trip -- no client JS, and more governed than drag-drop (each op passes through our code). The daemon route (/editor/apply) is the deployment wiring; this is the sovereign engine of it. REUSE: nx_editor_canvas. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_editor_canvas.nx nx_editor_loop.nx nx_editor_loop_gate.nx

imports: nx_syscalls.nxnx_editor_canvas.nx

imported by: nx_editor_loop_gate.nx

structs

none

consts

18const EL_GRID: i64 = 8

functions

10func el_streq(a: *u8, b: *u8) -> i64
called by 2: el_applyel_apply_st
23func el_apply(c: *i64, n: i64, op: *u8) -> i64
37func el_apply_st(st: *i64, op: *u8) -> i64
50func el_emit_ops(fd: i64) -> i64
called by 2: el_emit_formel_emit_form_st calls 1: ec_w
61func el_emit_form(c: *i64, n: i64, fd: i64) -> i64
called by 1: render_to calls 3: ec_renderec_wel_emit_ops
72func el_emit_form_st(st: *i64, fd: i64) -> i64