Symbols
The Synoptic widget draws a process diagram from symbols: small SVG drawings with a manifest that says which properties you can bind and where pipes connect. Tessera ships 29 of them as core/<id> (and a text, pipe and image item for the rest), all drawn in one Duotone style: a 2-unit contour, quiet details, and a tint made of one state color in three strengths, so grey stays grey and an alarm lights the whole drawing. Everything on this page is the real widget fed by a simulated tag table, and the tables are generated from the manifests, so a new symbol shows up here by itself.
A symbol goes in a diagram as { "type": "symbol", "sym": "core/pump", "x": 20, "y": 40, "w": 80, "h": 90, "bind": { "running": { "tag": "PLC1/P101_Run" } } }. The size below is the natural box, and w / h stretch it. The demos change the tags every couple of seconds, so you see each prop at work: rotors spin up and coast down, levels settle, valves ease, lamps glow.
Shapes
Section titled “Shapes”Plain geometry for frames, areas, arrows and dividers. They have no bindable properties: use a rule’s color and hide to make them react.
| Symbol | Size | Props | Ports |
|---|---|---|---|
core/arrowArrow | 80 × 40 | — | in (w), out (e) |
core/circleCircle | 60 × 60 | — | n (n), e (e), s (s), w (w) |
core/lineLine | 80 × 10 | — | a (w), b (e) |
core/rectangleRectangle | 80 × 50 | — | n (n), e (e), s (s), w (w) |
Lines are items, not symbols: a pipe is a list of points drawn as a hollow tube with rounded elbows, and its kind makes it a conveyor belt or a thin signal line. A pipe may bind flow to a boolean tag (the flow dots move) or to a number (their speed). Without flow it is still.
Equipment
Section titled “Equipment”Rotating equipment stands on a base at y = 90 and its inlets and outlets sit on the process axis y = 50, so a row of pumps, fans and valves lines up. Nozzles are 8 units wide and end in a 16-unit flange, the width a pipe meets without a reducer.
| Symbol | Size | Props | Ports |
|---|---|---|---|
core/compressorCompressor | 80 × 90 | running (boolean), fault (boolean) | in (w), out (e) |
core/conveyorBelt conveyor | 120 × 90 | running (boolean), fault (boolean) | in (n), out (e) |
core/cylinderPneumatic cylinder | 60 × 120 | level (number), fault (boolean) | rod-end (w), cap-end (w) |
core/fanFan | 80 × 90 | running (boolean), fault (boolean) | in (w), out (e) |
core/heat-exchangerShell and tube heat exchanger | 100 × 100 | running (boolean), fault (boolean) | tube-in (w), tube-out (e), shell-in (n), shell-out (s) |
core/motorMotor | 80 × 90 | running (boolean), fault (boolean) | power (n), shaft (e) |
core/pumpCentrifugal pump | 80 × 90 | running (boolean), fault (boolean) | in (w), out (n) |
core/siloSilo with level | 80 × 140 | level (number), value (text), fault (boolean) | in (n), out (s) |
core/tankTank with level | 80 × 120 | level (number), value (text), fault (boolean) | in (n), out (s) |
core/valve-manualManual valve | 60 × 70 | open (boolean), fault (boolean) | in (w), out (e) |
core/valve-onoffOn/off valve | 60 × 70 | open (boolean), level (number), fault (boolean) | in (w), out (e) |
core/valveControl valve | 60 × 70 | open (boolean), level (number), fault (boolean) | in (w), out (e) |
Instruments
Section titled “Instruments”| Symbol | Size | Props | Ports |
|---|---|---|---|
core/flow-meterFlow meter | 80 × 70 | running (boolean), value (text), fault (boolean) | in (w), out (e) |
core/isa-bubbleISA instrument bubble | 60 × 60 | value (text) | process (s) |
core/sensorSensor / transmitter | 60 × 80 | value (text) | process (s) |
States
Section titled “States”Lamps have their own colors (--hmi-alarm-1…, --hmi-normal) and glow with the number they bind: a boolean tag lights them too (true is 1).
| Symbol | Size | Props | Ports |
|---|---|---|---|
core/alarmAlarm horn | 60 × 60 | active (number) | — |
core/ledLED | 40 × 40 | on (number) | — |
core/mode-indicatorMode indicator | 110 × 60 | auto (number), manual (number), off (number), value (text) | — |
core/stack-lightStack light | 40 × 100 | red (number), amber (number), green (number) | — |
Values
Section titled “Values”| Symbol | Size | Props | Ports |
|---|---|---|---|
core/mini-gaugeMini gauge | 80 × 70 | level (number), value (text) | — |
core/value-tagValue tag | 100 × 30 | value (text) | — |
core/vertical-barVertical bar | 60 × 140 | level (number), value (text) | — |
Commands
Section titled “Commands”A symbol (or a command item) with a cmd is clickable: see Commands. The demo sends nothing.
| Symbol | Size | Props | Ports |
|---|---|---|---|
core/buttonButton | 80 × 40 | on (number), value (text) | — |
core/selectorSelector | 80 × 70 | pos1 (number), pos2 (number), pos3 (number) | — |
core/setpointSetpoint | 120 × 40 | value (text) | — |
Themes
Section titled “Themes”ISA-101 (the default, used above) is grey when everything is normal and colors only what needs attention. Classic colors the equipment. Set it with canvas.theme; the drawings are the same, only the tokens (--hmi-normal, --hmi-alarm-1…4…) change. Both follow the dark and light themes: switch the page’s theme to check.
State signature
Section titled “State signature”Color only means alarm, and attention is never only color: a rail under the symbol says the priority (one to four lit segments) and whether the alarm is acknowledged. The four pumps below share a tag that goes normal → unacknowledged (solid segments that chase, the drawing blinks) → acknowledged (outlined and still) → normal. The rail code is a separate chunk, downloaded when the first symbol needs it. More about it, with manual, interlocked, stale and no-data rails, in Synoptic.
A tag with stale quality keeps its last value, dimmed and hatched; only bad (or no value) shows —.
For tools and agents
Section titled “For tools and agents”catalog.json has a top-level symbols key: symbols.list has every core symbol (id as core/<name>, label, category, tags, size) with its props (what an item can bind: name and type, number, text or boolean) and its ports (where a pipe connects: id, x and y from 0 to 1 of the box, dir), generated from the manifests in ui/symbols/core/. A running dashboard also lists the symbols of extension packs at /<path>/symbols/index.json, with the same fields.
Write your own symbols
Section titled “Write your own symbols”A widget package adds symbols with defineSymbolPack(id, { dir }): a folder of <name>.svg + <name>.json pairs, cited in diagrams as <id>/<name>. Draw them to match the core ones:
- Grid: coordinates snap to 5 units, the box is a multiple of 10 and
viewBoxequals the manifestsize. Inlets and outlets of in-line equipment sit ony = 50, rotating equipment on a base aty = 90, nozzles 8 wide with a 16-unit flange. Ports go in the manifest, never in the SVG. - Stroke: a 2-unit contour set on the root
<svg>; details at 1 unit and 50 % opacity; moving parts 1 to 1.2. Allowed widths: 1, 1.2 and 2. - Color: only through tokens, never hex or
url():style="stroke: var(--sym-state, var(--hmi-normal))". Depth comes from stacked fill opacities (.09plus a.07highlight band), with no gradients, filters, masks or<defs>. - Parts: mark what moves with
data-part:body,fill,level(fill only, scaled from its bottom edge),rotor(spins around its centre),flow(dashed, the dash period divides 16),value(one<text>, filled by the viewer) andlamp(its own token color and a numeric glow). A symbol never carries motion: the viewer animates the parts and stops when the system asks for reduced motion. - Limits: one
<svg viewBox>, at most 4 KB, no<style>, scripts, SMIL,<image>or<use>; it must pass the sanitiser unchanged. Declare every prop the symbol reacts to in the manifest.
The sources are in ui/symbols/core/ (with a README of the full rules) and test/symbols.test.js checks every rule on every file.