1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! **syschart_panel** — the [`facett_syschart`] architecture/topology map mounted on
//! the reusable [`facett_wasm_demo`] host: the [`SystemChart::demo`] constellation (a
//! small nordisk architecture grouped by layer — ingress `gateway` → the
//! `korp`/`nornir`/`holger` services → the `skade`/`iceberg` storage, with dependency
//! edges and per-service badges) rendered as a **native window** and a **wasm / WebGL
//! canvas** from the same source, ready for a Codeberg-Pages site (the harness recipe
//! in `facett-demo/README.md`). Click a service chip to expand its detail.
//!
//! - native: `cargo run -p facett-syschart --example syschart_panel`
//! - wasm: `cargo build -p facett-syschart --example syschart_panel --target wasm32-unknown-unknown`
//! then `wasm-bindgen … --target web` it and serve with the generated
//! `index.html` ([`facett_wasm_demo::IndexHtml`]).
use SystemChart;
use FacetApp;
/// The panel's fixture: the built-in layered constellation map.
// ── native host ──────────────────────────────────────────────────────────────
// On wasm the entry point is `start` (below); `main` still has to exist to link.
// ── web host ─────────────────────────────────────────────────────────────────
/// The browser-readable state hook: `window.__syschart_state()` returns the map's
/// live `state_json` (nodes/edges/selection), so a headless drive verifies the
/// shipped bundle without a human.