process-flowchart-js: Process Flowchart (a diagram editor)

The diagram demo: no backend, no network calls beyond its own files. A <vn-diagram> with a <vn-diagram-palette> beside it and a <vn-diagram-toolbar> above it, over the flowchart of an order-handling process (20 shapes in two lanes, Sales and Warehouse, and 20 connectors) loaded from plan.json through VanillaDiagramStaticDataManager, or a generated plan of 1,000 to 100,000 shapes. See docs/vanilla-diagram/00-index.md and docs/vanilla-diagram-toolbar/00-index.md.

What it shows

Files

File
index.html The header with the theme, size and server selectors and the "Fail the next save" button, the toolbar and its items (Tidy up, the standard commands, Reset), the palette and the diagram
app.js The flowchart symbols (the lane container among them), the generated plans, ?shapes= and the zoom limit up to 10,000 shapes, the slow manager, the status line, the Reset command, the Ledger theme's registration, the theme switch, the load
themes/vn-diagram-ledger.css The app's own diagram theme, Ledger: every --vn-diagram-* token, for the diagram, the palette and the toolbar
themes/app-ledger.css The page chrome under Ledger, in place of a shared app theme
plan.json The order-handling flowchart in its two lanes: a version 1 diagram document, as toJSON() returns
styles.css Layout; colours come from the app theme (shared, or themes/app-ledger.css), the toolbar's from the diagram's theme

Running it

Serve the repository root (npx http-server . -p 4173) and open /samples/process-flowchart-js/. In the build, dist/samples/process-flowchart-js/ loads vanilla-diagram.bundle.js and vanilla-diagram-toolbar.bundle.js from dist/vanilla-components/latest/.