Instruments Orbital
// Orbital

Orbital

A radial system map where orbit speed, node size, and band colour ARE the telemetry — an instrument, not an animation.

<talos-orbital> is the showpiece instrument: a central core with nodes orbiting on concentric rings. Every visual property is bound to live state — ring = subsystem, node size = load, colour = health band, orbit speed ∝ rate. Form encodes function, so the picture reads even frozen: under prefers-reduced-motion the nodes park and size/colour/ring still carry the whole state, the orbit is only the enhancement.

Nodes are pushed as a property (el.nodes = [...]), not an attribute — it’s a live instrument. The demos below are driven by a script on this page that re-assigns a changing node set every second: readings cross the warn/crit bands, rates and loads drift, and nodes join and leave. The code blocks show the shape of the node set that drives the system.

Default

LIVE
<talos-orbital rings="3" warn="70" crit="90" size="260" label="CORE"></talos-orbital>
<script type="module">
  const el = document.querySelector("talos-orbital");
  el.nodes = [
    { id: "api",   ring: 1, value: 40, load: 0.6, rate: 50, label: "API" },
    { id: "db",    ring: 2, value: 82, load: 0.9, rate: 20, label: "DB" },
    { id: "cache", ring: 3, value: 12, load: 0.3, rate: 80, label: "CACHE" },
  ];
</script>

Three rings, a faint crosshair through the core, and the label text. Each node sits on the ring named by ring (1 = innermost / most critical), sized by load (0..1) and coloured by its value band.

Rings — subsystem count

LIVE
<talos-orbital rings="5" label="MESH"></talos-orbital>

rings sets the number of concentric orbits (default 3, min 1). A node’s ring field selects which one it rides; inner rings sweep slightly faster.

Core label & sub

LIVE
<talos-orbital label="ATLAS" core-sub="SYS://PRIMARY"></talos-orbital>

label is the headline glyph in the core; core-sub is the smaller line beneath it. Both default to CORE / SYS://ATLAS when omitted.

Band thresholds

LIVE
<talos-orbital warn="50" crit="80" label="CORE"></talos-orbital>

warn / crit are the inclusive-from thresholds on each node’s value: value ≥ crit paints --talos-danger, ≥ warn paints --talos-warning, otherwise --talos-success. The colour is the health band — same as the gauge and meter — so a glance reads the whole mesh’s state.

The .nodes property

Set el.nodes to an array of { id, ring, value, load, rate, label? }. Re-assign (or mutate + call update()) to push new state; re-assigning preserves each node’s orbit angle by id, so a data update never snaps the system back.

FieldDrives
ididentity — keeps orbit angle stable across re-assigns
ringwhich orbit ring (1-based, 1 = innermost)
valuecolour band via warn / crit
loadnode size (0..1)
rateorbit speed + flow arc to core (0 = parked, no arc)
labeloptional uppercase tag beside the node

Attributes

Generated from custom-elements.json in the installed package. Shared attributes (state, format, static…) behave as the instrument contract describes.

AttributeTypeDefaultDescription
rings number 3 number of concentric rings.
warn number 70 band thresholds on node.value.
crit number 90 band thresholds on node.value.
size number 520 intrinsic size in px; host width is min(100%, size), square; CSS width overrides.
core-label string — deprecated alias of `label` (warns once)
core-sub string counts sub-line in the core.
selected string — id of the selected node.
state string — live | loading | stale | offline | unknown; sets data-state on the host
updated-at string — time of the last sample (ISO or epoch ms); drives the age caption
stale-after string — seconds after updated-at at which the element reads stale
static string — boolean; turns motion off for this element only
label string CORE text in the core, part="caption".
invert boolean — low = bad: bands trip as value FALLS to warn/crit.
format string — number | compact | percent | bytes | duration | currency; the readout's number format
precision string — fraction digits of the formatted value
currency string — ISO 4217 code when format=currency
locale string — BCP 47 locale for formatting; defaults to the page locale

Properties and methods

MemberTypeDescription
.nodes OrbitalNode[] Set the live node set. Nodes are keyed by `id`: a persisting node keeps its element, angle and transitions; new nodes enter, missing nodes exit.
.selected string | null The selected node id, or null. Reflects the `selected` attribute.
update() method Re-read node fields after mutating them in place.
.running boolean Whether the animation loop is currently scheduled (for diagnostics/tests).

Events

EventTypeDescription
talos:band CustomEvent<BandEventDetail> Fired when the band changes (not on first render): detail { from, to, value }. Bubbles and is composed.
talos:hover CustomEvent<OrbitalEventDetail> Bubbles and is composed.
talos:select CustomEvent<OrbitalEventDetail> Bubbles and is composed.

CSS parts

::part(tooltip)