diagram.js

The structure component. A caller names a molecule; the module picks the notation. Every caption here is read from state(), so a wrong projection reports itself rather than being spotted.

1 — one molecule per projection

2 — set() under a live handle

3 — what a caller asks for: a highlight, and the electrons