← back to index.html · ← Standalone WCs
Web Components + Hypermedia Synergy
How dmax's core primitives (data-m-no^children, attr-backed _wc, wc.* auto-inference, ^stat._wc.*, and setup() lifecycle) let server-driven HTML morphing and rich client islands cooperate without fighting over the DOM.
1. Live Server Morph + ignoreChildren Graph Island
Every server tick morphs the entire #workspace fragment (updating the island's active-node & tick attributes AND the surrounding KPI cards). Because dm-graph-island sets ignoreChildren: true (equivalent to data-m-no^children), your pan/zoom/drag state survives every server morph, while the island reacts immediately to new server attributes and emits node-select back to dmax.
Re-rendered by the server on every tick while the SVG island beside it stays untouched.
<dm-inspector>
2. Server-Patched HTML Binding Directly into Host wc.*
Because _wc resolves lexically up the DOM at runtime (no build-time $$ variable rewriting), an HTML fragment arriving later from the server can drop straight inside a WC host and reactively read wc.filter immediately.
wc.filter: 3. Isolated Per-Instance Async Components (^stat._wc.req + data-m-it@_wc.hits)
Two sibling <dm-live-search> instances share one template and zero global signals: each has its own debounced data-m-get, in-flight cancellation, wc.req.busy, and rendered wc.hits list.
4. setup(host, ctx) Pointer Lifecycle & Clean Disconnect / Move
Drag the floating card below, move it between slots without losing drag state (microtask disconnect skips transient DOM moves), or remove it to verify the cleanup callback runs automatically.