plant-automation-js: Plant Automation (a diagram of automation symbols)

A diagram demo with symbols of its own: 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 control layout of a small plant (30 symbols, 29 connectors) loaded from plan.json through VanillaDiagramStaticDataManager. The toolbar (the vanilla-diagram-toolbar component, its own script) is written in markup: the default bar's items, with Tidy up after the status line. Its connector type and arrows menus restyle a selected connector (a bus line's arrowless look is "No arrows"). See docs/vanilla-diagram/00-index.md.

What it shows

Files

File
index.html The header with the theme selector, the toolbar and its items (Tidy up, the standard commands), the palette and the diagram
app.js The pictograms, the three sets and their render callback, the node codes, the status line, the theme switch, the load
plan.json The plant's control layout: a version 1 diagram document, as toJSON() returns
styles.css Layout, and the pictograms' paint; colours come from the shared app theme and the diagram's theme

Running it

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