Skip to content

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.

Plain geometry for frames, areas, arrows and dividers. They have no bindable properties: use a rule’s color and hide to make them react.

SymbolSizePropsPorts
core/arrow
Arrow
80 × 40—in (w), out (e)
core/circle
Circle
60 × 60—n (n), e (e), s (s), w (w)
core/line
Line
80 × 10—a (w), b (e)
core/rectangle
Rectangle
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.

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.

SymbolSizePropsPorts
core/compressor
Compressor
80 × 90running (boolean), fault (boolean)in (w), out (e)
core/conveyor
Belt conveyor
120 × 90running (boolean), fault (boolean)in (n), out (e)
core/cylinder
Pneumatic cylinder
60 × 120level (number), fault (boolean)rod-end (w), cap-end (w)
core/fan
Fan
80 × 90running (boolean), fault (boolean)in (w), out (e)
core/heat-exchanger
Shell and tube heat exchanger
100 × 100running (boolean), fault (boolean)tube-in (w), tube-out (e), shell-in (n), shell-out (s)
core/motor
Motor
80 × 90running (boolean), fault (boolean)power (n), shaft (e)
core/pump
Centrifugal pump
80 × 90running (boolean), fault (boolean)in (w), out (n)
core/silo
Silo with level
80 × 140level (number), value (text), fault (boolean)in (n), out (s)
core/tank
Tank with level
80 × 120level (number), value (text), fault (boolean)in (n), out (s)
core/valve-manual
Manual valve
60 × 70open (boolean), fault (boolean)in (w), out (e)
core/valve-onoff
On/off valve
60 × 70open (boolean), level (number), fault (boolean)in (w), out (e)
core/valve
Control valve
60 × 70open (boolean), level (number), fault (boolean)in (w), out (e)
SymbolSizePropsPorts
core/flow-meter
Flow meter
80 × 70running (boolean), value (text), fault (boolean)in (w), out (e)
core/isa-bubble
ISA instrument bubble
60 × 60value (text)process (s)
core/sensor
Sensor / transmitter
60 × 80value (text)process (s)

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).

SymbolSizePropsPorts
core/alarm
Alarm horn
60 × 60active (number)—
core/led
LED
40 × 40on (number)—
core/mode-indicator
Mode indicator
110 × 60auto (number), manual (number), off (number), value (text)—
core/stack-light
Stack light
40 × 100red (number), amber (number), green (number)—
SymbolSizePropsPorts
core/mini-gauge
Mini gauge
80 × 70level (number), value (text)—
core/value-tag
Value tag
100 × 30value (text)—
core/vertical-bar
Vertical bar
60 × 140level (number), value (text)—

A symbol (or a command item) with a cmd is clickable: see Commands. The demo sends nothing.

SymbolSizePropsPorts
core/button
Button
80 × 40on (number), value (text)—
core/selector
Selector
80 × 70pos1 (number), pos2 (number), pos3 (number)—
core/setpoint
Setpoint
120 × 40value (text)—

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.

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 —.

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.

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 viewBox equals the manifest size. Inlets and outlets of in-line equipment sit on y = 50, rotating equipment on a base at y = 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 (.09 plus a .07 highlight 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) and lamp (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.