A network of systems as a connections map, plus one system with what uses it and what it uses.
<p>Every system is a card and every tie a wire: the shared packages in the middle lane, each group of the rest on the side that crosses least. Point at a card or tab to it to light its wires and the systems at their ends; a tap opens it.</p>
<div data-mount="network"></div>
<p>Carrel lit: its wires go accent, and the systems it uses and the ones that use it keep their color and say how they are tied; the rest fade. On a shared package this is the impact view: everything a change to it reaches.</p>
<div data-mount="lit"></div>
One system
<p>Capsid: what uses it, its parts in three lanes (Runs, Stores, Outside, each part with its own lines in words), and what it uses, wired together. Point at a part or a tie to light its wires. Below, its flows as ordered steps.</p>
<div data-mount="system"></div>
A flow at a step
<p>A job's life at its fifth step: the parts it touches and the wires between them lit, the part it moves toward with the heaviest edge, and the step marked in the list. Back and Next step it; Escape stops.</p>
<div data-mount="step"></div>
A card under the pointer and with keyboard focus
<p>Forced states on a map that is not enhanced: Prelum under the pointer, Carrel with the focus ring.</p>
<div data-mount="states"></div>
As delivered with no script
<p>No wires without a script: every card is a link, every tie and line is words, and each flow is an ordered list.</p>
<div data-mount="noscript"></div>
API reference
Functions
Function
Signature
Does
controller
(root: HTMLElement): SystemMapController
The map's behavior on one root; enhance calls it for every map on the page.
enhance
(root?: ParentNode): () => void
Enhances every system map under root not yet enhanced; returns a function that detaches them.
Parts and data attributes
Class
Is
.cap-system-map
the root
.cap-system-map-caption
a part
.cap-system-map-card
a part
.cap-system-map-card-about
a part
.cap-system-map-card-domain
a part
.cap-system-map-card-full
a part
.cap-system-map-card-meta
a part
.cap-system-map-card-name
a part
.cap-system-map-card-private
a part
.cap-system-map-card-tie
a part
.cap-system-map-cards
a part
.cap-system-map-cell
a part
.cap-system-map-cell-name
a part
.cap-system-map-column
a part
.cap-system-map-column-name
a part
.cap-system-map-columns
a part
.cap-system-map-comb
a part
.cap-system-map-comb-cells
a part
.cap-system-map-comb-group
a part
.cap-system-map-detail
a part
.cap-system-map-flow
a part
.cap-system-map-flow-controls
a part
.cap-system-map-flow-name
a part
.cap-system-map-flow-status
a part
.cap-system-map-flow-text
a part
.cap-system-map-flows
a part
.cap-system-map-graph
a part
.cap-system-map-group-count
a part
.cap-system-map-group-name
a part
.cap-system-map-head
a part
.cap-system-map-hex
a part
.cap-system-map-lane
a part
.cap-system-map-network
a part
.cap-system-map-none
a part
.cap-system-map-part
a part
.cap-system-map-part-about
a part
.cap-system-map-part-full
a part
.cap-system-map-part-kind
a part
.cap-system-map-part-lines
a part
.cap-system-map-part-name
a part
.cap-system-map-parts
a part
.cap-system-map-place-name
a part
.cap-system-map-port
a part
.cap-system-map-steps
a part
.cap-system-map-switch
a part
.cap-system-map-tie
a part
.cap-system-map-tie-name
a part
.cap-system-map-tie-verbs
a part
.cap-system-map-ties
a part
.cap-system-map-title
a part
.cap-system-map-views
a part
.cap-system-map-wire
a part
.cap-system-map-wires
a part
Attribute
Values
data-at
present or absent
data-both
present or absent
data-column
inside
data-level
network
data-link
present or absent
data-lit
present or absent
data-on
present or absent
data-only
present or absent
data-place
outsidestores
data-places
23
data-private
present or absent
data-ring
coreshared
data-step
present or absent
data-tie
self
data-wire
present or absent
State
Read from
:empty
the platform
:focus-visible
the platform
:focus-within
the platform
:hover
the platform
[aria-current="step"]
an attribute
[hidden]
an attribute
Accessibility
Key
Does
Tab
Moves between the systems' names (each a link: a hexagon, or a card on the plain map) and, on a system, the ties and the flows' buttons. Focusing a system or a tie lights its lines and ties
Right arrow, Left arrow
On the view tabs, moves between Hexagons and Plain map and shows it
Enter
Opens the system focused; on a flow's button, steps
Escape
Inside a flow, stops it
Every card is a list item with its name as a heading and a link stretched over the card, so a tap anywhere opens it and a screen reader hears the name alone as the link.
The groups and bands are sections named by their headings; level 2's columns and flows are too.
The hexagons' drawing is a group named by the map's title. Each system in it is a link whose name starts with the words it shows and then gives the full name ("Dustin, dustinedwards.info"); the comb, its lines and the group names are hidden from assistive technology, since the plain map holds the same ties as words. The two views are tabs (components/tabs), and with no script both show, one after the other.
The wires are one SVG hidden from assistive technology (aria-hidden), and the lighting is a convenience over what the cards already say (each card's counts, level 2's columns and each part's lines in words), so the line that says how a card is tied is hidden too. A screen reader meets the same ties as text, in reading order: the network's lanes left to right, each block's cards top to bottom (W3C WAI, complex images: the information a drawing carries is in the text beside it).
The detail line repeats words already in the cards and parts, so it is hidden from assistive technology.
A flow's status line is a polite live region; focus stays on the button pressed, or moves to Back when Next ends the flow.
Text 4.5:1 on its card in both themes, lit and muted; edges, lit wires and the focus ring 3:1. In forced colors wires are CanvasText and a lit card's edge and wires are Highlight.