Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(viewer): refresh camera names in published architecture demos

HengYang995ca91554c6
diff --git a/examples/archify-repo-grid.html b/examples/archify-repo-grid.html
index b35243e6..79b77606 100644
--- a/examples/archify-repo-grid.html
+++ b/examples/archify-repo-grid.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.17.0-dev.1">
+ <meta name="generator" content="archify 3.0.2-dev.1">
<meta name="archify-reader-contract" content="declared-wide-v1">
<title>Archify Pipeline Diagram</title>
<script>
@@ -218,7 +218,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
[data-theme="light"] {
--bg: #f4f5f7;
--grid: #e9edf2;
- --canvas-dot: #d9dee5;
+ --canvas-dot: #e2e7ec;
--text: #111827;
--text-muted: #5b6474;
--text-dim: #9aa3b2;
@@ -599,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
color: var(--frontend-stroke);
}
- /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored
- SVG/viewBox while the runtime chooses a desktop width from the actual
- vertical budget. This avoids device-specific files and breakpoint
- jumps between a laptop and a tall monitor. */
+ /* The reader owns only the outer scale. Compact automatic sequences fit at
+ their authored text size or larger. Long sequences and waterfall rows
+ favor reading width and page scroll; other diagrams keep height fitting.
+ Small automatic canvases retain a modest scale inside a usable shell.
+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */
.container {
width: 100%;
max-width: var(--archify-reader-width, 1440px);
margin: 0 auto;
}
+ html[data-reader-area="true"] .diagram-container {
+ min-height: var(--archify-diagram-min-height);
+ display: flex;
+ align-items: center;
+ }
+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }
+ /* The original SVG legend can use the outer corner while the capped or fitted
+ diagram stays centered. The container still clips all outer paint. */
+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }
+ .diagram-container [data-reader-legend-corner] {
+ transform-origin: 0 0;
+ transform-box: view-box;
+ transform: var(--archify-reader-legend-transform);
+ }
+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {
+ min-width: 0;
+ max-width: var(--archify-diagram-max-width);
+ margin-inline: auto;
+ }
@media (min-width: 768px) and (max-height: 920px) {
.header { margin-bottom: 1rem; }
.diagram-container { padding: 1rem; }
@@ -806,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
pointer-events: none;
}
html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }
- html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {
+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {
content: "";
position: absolute;
inset: 0;
@@ -988,8 +1008,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
.diagram-nav-icon {
display: block;
- width: 0.875rem;
- height: 0.875rem;
+ width: 0.95rem;
+ height: 0.95rem;
margin: auto;
background: currentColor;
-webkit-mask-position: center;
@@ -1053,8 +1073,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.diagram-nav #btn-overview-map::before,
.diagram-nav #btn-semantic-lens::before {
flex: none;
- width: 0.875rem;
- height: 0.875rem;
+ width: 0.95rem;
+ height: 0.95rem;
background: currentColor;
content: "";
opacity: 0.85;
@@ -1068,21 +1088,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.diagram-nav [data-view="out"],
.diagram-nav [data-view="reset"],
.diagram-nav [data-view="in"] {
+ position: relative;
border-radius: 0;
- background: color-mix(in srgb, var(--text) 4.5%, transparent);
+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);
}
.diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }
.diagram-nav [data-view="out"]::before { display: none; }
.diagram-nav [data-view="reset"],
.diagram-nav [data-view="in"] { margin-left: -0.0625rem; }
.diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }
+ .diagram-nav [data-view="reset"]::after,
+ .diagram-nav [data-view="in"]::after {
+ position: absolute;
+ top: 0.55rem;
+ bottom: 0.55rem;
+ left: 0;
+ width: 1px;
+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);
+ content: "";
+ pointer-events: none;
+ }
.diagram-nav [data-view="out"]:hover,
.diagram-nav [data-view="reset"]:hover,
- .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }
.diagram-nav [data-view="out"]:disabled,
.diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }
.diagram-nav [data-view="out"]:disabled:hover,
- .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }
+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }
.diagram-nav [data-view="reset"] { min-width: 3.25rem; }
.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,
.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }
@@ -2326,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
gap: 0.55rem;
margin: 0 0.55rem 0.55rem;
padding: 0 0.7rem;
- min-height: 2.6rem;
+ min-height: 2.35rem;
border: 1px solid var(--toolbar-border);
border-radius: 0.55rem;
background: color-mix(in srgb, var(--panel) 78%, transparent);
@@ -2336,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }
.node-finder-search:focus-within {
border-color: var(--frontend-stroke);
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);
}
.node-finder-input {
appearance: none;
@@ -2374,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
background: color-mix(in srgb, var(--panel) 54%, transparent);
scroll-padding-block: 0.25rem;
scrollbar-width: thin;
+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;
+ }
+ /* Slim overlay-style thumb instead of the chunky platform default. */
+ .node-finder-results::-webkit-scrollbar { width: 10px; }
+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }
+ .node-finder-results::-webkit-scrollbar-thumb {
+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);
+ border: 3px solid transparent;
+ border-radius: 999px;
+ background-clip: padding-box;
+ }
+ .node-finder-results::-webkit-scrollbar-thumb:hover {
+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);
+ border: 3px solid transparent;
+ background-clip: padding-box;
}
html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }
.node-finder-result {
@@ -2381,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.2rem 0.75rem;
width: 100%;
- min-height: 3.25rem;
- padding: 0.58rem 0.65rem;
+ min-height: 3rem;
+ padding: 0.52rem 0.65rem;
border: 0;
border-radius: 0;
background: transparent;
@@ -2423,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
font-size: 0.625rem;
font-style: normal;
}
+ /* A zero count is absence, not information — let it recede. */
+ .node-finder-result em[data-zero] { color: var(--text-faint); }
.node-finder[data-context^="route-"] .node-finder-result em {
padding: 0.1rem 0.3rem;
border: 1px solid color-mix(in srgb, currentColor 52%, transparent);
@@ -2458,6 +2507,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
border-radius: 0.75rem;
border: 1px solid var(--panel-border);
padding: 1.125rem 1.25rem;
+ /* Card notes are authored prose and may carry an unbreakable run such as a
+ slash-joined pipeline or a long identifier. Without this, that run sets the
+ card's min-content width, spills past its track in every rail placement,
+ and pushes the whole page into horizontal overflow at desktop widths.
+ `anywhere` rather than `break-word` because only `anywhere` shrinks the
+ intrinsic minimum the layout is sized from. */
+ overflow-wrap: anywhere;
}
html[data-preset="signal-flow"] .card {
@@ -3494,6 +3550,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
background: transparent;
box-shadow: none;
}
+ /* The motion button breathes on the same shared cycle as the cascade, so the
+ chrome keeps time with the wave it controls. The cycle length lives on the
+ diagram SVG, so chrome presets mirror it here. */
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {
+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;
+ }
+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }
+ @keyframes archify-motion-dot-breathe {
+ 0%, 100% { opacity: 1; transform: scale(1); }
+ 46% { opacity: 0.55; transform: scale(0.72); }
+ }
.toolbar .export-menu {
position: absolute;
top: calc(100% + 0.125rem);
@@ -4030,10 +4097,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }
html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {
- filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));
+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));
+ filter: var(--ambient-node-base-filter);
}
html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {
- filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
+ filter: var(--ambient-node-base-filter);
}
html[data-preset="classic"] .diagram-container > svg [data-edge-from] {
stroke-linecap: round;
@@ -4166,41 +4235,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
filter: drop-shadow(0 0 7px var(--frontend-stroke));
outline: none;
}
- /* Verified Source Beacons are installed at runtime only for nodes whose
- repository evidence passed the local revision/blob/line checks. They
- live inside the owning node so every focus, route, story, and guided
- view keeps one coherent opacity state. Export serialization removes
- them before producing the canonical SVG or any derived visual. */
- .source-evidence-beacon {
- pointer-events: none;
- opacity: 0.76;
- transition: opacity 160ms ease, filter 160ms ease;
- }
- .source-evidence-beacon rect {
- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));
- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));
- stroke-width: 1;
- vector-effect: non-scaling-stroke;
- }
- .source-evidence-beacon text {
- fill: var(--backend-stroke);
- font-size: 5.5px;
- font-weight: 800;
- letter-spacing: 0.06em;
- text-anchor: middle;
- text-transform: uppercase;
- }
- svg [data-node-id]:hover .source-evidence-beacon,
- svg [data-node-id]:focus-visible .source-evidence-beacon,
- svg [data-node-id][data-focus-selected] .source-evidence-beacon {
- opacity: 1;
- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));
- }
- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }
- svg[data-preset="blueprint"] .source-evidence-beacon rect {
- rx: 0.8px;
- filter: none;
- }
svg [data-legend-kind][role="button"] { cursor: pointer; }
svg [data-legend-kind]:focus { outline: none; }
svg [data-legend-hit] {
@@ -4691,69 +4725,190 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }
.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }
- /* Optional trace animation, enabled only by meta.animation = "trace".
- The ordinary viewer performs one ambient pass and then restores the
- authored solid/security/async line language. WebM samples the same
- authored geometry into an explicit canvas timeline. */
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {
- animation: archify-edge-flow 2.4s linear 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {
- animation: archify-edge-flow 2.4s linear 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {
- transform-box: fill-box;
- transform-origin: center;
- animation: archify-node-pulse 3.6s ease-in-out 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {
+ /* Live turns each edge into a small light show on one shared cycle: a comet
+ (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,
+ leaves a soft wake, and lands as a ripple on the target node. Original line
+ language and markers remain static. Each edge's phase follows the authored
+ step order — source-node rank, or chronological order in sequence
+ diagrams — so the whole diagram ripples downstream instead of marching
+ uniformly. Node entry is bounded to one pass per document, then a soft
+ node glow follows the authored step order. */
+ svg[data-animation="trace"] {
+ --flow-cycle: 6.4s;
+ --flow-step-delay: 0.2s;
+ --flow-halo-peak: 0.13;
+ --flow-tail-peak: 0.34;
+ --flow-head-peak: 0.95;
+ --flow-wake-peak: 0.08;
+ --flow-ripple-peak: 0.55;
+ --flow-ripple-echo-peak: 0.22;
+ }
+ .ambient-edge-flow {
+ fill: none;
+ stroke: var(--arrow-emphasis);
stroke-linecap: round;
- filter: drop-shadow(0 0 3px var(--arrow-emphasis));
- animation-duration: 1.75s;
- }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
- animation-duration: 3.1s;
- }
- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {
- stroke-linecap: square;
- filter: none;
- animation-duration: 2.15s;
+ pointer-events: none;
+ display: none;
}
- svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }
- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
- animation-name: archify-blueprint-node-pulse;
- animation-duration: 3.8s;
+ .ambient-flow-wake {
+ stroke-width: 3.2;
+ stroke-dasharray: var(--flow-dasharray, none);
+ animation-name: archify-flow-wake;
}
- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {
- filter: none;
- animation-duration: 2.2s;
+ .ambient-flow-halo {
+ stroke-width: 5;
+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));
+ animation-name: archify-cascade-halo;
}
- svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }
- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
- animation-name: archify-editorial-node-pulse;
- animation-duration: 3.5s;
+ .ambient-flow-tail {
+ stroke-width: 2.4;
+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));
+ animation-name: archify-cascade-tail;
}
- /* Embedded proofs stay static so proof grids are calm instead of leaving
- ambient trace loops on. */
- html[data-embed="true"] svg[data-animation="trace"] [data-animate],
- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {
- animation: none !important;
- stroke-dashoffset: 0;
+ .ambient-flow-head {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);
+ stroke-width: 2.2;
+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));
+ animation-name: archify-cascade-head;
}
- html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],
- html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {
- animation: none !important;
- stroke-dashoffset: 0;
+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }
+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }
+ .ambient-flow-ripple {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);
+ stroke-width: 2;
+ animation-name: archify-flow-ripple;
+ }
+ .ambient-flow-ripple-echo {
+ stroke-width: 1.2;
+ animation-name: archify-flow-ripple-echo;
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {
+ display: inline;
+ animation-duration: var(--flow-cycle, 6.4s);
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-delay: var(--flow-delay, 0s);
+ /* Without backwards fill a delayed layer would sit at its natural opacity
+ (fully lit) until its phase arrives. */
+ animation-fill-mode: backwards;
+ }
+ /* Each decorative flow follows its owning edge through tree visibility. */
+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }
+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }
+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }
+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }
+ /* On light canvases the cascade reads by saturation instead of bloom: the
+ head and inner ripple mix toward ink instead of white, and every layer's
+ peak rises so the wave survives the bright background. */
+ html[data-theme="light"] svg[data-animation="trace"] {
+ --flow-halo-peak: 0.22;
+ --flow-tail-peak: 0.5;
+ --flow-wake-peak: 0.13;
+ --flow-ripple-echo-peak: 0.3;
+ }
+ html[data-theme="light"] .ambient-flow-head {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);
+ stroke-width: 2.4;
+ }
+ html[data-theme="light"] .ambient-flow-ripple {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);
+ }
+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {
+ transform-box: fill-box;
+ transform-origin: center;
+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ /* Node glow follows each node's authored step on the shared cycle; it does
+ not track incoming edge arrivals. During the bounded entrance all three
+ animations run; the entrance pulse is listed after the repeating glow and
+ wins on filter until it completes. */
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ @keyframes archify-flow-wake {
+ 0% { opacity: 0; }
+ 24% { opacity: var(--flow-wake-peak, 0.08); }
+ 62% { opacity: var(--flow-wake-peak, 0.08); }
+ 82%, 100% { opacity: 0; }
+ }
+ @keyframes archify-cascade-halo {
+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }
+ 4% { opacity: var(--flow-halo-peak, 0.13); }
+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }
+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }
+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }
+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }
+ }
+ @keyframes archify-cascade-tail {
+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }
+ 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }
+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }
+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }
+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }
+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }
+ }
+ @keyframes archify-cascade-head {
+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }
+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }
+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }
+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }
+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }
+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }
+ }
+ @keyframes archify-flow-ripple {
+ 0%, 60% { r: 2px; opacity: 0; }
+ 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }
+ 78%, 100% { r: 17px; opacity: 0; }
+ }
+ @keyframes archify-flow-ripple-echo {
+ 0%, 63% { r: 2px; opacity: 0; }
+ 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }
+ 84%, 100% { r: 26px; opacity: 0; }
+ }
+ @keyframes archify-node-receive {
+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }
+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }
+ }
+ @keyframes archify-node-enter {
+ from { opacity: 0; }
+ to { opacity: 1; }
}
- @keyframes archify-edge-flow {
- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }
- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }
- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }
- 100% { stroke-dashoffset: 0; opacity: 1; }
+ @media print {
+ .ambient-edge-flow { display: none !important; animation: none !important; }
+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }
}
@keyframes archify-node-pulse {
0%, 72%, 100% { filter: none; stroke-width: 1.5; }
@@ -4820,10 +4975,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
50% { opacity: 0.48; transform: scale(0.78); }
}
@media (prefers-reduced-motion: reduce) {
+ .ambient-edge-flow { display: none !important; animation: none !important; }
html[data-preset="signal-flow"] .diagram-container::before {
animation: none !important;
}
.pulse-dot { animation: none !important; }
+ .motion-control-dot { animation: none !important; }
svg[data-animation="trace"] [data-animate] {
animation: none !important;
stroke-dashoffset: 0;
@@ -4859,7 +5016,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
filter: none;
}
.relationship-pulse-overlay { display: none !important; }
- .source-evidence-beacon,
svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }
}
</style>
@@ -4979,11 +5135,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
</div>
- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>
+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 1064 356" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
+ <svg viewBox="0 0 1064 356" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
<title id="archify-diagram-title">Archify Pipeline</title>
<desc id="archify-diagram-description">Grid placement demo — row/col instead of manual pos</desc>
<!-- Definitions -->
@@ -5014,42 +5170,42 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Connection paths (before components for correct z-order) -->
<g data-graph-role="automatic-crossover" style="--step:0">
<path data-graph-role="automatic-crossover-underlay" d="M 160 238 L 184 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,238;184,238" data-composition-crossover="halo" data-composition-independent="true" d="M 160 238 L 184 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,238;184,238" data-composition-crossover="halo" data-composition-independent="true" d="M 160 238 L 184 238" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:1">
<path data-graph-role="automatic-crossover-underlay" d="M 244 208 L 244 160" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="244,208;244,160" data-composition-crossover="halo" data-composition-independent="true" d="M 244 208 L 244 160" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>
+ <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="244,208;244,160" data-composition-crossover="halo" data-composition-independent="true" d="M 244 208 L 244 160" class="a-default" data-animate="edge" style="--step:1" stroke-width="1.5" marker-end="url(#arrowhead)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:2">
<path data-graph-role="automatic-crossover-underlay" d="M 304 238 L 328 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agents" data-edge-to="ir" data-edge-key="2" data-composition-points="304,238;328,238" data-composition-crossover="halo" data-composition-independent="true" d="M 304 238 L 328 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="agents" data-edge-to="ir" data-edge-key="2" data-composition-points="304,238;328,238" data-composition-crossover="halo" data-composition-independent="true" d="M 304 238 L 328 238" class="a-emphasis" data-animate="edge" style="--step:2" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:3">
<path data-graph-role="automatic-crossover-underlay" d="M 388 208 L 388 160" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="388,208;388,160" data-composition-crossover="halo" data-composition-independent="true" d="M 388 208 L 388 160" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
+ <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="388,208;388,160" data-composition-crossover="halo" data-composition-independent="true" d="M 388 208 L 388 160" class="a-security" data-animate="edge" style="--step:3" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:4">
<path data-graph-role="automatic-crossover-underlay" d="M 448 238 L 472 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="448,238;472,238" data-composition-crossover="halo" data-composition-independent="true" d="M 448 238 L 472 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="448,238;472,238" data-composition-crossover="halo" data-composition-independent="true" d="M 448 238 L 472 238" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:5">
<path data-graph-role="automatic-crossover-underlay" d="M 592 238 L 616 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="592,238;616,238" data-composition-crossover="halo" data-composition-independent="true" d="M 592 238 L 616 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="592,238;616,238" data-composition-crossover="halo" data-composition-independent="true" d="M 592 238 L 616 238" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:6">
<path data-graph-role="automatic-crossover-underlay" d="M 736 238 L 760 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="736,238;760,238" data-composition-crossover="halo" data-composition-independent="true" d="M 736 238 L 760 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="736,238;760,238" data-composition-crossover="halo" data-composition-independent="true" d="M 736 238 L 760 238" class="a-emphasis" data-animate="edge" style="--step:6" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:7">
<path data-graph-role="automatic-crossover-underlay" d="M 880 238 L 904 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="checker" data-edge-to="html" data-edge-key="7" data-composition-points="880,238;904,238" data-composition-crossover="halo" data-composition-independent="true" d="M 880 238 L 904 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="checker" data-edge-to="html" data-edge-key="7" data-composition-points="880,238;904,238" data-composition-crossover="halo" data-composition-independent="true" d="M 880 238 L 904 238" class="a-emphasis" data-animate="edge" style="--step:7" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<!-- Components -->
<g id="node-user" data-node-id="user" data-node-label="You" tabindex="0" role="button" aria-label="Focus You, NL / Mermaid, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="NL / Mermaid" data-node-context="Architecture component">
<title>You · NL / Mermaid · Architecture component</title>
<rect x="40" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="40" y="208" width="120" height="60" rx="6" class="c-external" stroke-width="1.5"/>
+ <rect x="40" y="208" width="120" height="60" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(46 214) scale(0.6875)">
<rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/>
<path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>
@@ -5061,7 +5217,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-agents" data-node-id="agents" data-node-label="Agent Hosts" tabindex="0" role="button" aria-label="Focus Agent Hosts, Claude · Codex, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="Claude · Codex" data-node-context="Architecture component">
<title>Agent Hosts · Claude · Codex · Architecture component</title>
<rect x="184" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="184" y="208" width="120" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="184" y="208" width="120" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:1" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(190 214) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5075,7 +5231,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-skill" data-node-id="skill" data-node-label="SKILL.md" tabindex="0" role="button" aria-label="Focus SKILL.md, layout rules, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="layout rules" data-node-context="Architecture component">
<title>SKILL.md · layout rules · Architecture component</title>
<rect x="184" y="100" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="184" y="100" width="120" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="184" y="100" width="120" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:2" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(190 106) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5089,7 +5245,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-ir" data-node-id="ir" data-node-label="JSON IR" tabindex="0" role="button" aria-label="Focus JSON IR, schema v1, archify/ skill package" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="schema v1" data-node-context="archify/ skill package">
<title>JSON IR · schema v1 · archify/ skill package</title>
<rect x="328" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="328" y="208" width="120" height="60" rx="6" class="c-messagebus" stroke-width="1.5"/>
+ <rect x="328" y="208" width="120" height="60" rx="6" class="c-messagebus" data-animate="node" style="--step:3" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="messagebus" class="semantic-sigil s-messagebus" transform="translate(334 214) scale(0.6875)">
<path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/>
<circle cx="5" cy="4.5" r="1" class="sigil-fill"/>
@@ -5103,7 +5259,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-schemas" data-node-id="schemas" data-node-label="Schema" tabindex="0" role="button" aria-label="Focus Schema, ajv, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-sublabel="ajv" data-node-context="archify/ skill package">
<title>Schema · ajv · archify/ skill package</title>
<rect x="328" y="100" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="328" y="100" width="120" height="60" rx="6" class="c-security" stroke-width="1.5"/>
+ <rect x="328" y="100" width="120" height="60" rx="6" class="c-security" data-animate="node" style="--step:4" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(334 106) scale(0.6875)">
<path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/>
<path d="m5.8 8 1.5 1.5 3-3"/>
@@ -5115,7 +5271,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-renderers" data-node-id="renderers" data-node-label="Renderers ×5" tabindex="0" role="button" aria-label="Focus Renderers ×5, archify/ skill package" aria-pressed="false" data-node-kind="backend" data-node-context="archify/ skill package">
<title>Renderers ×5 · archify/ skill package</title>
<rect x="472" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="472" y="208" width="120" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="472" y="208" width="120" height="60" rx="6" class="c-backend" data-animate="node" style="--step:5" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(478 214) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5125,7 +5281,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-template" data-node-id="template" data-node-label="template.html" tabindex="0" role="button" aria-label="Focus template.html, archify/ skill package" aria-pressed="false" data-node-kind="frontend" data-node-context="archify/ skill package">
<title>template.html · archify/ skill package</title>
<rect x="616" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="616" y="208" width="120" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="616" y="208" width="120" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:6" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(622 214) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5138,7 +5294,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-checker" data-node-id="checker" data-node-label="Output Check" tabindex="0" role="button" aria-label="Focus Output Check, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-context="archify/ skill package">
<title>Output Check · archify/ skill package</title>
<rect x="760" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="760" y="208" width="120" height="60" rx="6" class="c-security" stroke-width="1.5"/>
+ <rect x="760" y="208" width="120" height="60" rx="6" class="c-security" data-animate="node" style="--step:7" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(766 214) scale(0.6875)">
<path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/>
<path d="m5.8 8 1.5 1.5 3-3"/>
@@ -5149,7 +5305,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-html" data-node-id="html" data-node-label="HTML" tabindex="0" role="button" aria-label="Focus HTML, artifact, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="artifact" data-node-context="Architecture component">
<title>HTML · artifact · Architecture component</title>
<rect x="904" y="208" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="904" y="208" width="120" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>
+ <rect x="904" y="208" width="120" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:8" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(910 214) scale(0.6875)">
<path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/>
</g>
@@ -5176,29 +5332,29 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Legend -->
<g data-legend="" data-legend-bridge="">
<text x="40" y="320" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="340" data-legend-width="83">
+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="340" data-legend-width="93">
<rect x="40" y="331" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/>
<text x="62" y="340" class="t-muted" font-size="10" font-weight="500">Frontend</text>
</g>
- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="340" data-legend-width="78">
- <rect x="145" y="331" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>
- <text x="167" y="340" class="t-muted" font-size="10" font-weight="500">Backend</text>
+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="155" data-legend-baseline="340" data-legend-width="87">
+ <rect x="155" y="331" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>
+ <text x="177" y="340" class="t-muted" font-size="10" font-weight="500">Backend</text>
</g>
- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="340" data-legend-width="68">
- <rect x="245" y="331" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>
- <text x="267" y="340" class="t-muted" font-size="10" font-weight="500">Cloud</text>
+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="264" data-legend-baseline="340" data-legend-width="74">
+ <rect x="264" y="331" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>
+ <text x="286" y="340" class="t-muted" font-size="10" font-weight="500">Cloud</text>
</g>
- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="340" data-legend-width="83">
- <rect x="335" y="331" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>
- <text x="357" y="340" class="t-muted" font-size="10" font-weight="500">Security</text>
+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="360" data-legend-baseline="340" data-legend-width="93">
+ <rect x="360" y="331" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>
+ <text x="382" y="340" class="t-muted" font-size="10" font-weight="500">Security</text>
</g>
- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="340" data-legend-width="98">
- <rect x="440" y="331" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>
- <text x="462" y="340" class="t-muted" font-size="10" font-weight="500">Message bus</text>
+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="475" data-legend-baseline="340" data-legend-width="112">
+ <rect x="475" y="331" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>
+ <text x="497" y="340" class="t-muted" font-size="10" font-weight="500">Message bus</text>
</g>
- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="340" data-legend-width="83">
- <rect x="560" y="331" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>
- <text x="582" y="340" class="t-muted" font-size="10" font-weight="500">External</text>
+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="609" data-legend-baseline="340" data-legend-width="93">
+ <rect x="609" y="331" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>
+ <text x="631" y="340" class="t-muted" font-size="10" font-weight="500">External</text>
</g>
</g>
</svg>
@@ -5359,7 +5515,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>
<button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes &amp; index</span></button>
<div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">
- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>
+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button>
<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>
<button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>
<button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>
@@ -5435,11 +5591,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function hasDrawableGeometry(element) {
- if (!element) return false;
+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;
var geometries = /^(path|line|polyline)$/i.test(element.tagName)
? [element]
: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));
return geometries.some(function (geometry) {
+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;
var source = geometry.tagName.toLowerCase() === 'path'
? geometry.getAttribute('d')
: geometry.tagName.toLowerCase() === 'polyline'
@@ -5684,6 +5841,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function cleanExportClone(clone) {
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {
+ el.remove();
+ });
+ // Route interaction rewrites CSS declarations through CSSOM. Normalize
+ // authored motion delays on the clone so exported bytes do not depend
+ // on whether the reader traced a route before downloading.
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {
+ var step = el.style.getPropertyValue('--step');
+ if (step) el.setAttribute('style', el.style.cssText);
+ });
// View transforms and neighborhood focus are HTML exploration state,
// never part of a downloaded full-diagram artifact.
clone.style.removeProperty('transform');
@@ -5704,6 +5871,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.removeAttribute('data-route-journey');
clone.removeAttribute('data-share-route');
clone.removeAttribute('data-share-reach');
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {
+ el.removeAttribute('data-reader-legend-corner');
+ el.style.removeProperty('--archify-reader-legend-transform');
+ });
Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {
el.remove();
});
@@ -5749,7 +5920,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
});
Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {
var originalLabel = el.getAttribute('data-source-evidence-original-label');
- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');
+ if (originalLabel == null) el.removeAttribute('aria-label');
else el.setAttribute('aria-label', originalLabel);
el.removeAttribute('data-source-evidence-count');
el.removeAttribute('data-source-evidence-original-label');
@@ -5812,6 +5983,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {
el.setAttribute('aria-pressed', 'false');
});
+ // A downloaded tree is always the complete hierarchy: collapsing is a
+ // reading aid, never a silent change to what the artifact contains.
+ clone.removeAttribute('data-tree-any-collapsed');
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {
+ el.removeAttribute('data-tree-hidden');
+ el.removeAttribute('data-tree-collapsed');
+ });
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {
+ el.setAttribute('aria-expanded', 'true');
+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');
+ });
return !clone.hasAttribute('data-view-scale') &&
!clone.hasAttribute('data-focus-active') &&
!clone.hasAttribute('data-reach-active') &&
@@ -5827,9 +6009,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
!clone.hasAttribute('data-route-journey') &&
!clone.hasAttribute('data-share-route') &&
!clone.hasAttribute('data-share-reach') &&
+ !clone.hasAttribute('data-tree-any-collapsed') &&
!clone.style.getPropertyValue('transform') &&
!clone.style.getPropertyValue('clip-path') &&
- clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;
+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;
}
@@ -6605,13 +6788,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function samplesFor(element) {
if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];
+ var geometry = element;
+ if (element.getAttribute('data-motion-path')) {
+ geometry = element.cloneNode(false);
+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));
+ }
var length;
- try { length = element.getTotalLength(); } catch (_) { return []; }
+ try { length = geometry.getTotalLength(); } catch (_) { return []; }
if (!Number.isFinite(length) || length <= 0) return [];
var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));
var points = [];
for (var i = 0; i <= count; i++) {
- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));
+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));
}
return points;
}
@@ -7185,38 +7373,166 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var ownerToken = 0;
var ownerCleanup = null;
var lastEffectivePaused = null;
- var ambientStarted = false;
- var ambientPending = new Set();
-
- function detachAmbientBoundary() {
- if (!svg) return;
- svg.removeEventListener('animationend', onAmbientBoundary, true);
- svg.removeEventListener('animationcancel', onAmbientBoundary, true);
- }
- function settleAmbient(reason) {
- if (!capable) return false;
- ambientStarted = true;
- ambientPending.clear();
- detachAmbientBoundary();
- html.setAttribute('data-ambient-motion', 'settled');
- html.setAttribute('data-ambient-settle-reason', reason || 'complete');
- return true;
- }
- function onAmbientBoundary(event) {
- if (!ambientPending.has(event.target)) return;
- ambientPending.delete(event.target);
- if (!ambientPending.size) settleAmbient('complete');
- }
- function startAmbient() {
- if (ambientStarted || !capable) return false;
- ambientStarted = true;
- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));
- if (!ambientPending.size) return settleAmbient('empty');
- svg.addEventListener('animationend', onAmbientBoundary, true);
- svg.addEventListener('animationcancel', onAmbientBoundary, true);
- html.setAttribute('data-ambient-motion', 'running');
- html.removeAttribute('data-ambient-settle-reason');
- return true;
+ var entryStarted = false;
+ var entryPending = new Set();
+ var flowCount = 0;
+
+ // Runtime decoration carries geometry and tree visibility only. Keep each
+ // flow beside its authored edge so transforms, clipping and crossover
+ // paint order apply.
+ // Each edge carries a small light show: a comet (halo, tail, head)
+ // cascading downstream on one shared cycle, a lingering wake, and a
+ // ripple where the comet lands. Phases follow the authored step order:
+ // source-node rank where known, chronological message order in sequence
+ // diagrams.
+ function readSecondsVar(name, fallback) {
+ var value = '';
+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}
+ var seconds = parseFloat(value);
+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;
+ }
+ function nodeStep(from) {
+ // Authored IDs follow the schema's conservative identifier pattern, so
+ // direct selector interpolation stays safe here. The semantic wrapper
+ // groups the animated shape; its authored step ranks the node.
+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;
+ var shape = node ? node.querySelector('[data-animate="node"]') : null;
+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';
+ }
+ function edgePhase(shape, fallbackStep) {
+ // Sequence messages have no data-edge-from; their own authored step is
+ // already chronological, which is the right phase there.
+ var raw = nodeStep(shape.getAttribute('data-edge-from'));
+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');
+ var step = parseFloat(raw);
+ return Number.isFinite(step) ? step : fallbackStep;
+ }
+ function createFlows() {
+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);
+ var cycle = readSecondsVar('--flow-cycle', 6.4);
+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {
+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');
+ if (!d) return;
+ var anchor = shape;
+ // Tree Branches initializes after these overlays and includes their
+ // inherited ancestors in its existing collapse/expand lifecycle.
+ function tagOverlay(flow) {
+ flow.setAttribute('data-ambient-flow-overlay', 'true');
+ flow.setAttribute('aria-hidden', 'true');
+ if (shape.hasAttribute('data-tree-ancestors')) {
+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));
+ }
+ }
+ function addPath(cls) {
+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');
+ flow.setAttribute('d', d);
+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {
+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));
+ });
+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);
+ tagOverlay(flow);
+ shape.parentNode.insertBefore(flow, anchor.nextSibling);
+ anchor = flow;
+ return flow;
+ }
+ var wake = addPath('wake');
+ var len = 0;
+ try { len = wake.getTotalLength(); } catch (_) {}
+ if (!(len > 0)) {
+ wake.remove();
+ return;
+ }
+ var halo = addPath('halo');
+ var tail = addPath('tail');
+ var head = addPath('head');
+ var end = null;
+ try { end = head.getPointAtLength(len); } catch (_) {}
+ // Dashed authored lines keep their dash language through the show:
+ // the wake brightens only the authored segments and never fills the
+ // gaps back into a solid line.
+ var authoredDash = '';
+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}
+ if (authoredDash && authoredDash !== 'none') {
+ wake.style.setProperty('--flow-dasharray', authoredDash);
+ }
+ // Absolute caps keep the comet a slim streak on long edges instead
+ // of growing into a bright slab; the tail disintegrates into a
+ // sparkle of fragments behind the head, and --flow-shift trails
+ // each layer behind the head tip by its own length.
+ var headLen = Math.min(10, Math.max(4, len * 0.016));
+ var haloLen = Math.min(14, Math.max(8, len * 0.045));
+ var trail = len >= 120
+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }
+ : (len >= 60
+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }
+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });
+ var phase = edgePhase(shape, index) * stepDelay;
+ var configs = [
+ { flow: wake, dash: len, shift: 0, delay: phase },
+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },
+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },
+ { flow: head, dash: headLen, shift: 0, delay: phase },
+ ];
+ // Long edges earn a dimmer echo comet half a travel window behind.
+ if (len > 340) {
+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });
+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });
+ }
+ configs.forEach(function (cfg) {
+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');
+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');
+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');
+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');
+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);
+ });
+ // The sonar pair lands where the comet does; keep it out of the
+ // edge's mask so it can bloom over the node boundary.
+ if (end) {
+ ['ripple', 'ripple-echo'].forEach(function (kind) {
+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
+ ripple.setAttribute('cx', end.x.toFixed(1));
+ ripple.setAttribute('cy', end.y.toFixed(1));
+ ripple.setAttribute('r', '2');
+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));
+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);
+ tagOverlay(ripple);
+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');
+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);
+ anchor = ripple;
+ });
+ }
+ flowCount += 1;
+ });
+ }
+ function settleEntry() {
+ entryPending.clear();
+ svg.removeEventListener('animationend', onEntryBoundary, true);
+ svg.removeEventListener('animationcancel', onEntryBoundary, true);
+ html.setAttribute('data-ambient-entry', 'settled');
+ }
+ function onEntryBoundary(event) {
+ if (!entryPending.has(event.target)) return;
+ // The entrance settles only when each node's pulse finishes; the
+ // shorter fade-rise enter animation may end first without ending it.
+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;
+ entryPending.delete(event.target);
+ if (!entryPending.size) settleEntry();
+ }
+ function renderAmbient(suppressed) {
+ html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));
+ if (suppressed) {
+ entryStarted = true;
+ settleEntry();
+ } else if (!entryStarted) {
+ entryStarted = true;
+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));
+ if (!entryPending.size) settleEntry();
+ else {
+ svg.addEventListener('animationend', onEntryBoundary, true);
+ svg.addEventListener('animationcancel', onEntryBoundary, true);
+ html.setAttribute('data-ambient-entry', 'running');
+ }
+ }
}
function readStored() {
@@ -7251,11 +7567,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var systemPaused = reducedMotion();
var paused = effectivePaused();
html.setAttribute('data-motion', paused ? 'still' : 'live');
- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {
- settleAmbient('suppressed');
- } else if (!ambientStarted) {
- startAmbient();
- }
+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));
btn.setAttribute('aria-pressed', paused ? 'false' : 'true');
btn.disabled = systemPaused;
label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');
@@ -7360,7 +7672,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-motion');
html.removeAttribute('data-motion-owner');
html.removeAttribute('data-ambient-motion');
- html.removeAttribute('data-ambient-settle-reason');
+ html.removeAttribute('data-ambient-entry');
return {
capable: false,
pause: function () { return false; },
@@ -7376,6 +7688,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
}
+ createFlows();
html.setAttribute('data-motion-capable', 'true');
btn.hidden = false;
readerPaused = readStored() === 'still';
@@ -7385,6 +7698,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);
}
document.addEventListener('visibilitychange', syncVisibility);
+ if (typeof MutationObserver !== 'undefined') {
+ var contextObserver = new MutationObserver(render);
+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });
+ }
if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {
var ownerObserver = new MutationObserver(function () { publishOwner(); });
ownerObserver.observe(svg, {
@@ -7425,69 +7742,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Archify.sourceEvidence = (function () {
var element = document.getElementById('archify-source-evidence-data');
var payload = null;
- var svgNamespace = 'http://www.w3.org/2000/svg';
if (element) {
try {
var parsed = JSON.parse(element.textContent || 'null');
if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;
} catch (_) {}
}
- function installBeacons() {
- if (!payload) return 0;
- var svg = document.querySelector('.diagram-container svg');
- if (!svg) return 0;
- var installed = 0;
- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {
- var id = node.getAttribute('data-node-id');
- var sources = payload.nodes[id];
- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;
- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');
- var box;
- try { box = (shape || node).getBBox(); } catch (_) { return; }
- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;
-
- var count = sources.length;
- var label = viewerCount('viewer.passport.beacon', count);
- var beacon = document.createElementNS(svgNamespace, 'g');
- beacon.classList.add('source-evidence-beacon');
- beacon.setAttribute('data-source-evidence-beacon', '');
- beacon.setAttribute('aria-hidden', 'true');
- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;
- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');
- var title = document.createElementNS(svgNamespace, 'title');
- title.textContent = label;
- var plate = document.createElementNS(svgNamespace, 'rect');
- plate.setAttribute('width', '30');
- plate.setAttribute('height', '12');
- plate.setAttribute('rx', '6');
- var text = document.createElementNS(svgNamespace, 'text');
- text.setAttribute('x', '15');
- text.setAttribute('y', '8.25');
- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;
- beacon.appendChild(title);
- beacon.appendChild(plate);
- beacon.appendChild(text);
- node.appendChild(beacon);
-
- var originalLabel = node.getAttribute('aria-label') || '';
- node.setAttribute('data-source-evidence-count', String(count));
- node.setAttribute('data-source-evidence-original-label', originalLabel);
- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));
- installed += 1;
- });
- return installed;
- }
+ // Keep verified evidence discoverable to screen readers without adding
+ // visual marks. Restore first so repeated initialization never appends
+ // another count or retains one after evidence becomes unavailable.
+ var svg = document.querySelector('.diagram-container svg');
+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {
+ if (node.hasAttribute('data-source-evidence-count')) {
+ var savedLabel = node.getAttribute('data-source-evidence-original-label');
+ if (savedLabel == null) node.removeAttribute('aria-label');
+ else node.setAttribute('aria-label', savedLabel);
+ node.removeAttribute('data-source-evidence-count');
+ node.removeAttribute('data-source-evidence-original-label');
+ }
+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];
+ if (!Array.isArray(sources) || !sources.length) return;
+ var originalLabel = node.getAttribute('aria-label');
+ node.setAttribute('data-source-evidence-count', String(sources.length));
+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);
+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') +
+ viewerCount('viewer.passport.sourceCount', sources.length));
+ });
return {
available: function () { return Boolean(payload); },
repository: function () { return payload ? payload.repository : null; },
node: function (id) {
var sources = payload && payload.nodes ? payload.nodes[id] : null;
return Array.isArray(sources) ? sources.slice() : [];
- },
- installBeacons: installBeacons
+ }
+ };
+ })();
+
+ /* ============================================================
+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer
+ lays out the complete tree once and tags every node, link, and toggle
+ with its ancestors; collapsing only hides descendants, so visible nodes
+ never move and the reader keeps their place. Selecting a hidden node
+ through Finder, Outline, or a shared link expands its ancestors. Export
+ always writes the complete tree (see Export Cleanup).
+ ============================================================ */
+ Archify.treeBranches = (function () {
+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');
+ if (!svg) return { active: false };
+ var collapsed = Object.create(null);
+ var toggles = Object.create(null);
+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {
+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;
+ });
+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');
+ var expandAll = svg.querySelector('[data-tree-expand-all]');
+
+ function ancestors(el) {
+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);
+ }
+
+ function apply() {
+ Array.prototype.forEach.call(tagged, function (el) {
+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });
+ if (hidden) el.setAttribute('data-tree-hidden', '');
+ else el.removeAttribute('data-tree-hidden');
+ });
+ var any = false;
+ Object.keys(toggles).forEach(function (id) {
+ var toggle = toggles[id];
+ var isCollapsed = Boolean(collapsed[id]);
+ any = any || isCollapsed;
+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');
+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');
+ var node = svg.querySelector('[data-node-id="' + id + '"]');
+ if (node) {
+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');
+ else node.removeAttribute('data-tree-collapsed');
+ }
+ });
+ if (any) svg.setAttribute('data-tree-any-collapsed', '');
+ else svg.removeAttribute('data-tree-any-collapsed');
+ }
+
+ function setCollapsed(id, value) {
+ if (!toggles[id]) return false;
+ if (value) collapsed[id] = true;
+ else delete collapsed[id];
+ apply();
+ return true;
+ }
+
+ function toggle(id) { return setCollapsed(id, !collapsed[id]); }
+
+ // Reveal a node by expanding every collapsed ancestor; nothing else moves.
+ function reveal(id) {
+ var node = svg.querySelector('[data-node-id="' + id + '"]');
+ if (!node) return false;
+ var changed = false;
+ ancestors(node).forEach(function (ancestor) {
+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }
+ });
+ if (changed) apply();
+ return changed;
+ }
+
+ function restoreAll() {
+ collapsed = Object.create(null);
+ apply();
+ }
+
+ function activate(event) {
+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');
+ if (!target || !svg.contains(target)) return false;
+ event.preventDefault();
+ event.stopPropagation();
+ if (target.hasAttribute('data-tree-expand-all')) {
+ restoreAll();
+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');
+ if (root) root.focus();
+ } else {
+ toggle(target.getAttribute('data-tree-toggle'));
+ target.focus();
+ }
+ return true;
+ }
+
+ // Capture phase so the canvas focus handler never treats a toggle press
+ // as a background click that clears the current focus.
+ svg.addEventListener('click', activate, true);
+ svg.addEventListener('keydown', function (event) {
+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }
+ var node = event.target.closest('[data-node-id]');
+ if (!node || !svg.contains(node)) return;
+ var id = node.getAttribute('data-node-id');
+ // Arrow keys follow the tree convention: left collapses, right expands.
+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }
+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }
+ }, true);
+
+ // Focus reveals ancestors synchronously before positioning its lens.
+ // The observer also covers paths that change pressed state directly.
+ new MutationObserver(function (records) {
+ records.forEach(function (record) {
+ var el = record.target;
+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {
+ reveal(el.getAttribute('data-node-id'));
+ }
+ });
+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });
+
+ Object.keys(toggles).forEach(function (id) {
+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;
+ });
+ apply();
+
+ return {
+ active: true,
+ toggle: toggle,
+ collapse: function (id) { return setCollapsed(id, true); },
+ expand: function (id) { return setCollapsed(id, false); },
+ reveal: reveal,
+ restoreAll: restoreAll,
+ collapsedIds: function () { return Object.keys(collapsed); },
+ expandAllControl: expandAll
};
})();
- Archify.sourceEvidence.installBeacons();
+
/* ============================================================
Explore — stable-ID neighborhood focus + dependency-free pan/zoom.
@@ -7910,7 +8330,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function relationshipEdgeShapes(edge) {
if (!edge) return [];
if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function relationshipHitRecords() {
var recordsByKey = {};
@@ -8014,6 +8434,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function relationshipPulseGeometry(shape) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -8058,7 +8480,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function relationshipTokenPath(shape) {
if (!shape) return '';
var tagName = String(shape.tagName || '').toLowerCase();
- if (tagName === 'path') return shape.getAttribute('d') || '';
+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';
if (tagName === 'line') {
return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +
' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');
@@ -8819,6 +9241,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);
});
if (!normalized.length) return false;
+ // Hash restoration and internal selections use this path too. Reveal
+ // tree ancestors before measuring the selected node for its lens.
+ if (Archify.treeBranches && Archify.treeBranches.active) {
+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });
+ }
if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {
clear();
return true;
@@ -9034,6 +9461,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
window.addEventListener('scroll', requestLensPlacement, { passive: true });
window.addEventListener('resize', requestLensPlacement);
container.addEventListener('scroll', requestLensPlacement, { passive: true });
+ // Reader and Chrome may finish resizing the stage after window resize.
+ // The absolute Passport does not resize its container when reclamped.
+ if (typeof ResizeObserver === 'function') {
+ new ResizeObserver(function () {
+ if (!chip.hidden) requestLensPlacement();
+ }).observe(container);
+ }
document.addEventListener('visibilitychange', function () {
if (document.hidden) removeRelationshipPulse();
});
@@ -9145,7 +9579,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function edgeShapes(edge) {
if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function removeOverlay() {
Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {
@@ -9168,6 +9602,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function traceGeometry(shape, direction) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -9315,6 +9751,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Adaptive Reader Shell — one diagram across laptop and monitor.
The canonical SVG and viewBox never change. On ordinary desktop pages,
@@ -9371,14 +9808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var shell = document.querySelector('.container');
var diagram = document.querySelector('.diagram-container');
var svg = diagram && diagram.querySelector(':scope > svg');
+ var legend = svg && svg.querySelector('[data-legend]');
var header = shell && shell.querySelector('.header');
var cards = shell && shell.querySelector('.cards');
var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;
var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;
- var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';
+ var readerFit = svg && svg.getAttribute('data-reader-fit');
+ var widthFirstReading = readerFit === 'width-first';
+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');
+ var readingScroll = widthFirstReading;
+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ var automaticAreaHeight = 0;
// Widest reader the overflow settle has accepted for this viewport (0 =
// uncapped). Card copy rewraps as the reader narrows, so recomputing
// from fixed heights alone would widen again and oscillate; only a
@@ -9388,6 +9831,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MAX_AUTOMATIC_SCALE = 1.5;
var MIN_PROJECTED_NODE_TEXT_PX = 6;
var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;
var requestedMinimumText = Number.isFinite(declaredMinimumText)
@@ -9438,24 +9882,34 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ // Smallest scale that keeps node text at the requested floor and
+ // context relationship labels readable. A declared wide reader holds
+ // relationship labels to the requested floor too; every other reader
+ // still keeps them at the 6px hard floor the browser gate enforces, so
+ // a first-screen fit can never push them below it.
function minimumReadableScale() {
- var sourceMinimum = null;
- var selectors = [
- 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
- ];
- if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {
- selectors.push('g[data-detail="context"][data-edge-from][data-edge-to] > text');
- }
- Array.from(svg.querySelectorAll(selectors.join(', '))).forEach(function (text) {
- if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var nodeMinimum = null;
+ var edgeMinimum = null;
+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';
+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;
var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
- if (Number.isFinite(sourceFontPx)) {
- sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ if (!Number.isFinite(sourceFontPx)) return;
+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');
+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));
+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {
+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);
+ } else if (primary || text.closest('[data-node-id]')) {
+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);
}
});
- return sourceMinimum != null
- ? Math.min(1, requestedMinimumText / sourceMinimum)
- : 1;
+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)
+ ? requestedMinimumText
+ : MIN_PROJECTED_NODE_TEXT_PX;
+ var scale = 0;
+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);
+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);
+ return scale > 0 ? Math.min(1, scale) : 1;
}
var sourcePrimary = null;
if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {
@@ -9488,11 +9942,66 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function clear() {
html.style.removeProperty('--archify-reader-width');
+ html.style.removeProperty('--archify-diagram-max-width');
+ html.style.removeProperty('--archify-diagram-min-height');
+ html.removeAttribute('data-reader-area');
+ html.removeAttribute('data-reader-narrow');
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
setRail(false);
lastWidth = 0;
+ automaticAreaHeight = 0;
settledCap = 0;
+ clearLegend();
+ }
+ function clearLegend() {
+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;
+ legend.removeAttribute('data-reader-legend-corner');
+ legend.style.removeProperty('--archify-reader-legend-transform');
+ }
+ // Keep the original legend in its SVG: renderer hover/focus selectors and
+ // canonical export still own that same group. Ordinary capped reading
+ // and fitted automatic sequences borrow the outer corner at 25–100%.
+ function syncLegend() {
+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;
+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;
+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {
+ clearLegend();
+ return;
+ }
+ var box = legend.getBBox();
+ var parentMatrix = legend.parentNode.getScreenCTM();
+ if (!parentMatrix || !box.width || !box.height) {
+ clearLegend();
+ return;
+ }
+ var rect = diagram.getBoundingClientRect();
+ var style = window.getComputedStyle(diagram);
+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);
+ if (!Number.isFinite(scale) || scale <= 0) {
+ clearLegend();
+ return;
+ }
+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);
+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);
+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);
+ var top = bottom - box.height * scale;
+ var nav = diagram.querySelector('.diagram-nav');
+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;
+ // Long or multi-row legends retain their canonical position if the
+ // spare corner cannot hold them clear of the dock and content area.
+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||
+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&
+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {
+ clearLegend();
+ return;
+ }
+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);
+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';
+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {
+ legend.style.setProperty('--archify-reader-legend-transform', value);
+ }
+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');
}
// Rail modes: "true" docks beside the diagram, "collapsed" leaves only the
// reveal control, "overlay" opens a drawer when docking would break the
@@ -9549,13 +10058,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)
};
}
+ // `width` is the diagram's reading width. The page shell never narrows
+ // below the desktop reader floor, so a narrow, tall diagram keeps a
+ // usable header, toolbar, and controls; its SVG is centred instead.
function applyWidth(width, minWidth) {
var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));
- if (Math.abs(rounded - lastWidth) < 1) return false;
+ var changed = Math.abs(rounded - lastWidth) >= 1;
lastWidth = rounded;
- html.style.setProperty('--archify-reader-width', rounded + 'px');
+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));
+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');
+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;
+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);
+ // Content fitting and automatic enlargement never reduce the outer
+ // reader region. The SVG alone takes the narrower reading width.
+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0
+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;
+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {
+ diagramWidth = automaticWidthCap;
+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');
+ html.setAttribute('data-reader-area', 'true');
+ } else {
+ // Ordinary automatic diagrams retain their existing document flow.
+ // Settling can also stop binding the cap without a new measure.
+ html.style.removeProperty('--archify-diagram-min-height');
+ html.removeAttribute('data-reader-area');
+ }
+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {
+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');
+ html.setAttribute('data-reader-narrow', 'true');
+ } else {
+ html.style.removeProperty('--archify-diagram-max-width');
+ html.removeAttribute('data-reader-narrow');
+ }
html.setAttribute('data-reader-layout', 'adaptive');
- return true;
+ syncLegend();
+ return changed;
}
function settleOverflow(minWidth) {
if (settleFrame) cancelAnimationFrame(settleFrame);
@@ -9567,11 +10104,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
document.documentElement.scrollHeight,
document.body.scrollHeight
) - window.innerHeight - belowFold();
- if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
+ // visual-check fails any page whose rounded-up height exceeds the
+ // viewport, so even a 1px remainder must be reduced or declared.
+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
- } else if (overflow > 1) {
+ } else if (overflow > 0) {
html.setAttribute('data-reader-overflow', 'authored');
} else {
html.removeAttribute('data-reader-overflow');
@@ -9586,17 +10125,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
+ // Sequence first-screen fitting preserves source text sizes instead
+ // of shrinking to the shared hard readability floor.
var readableWidth = viewBox && viewBox.width > 0
- ? viewBox.width * minimumReadableScale() + chrome.diagramX
+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX
: MIN_READER_WIDTH;
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
- var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO
+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO
? readableWidth
: measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)
? Math.max(MIN_READER_WIDTH, readableWidth)
: MIN_READER_WIDTH;
var minWidth;
- if (measuredHeightFit && ratio < WIDE_RATIO) {
+ if (automaticSequence) {
+ minWidth = Math.min(readableMinimumWidth, maxWidth);
+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {
minWidth = Math.min(readableMinimumWidth, viewportCap);
} else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {
minWidth = Math.min(readableMinimumWidth, maxWidth);
@@ -9618,10 +10161,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // Height-fit families with notes below the fold may shrink to their
+ // readable floor. Width-first families choose their reading width
+ // below and retain page scrolling instead.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
@@ -9632,6 +10175,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + stackedBelow;
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);
+ // Compact automatic sequences fit the first screen without shrinking
+ // their authored text. Longer sequences retain reading width and page
+ // scroll; other width-first families keep their existing strategy.
+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=
+ readableWidth + (docked ? railExtra : 0);
+ readingScroll = widthFirstReading && !sequenceFits;
+ if (readingScroll) desiredWidth = maxWidth;
+ // Only a binding enlargement cap needs a separate normal reader area.
+ // Uncapped diagrams keep their existing natural height and Chrome fit.
+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;
var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
@@ -9660,7 +10213,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Math.round(shellRect.width * 100) / 100,
Math.round(shellRect.height * 100) / 100,
Math.round(diagramRect.width * 100) / 100,
- Math.round(diagramRect.height * 100) / 100
+ Math.round(diagramRect.height * 100) / 100,
+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''
].join('|');
}
function layoutPending() { return Boolean(frame || settleFrame); }
@@ -9679,6 +10233,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
schedule();
}, { passive: true });
window.addEventListener('load', schedule, { once: true });
+ window.addEventListener('beforeprint', clearLegend);
+ window.addEventListener('afterprint', schedule);
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
var resizeObserver = new ResizeObserver(schedule);
@@ -9721,6 +10277,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
measure: measure,
schedule: schedule,
whenStable: whenStable,
+ syncLegend: syncLegend,
active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },
receipt: function () { return { ratio: ratio, width: lastWidth }; }
};
@@ -10013,6 +10570,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };
return [
reserve,
+ lift,
Math.round(containerRect.width * 100) / 100,
Math.round(containerRect.height * 100) / 100,
Math.round(navRect.left * 100) / 100,
@@ -10023,7 +10581,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
lastReceipt ? lastReceipt.stageGap : ''
].join('|');
}
- function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }
+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }
function whenStable() {
return Archify.waitForStableLayout({
schedule: schedule,
@@ -10043,6 +10601,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (typeof ResizeObserver === 'function') {
var resizeObserver = new ResizeObserver(schedule);
[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });
+ // Camera zoom changes outer page flow without changing intrinsic SVG
+ // size. Follow that box for dock placement, independently of scrolling
+ // and the baseline stage-rail measurement.
+ new ResizeObserver(scheduleLift).observe(container);
}
if (typeof MutationObserver === 'function') {
var contentObserver = new MutationObserver(function (records) {
@@ -10126,6 +10688,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');
var inBtn = container.querySelector('[data-view="in"]');
var state = { scale: 1, x: 0, y: 0, mode: 'overview' };
+ var minimumZoom = 0.25;
+ var maximumZoom = 3;
var drag = null;
var cameraTimer = null;
var cameraFrame = null;
@@ -10134,12 +10698,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var clipFrame = 0;
var resizeFrame = 0;
var autoScrollUntil = 0;
+ var originalFlowHeight = container.style.getPropertyValue('height');
+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');
+ var compactPageFlow = false;
var viewBox = svg.viewBox && svg.viewBox.baseVal;
function clamp() {
var width = svg.clientWidth || 1;
var height = svg.clientHeight || 1;
+ if (state.scale < 1) {
+ var visibleWidth = Math.min(width, container.clientWidth);
+ var availableX = visibleWidth - width * state.scale;
+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2
+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));
+ // Long sequences keep their first rows in view instead of centering
+ // inside a layout box that can be several screens tall.
+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;
+ return;
+ }
state.x = Math.min(0, Math.max(width - width * state.scale, state.x));
state.y = Math.min(0, Math.max(height - height * state.scale, state.y));
}
@@ -10166,15 +10743,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var y;
var width;
var height;
- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {
+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {
x = viewBox.x + container.scrollLeft / metrics.scale;
y = viewBox.y;
width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));
height = viewBox.height;
} else {
- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;
+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;
y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;
- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);
+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);
height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);
}
width = Math.max(1, Math.min(viewBox.width, width));
@@ -10211,7 +10788,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',
hint: detailHint
});
- resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));
+ var readout = (showDetailLevel ? resolvedLevel + ' ' : '') + percent;
+ resetBtn.setAttribute('aria-label', readout + ' · ' + viewerText('viewer.nav.camera', { hint: detailHint }));
resetBtn.setAttribute('data-detail-level', detail);
container.setAttribute('data-detail-level', detail);
container.setAttribute('data-camera-mode', state.mode);
@@ -10239,13 +10817,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Math.abs(rendered.x - state.x) < 0.05 &&
Math.abs(rendered.y - state.y) < 0.05;
}
+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its
+ // outer page-flow box for long ordinary diagrams, never the SVG itself:
+ // changing its height would feed the smaller size back into camera math.
+ function syncPageFlow(camera) {
+ camera = camera || state;
+ var html = document.documentElement;
+ var height = svg.clientHeight;
+ var ordinary = html.getAttribute('data-embed') !== 'true' &&
+ html.getAttribute('data-present') !== 'true' &&
+ (!window.matchMedia || !window.matchMedia('print').matches);
+ // Restore ordinary flow as soon as the target reaches 100%. Chrome
+ // uses that target to resume baseline rail measurement; retaining a
+ // partially shrunk box during the CSS transition would inflate reserve.
+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {
+ var style = getComputedStyle(container);
+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']
+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);
+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';
+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);
+ compactPageFlow = true;
+ } else if (compactPageFlow) {
+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);
+ else container.style.removeProperty('height');
+ compactPageFlow = false;
+ }
+ }
function syncViewportClip() {
if (clipFrame) cancelAnimationFrame(clipFrame);
clipFrame = 0;
function sample() {
clipFrame = 0;
var rendered = sampleRenderedState();
+ syncPageFlow(rendered);
clipToViewport(rendered);
+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();
if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);
}
sample();
@@ -10253,12 +10859,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function apply() {
clamp();
svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';
+ svg.setAttribute('data-view-scale', String(state.scale));
syncViewportClip();
renderControls();
- outBtn.disabled = state.scale <= 1;
- inBtn.disabled = state.scale >= 3;
+ outBtn.disabled = state.scale <= minimumZoom;
+ inBtn.disabled = state.scale >= maximumZoom;
container.classList.toggle('is-pannable', state.scale > 1);
- svg.setAttribute('data-view-scale', String(state.scale));
if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();
if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {
Archify.viewerChromeLayout.schedule();
@@ -10352,8 +10958,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
options = options || {};
if (options.manual !== false) interruptCamera();
var previous = state.scale;
- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));
+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));
if (next === previous) return;
+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;
+ var before = longDiagram ? svg.getBoundingClientRect() : null;
+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;
+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;
+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;
+ var documentTop = before ? window.scrollY + before.top - state.y : 0;
var centerX = (svg.clientWidth || 1) / 2;
var centerY = (svg.clientHeight || 1) / 2;
var contentX = (centerX - state.x) / previous;
@@ -10362,6 +10974,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
state.x = centerX - contentX * next;
state.y = centerY - contentY * next;
apply();
+ if (longDiagram) {
+ var scaledHeight = svg.clientHeight * next;
+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y
+ : documentTop + state.y + logicalY * next - anchorY;
+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });
+ }
}
function reset(options) {
options = options || {};
@@ -10618,6 +11236,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
else apply();
});
});
+ // Reader width and Chrome reserve can change without a window resize.
+ // Observe their resulting sizes; the SVG remains intrinsically sized, so
+ // the outer flow height cannot feed back into its camera base.
+ if (typeof ResizeObserver === 'function') {
+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });
+ flowObserver.observe(svg);
+ flowObserver.observe(container);
+ }
+ if (typeof MutationObserver === 'function') {
+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })
+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });
+ }
+ var printMedia = window.matchMedia && window.matchMedia('print');
+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });
window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });
apply();
pinControls();
@@ -11498,6 +12130,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var links = document.createElement('em');
links.textContent = badge;
links.title = context.kind === 'focus' ? badge : action;
+ if (item.links === 0) links.setAttribute('data-zero', 'true');
var meta = document.createElement('small');
meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');
meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');
@@ -11738,6 +12371,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
})();
+
/* ============================================================
Route Probe — shortest directed path over compiled semantics.
The graph is read from renderer-owned stable IDs and relationship
@@ -11844,7 +12478,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function edgeShapes(edge) {
if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function removeOverlay() {
Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {
@@ -12074,6 +12708,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function traceGeometry(shape, step) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -12174,6 +12810,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function journeyGeometry(shape) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -12770,6 +13408,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Semantic Lens — a counted, viewer-only legend over data-node-kind.
One selected kind reveals every authored relationship touching it.
@@ -12833,7 +13472,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function edgeShapes(edge) {
if (!edge) return [];
if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function legendSourceBounds(entry) {
var bounds = null;
@@ -13006,6 +13645,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function flowGeometry(shape, direction, step) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -13443,6 +14084,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Diagram Guide — a factual command deck over existing interactions.
Counts come from compiled semantics; actions delegate to Finder, Route
diff --git a/examples/archify-repo.html b/examples/archify-repo.html
index 313847ce..87ca96ed 100644
--- a/examples/archify-repo.html
+++ b/examples/archify-repo.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.17.0-dev.1">
+ <meta name="generator" content="archify 3.0.2-dev.1">
<meta name="archify-reader-contract" content="declared-wide-v1">
<title>Archify Diagram</title>
<script>
@@ -218,7 +218,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
[data-theme="light"] {
--bg: #f4f5f7;
--grid: #e9edf2;
- --canvas-dot: #d9dee5;
+ --canvas-dot: #e2e7ec;
--text: #111827;
--text-muted: #5b6474;
--text-dim: #9aa3b2;
@@ -599,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
color: var(--frontend-stroke);
}
- /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored
- SVG/viewBox while the runtime chooses a desktop width from the actual
- vertical budget. This avoids device-specific files and breakpoint
- jumps between a laptop and a tall monitor. */
+ /* The reader owns only the outer scale. Compact automatic sequences fit at
+ their authored text size or larger. Long sequences and waterfall rows
+ favor reading width and page scroll; other diagrams keep height fitting.
+ Small automatic canvases retain a modest scale inside a usable shell.
+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */
.container {
width: 100%;
max-width: var(--archify-reader-width, 1440px);
margin: 0 auto;
}
+ html[data-reader-area="true"] .diagram-container {
+ min-height: var(--archify-diagram-min-height);
+ display: flex;
+ align-items: center;
+ }
+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }
+ /* The original SVG legend can use the outer corner while the capped or fitted
+ diagram stays centered. The container still clips all outer paint. */
+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }
+ .diagram-container [data-reader-legend-corner] {
+ transform-origin: 0 0;
+ transform-box: view-box;
+ transform: var(--archify-reader-legend-transform);
+ }
+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {
+ min-width: 0;
+ max-width: var(--archify-diagram-max-width);
+ margin-inline: auto;
+ }
@media (min-width: 768px) and (max-height: 920px) {
.header { margin-bottom: 1rem; }
.diagram-container { padding: 1rem; }
@@ -806,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
pointer-events: none;
}
html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }
- html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {
+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {
content: "";
position: absolute;
inset: 0;
@@ -988,8 +1008,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
.diagram-nav-icon {
display: block;
- width: 0.875rem;
- height: 0.875rem;
+ width: 0.95rem;
+ height: 0.95rem;
margin: auto;
background: currentColor;
-webkit-mask-position: center;
@@ -1053,8 +1073,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.diagram-nav #btn-overview-map::before,
.diagram-nav #btn-semantic-lens::before {
flex: none;
- width: 0.875rem;
- height: 0.875rem;
+ width: 0.95rem;
+ height: 0.95rem;
background: currentColor;
content: "";
opacity: 0.85;
@@ -1068,21 +1088,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.diagram-nav [data-view="out"],
.diagram-nav [data-view="reset"],
.diagram-nav [data-view="in"] {
+ position: relative;
border-radius: 0;
- background: color-mix(in srgb, var(--text) 4.5%, transparent);
+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);
}
.diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }
.diagram-nav [data-view="out"]::before { display: none; }
.diagram-nav [data-view="reset"],
.diagram-nav [data-view="in"] { margin-left: -0.0625rem; }
.diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }
+ .diagram-nav [data-view="reset"]::after,
+ .diagram-nav [data-view="in"]::after {
+ position: absolute;
+ top: 0.55rem;
+ bottom: 0.55rem;
+ left: 0;
+ width: 1px;
+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);
+ content: "";
+ pointer-events: none;
+ }
.diagram-nav [data-view="out"]:hover,
.diagram-nav [data-view="reset"]:hover,
- .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }
.diagram-nav [data-view="out"]:disabled,
.diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }
.diagram-nav [data-view="out"]:disabled:hover,
- .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }
+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }
.diagram-nav [data-view="reset"] { min-width: 3.25rem; }
.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,
.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }
@@ -2326,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
gap: 0.55rem;
margin: 0 0.55rem 0.55rem;
padding: 0 0.7rem;
- min-height: 2.6rem;
+ min-height: 2.35rem;
border: 1px solid var(--toolbar-border);
border-radius: 0.55rem;
background: color-mix(in srgb, var(--panel) 78%, transparent);
@@ -2336,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }
.node-finder-search:focus-within {
border-color: var(--frontend-stroke);
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);
}
.node-finder-input {
appearance: none;
@@ -2374,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
background: color-mix(in srgb, var(--panel) 54%, transparent);
scroll-padding-block: 0.25rem;
scrollbar-width: thin;
+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;
+ }
+ /* Slim overlay-style thumb instead of the chunky platform default. */
+ .node-finder-results::-webkit-scrollbar { width: 10px; }
+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }
+ .node-finder-results::-webkit-scrollbar-thumb {
+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);
+ border: 3px solid transparent;
+ border-radius: 999px;
+ background-clip: padding-box;
+ }
+ .node-finder-results::-webkit-scrollbar-thumb:hover {
+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);
+ border: 3px solid transparent;
+ background-clip: padding-box;
}
html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }
.node-finder-result {
@@ -2381,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.2rem 0.75rem;
width: 100%;
- min-height: 3.25rem;
- padding: 0.58rem 0.65rem;
+ min-height: 3rem;
+ padding: 0.52rem 0.65rem;
border: 0;
border-radius: 0;
background: transparent;
@@ -2423,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
font-size: 0.625rem;
font-style: normal;
}
+ /* A zero count is absence, not information — let it recede. */
+ .node-finder-result em[data-zero] { color: var(--text-faint); }
.node-finder[data-context^="route-"] .node-finder-result em {
padding: 0.1rem 0.3rem;
border: 1px solid color-mix(in srgb, currentColor 52%, transparent);
@@ -2458,6 +2507,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
border-radius: 0.75rem;
border: 1px solid var(--panel-border);
padding: 1.125rem 1.25rem;
+ /* Card notes are authored prose and may carry an unbreakable run such as a
+ slash-joined pipeline or a long identifier. Without this, that run sets the
+ card's min-content width, spills past its track in every rail placement,
+ and pushes the whole page into horizontal overflow at desktop widths.
+ `anywhere` rather than `break-word` because only `anywhere` shrinks the
+ intrinsic minimum the layout is sized from. */
+ overflow-wrap: anywhere;
}
html[data-preset="signal-flow"] .card {
@@ -3494,6 +3550,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
background: transparent;
box-shadow: none;
}
+ /* The motion button breathes on the same shared cycle as the cascade, so the
+ chrome keeps time with the wave it controls. The cycle length lives on the
+ diagram SVG, so chrome presets mirror it here. */
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {
+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;
+ }
+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }
+ @keyframes archify-motion-dot-breathe {
+ 0%, 100% { opacity: 1; transform: scale(1); }
+ 46% { opacity: 0.55; transform: scale(0.72); }
+ }
.toolbar .export-menu {
position: absolute;
top: calc(100% + 0.125rem);
@@ -4030,10 +4097,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }
html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {
- filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));
+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));
+ filter: var(--ambient-node-base-filter);
}
html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {
- filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
+ filter: var(--ambient-node-base-filter);
}
html[data-preset="classic"] .diagram-container > svg [data-edge-from] {
stroke-linecap: round;
@@ -4166,41 +4235,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
filter: drop-shadow(0 0 7px var(--frontend-stroke));
outline: none;
}
- /* Verified Source Beacons are installed at runtime only for nodes whose
- repository evidence passed the local revision/blob/line checks. They
- live inside the owning node so every focus, route, story, and guided
- view keeps one coherent opacity state. Export serialization removes
- them before producing the canonical SVG or any derived visual. */
- .source-evidence-beacon {
- pointer-events: none;
- opacity: 0.76;
- transition: opacity 160ms ease, filter 160ms ease;
- }
- .source-evidence-beacon rect {
- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));
- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));
- stroke-width: 1;
- vector-effect: non-scaling-stroke;
- }
- .source-evidence-beacon text {
- fill: var(--backend-stroke);
- font-size: 5.5px;
- font-weight: 800;
- letter-spacing: 0.06em;
- text-anchor: middle;
- text-transform: uppercase;
- }
- svg [data-node-id]:hover .source-evidence-beacon,
- svg [data-node-id]:focus-visible .source-evidence-beacon,
- svg [data-node-id][data-focus-selected] .source-evidence-beacon {
- opacity: 1;
- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));
- }
- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }
- svg[data-preset="blueprint"] .source-evidence-beacon rect {
- rx: 0.8px;
- filter: none;
- }
svg [data-legend-kind][role="button"] { cursor: pointer; }
svg [data-legend-kind]:focus { outline: none; }
svg [data-legend-hit] {
@@ -4691,69 +4725,190 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }
.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }
- /* Optional trace animation, enabled only by meta.animation = "trace".
- The ordinary viewer performs one ambient pass and then restores the
- authored solid/security/async line language. WebM samples the same
- authored geometry into an explicit canvas timeline. */
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {
- animation: archify-edge-flow 2.4s linear 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {
- animation: archify-edge-flow 2.4s linear 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {
- transform-box: fill-box;
- transform-origin: center;
- animation: archify-node-pulse 3.6s ease-in-out 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {
+ /* Live turns each edge into a small light show on one shared cycle: a comet
+ (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,
+ leaves a soft wake, and lands as a ripple on the target node. Original line
+ language and markers remain static. Each edge's phase follows the authored
+ step order — source-node rank, or chronological order in sequence
+ diagrams — so the whole diagram ripples downstream instead of marching
+ uniformly. Node entry is bounded to one pass per document, then a soft
+ node glow follows the authored step order. */
+ svg[data-animation="trace"] {
+ --flow-cycle: 6.4s;
+ --flow-step-delay: 0.2s;
+ --flow-halo-peak: 0.13;
+ --flow-tail-peak: 0.34;
+ --flow-head-peak: 0.95;
+ --flow-wake-peak: 0.08;
+ --flow-ripple-peak: 0.55;
+ --flow-ripple-echo-peak: 0.22;
+ }
+ .ambient-edge-flow {
+ fill: none;
+ stroke: var(--arrow-emphasis);
stroke-linecap: round;
- filter: drop-shadow(0 0 3px var(--arrow-emphasis));
- animation-duration: 1.75s;
- }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
- animation-duration: 3.1s;
- }
- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {
- stroke-linecap: square;
- filter: none;
- animation-duration: 2.15s;
+ pointer-events: none;
+ display: none;
}
- svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }
- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
- animation-name: archify-blueprint-node-pulse;
- animation-duration: 3.8s;
+ .ambient-flow-wake {
+ stroke-width: 3.2;
+ stroke-dasharray: var(--flow-dasharray, none);
+ animation-name: archify-flow-wake;
}
- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {
- filter: none;
- animation-duration: 2.2s;
+ .ambient-flow-halo {
+ stroke-width: 5;
+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));
+ animation-name: archify-cascade-halo;
}
- svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }
- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
- animation-name: archify-editorial-node-pulse;
- animation-duration: 3.5s;
+ .ambient-flow-tail {
+ stroke-width: 2.4;
+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));
+ animation-name: archify-cascade-tail;
}
- /* Embedded proofs stay static so proof grids are calm instead of leaving
- ambient trace loops on. */
- html[data-embed="true"] svg[data-animation="trace"] [data-animate],
- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {
- animation: none !important;
- stroke-dashoffset: 0;
+ .ambient-flow-head {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);
+ stroke-width: 2.2;
+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));
+ animation-name: archify-cascade-head;
}
- html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],
- html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {
- animation: none !important;
- stroke-dashoffset: 0;
+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }
+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }
+ .ambient-flow-ripple {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);
+ stroke-width: 2;
+ animation-name: archify-flow-ripple;
+ }
+ .ambient-flow-ripple-echo {
+ stroke-width: 1.2;
+ animation-name: archify-flow-ripple-echo;
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {
+ display: inline;
+ animation-duration: var(--flow-cycle, 6.4s);
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-delay: var(--flow-delay, 0s);
+ /* Without backwards fill a delayed layer would sit at its natural opacity
+ (fully lit) until its phase arrives. */
+ animation-fill-mode: backwards;
+ }
+ /* Each decorative flow follows its owning edge through tree visibility. */
+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }
+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }
+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }
+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }
+ /* On light canvases the cascade reads by saturation instead of bloom: the
+ head and inner ripple mix toward ink instead of white, and every layer's
+ peak rises so the wave survives the bright background. */
+ html[data-theme="light"] svg[data-animation="trace"] {
+ --flow-halo-peak: 0.22;
+ --flow-tail-peak: 0.5;
+ --flow-wake-peak: 0.13;
+ --flow-ripple-echo-peak: 0.3;
+ }
+ html[data-theme="light"] .ambient-flow-head {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);
+ stroke-width: 2.4;
+ }
+ html[data-theme="light"] .ambient-flow-ripple {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);
+ }
+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {
+ transform-box: fill-box;
+ transform-origin: center;
+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ /* Node glow follows each node's authored step on the shared cycle; it does
+ not track incoming edge arrivals. During the bounded entrance all three
+ animations run; the entrance pulse is listed after the repeating glow and
+ wins on filter until it completes. */
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ @keyframes archify-flow-wake {
+ 0% { opacity: 0; }
+ 24% { opacity: var(--flow-wake-peak, 0.08); }
+ 62% { opacity: var(--flow-wake-peak, 0.08); }
+ 82%, 100% { opacity: 0; }
+ }
+ @keyframes archify-cascade-halo {
+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }
+ 4% { opacity: var(--flow-halo-peak, 0.13); }
+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }
+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }
+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }
+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }
+ }
+ @keyframes archify-cascade-tail {
+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }
+ 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }
+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }
+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }
+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }
+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }
+ }
+ @keyframes archify-cascade-head {
+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }
+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }
+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }
+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }
+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }
+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }
+ }
+ @keyframes archify-flow-ripple {
+ 0%, 60% { r: 2px; opacity: 0; }
+ 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }
+ 78%, 100% { r: 17px; opacity: 0; }
+ }
+ @keyframes archify-flow-ripple-echo {
+ 0%, 63% { r: 2px; opacity: 0; }
+ 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }
+ 84%, 100% { r: 26px; opacity: 0; }
+ }
+ @keyframes archify-node-receive {
+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }
+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }
+ }
+ @keyframes archify-node-enter {
+ from { opacity: 0; }
+ to { opacity: 1; }
}
- @keyframes archify-edge-flow {
- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }
- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }
- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }
- 100% { stroke-dashoffset: 0; opacity: 1; }
+ @media print {
+ .ambient-edge-flow { display: none !important; animation: none !important; }
+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }
}
@keyframes archify-node-pulse {
0%, 72%, 100% { filter: none; stroke-width: 1.5; }
@@ -4820,10 +4975,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
50% { opacity: 0.48; transform: scale(0.78); }
}
@media (prefers-reduced-motion: reduce) {
+ .ambient-edge-flow { display: none !important; animation: none !important; }
html[data-preset="signal-flow"] .diagram-container::before {
animation: none !important;
}
.pulse-dot { animation: none !important; }
+ .motion-control-dot { animation: none !important; }
svg[data-animation="trace"] [data-animate] {
animation: none !important;
stroke-dashoffset: 0;
@@ -4859,7 +5016,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
filter: none;
}
.relationship-pulse-overlay { display: none !important; }
- .source-evidence-beacon,
svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }
}
</style>
@@ -4979,11 +5135,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
</div>
- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>
+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 1340 568" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
+ <svg viewBox="0 0 1340 568" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
<title id="archify-diagram-title">Archify</title>
<desc id="archify-diagram-description">Agent skill → JSON IR → typed renderers → standalone HTML</desc>
<!-- Definitions -->
@@ -5014,50 +5170,50 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Connection paths (before components for correct z-order) -->
<g data-graph-role="automatic-crossover" style="--step:0">
<path data-graph-role="automatic-crossover-underlay" d="M 160 330 L 200 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:1">
<path data-graph-role="automatic-crossover-underlay" d="M 275 300 L 275 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="275,300;275,200" data-composition-crossover="halo" data-composition-independent="true" d="M 275 300 L 275 200" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>
+ <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="275,300;275,200" data-composition-crossover="halo" data-composition-independent="true" d="M 275 300 L 275 200" class="a-default" data-animate="edge" style="--step:1" stroke-width="1.5" marker-end="url(#arrowhead)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:2">
<path data-graph-role="automatic-crossover-underlay" d="M 350 330 L 400 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agents" data-edge-to="ir" data-edge-label="write IR" data-edge-key="2" data-composition-points="350,330;400,330" data-composition-crossover="halo" data-composition-independent="true" d="M 350 330 L 400 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="agents" data-edge-to="ir" data-edge-label="write IR" data-edge-key="2" data-composition-points="350,330;400,330" data-composition-crossover="halo" data-composition-independent="true" d="M 350 330 L 400 330" class="a-emphasis" data-animate="edge" style="--step:2" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:3">
<path data-graph-role="automatic-crossover-underlay" d="M 470 300 L 470 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="470,300;470,200" data-composition-crossover="halo" data-composition-independent="true" d="M 470 300 L 470 200" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
+ <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="470,300;470,200" data-composition-crossover="halo" data-composition-independent="true" d="M 470 300 L 470 200" class="a-security" data-animate="edge" style="--step:3" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:4">
<path data-graph-role="automatic-crossover-underlay" d="M 540 330 L 590 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="540,330;590,330" data-composition-crossover="halo" data-composition-independent="true" d="M 540 330 L 590 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="540,330;590,330" data-composition-crossover="halo" data-composition-independent="true" d="M 540 330 L 590 330" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:5">
<path data-graph-role="automatic-crossover-underlay" d="M 730 330 L 780 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:6">
<path data-graph-role="automatic-crossover-underlay" d="M 920 330 L 970 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" data-animate="edge" style="--step:6" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:7">
<path data-graph-role="automatic-crossover-underlay" d="M 1110 330 L 1160 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="checker" data-edge-to="html" data-edge-label="deliver" data-edge-key="7" data-composition-points="1110,330;1160,330" data-composition-crossover="halo" data-composition-independent="true" d="M 1110 330 L 1160 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="checker" data-edge-to="html" data-edge-label="deliver" data-edge-key="7" data-composition-points="1110,330;1160,330" data-composition-crossover="halo" data-composition-independent="true" d="M 1110 330 L 1160 330" class="a-emphasis" data-animate="edge" style="--step:7" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:8">
<path data-graph-role="automatic-crossover-underlay" d="M 660 360 L 660 440" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="renderers" data-edge-to="ci" data-edge-key="8" data-composition-points="660,360;660,440" data-composition-crossover="halo" data-composition-independent="true" d="M 660 360 L 660 440" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
+ <path data-edge-from="renderers" data-edge-to="ci" data-edge-key="8" data-composition-points="660,360;660,440" data-composition-crossover="halo" data-composition-independent="true" d="M 660 360 L 660 440" class="a-dashed" data-animate="edge" style="--step:8" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:9">
<path data-graph-role="automatic-crossover-underlay" d="M 1230 300 L 1230 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="html" data-edge-to="zip" data-edge-key="9" data-composition-points="1230,300;1230,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1230 300 L 1230 200" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
+ <path data-edge-from="html" data-edge-to="zip" data-edge-key="9" data-composition-points="1230,300;1230,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1230 300 L 1230 200" class="a-dashed" data-animate="edge" style="--step:9" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
</g>
<!-- Components -->
<g id="node-user" data-node-id="user" data-node-label="You" tabindex="0" role="button" aria-label="Focus You, NL or Mermaid, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="NL or Mermaid" data-node-context="Architecture component">
<title>You · NL or Mermaid · Architecture component</title>
<rect x="40" y="300" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" stroke-width="1.5"/>
+ <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(46 306) scale(0.6875)">
<rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/>
<path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>
@@ -5069,7 +5225,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-agents" data-node-id="agents" data-node-label="Agent Hosts" tabindex="0" role="button" aria-label="Focus Agent Hosts, Claude · Codex · opencode, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="Claude · Codex · opencode" data-node-context="Architecture component">
<title>Agent Hosts · Claude · Codex · opencode · Architecture component</title>
<rect x="200" y="300" width="150" height="60" rx="6" class="c-mask"/>
- <rect x="200" y="300" width="150" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="200" y="300" width="150" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:1" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(206 306) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5083,7 +5239,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-skill" data-node-id="skill" data-node-label="SKILL.md" tabindex="0" role="button" aria-label="Focus SKILL.md, layout judgment, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="layout judgment" data-node-tag="prompt dialect" data-node-context="Architecture component">
<title>SKILL.md · layout judgment · Architecture component · prompt dialect</title>
<rect x="200" y="140" width="150" height="60" rx="6" class="c-mask"/>
- <rect x="200" y="140" width="150" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="200" y="140" width="150" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:2" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(206 146) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5098,7 +5254,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-ir" data-node-id="ir" data-node-label="JSON IR" tabindex="0" role="button" aria-label="Focus JSON IR, schema_version: 1, archify/ skill package" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="schema_version: 1" data-node-context="archify/ skill package">
<title>JSON IR · schema_version: 1 · archify/ skill package</title>
<rect x="400" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="400" y="300" width="140" height="60" rx="6" class="c-messagebus" stroke-width="1.5"/>
+ <rect x="400" y="300" width="140" height="60" rx="6" class="c-messagebus" data-animate="node" style="--step:3" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="messagebus" class="semantic-sigil s-messagebus" transform="translate(406 306) scale(0.6875)">
<path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/>
<circle cx="5" cy="4.5" r="1" class="sigil-fill"/>
@@ -5112,7 +5268,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-schemas" data-node-id="schemas" data-node-label="JSON Schema" tabindex="0" role="button" aria-label="Focus JSON Schema, ajv strict, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-sublabel="ajv strict" data-node-tag="fail-closed" data-node-context="archify/ skill package">
<title>JSON Schema · ajv strict · archify/ skill package · fail-closed</title>
<rect x="400" y="140" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="400" y="140" width="140" height="60" rx="6" class="c-security" stroke-width="1.5"/>
+ <rect x="400" y="140" width="140" height="60" rx="6" class="c-security" data-animate="node" style="--step:4" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(406 146) scale(0.6875)">
<path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/>
<path d="m5.8 8 1.5 1.5 3-3"/>
@@ -5125,7 +5281,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-renderers" data-node-id="renderers" data-node-label="Renderers ×5" tabindex="0" role="button" aria-label="Focus Renderers ×5, layout checks, archify/ skill package" aria-pressed="false" data-node-kind="backend" data-node-sublabel="layout checks" data-node-tag="no auto-layout" data-node-context="archify/ skill package">
<title>Renderers ×5 · layout checks · archify/ skill package · no auto-layout</title>
<rect x="590" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="590" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="590" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:5" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(596 306) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5137,7 +5293,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-template" data-node-id="template" data-node-label="template.html" tabindex="0" role="button" aria-label="Focus template.html, theme + export, archify/ skill package" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="theme + export" data-node-context="archify/ skill package">
<title>template.html · theme + export · archify/ skill package</title>
<rect x="780" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="780" y="300" width="140" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="780" y="300" width="140" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:6" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(786 306) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5151,7 +5307,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-checker" data-node-id="checker" data-node-label="Output Check" tabindex="0" role="button" aria-label="Focus Output Check, SVG gates, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-sublabel="SVG gates" data-node-context="archify/ skill package">
<title>Output Check · SVG gates · archify/ skill package</title>
<rect x="970" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="970" y="300" width="140" height="60" rx="6" class="c-security" stroke-width="1.5"/>
+ <rect x="970" y="300" width="140" height="60" rx="6" class="c-security" data-animate="node" style="--step:7" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(976 306) scale(0.6875)">
<path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/>
<path d="m5.8 8 1.5 1.5 3-3"/>
@@ -5163,7 +5319,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-html" data-node-id="html" data-node-label="HTML Artifact" tabindex="0" role="button" aria-label="Focus HTML Artifact, single file, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="single file" data-node-context="Architecture component">
<title>HTML Artifact · single file · Architecture component</title>
<rect x="1160" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="1160" y="300" width="140" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>
+ <rect x="1160" y="300" width="140" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:8" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(1166 306) scale(0.6875)">
<path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/>
</g>
@@ -5174,7 +5330,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-zip" data-node-id="zip" data-node-label="archify.zip" tabindex="0" role="button" aria-label="Focus archify.zip, skill package, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="skill package" data-node-context="Architecture component">
<title>archify.zip · skill package · Architecture component</title>
<rect x="1160" y="140" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="1160" y="140" width="140" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>
+ <rect x="1160" y="140" width="140" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:10" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(1166 146) scale(0.6875)">
<path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/>
</g>
@@ -5185,7 +5341,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-ci" data-node-id="ci" data-node-label="CI Gates" tabindex="0" role="button" aria-label="Focus CI Gates, golden + zip, Architecture component" aria-pressed="false" data-node-kind="backend" data-node-sublabel="golden + zip" data-node-context="Architecture component">
<title>CI Gates · golden + zip · Architecture component</title>
<rect x="590" y="440" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="590" y="440" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="590" y="440" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:9" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(596 446) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5220,29 +5376,29 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Legend -->
<g data-legend="" data-legend-bridge="">
<text x="40" y="532" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="552" data-legend-width="83">
+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="552" data-legend-width="93">
<rect x="40" y="543" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/>
<text x="62" y="552" class="t-muted" font-size="10" font-weight="500">Frontend</text>
</g>
- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="552" data-legend-width="78">
- <rect x="145" y="543" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>
- <text x="167" y="552" class="t-muted" font-size="10" font-weight="500">Backend</text>
+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="155" data-legend-baseline="552" data-legend-width="87">
+ <rect x="155" y="543" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>
+ <text x="177" y="552" class="t-muted" font-size="10" font-weight="500">Backend</text>
</g>
- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="552" data-legend-width="68">
- <rect x="245" y="543" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>
- <text x="267" y="552" class="t-muted" font-size="10" font-weight="500">Cloud</text>
+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="264" data-legend-baseline="552" data-legend-width="74">
+ <rect x="264" y="543" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>
+ <text x="286" y="552" class="t-muted" font-size="10" font-weight="500">Cloud</text>
</g>
- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="552" data-legend-width="83">
- <rect x="335" y="543" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>
- <text x="357" y="552" class="t-muted" font-size="10" font-weight="500">Security</text>
+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="360" data-legend-baseline="552" data-legend-width="93">
+ <rect x="360" y="543" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>
+ <text x="382" y="552" class="t-muted" font-size="10" font-weight="500">Security</text>
</g>
- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="552" data-legend-width="98">
- <rect x="440" y="543" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>
- <text x="462" y="552" class="t-muted" font-size="10" font-weight="500">Message bus</text>
+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="475" data-legend-baseline="552" data-legend-width="112">
+ <rect x="475" y="543" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>
+ <text x="497" y="552" class="t-muted" font-size="10" font-weight="500">Message bus</text>
</g>
- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="552" data-legend-width="83">
- <rect x="560" y="543" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>
- <text x="582" y="552" class="t-muted" font-size="10" font-weight="500">External</text>
+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="609" data-legend-baseline="552" data-legend-width="93">
+ <rect x="609" y="543" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>
+ <text x="631" y="552" class="t-muted" font-size="10" font-weight="500">External</text>
</g>
</g>
</svg>
@@ -5403,7 +5559,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>
<button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes &amp; index</span></button>
<div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">
- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>
+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button>
<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>
<button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>
<button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>
@@ -5503,11 +5659,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function hasDrawableGeometry(element) {
- if (!element) return false;
+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;
var geometries = /^(path|line|polyline)$/i.test(element.tagName)
? [element]
: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));
return geometries.some(function (geometry) {
+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;
var source = geometry.tagName.toLowerCase() === 'path'
? geometry.getAttribute('d')
: geometry.tagName.toLowerCase() === 'polyline'
@@ -5752,6 +5909,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function cleanExportClone(clone) {
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {
+ el.remove();
+ });
+ // Route interaction rewrites CSS declarations through CSSOM. Normalize
+ // authored motion delays on the clone so exported bytes do not depend
+ // on whether the reader traced a route before downloading.
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {
+ var step = el.style.getPropertyValue('--step');
+ if (step) el.setAttribute('style', el.style.cssText);
+ });
// View transforms and neighborhood focus are HTML exploration state,
// never part of a downloaded full-diagram artifact.
clone.style.removeProperty('transform');
@@ -5772,6 +5939,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.removeAttribute('data-route-journey');
clone.removeAttribute('data-share-route');
clone.removeAttribute('data-share-reach');
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {
+ el.removeAttribute('data-reader-legend-corner');
+ el.style.removeProperty('--archify-reader-legend-transform');
+ });
Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {
el.remove();
});
@@ -5817,7 +5988,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
});
Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {
var originalLabel = el.getAttribute('data-source-evidence-original-label');
- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');
+ if (originalLabel == null) el.removeAttribute('aria-label');
else el.setAttribute('aria-label', originalLabel);
el.removeAttribute('data-source-evidence-count');
el.removeAttribute('data-source-evidence-original-label');
@@ -5880,6 +6051,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {
el.setAttribute('aria-pressed', 'false');
});
+ // A downloaded tree is always the complete hierarchy: collapsing is a
+ // reading aid, never a silent change to what the artifact contains.
+ clone.removeAttribute('data-tree-any-collapsed');
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {
+ el.removeAttribute('data-tree-hidden');
+ el.removeAttribute('data-tree-collapsed');
+ });
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {
+ el.setAttribute('aria-expanded', 'true');
+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');
+ });
return !clone.hasAttribute('data-view-scale') &&
!clone.hasAttribute('data-focus-active') &&
!clone.hasAttribute('data-reach-active') &&
@@ -5895,9 +6077,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
!clone.hasAttribute('data-route-journey') &&
!clone.hasAttribute('data-share-route') &&
!clone.hasAttribute('data-share-reach') &&
+ !clone.hasAttribute('data-tree-any-collapsed') &&
!clone.style.getPropertyValue('transform') &&
!clone.style.getPropertyValue('clip-path') &&
- clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;
+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;
}
@@ -6673,13 +6856,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function samplesFor(element) {
if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];
+ var geometry = element;
+ if (element.getAttribute('data-motion-path')) {
+ geometry = element.cloneNode(false);
+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));
+ }
var length;
- try { length = element.getTotalLength(); } catch (_) { return []; }
+ try { length = geometry.getTotalLength(); } catch (_) { return []; }
if (!Number.isFinite(length) || length <= 0) return [];
var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));
var points = [];
for (var i = 0; i <= count; i++) {
- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));
+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));
}
return points;
}
@@ -7253,38 +7441,166 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var ownerToken = 0;
var ownerCleanup = null;
var lastEffectivePaused = null;
- var ambientStarted = false;
- var ambientPending = new Set();
-
- function detachAmbientBoundary() {
- if (!svg) return;
- svg.removeEventListener('animationend', onAmbientBoundary, true);
- svg.removeEventListener('animationcancel', onAmbientBoundary, true);
- }
- function settleAmbient(reason) {
- if (!capable) return false;
- ambientStarted = true;
- ambientPending.clear();
- detachAmbientBoundary();
- html.setAttribute('data-ambient-motion', 'settled');
- html.setAttribute('data-ambient-settle-reason', reason || 'complete');
- return true;
- }
- function onAmbientBoundary(event) {
- if (!ambientPending.has(event.target)) return;
- ambientPending.delete(event.target);
- if (!ambientPending.size) settleAmbient('complete');
- }
- function startAmbient() {
- if (ambientStarted || !capable) return false;
- ambientStarted = true;
- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));
- if (!ambientPending.size) return settleAmbient('empty');
- svg.addEventListener('animationend', onAmbientBoundary, true);
- svg.addEventListener('animationcancel', onAmbientBoundary, true);
- html.setAttribute('data-ambient-motion', 'running');
- html.removeAttribute('data-ambient-settle-reason');
- return true;
+ var entryStarted = false;
+ var entryPending = new Set();
+ var flowCount = 0;
+
+ // Runtime decoration carries geometry and tree visibility only. Keep each
+ // flow beside its authored edge so transforms, clipping and crossover
+ // paint order apply.
+ // Each edge carries a small light show: a comet (halo, tail, head)
+ // cascading downstream on one shared cycle, a lingering wake, and a
+ // ripple where the comet lands. Phases follow the authored step order:
+ // source-node rank where known, chronological message order in sequence
+ // diagrams.
+ function readSecondsVar(name, fallback) {
+ var value = '';
+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}
+ var seconds = parseFloat(value);
+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;
+ }
+ function nodeStep(from) {
+ // Authored IDs follow the schema's conservative identifier pattern, so
+ // direct selector interpolation stays safe here. The semantic wrapper
+ // groups the animated shape; its authored step ranks the node.
+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;
+ var shape = node ? node.querySelector('[data-animate="node"]') : null;
+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';
+ }
+ function edgePhase(shape, fallbackStep) {
+ // Sequence messages have no data-edge-from; their own authored step is
+ // already chronological, which is the right phase there.
+ var raw = nodeStep(shape.getAttribute('data-edge-from'));
+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');
+ var step = parseFloat(raw);
+ return Number.isFinite(step) ? step : fallbackStep;
+ }
+ function createFlows() {
+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);
+ var cycle = readSecondsVar('--flow-cycle', 6.4);
+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {
+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');
+ if (!d) return;
+ var anchor = shape;
+ // Tree Branches initializes after these overlays and includes their
+ // inherited ancestors in its existing collapse/expand lifecycle.
+ function tagOverlay(flow) {
+ flow.setAttribute('data-ambient-flow-overlay', 'true');
+ flow.setAttribute('aria-hidden', 'true');
+ if (shape.hasAttribute('data-tree-ancestors')) {
+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));
+ }
+ }
+ function addPath(cls) {
+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');
+ flow.setAttribute('d', d);
+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {
+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));
+ });
+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);
+ tagOverlay(flow);
+ shape.parentNode.insertBefore(flow, anchor.nextSibling);
+ anchor = flow;
+ return flow;
+ }
+ var wake = addPath('wake');
+ var len = 0;
+ try { len = wake.getTotalLength(); } catch (_) {}
+ if (!(len > 0)) {
+ wake.remove();
+ return;
+ }
+ var halo = addPath('halo');
+ var tail = addPath('tail');
+ var head = addPath('head');
+ var end = null;
+ try { end = head.getPointAtLength(len); } catch (_) {}
+ // Dashed authored lines keep their dash language through the show:
+ // the wake brightens only the authored segments and never fills the
+ // gaps back into a solid line.
+ var authoredDash = '';
+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}
+ if (authoredDash && authoredDash !== 'none') {
+ wake.style.setProperty('--flow-dasharray', authoredDash);
+ }
+ // Absolute caps keep the comet a slim streak on long edges instead
+ // of growing into a bright slab; the tail disintegrates into a
+ // sparkle of fragments behind the head, and --flow-shift trails
+ // each layer behind the head tip by its own length.
+ var headLen = Math.min(10, Math.max(4, len * 0.016));
+ var haloLen = Math.min(14, Math.max(8, len * 0.045));
+ var trail = len >= 120
+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }
+ : (len >= 60
+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }
+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });
+ var phase = edgePhase(shape, index) * stepDelay;
+ var configs = [
+ { flow: wake, dash: len, shift: 0, delay: phase },
+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },
+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },
+ { flow: head, dash: headLen, shift: 0, delay: phase },
+ ];
+ // Long edges earn a dimmer echo comet half a travel window behind.
+ if (len > 340) {
+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });
+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });
+ }
+ configs.forEach(function (cfg) {
+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');
+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');
+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');
+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');
+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);
+ });
+ // The sonar pair lands where the comet does; keep it out of the
+ // edge's mask so it can bloom over the node boundary.
+ if (end) {
+ ['ripple', 'ripple-echo'].forEach(function (kind) {
+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
+ ripple.setAttribute('cx', end.x.toFixed(1));
+ ripple.setAttribute('cy', end.y.toFixed(1));
+ ripple.setAttribute('r', '2');
+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));
+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);
+ tagOverlay(ripple);
+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');
+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);
+ anchor = ripple;
+ });
+ }
+ flowCount += 1;
+ });
+ }
+ function settleEntry() {
+ entryPending.clear();
+ svg.removeEventListener('animationend', onEntryBoundary, true);
+ svg.removeEventListener('animationcancel', onEntryBoundary, true);
+ html.setAttribute('data-ambient-entry', 'settled');
+ }
+ function onEntryBoundary(event) {
+ if (!entryPending.has(event.target)) return;
+ // The entrance settles only when each node's pulse finishes; the
+ // shorter fade-rise enter animation may end first without ending it.
+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;
+ entryPending.delete(event.target);
+ if (!entryPending.size) settleEntry();
+ }
+ function renderAmbient(suppressed) {
+ html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));
+ if (suppressed) {
+ entryStarted = true;
+ settleEntry();
+ } else if (!entryStarted) {
+ entryStarted = true;
+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));
+ if (!entryPending.size) settleEntry();
+ else {
+ svg.addEventListener('animationend', onEntryBoundary, true);
+ svg.addEventListener('animationcancel', onEntryBoundary, true);
+ html.setAttribute('data-ambient-entry', 'running');
+ }
+ }
}
function readStored() {
@@ -7319,11 +7635,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var systemPaused = reducedMotion();
var paused = effectivePaused();
html.setAttribute('data-motion', paused ? 'still' : 'live');
- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {
- settleAmbient('suppressed');
- } else if (!ambientStarted) {
- startAmbient();
- }
+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));
btn.setAttribute('aria-pressed', paused ? 'false' : 'true');
btn.disabled = systemPaused;
label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');
@@ -7428,7 +7740,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-motion');
html.removeAttribute('data-motion-owner');
html.removeAttribute('data-ambient-motion');
- html.removeAttribute('data-ambient-settle-reason');
+ html.removeAttribute('data-ambient-entry');
return {
capable: false,
pause: function () { return false; },
@@ -7444,6 +7756,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
}
+ createFlows();
html.setAttribute('data-motion-capable', 'true');
btn.hidden = false;
readerPaused = readStored() === 'still';
@@ -7453,6 +7766,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);
}
document.addEventListener('visibilitychange', syncVisibility);
+ if (typeof MutationObserver !== 'undefined') {
+ var contextObserver = new MutationObserver(render);
+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });
+ }
if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {
var ownerObserver = new MutationObserver(function () { publishOwner(); });
ownerObserver.observe(svg, {
@@ -7493,69 +7810,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Archify.sourceEvidence = (function () {
var element = document.getElementById('archify-source-evidence-data');
var payload = null;
- var svgNamespace = 'http://www.w3.org/2000/svg';
if (element) {
try {
var parsed = JSON.parse(element.textContent || 'null');
if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;
} catch (_) {}
}
- function installBeacons() {
- if (!payload) return 0;
- var svg = document.querySelector('.diagram-container svg');
- if (!svg) return 0;
- var installed = 0;
- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {
- var id = node.getAttribute('data-node-id');
- var sources = payload.nodes[id];
- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;
- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');
- var box;
- try { box = (shape || node).getBBox(); } catch (_) { return; }
- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;
-
- var count = sources.length;
- var label = viewerCount('viewer.passport.beacon', count);
- var beacon = document.createElementNS(svgNamespace, 'g');
- beacon.classList.add('source-evidence-beacon');
- beacon.setAttribute('data-source-evidence-beacon', '');
- beacon.setAttribute('aria-hidden', 'true');
- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;
- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');
- var title = document.createElementNS(svgNamespace, 'title');
- title.textContent = label;
- var plate = document.createElementNS(svgNamespace, 'rect');
- plate.setAttribute('width', '30');
- plate.setAttribute('height', '12');
- plate.setAttribute('rx', '6');
- var text = document.createElementNS(svgNamespace, 'text');
- text.setAttribute('x', '15');
- text.setAttribute('y', '8.25');
- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;
- beacon.appendChild(title);
- beacon.appendChild(plate);
- beacon.appendChild(text);
- node.appendChild(beacon);
-
- var originalLabel = node.getAttribute('aria-label') || '';
- node.setAttribute('data-source-evidence-count', String(count));
- node.setAttribute('data-source-evidence-original-label', originalLabel);
- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));
- installed += 1;
- });
- return installed;
- }
+ // Keep verified evidence discoverable to screen readers without adding
+ // visual marks. Restore first so repeated initialization never appends
+ // another count or retains one after evidence becomes unavailable.
+ var svg = document.querySelector('.diagram-container svg');
+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {
+ if (node.hasAttribute('data-source-evidence-count')) {
+ var savedLabel = node.getAttribute('data-source-evidence-original-label');
+ if (savedLabel == null) node.removeAttribute('aria-label');
+ else node.setAttribute('aria-label', savedLabel);
+ node.removeAttribute('data-source-evidence-count');
+ node.removeAttribute('data-source-evidence-original-label');
+ }
+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];
+ if (!Array.isArray(sources) || !sources.length) return;
+ var originalLabel = node.getAttribute('aria-label');
+ node.setAttribute('data-source-evidence-count', String(sources.length));
+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);
+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') +
+ viewerCount('viewer.passport.sourceCount', sources.length));
+ });
return {
available: function () { return Boolean(payload); },
repository: function () { return payload ? payload.repository : null; },
node: function (id) {
var sources = payload && payload.nodes ? payload.nodes[id] : null;
return Array.isArray(sources) ? sources.slice() : [];
- },
- installBeacons: installBeacons
+ }
+ };
+ })();
+
+ /* ============================================================
+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer
+ lays out the complete tree once and tags every node, link, and toggle
+ with its ancestors; collapsing only hides descendants, so visible nodes
+ never move and the reader keeps their place. Selecting a hidden node
+ through Finder, Outline, or a shared link expands its ancestors. Export
+ always writes the complete tree (see Export Cleanup).
+ ============================================================ */
+ Archify.treeBranches = (function () {
+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');
+ if (!svg) return { active: false };
+ var collapsed = Object.create(null);
+ var toggles = Object.create(null);
+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {
+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;
+ });
+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');
+ var expandAll = svg.querySelector('[data-tree-expand-all]');
+
+ function ancestors(el) {
+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);
+ }
+
+ function apply() {
+ Array.prototype.forEach.call(tagged, function (el) {
+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });
+ if (hidden) el.setAttribute('data-tree-hidden', '');
+ else el.removeAttribute('data-tree-hidden');
+ });
+ var any = false;
+ Object.keys(toggles).forEach(function (id) {
+ var toggle = toggles[id];
+ var isCollapsed = Boolean(collapsed[id]);
+ any = any || isCollapsed;
+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');
+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');
+ var node = svg.querySelector('[data-node-id="' + id + '"]');
+ if (node) {
+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');
+ else node.removeAttribute('data-tree-collapsed');
+ }
+ });
+ if (any) svg.setAttribute('data-tree-any-collapsed', '');
+ else svg.removeAttribute('data-tree-any-collapsed');
+ }
+
+ function setCollapsed(id, value) {
+ if (!toggles[id]) return false;
+ if (value) collapsed[id] = true;
+ else delete collapsed[id];
+ apply();
+ return true;
+ }
+
+ function toggle(id) { return setCollapsed(id, !collapsed[id]); }
+
+ // Reveal a node by expanding every collapsed ancestor; nothing else moves.
+ function reveal(id) {
+ var node = svg.querySelector('[data-node-id="' + id + '"]');
+ if (!node) return false;
+ var changed = false;
+ ancestors(node).forEach(function (ancestor) {
+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }
+ });
+ if (changed) apply();
+ return changed;
+ }
+
+ function restoreAll() {
+ collapsed = Object.create(null);
+ apply();
+ }
+
+ function activate(event) {
+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');
+ if (!target || !svg.contains(target)) return false;
+ event.preventDefault();
+ event.stopPropagation();
+ if (target.hasAttribute('data-tree-expand-all')) {
+ restoreAll();
+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');
+ if (root) root.focus();
+ } else {
+ toggle(target.getAttribute('data-tree-toggle'));
+ target.focus();
+ }
+ return true;
+ }
+
+ // Capture phase so the canvas focus handler never treats a toggle press
+ // as a background click that clears the current focus.
+ svg.addEventListener('click', activate, true);
+ svg.addEventListener('keydown', function (event) {
+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }
+ var node = event.target.closest('[data-node-id]');
+ if (!node || !svg.contains(node)) return;
+ var id = node.getAttribute('data-node-id');
+ // Arrow keys follow the tree convention: left collapses, right expands.
+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }
+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }
+ }, true);
+
+ // Focus reveals ancestors synchronously before positioning its lens.
+ // The observer also covers paths that change pressed state directly.
+ new MutationObserver(function (records) {
+ records.forEach(function (record) {
+ var el = record.target;
+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {
+ reveal(el.getAttribute('data-node-id'));
+ }
+ });
+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });
+
+ Object.keys(toggles).forEach(function (id) {
+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;
+ });
+ apply();
+
+ return {
+ active: true,
+ toggle: toggle,
+ collapse: function (id) { return setCollapsed(id, true); },
+ expand: function (id) { return setCollapsed(id, false); },
+ reveal: reveal,
+ restoreAll: restoreAll,
+ collapsedIds: function () { return Object.keys(collapsed); },
+ expandAllControl: expandAll
};
})();
- Archify.sourceEvidence.installBeacons();
+
/* ============================================================
Explore — stable-ID neighborhood focus + dependency-free pan/zoom.
@@ -7978,7 +8398,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function relationshipEdgeShapes(edge) {
if (!edge) return [];
if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function relationshipHitRecords() {
var recordsByKey = {};
@@ -8082,6 +8502,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function relationshipPulseGeometry(shape) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -8126,7 +8548,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function relationshipTokenPath(shape) {
if (!shape) return '';
var tagName = String(shape.tagName || '').toLowerCase();
- if (tagName === 'path') return shape.getAttribute('d') || '';
+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';
if (tagName === 'line') {
return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +
' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');
@@ -8887,6 +9309,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);
});
if (!normalized.length) return false;
+ // Hash restoration and internal selections use this path too. Reveal
+ // tree ancestors before measuring the selected node for its lens.
+ if (Archify.treeBranches && Archify.treeBranches.active) {
+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });
+ }
if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {
clear();
return true;
@@ -9102,6 +9529,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
window.addEventListener('scroll', requestLensPlacement, { passive: true });
window.addEventListener('resize', requestLensPlacement);
container.addEventListener('scroll', requestLensPlacement, { passive: true });
+ // Reader and Chrome may finish resizing the stage after window resize.
+ // The absolute Passport does not resize its container when reclamped.
+ if (typeof ResizeObserver === 'function') {
+ new ResizeObserver(function () {
+ if (!chip.hidden) requestLensPlacement();
+ }).observe(container);
+ }
document.addEventListener('visibilitychange', function () {
if (document.hidden) removeRelationshipPulse();
});
@@ -9213,7 +9647,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function edgeShapes(edge) {
if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function removeOverlay() {
Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {
@@ -9236,6 +9670,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function traceGeometry(shape, direction) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -9383,6 +9819,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Adaptive Reader Shell — one diagram across laptop and monitor.
The canonical SVG and viewBox never change. On ordinary desktop pages,
@@ -9439,14 +9876,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var shell = document.querySelector('.container');
var diagram = document.querySelector('.diagram-container');
var svg = diagram && diagram.querySelector(':scope > svg');
+ var legend = svg && svg.querySelector('[data-legend]');
var header = shell && shell.querySelector('.header');
var cards = shell && shell.querySelector('.cards');
var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;
var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;
- var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';
+ var readerFit = svg && svg.getAttribute('data-reader-fit');
+ var widthFirstReading = readerFit === 'width-first';
+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');
+ var readingScroll = widthFirstReading;
+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ var automaticAreaHeight = 0;
// Widest reader the overflow settle has accepted for this viewport (0 =
// uncapped). Card copy rewraps as the reader narrows, so recomputing
// from fixed heights alone would widen again and oscillate; only a
@@ -9456,6 +9899,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MAX_AUTOMATIC_SCALE = 1.5;
var MIN_PROJECTED_NODE_TEXT_PX = 6;
var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;
var requestedMinimumText = Number.isFinite(declaredMinimumText)
@@ -9506,24 +9950,34 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ // Smallest scale that keeps node text at the requested floor and
+ // context relationship labels readable. A declared wide reader holds
+ // relationship labels to the requested floor too; every other reader
+ // still keeps them at the 6px hard floor the browser gate enforces, so
+ // a first-screen fit can never push them below it.
function minimumReadableScale() {
- var sourceMinimum = null;
- var selectors = [
- 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
- ];
- if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {
- selectors.push('g[data-detail="context"][data-edge-from][data-edge-to] > text');
- }
- Array.from(svg.querySelectorAll(selectors.join(', '))).forEach(function (text) {
- if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var nodeMinimum = null;
+ var edgeMinimum = null;
+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';
+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;
var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
- if (Number.isFinite(sourceFontPx)) {
- sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ if (!Number.isFinite(sourceFontPx)) return;
+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');
+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));
+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {
+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);
+ } else if (primary || text.closest('[data-node-id]')) {
+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);
}
});
- return sourceMinimum != null
- ? Math.min(1, requestedMinimumText / sourceMinimum)
- : 1;
+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)
+ ? requestedMinimumText
+ : MIN_PROJECTED_NODE_TEXT_PX;
+ var scale = 0;
+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);
+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);
+ return scale > 0 ? Math.min(1, scale) : 1;
}
var sourcePrimary = null;
if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {
@@ -9556,11 +10010,66 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function clear() {
html.style.removeProperty('--archify-reader-width');
+ html.style.removeProperty('--archify-diagram-max-width');
+ html.style.removeProperty('--archify-diagram-min-height');
+ html.removeAttribute('data-reader-area');
+ html.removeAttribute('data-reader-narrow');
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
setRail(false);
lastWidth = 0;
+ automaticAreaHeight = 0;
settledCap = 0;
+ clearLegend();
+ }
+ function clearLegend() {
+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;
+ legend.removeAttribute('data-reader-legend-corner');
+ legend.style.removeProperty('--archify-reader-legend-transform');
+ }
+ // Keep the original legend in its SVG: renderer hover/focus selectors and
+ // canonical export still own that same group. Ordinary capped reading
+ // and fitted automatic sequences borrow the outer corner at 25–100%.
+ function syncLegend() {
+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;
+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;
+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {
+ clearLegend();
+ return;
+ }
+ var box = legend.getBBox();
+ var parentMatrix = legend.parentNode.getScreenCTM();
+ if (!parentMatrix || !box.width || !box.height) {
+ clearLegend();
+ return;
+ }
+ var rect = diagram.getBoundingClientRect();
+ var style = window.getComputedStyle(diagram);
+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);
+ if (!Number.isFinite(scale) || scale <= 0) {
+ clearLegend();
+ return;
+ }
+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);
+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);
+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);
+ var top = bottom - box.height * scale;
+ var nav = diagram.querySelector('.diagram-nav');
+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;
+ // Long or multi-row legends retain their canonical position if the
+ // spare corner cannot hold them clear of the dock and content area.
+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||
+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&
+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {
+ clearLegend();
+ return;
+ }
+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);
+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';
+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {
+ legend.style.setProperty('--archify-reader-legend-transform', value);
+ }
+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');
}
// Rail modes: "true" docks beside the diagram, "collapsed" leaves only the
// reveal control, "overlay" opens a drawer when docking would break the
@@ -9617,13 +10126,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)
};
}
+ // `width` is the diagram's reading width. The page shell never narrows
+ // below the desktop reader floor, so a narrow, tall diagram keeps a
+ // usable header, toolbar, and controls; its SVG is centred instead.
function applyWidth(width, minWidth) {
var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));
- if (Math.abs(rounded - lastWidth) < 1) return false;
+ var changed = Math.abs(rounded - lastWidth) >= 1;
lastWidth = rounded;
- html.style.setProperty('--archify-reader-width', rounded + 'px');
+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));
+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');
+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;
+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);
+ // Content fitting and automatic enlargement never reduce the outer
+ // reader region. The SVG alone takes the narrower reading width.
+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0
+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;
+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {
+ diagramWidth = automaticWidthCap;
+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');
+ html.setAttribute('data-reader-area', 'true');
+ } else {
+ // Ordinary automatic diagrams retain their existing document flow.
+ // Settling can also stop binding the cap without a new measure.
+ html.style.removeProperty('--archify-diagram-min-height');
+ html.removeAttribute('data-reader-area');
+ }
+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {
+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');
+ html.setAttribute('data-reader-narrow', 'true');
+ } else {
+ html.style.removeProperty('--archify-diagram-max-width');
+ html.removeAttribute('data-reader-narrow');
+ }
html.setAttribute('data-reader-layout', 'adaptive');
- return true;
+ syncLegend();
+ return changed;
}
function settleOverflow(minWidth) {
if (settleFrame) cancelAnimationFrame(settleFrame);
@@ -9635,11 +10172,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
document.documentElement.scrollHeight,
document.body.scrollHeight
) - window.innerHeight - belowFold();
- if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
+ // visual-check fails any page whose rounded-up height exceeds the
+ // viewport, so even a 1px remainder must be reduced or declared.
+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
- } else if (overflow > 1) {
+ } else if (overflow > 0) {
html.setAttribute('data-reader-overflow', 'authored');
} else {
html.removeAttribute('data-reader-overflow');
@@ -9654,17 +10193,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
+ // Sequence first-screen fitting preserves source text sizes instead
+ // of shrinking to the shared hard readability floor.
var readableWidth = viewBox && viewBox.width > 0
- ? viewBox.width * minimumReadableScale() + chrome.diagramX
+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX
: MIN_READER_WIDTH;
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
- var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO
+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO
? readableWidth
: measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)
? Math.max(MIN_READER_WIDTH, readableWidth)
: MIN_READER_WIDTH;
var minWidth;
- if (measuredHeightFit && ratio < WIDE_RATIO) {
+ if (automaticSequence) {
+ minWidth = Math.min(readableMinimumWidth, maxWidth);
+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {
minWidth = Math.min(readableMinimumWidth, viewportCap);
} else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {
minWidth = Math.min(readableMinimumWidth, maxWidth);
@@ -9686,10 +10229,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // Height-fit families with notes below the fold may shrink to their
+ // readable floor. Width-first families choose their reading width
+ // below and retain page scrolling instead.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
@@ -9700,6 +10243,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + stackedBelow;
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);
+ // Compact automatic sequences fit the first screen without shrinking
+ // their authored text. Longer sequences retain reading width and page
+ // scroll; other width-first families keep their existing strategy.
+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=
+ readableWidth + (docked ? railExtra : 0);
+ readingScroll = widthFirstReading && !sequenceFits;
+ if (readingScroll) desiredWidth = maxWidth;
+ // Only a binding enlargement cap needs a separate normal reader area.
+ // Uncapped diagrams keep their existing natural height and Chrome fit.
+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;
var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
@@ -9728,7 +10281,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Math.round(shellRect.width * 100) / 100,
Math.round(shellRect.height * 100) / 100,
Math.round(diagramRect.width * 100) / 100,
- Math.round(diagramRect.height * 100) / 100
+ Math.round(diagramRect.height * 100) / 100,
+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''
].join('|');
}
function layoutPending() { return Boolean(frame || settleFrame); }
@@ -9747,6 +10301,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
schedule();
}, { passive: true });
window.addEventListener('load', schedule, { once: true });
+ window.addEventListener('beforeprint', clearLegend);
+ window.addEventListener('afterprint', schedule);
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
var resizeObserver = new ResizeObserver(schedule);
@@ -9789,6 +10345,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
measure: measure,
schedule: schedule,
whenStable: whenStable,
+ syncLegend: syncLegend,
active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },
receipt: function () { return { ratio: ratio, width: lastWidth }; }
};
@@ -10081,6 +10638,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };
return [
reserve,
+ lift,
Math.round(containerRect.width * 100) / 100,
Math.round(containerRect.height * 100) / 100,
Math.round(navRect.left * 100) / 100,
@@ -10091,7 +10649,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
lastReceipt ? lastReceipt.stageGap : ''
].join('|');
}
- function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }
+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }
function whenStable() {
return Archify.waitForStableLayout({
schedule: schedule,
@@ -10111,6 +10669,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (typeof ResizeObserver === 'function') {
var resizeObserver = new ResizeObserver(schedule);
[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });
+ // Camera zoom changes outer page flow without changing intrinsic SVG
+ // size. Follow that box for dock placement, independently of scrolling
+ // and the baseline stage-rail measurement.
+ new ResizeObserver(scheduleLift).observe(container);
}
if (typeof MutationObserver === 'function') {
var contentObserver = new MutationObserver(function (records) {
@@ -10194,6 +10756,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');
var inBtn = container.querySelector('[data-view="in"]');
var state = { scale: 1, x: 0, y: 0, mode: 'overview' };
+ var minimumZoom = 0.25;
+ var maximumZoom = 3;
var drag = null;
var cameraTimer = null;
var cameraFrame = null;
@@ -10202,12 +10766,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var clipFrame = 0;
var resizeFrame = 0;
var autoScrollUntil = 0;
+ var originalFlowHeight = container.style.getPropertyValue('height');
+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');
+ var compactPageFlow = false;
var viewBox = svg.viewBox && svg.viewBox.baseVal;
function clamp() {
var width = svg.clientWidth || 1;
var height = svg.clientHeight || 1;
+ if (state.scale < 1) {
+ var visibleWidth = Math.min(width, container.clientWidth);
+ var availableX = visibleWidth - width * state.scale;
+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2
+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));
+ // Long sequences keep their first rows in view instead of centering
+ // inside a layout box that can be several screens tall.
+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;
+ return;
+ }
state.x = Math.min(0, Math.max(width - width * state.scale, state.x));
state.y = Math.min(0, Math.max(height - height * state.scale, state.y));
}
@@ -10234,15 +10811,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var y;
var width;
var height;
- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {
+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {
x = viewBox.x + container.scrollLeft / metrics.scale;
y = viewBox.y;
width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));
height = viewBox.height;
} else {
- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;
+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;
y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;
- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);
+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);
height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);
}
width = Math.max(1, Math.min(viewBox.width, width));
@@ -10279,7 +10856,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',
hint: detailHint
});
- resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));
+ var readout = (showDetailLevel ? resolvedLevel + ' ' : '') + percent;
+ resetBtn.setAttribute('aria-label', readout + ' · ' + viewerText('viewer.nav.camera', { hint: detailHint }));
resetBtn.setAttribute('data-detail-level', detail);
container.setAttribute('data-detail-level', detail);
container.setAttribute('data-camera-mode', state.mode);
@@ -10307,13 +10885,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Math.abs(rendered.x - state.x) < 0.05 &&
Math.abs(rendered.y - state.y) < 0.05;
}
+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its
+ // outer page-flow box for long ordinary diagrams, never the SVG itself:
+ // changing its height would feed the smaller size back into camera math.
+ function syncPageFlow(camera) {
+ camera = camera || state;
+ var html = document.documentElement;
+ var height = svg.clientHeight;
+ var ordinary = html.getAttribute('data-embed') !== 'true' &&
+ html.getAttribute('data-present') !== 'true' &&
+ (!window.matchMedia || !window.matchMedia('print').matches);
+ // Restore ordinary flow as soon as the target reaches 100%. Chrome
+ // uses that target to resume baseline rail measurement; retaining a
+ // partially shrunk box during the CSS transition would inflate reserve.
+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {
+ var style = getComputedStyle(container);
+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']
+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);
+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';
+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);
+ compactPageFlow = true;
+ } else if (compactPageFlow) {
+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);
+ else container.style.removeProperty('height');
+ compactPageFlow = false;
+ }
+ }
function syncViewportClip() {
if (clipFrame) cancelAnimationFrame(clipFrame);
clipFrame = 0;
function sample() {
clipFrame = 0;
var rendered = sampleRenderedState();
+ syncPageFlow(rendered);
clipToViewport(rendered);
+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();
if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);
}
sample();
@@ -10321,12 +10927,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function apply() {
clamp();
svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';
+ svg.setAttribute('data-view-scale', String(state.scale));
syncViewportClip();
renderControls();
- outBtn.disabled = state.scale <= 1;
- inBtn.disabled = state.scale >= 3;
+ outBtn.disabled = state.scale <= minimumZoom;
+ inBtn.disabled = state.scale >= maximumZoom;
container.classList.toggle('is-pannable', state.scale > 1);
- svg.setAttribute('data-view-scale', String(state.scale));
if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();
if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {
Archify.viewerChromeLayout.schedule();
@@ -10420,8 +11026,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
options = options || {};
if (options.manual !== false) interruptCamera();
var previous = state.scale;
- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));
+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));
if (next === previous) return;
+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;
+ var before = longDiagram ? svg.getBoundingClientRect() : null;
+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;
+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;
+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;
+ var documentTop = before ? window.scrollY + before.top - state.y : 0;
var centerX = (svg.clientWidth || 1) / 2;
var centerY = (svg.clientHeight || 1) / 2;
var contentX = (centerX - state.x) / previous;
@@ -10430,6 +11042,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
state.x = centerX - contentX * next;
state.y = centerY - contentY * next;
apply();
+ if (longDiagram) {
+ var scaledHeight = svg.clientHeight * next;
+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y
+ : documentTop + state.y + logicalY * next - anchorY;
+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });
+ }
}
function reset(options) {
options = options || {};
@@ -10686,6 +11304,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
else apply();
});
});
+ // Reader width and Chrome reserve can change without a window resize.
+ // Observe their resulting sizes; the SVG remains intrinsically sized, so
+ // the outer flow height cannot feed back into its camera base.
+ if (typeof ResizeObserver === 'function') {
+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });
+ flowObserver.observe(svg);
+ flowObserver.observe(container);
+ }
+ if (typeof MutationObserver === 'function') {
+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })
+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });
+ }
+ var printMedia = window.matchMedia && window.matchMedia('print');
+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });
window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });
apply();
pinControls();
@@ -11566,6 +12198,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var links = document.createElement('em');
links.textContent = badge;
links.title = context.kind === 'focus' ? badge : action;
+ if (item.links === 0) links.setAttribute('data-zero', 'true');
var meta = document.createElement('small');
meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');
meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');
@@ -11806,6 +12439,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
})();
+
/* ============================================================
Route Probe — shortest directed path over compiled semantics.
The graph is read from renderer-owned stable IDs and relationship
@@ -11912,7 +12546,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function edgeShapes(edge) {
if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function removeOverlay() {
Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {
@@ -12142,6 +12776,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function traceGeometry(shape, step) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -12242,6 +12878,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function journeyGeometry(shape) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -12838,6 +13476,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Semantic Lens — a counted, viewer-only legend over data-node-kind.
One selected kind reveals every authored relationship touching it.
@@ -12901,7 +13540,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function edgeShapes(edge) {
if (!edge) return [];
if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function legendSourceBounds(entry) {
var bounds = null;
@@ -13074,6 +13713,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function flowGeometry(shape, direction, step) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -13511,6 +14152,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Diagram Guide — a factual command deck over existing interactions.
Counts come from compiled semantics; actions delegate to Finder, Route
diff --git a/examples/maka-architecture.html b/examples/maka-architecture.html
index e5245efe..90783f64 100644
--- a/examples/maka-architecture.html
+++ b/examples/maka-architecture.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.17.0-dev.1">
+ <meta name="generator" content="archify 3.0.2-dev.1">
<meta name="archify-reader-contract" content="declared-wide-v1">
<title>Maka Diagram</title>
<script>
@@ -218,7 +218,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
[data-theme="light"] {
--bg: #f4f5f7;
--grid: #e9edf2;
- --canvas-dot: #d9dee5;
+ --canvas-dot: #e2e7ec;
--text: #111827;
--text-muted: #5b6474;
--text-dim: #9aa3b2;
@@ -599,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
color: var(--frontend-stroke);
}
- /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored
- SVG/viewBox while the runtime chooses a desktop width from the actual
- vertical budget. This avoids device-specific files and breakpoint
- jumps between a laptop and a tall monitor. */
+ /* The reader owns only the outer scale. Compact automatic sequences fit at
+ their authored text size or larger. Long sequences and waterfall rows
+ favor reading width and page scroll; other diagrams keep height fitting.
+ Small automatic canvases retain a modest scale inside a usable shell.
+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */
.container {
width: 100%;
max-width: var(--archify-reader-width, 1440px);
margin: 0 auto;
}
+ html[data-reader-area="true"] .diagram-container {
+ min-height: var(--archify-diagram-min-height);
+ display: flex;
+ align-items: center;
+ }
+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }
+ /* The original SVG legend can use the outer corner while the capped or fitted
+ diagram stays centered. The container still clips all outer paint. */
+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }
+ .diagram-container [data-reader-legend-corner] {
+ transform-origin: 0 0;
+ transform-box: view-box;
+ transform: var(--archify-reader-legend-transform);
+ }
+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {
+ min-width: 0;
+ max-width: var(--archify-diagram-max-width);
+ margin-inline: auto;
+ }
@media (min-width: 768px) and (max-height: 920px) {
.header { margin-bottom: 1rem; }
.diagram-container { padding: 1rem; }
@@ -806,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
pointer-events: none;
}
html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }
- html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {
+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {
content: "";
position: absolute;
inset: 0;
@@ -988,8 +1008,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
.diagram-nav-icon {
display: block;
- width: 0.875rem;
- height: 0.875rem;
+ width: 0.95rem;
+ height: 0.95rem;
margin: auto;
background: currentColor;
-webkit-mask-position: center;
@@ -1053,8 +1073,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.diagram-nav #btn-overview-map::before,
.diagram-nav #btn-semantic-lens::before {
flex: none;
- width: 0.875rem;
- height: 0.875rem;
+ width: 0.95rem;
+ height: 0.95rem;
background: currentColor;
content: "";
opacity: 0.85;
@@ -1068,21 +1088,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.diagram-nav [data-view="out"],
.diagram-nav [data-view="reset"],
.diagram-nav [data-view="in"] {
+ position: relative;
border-radius: 0;
- background: color-mix(in srgb, var(--text) 4.5%, transparent);
+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);
}
.diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }
.diagram-nav [data-view="out"]::before { display: none; }
.diagram-nav [data-view="reset"],
.diagram-nav [data-view="in"] { margin-left: -0.0625rem; }
.diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }
+ .diagram-nav [data-view="reset"]::after,
+ .diagram-nav [data-view="in"]::after {
+ position: absolute;
+ top: 0.55rem;
+ bottom: 0.55rem;
+ left: 0;
+ width: 1px;
+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);
+ content: "";
+ pointer-events: none;
+ }
.diagram-nav [data-view="out"]:hover,
.diagram-nav [data-view="reset"]:hover,
- .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }
.diagram-nav [data-view="out"]:disabled,
.diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }
.diagram-nav [data-view="out"]:disabled:hover,
- .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }
+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }
.diagram-nav [data-view="reset"] { min-width: 3.25rem; }
.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,
.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }
@@ -2326,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
gap: 0.55rem;
margin: 0 0.55rem 0.55rem;
padding: 0 0.7rem;
- min-height: 2.6rem;
+ min-height: 2.35rem;
border: 1px solid var(--toolbar-border);
border-radius: 0.55rem;
background: color-mix(in srgb, var(--panel) 78%, transparent);
@@ -2336,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }
.node-finder-search:focus-within {
border-color: var(--frontend-stroke);
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);
}
.node-finder-input {
appearance: none;
@@ -2374,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
background: color-mix(in srgb, var(--panel) 54%, transparent);
scroll-padding-block: 0.25rem;
scrollbar-width: thin;
+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;
+ }
+ /* Slim overlay-style thumb instead of the chunky platform default. */
+ .node-finder-results::-webkit-scrollbar { width: 10px; }
+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }
+ .node-finder-results::-webkit-scrollbar-thumb {
+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);
+ border: 3px solid transparent;
+ border-radius: 999px;
+ background-clip: padding-box;
+ }
+ .node-finder-results::-webkit-scrollbar-thumb:hover {
+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);
+ border: 3px solid transparent;
+ background-clip: padding-box;
}
html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }
.node-finder-result {
@@ -2381,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.2rem 0.75rem;
width: 100%;
- min-height: 3.25rem;
- padding: 0.58rem 0.65rem;
+ min-height: 3rem;
+ padding: 0.52rem 0.65rem;
border: 0;
border-radius: 0;
background: transparent;
@@ -2423,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
font-size: 0.625rem;
font-style: normal;
}
+ /* A zero count is absence, not information — let it recede. */
+ .node-finder-result em[data-zero] { color: var(--text-faint); }
.node-finder[data-context^="route-"] .node-finder-result em {
padding: 0.1rem 0.3rem;
border: 1px solid color-mix(in srgb, currentColor 52%, transparent);
@@ -2458,6 +2507,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
border-radius: 0.75rem;
border: 1px solid var(--panel-border);
padding: 1.125rem 1.25rem;
+ /* Card notes are authored prose and may carry an unbreakable run such as a
+ slash-joined pipeline or a long identifier. Without this, that run sets the
+ card's min-content width, spills past its track in every rail placement,
+ and pushes the whole page into horizontal overflow at desktop widths.
+ `anywhere` rather than `break-word` because only `anywhere` shrinks the
+ intrinsic minimum the layout is sized from. */
+ overflow-wrap: anywhere;
}
html[data-preset="signal-flow"] .card {
@@ -3494,6 +3550,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
background: transparent;
box-shadow: none;
}
+ /* The motion button breathes on the same shared cycle as the cascade, so the
+ chrome keeps time with the wave it controls. The cycle length lives on the
+ diagram SVG, so chrome presets mirror it here. */
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {
+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;
+ }
+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }
+ @keyframes archify-motion-dot-breathe {
+ 0%, 100% { opacity: 1; transform: scale(1); }
+ 46% { opacity: 0.55; transform: scale(0.72); }
+ }
.toolbar .export-menu {
position: absolute;
top: calc(100% + 0.125rem);
@@ -4030,10 +4097,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }
html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {
- filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));
+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));
+ filter: var(--ambient-node-base-filter);
}
html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {
- filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
+ filter: var(--ambient-node-base-filter);
}
html[data-preset="classic"] .diagram-container > svg [data-edge-from] {
stroke-linecap: round;
@@ -4166,41 +4235,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
filter: drop-shadow(0 0 7px var(--frontend-stroke));
outline: none;
}
- /* Verified Source Beacons are installed at runtime only for nodes whose
- repository evidence passed the local revision/blob/line checks. They
- live inside the owning node so every focus, route, story, and guided
- view keeps one coherent opacity state. Export serialization removes
- them before producing the canonical SVG or any derived visual. */
- .source-evidence-beacon {
- pointer-events: none;
- opacity: 0.76;
- transition: opacity 160ms ease, filter 160ms ease;
- }
- .source-evidence-beacon rect {
- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));
- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));
- stroke-width: 1;
- vector-effect: non-scaling-stroke;
- }
- .source-evidence-beacon text {
- fill: var(--backend-stroke);
- font-size: 5.5px;
- font-weight: 800;
- letter-spacing: 0.06em;
- text-anchor: middle;
- text-transform: uppercase;
- }
- svg [data-node-id]:hover .source-evidence-beacon,
- svg [data-node-id]:focus-visible .source-evidence-beacon,
- svg [data-node-id][data-focus-selected] .source-evidence-beacon {
- opacity: 1;
- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));
- }
- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }
- svg[data-preset="blueprint"] .source-evidence-beacon rect {
- rx: 0.8px;
- filter: none;
- }
svg [data-legend-kind][role="button"] { cursor: pointer; }
svg [data-legend-kind]:focus { outline: none; }
svg [data-legend-hit] {
@@ -4691,69 +4725,190 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
.c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }
.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }
- /* Optional trace animation, enabled only by meta.animation = "trace".
- The ordinary viewer performs one ambient pass and then restores the
- authored solid/security/async line language. WebM samples the same
- authored geometry into an explicit canvas timeline. */
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {
- animation: archify-edge-flow 2.4s linear 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {
- animation: archify-edge-flow 2.4s linear 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {
- transform-box: fill-box;
- transform-origin: center;
- animation: archify-node-pulse 3.6s ease-in-out 1;
- animation-delay: calc(var(--step, 0) * 160ms);
- }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {
+ /* Live turns each edge into a small light show on one shared cycle: a comet
+ (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,
+ leaves a soft wake, and lands as a ripple on the target node. Original line
+ language and markers remain static. Each edge's phase follows the authored
+ step order — source-node rank, or chronological order in sequence
+ diagrams — so the whole diagram ripples downstream instead of marching
+ uniformly. Node entry is bounded to one pass per document, then a soft
+ node glow follows the authored step order. */
+ svg[data-animation="trace"] {
+ --flow-cycle: 6.4s;
+ --flow-step-delay: 0.2s;
+ --flow-halo-peak: 0.13;
+ --flow-tail-peak: 0.34;
+ --flow-head-peak: 0.95;
+ --flow-wake-peak: 0.08;
+ --flow-ripple-peak: 0.55;
+ --flow-ripple-echo-peak: 0.22;
+ }
+ .ambient-edge-flow {
+ fill: none;
+ stroke: var(--arrow-emphasis);
stroke-linecap: round;
- filter: drop-shadow(0 0 3px var(--arrow-emphasis));
- animation-duration: 1.75s;
- }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }
- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
- animation-duration: 3.1s;
- }
- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {
- stroke-linecap: square;
- filter: none;
- animation-duration: 2.15s;
+ pointer-events: none;
+ display: none;
}
- svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }
- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
- animation-name: archify-blueprint-node-pulse;
- animation-duration: 3.8s;
+ .ambient-flow-wake {
+ stroke-width: 3.2;
+ stroke-dasharray: var(--flow-dasharray, none);
+ animation-name: archify-flow-wake;
}
- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {
- filter: none;
- animation-duration: 2.2s;
+ .ambient-flow-halo {
+ stroke-width: 5;
+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));
+ animation-name: archify-cascade-halo;
}
- svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }
- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
- animation-name: archify-editorial-node-pulse;
- animation-duration: 3.5s;
+ .ambient-flow-tail {
+ stroke-width: 2.4;
+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));
+ animation-name: archify-cascade-tail;
}
- /* Embedded proofs stay static so proof grids are calm instead of leaving
- ambient trace loops on. */
- html[data-embed="true"] svg[data-animation="trace"] [data-animate],
- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {
- animation: none !important;
- stroke-dashoffset: 0;
+ .ambient-flow-head {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);
+ stroke-width: 2.2;
+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));
+ animation-name: archify-cascade-head;
}
- html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],
- html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {
- animation: none !important;
- stroke-dashoffset: 0;
+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }
+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }
+ .ambient-flow-ripple {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);
+ stroke-width: 2;
+ animation-name: archify-flow-ripple;
+ }
+ .ambient-flow-ripple-echo {
+ stroke-width: 1.2;
+ animation-name: archify-flow-ripple-echo;
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {
+ display: inline;
+ animation-duration: var(--flow-cycle, 6.4s);
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-delay: var(--flow-delay, 0s);
+ /* Without backwards fill a delayed layer would sit at its natural opacity
+ (fully lit) until its phase arrives. */
+ animation-fill-mode: backwards;
+ }
+ /* Each decorative flow follows its owning edge through tree visibility. */
+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }
+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }
+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }
+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }
+ /* On light canvases the cascade reads by saturation instead of bloom: the
+ head and inner ripple mix toward ink instead of white, and every layer's
+ peak rises so the wave survives the bright background. */
+ html[data-theme="light"] svg[data-animation="trace"] {
+ --flow-halo-peak: 0.22;
+ --flow-tail-peak: 0.5;
+ --flow-wake-peak: 0.13;
+ --flow-ripple-echo-peak: 0.3;
+ }
+ html[data-theme="light"] .ambient-flow-head {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);
+ stroke-width: 2.4;
+ }
+ html[data-theme="light"] .ambient-flow-ripple {
+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);
+ }
+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {
+ transform-box: fill-box;
+ transform-origin: center;
+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ /* Node glow follows each node's authored step on the shared cycle; it does
+ not track incoming edge arrivals. During the bounded entrance all three
+ animations run; the entrance pulse is listed after the repeating glow and
+ wins on filter until it completes. */
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),
+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),
+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);
+ }
+ @keyframes archify-flow-wake {
+ 0% { opacity: 0; }
+ 24% { opacity: var(--flow-wake-peak, 0.08); }
+ 62% { opacity: var(--flow-wake-peak, 0.08); }
+ 82%, 100% { opacity: 0; }
+ }
+ @keyframes archify-cascade-halo {
+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }
+ 4% { opacity: var(--flow-halo-peak, 0.13); }
+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }
+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }
+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }
+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }
+ }
+ @keyframes archify-cascade-tail {
+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }
+ 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }
+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }
+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }
+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }
+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }
+ }
+ @keyframes archify-cascade-head {
+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }
+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }
+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }
+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }
+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }
+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }
+ }
+ @keyframes archify-flow-ripple {
+ 0%, 60% { r: 2px; opacity: 0; }
+ 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }
+ 78%, 100% { r: 17px; opacity: 0; }
+ }
+ @keyframes archify-flow-ripple-echo {
+ 0%, 63% { r: 2px; opacity: 0; }
+ 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }
+ 84%, 100% { r: 26px; opacity: 0; }
+ }
+ @keyframes archify-node-receive {
+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }
+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }
+ }
+ @keyframes archify-node-enter {
+ from { opacity: 0; }
+ to { opacity: 1; }
}
- @keyframes archify-edge-flow {
- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }
- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }
- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }
- 100% { stroke-dashoffset: 0; opacity: 1; }
+ @media print {
+ .ambient-edge-flow { display: none !important; animation: none !important; }
+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }
}
@keyframes archify-node-pulse {
0%, 72%, 100% { filter: none; stroke-width: 1.5; }
@@ -4820,10 +4975,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
50% { opacity: 0.48; transform: scale(0.78); }
}
@media (prefers-reduced-motion: reduce) {
+ .ambient-edge-flow { display: none !important; animation: none !important; }
html[data-preset="signal-flow"] .diagram-container::before {
animation: none !important;
}
.pulse-dot { animation: none !important; }
+ .motion-control-dot { animation: none !important; }
svg[data-animation="trace"] [data-animate] {
animation: none !important;
stroke-dashoffset: 0;
@@ -4859,7 +5016,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
filter: none;
}
.relationship-pulse-overlay { display: none !important; }
- .source-evidence-beacon,
svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }
}
</style>
@@ -4979,11 +5135,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
</div>
- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>
+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
- <svg viewBox="0 0 1200 608" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
+ <svg viewBox="0 0 1200 608" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
<title id="archify-diagram-title">Maka</title>
<desc id="archify-diagram-description">Local-first desktop AI workbench — sessions, tools, permissions, recovery</desc>
<!-- Definitions -->
@@ -5016,55 +5172,55 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Connection paths (before components for correct z-order) -->
<g data-graph-role="automatic-crossover" style="--step:0">
<path data-graph-role="automatic-crossover-underlay" d="M 160 330 L 200 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="user" data-edge-to="ui" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="user" data-edge-to="ui" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:1">
<path data-graph-role="automatic-crossover-underlay" d="M 340 330 L 390 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="ui" data-edge-to="main" data-edge-label="IPC" data-edge-key="1" data-composition-points="340,330;390,330" data-composition-crossover="halo" data-composition-independent="true" d="M 340 330 L 390 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="ui" data-edge-to="main" data-edge-label="IPC" data-edge-key="1" data-composition-points="340,330;390,330" data-composition-crossover="halo" data-composition-independent="true" d="M 340 330 L 390 330" class="a-emphasis" data-animate="edge" style="--step:1" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:2">
<path data-graph-role="automatic-crossover-underlay" d="M 530 330 L 580 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="main" data-edge-to="session" data-edge-key="2" data-composition-points="530,330;580,330" data-composition-crossover="halo" data-composition-independent="true" d="M 530 330 L 580 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="main" data-edge-to="session" data-edge-key="2" data-composition-points="530,330;580,330" data-composition-crossover="halo" data-composition-independent="true" d="M 530 330 L 580 330" class="a-emphasis" data-animate="edge" style="--step:2" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:3">
<path data-graph-role="automatic-crossover-underlay" d="M 730 330 L 780 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="session" data-edge-to="agentrun" data-edge-label="turn" data-edge-key="3" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="session" data-edge-to="agentrun" data-edge-label="turn" data-edge-key="3" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" data-animate="edge" style="--step:3" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:4">
<path data-graph-role="automatic-crossover-underlay" d="M 920 330 L 970 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agentrun" data-edge-to="model" data-edge-key="4" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="agentrun" data-edge-to="model" data-edge-key="4" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:5">
<path data-graph-role="automatic-crossover-underlay" d="M 1040 300 L 1040 200" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="model" data-edge-to="providers" data-edge-label="stream" data-edge-key="5" data-composition-points="1040,300;1040,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1040 300 L 1040 200" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="model" data-edge-to="providers" data-edge-label="stream" data-edge-key="5" data-composition-points="1040,300;1040,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1040 300 L 1040 200" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:6">
<path data-graph-role="automatic-crossover-underlay" d="M 655 200 L 655 300" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="bots" data-edge-to="session" data-edge-key="6" data-composition-points="655,200;655,300" data-composition-crossover="halo" data-composition-independent="true" d="M 655 200 L 655 300" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
+ <path data-edge-from="bots" data-edge-to="session" data-edge-key="6" data-composition-points="655,200;655,300" data-composition-crossover="halo" data-composition-independent="true" d="M 655 200 L 655 300" class="a-dashed" data-animate="edge" style="--step:6" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:7">
<path data-graph-role="automatic-crossover-underlay" d="M 850 300 L 850 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agentrun" data-edge-to="permission" data-edge-key="7" data-composition-points="850,300;850,200" data-composition-crossover="halo" data-composition-independent="true" d="M 850 300 L 850 200" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
+ <path data-edge-from="agentrun" data-edge-to="permission" data-edge-key="7" data-composition-points="850,300;850,200" data-composition-crossover="halo" data-composition-independent="true" d="M 850 300 L 850 200" class="a-security" data-animate="edge" style="--step:7" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:8">
<path data-graph-role="automatic-crossover-underlay" d="M 655 360 L 655 440" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="session" data-edge-to="storage" data-edge-key="8" data-composition-points="655,360;655,440" data-composition-crossover="halo" data-composition-independent="true" d="M 655 360 L 655 440" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
+ <path data-edge-from="session" data-edge-to="storage" data-edge-key="8" data-composition-points="655,360;655,440" data-composition-crossover="halo" data-composition-independent="true" d="M 655 360 L 655 440" class="a-dashed" data-animate="edge" style="--step:8" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:9">
<path data-graph-role="automatic-crossover-underlay" d="M 850 360 L 850 440" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="agentrun" data-edge-to="toolrt" data-edge-key="9" data-composition-points="850,360;850,440" data-composition-crossover="halo" data-composition-independent="true" d="M 850 360 L 850 440" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>
+ <path data-edge-from="agentrun" data-edge-to="toolrt" data-edge-key="9" data-composition-points="850,360;850,440" data-composition-crossover="halo" data-composition-independent="true" d="M 850 360 L 850 440" class="a-default" data-animate="edge" style="--step:9" stroke-width="1.5" marker-end="url(#arrowhead)"/>
</g>
<g data-graph-role="automatic-crossover" style="--step:10">
<path data-graph-role="automatic-crossover-underlay" d="M 920 470 L 970 470" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>
- <path data-edge-from="toolrt" data-edge-to="tools" data-edge-key="10" data-composition-points="920,470;970,470" data-composition-crossover="halo" data-composition-independent="true" d="M 920 470 L 970 470" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
+ <path data-edge-from="toolrt" data-edge-to="tools" data-edge-key="10" data-composition-points="920,470;970,470" data-composition-crossover="halo" data-composition-independent="true" d="M 920 470 L 970 470" class="a-emphasis" data-animate="edge" style="--step:10" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
</g>
- <path data-edge-from="toolrt" data-edge-to="permission" data-edge-key="11" data-composition-points="850,500;850,540;1160,540;1160,100;850,100;850,140" d="M 850 500 L 850 532 Q 850 540 858 540 L 1152 540 Q 1160 540 1160 532 L 1160 108 Q 1160 100 1152 100 L 858 100 Q 850 100 850 108 L 850 140" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
+ <path data-edge-from="toolrt" data-edge-to="permission" data-edge-key="11" data-composition-points="850,500;850,540;1160,540;1160,100;850,100;850,140" d="M 850 500 L 850 532 Q 850 540 858 540 L 1152 540 Q 1160 540 1160 532 L 1160 108 Q 1160 100 1152 100 L 858 100 Q 850 100 850 108 L 850 140" class="a-security" data-animate="edge" style="--step:11" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>
<!-- Components -->
<g id="node-user" data-node-id="user" data-node-label="You" tabindex="0" role="button" aria-label="Focus You, desktop user, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="desktop user" data-node-context="Architecture component">
<title>You · desktop user · Architecture component</title>
<rect x="40" y="300" width="120" height="60" rx="6" class="c-mask"/>
- <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" stroke-width="1.5"/>
+ <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(46 306) scale(0.6875)">
<rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/>
<path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>
@@ -5076,7 +5232,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-ui" data-node-id="ui" data-node-label="Desktop UI" tabindex="0" role="button" aria-label="Focus Desktop UI, React renderer, Electron app + packages/runtime" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="React renderer" data-node-context="Electron app + packages/runtime">
<title>Desktop UI · React renderer · Electron app + packages/runtime</title>
<rect x="200" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="200" y="300" width="140" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="200" y="300" width="140" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:1" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(206 306) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5090,7 +5246,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-main" data-node-id="main" data-node-label="Main Process" tabindex="0" role="button" aria-label="Focus Main Process, Electron IPC, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="Electron IPC" data-node-context="Electron app + packages/runtime">
<title>Main Process · Electron IPC · Electron app + packages/runtime</title>
<rect x="390" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="390" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="390" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:2" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(396 306) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5101,7 +5257,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-session" data-node-id="session" data-node-label="SessionManager" tabindex="0" role="button" aria-label="Focus SessionManager, public runtime API, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="public runtime API" data-node-context="Electron app + packages/runtime">
<title>SessionManager · public runtime API · Electron app + packages/runtime</title>
<rect x="580" y="300" width="150" height="60" rx="6" class="c-mask"/>
- <rect x="580" y="300" width="150" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="580" y="300" width="150" height="60" rx="6" class="c-backend" data-animate="node" style="--step:3" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(586 306) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5112,7 +5268,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-agentrun" data-node-id="agentrun" data-node-label="AgentRun" tabindex="0" role="button" aria-label="Focus AgentRun, turn + recovery, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="turn + recovery" data-node-context="Electron app + packages/runtime">
<title>AgentRun · turn + recovery · Electron app + packages/runtime</title>
<rect x="780" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="780" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="780" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:4" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(786 306) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5123,7 +5279,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-model" data-node-id="model" data-node-label="ModelAdapter" tabindex="0" role="button" aria-label="Focus ModelAdapter, stream + usage, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="stream + usage" data-node-context="Electron app + packages/runtime">
<title>ModelAdapter · stream + usage · Electron app + packages/runtime</title>
<rect x="970" y="300" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="970" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>
+ <rect x="970" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:5" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(976 306) scale(0.6875)">
<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/>
</g>
@@ -5134,7 +5290,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-providers" data-node-id="providers" data-node-label="Model Providers" tabindex="0" role="button" aria-label="Focus Model Providers, AI SDK / Ollama, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="AI SDK / Ollama" data-node-tag="API keys local" data-node-context="Architecture component">
<title>Model Providers · AI SDK / Ollama · Architecture component · API keys local</title>
<rect x="970" y="140" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="970" y="140" width="140" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>
+ <rect x="970" y="140" width="140" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:6" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(976 146) scale(0.6875)">
<path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/>
</g>
@@ -5146,7 +5302,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-bots" data-node-id="bots" data-node-label="Bots &amp; Gateway" tabindex="0" role="button" aria-label="Focus Bots &amp; Gateway, Telegram · Feishu · HTTP, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="Telegram · Feishu · HTTP" data-node-context="Architecture component">
<title>Bots &amp; Gateway · Telegram · Feishu · HTTP · Architecture component</title>
<rect x="580" y="140" width="150" height="60" rx="6" class="c-mask"/>
- <rect x="580" y="140" width="150" height="60" rx="6" class="c-external" stroke-width="1.5"/>
+ <rect x="580" y="140" width="150" height="60" rx="6" class="c-external" data-animate="node" style="--step:6" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(586 146) scale(0.6875)">
<rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/>
<path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>
@@ -5158,7 +5314,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-permission" data-node-id="permission" data-node-label="Permission" tabindex="0" role="button" aria-label="Focus Permission, policy engine, Electron app + packages/runtime › trust boundary" aria-pressed="false" data-node-kind="security" data-node-sublabel="policy engine" data-node-tag="fail-closed" data-node-context="Electron app + packages/runtime › trust boundary">
<title>Permission · policy engine · Electron app + packages/runtime › trust boundary · fail-closed</title>
<rect x="780" y="140" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="780" y="140" width="140" height="60" rx="6" class="c-security" stroke-width="1.5"/>
+ <rect x="780" y="140" width="140" height="60" rx="6" class="c-security" data-animate="node" style="--step:8" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(786 146) scale(0.6875)">
<path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/>
<path d="m5.8 8 1.5 1.5 3-3"/>
@@ -5171,7 +5327,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-storage" data-node-id="storage" data-node-label="Local Storage" tabindex="0" role="button" aria-label="Focus Local Storage, userData JSONL, Electron app + packages/runtime › trust boundary" aria-pressed="false" data-node-kind="database" data-node-sublabel="userData JSONL" data-node-context="Electron app + packages/runtime › trust boundary">
<title>Local Storage · userData JSONL · Electron app + packages/runtime › trust boundary</title>
<rect x="580" y="440" width="150" height="60" rx="6" class="c-mask"/>
- <rect x="580" y="440" width="150" height="60" rx="6" class="c-database" stroke-width="1.5"/>
+ <rect x="580" y="440" width="150" height="60" rx="6" class="c-database" data-animate="node" style="--step:9" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(586 446) scale(0.6875)">
<ellipse cx="8" cy="4" rx="5" ry="2"/>
<path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>
@@ -5183,7 +5339,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-toolrt" data-node-id="toolrt" data-node-label="ToolRuntime" tabindex="0" role="button" aria-label="Focus ToolRuntime, validate · abort, Electron app + packages/runtime" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="validate · abort" data-node-context="Electron app + packages/runtime">
<title>ToolRuntime · validate · abort · Electron app + packages/runtime</title>
<rect x="780" y="440" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="780" y="440" width="140" height="60" rx="6" class="c-messagebus" stroke-width="1.5"/>
+ <rect x="780" y="440" width="140" height="60" rx="6" class="c-messagebus" data-animate="node" style="--step:10" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="messagebus" class="semantic-sigil s-messagebus" transform="translate(786 446) scale(0.6875)">
<path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/>
<circle cx="5" cy="4.5" r="1" class="sigil-fill"/>
@@ -5197,7 +5353,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<g id="node-tools" data-node-id="tools" data-node-label="Local Tools" tabindex="0" role="button" aria-label="Focus Local Tools, Read · Write · Bash, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="Read · Write · Bash" data-node-context="Architecture component">
<title>Local Tools · Read · Write · Bash · Architecture component</title>
<rect x="970" y="440" width="140" height="60" rx="6" class="c-mask"/>
- <rect x="970" y="440" width="140" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>
+ <rect x="970" y="440" width="140" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:11" stroke-width="1.5"/>
<g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(976 446) scale(0.6875)">
<rect x="2" y="3" width="12" height="10" rx="2"/>
<path d="M2 6.5h12"/>
@@ -5245,33 +5401,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<!-- Legend -->
<g data-legend="" data-legend-bridge="">
<text x="40" y="572" class="t-primary" font-size="12" font-weight="650">Legend</text>
- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="592" data-legend-width="83">
+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="592" data-legend-width="93">
<rect x="40" y="583" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/>
<text x="62" y="592" class="t-muted" font-size="10" font-weight="500">Frontend</text>
</g>
- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="592" data-legend-width="78">
- <rect x="145" y="583" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>
- <text x="167" y="592" class="t-muted" font-size="10" font-weight="500">Backend</text>
+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="155" data-legend-baseline="592" data-legend-width="87">
+ <rect x="155" y="583" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>
+ <text x="177" y="592" class="t-muted" font-size="10" font-weight="500">Backend</text>
</g>
- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="245" data-legend-baseline="592" data-legend-width="83">
- <rect x="245" y="583" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>
- <text x="267" y="592" class="t-muted" font-size="10" font-weight="500">Database</text>
+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="264" data-legend-baseline="592" data-legend-width="93">
+ <rect x="264" y="583" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>
+ <text x="286" y="592" class="t-muted" font-size="10" font-weight="500">Database</text>
</g>
- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="350" data-legend-baseline="592" data-legend-width="68">
- <rect x="350" y="583" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>
- <text x="372" y="592" class="t-muted" font-size="10" font-weight="500">Cloud</text>
+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="379" data-legend-baseline="592" data-legend-width="74">
+ <rect x="379" y="583" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>
+ <text x="401" y="592" class="t-muted" font-size="10" font-weight="500">Cloud</text>
</g>
- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="440" data-legend-baseline="592" data-legend-width="83">
- <rect x="440" y="583" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>
- <text x="462" y="592" class="t-muted" font-size="10" font-weight="500">Security</text>
+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="475" data-legend-baseline="592" data-legend-width="93">
+ <rect x="475" y="583" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>
+ <text x="497" y="592" class="t-muted" font-size="10" font-weight="500">Security</text>
</g>
- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="545" data-legend-baseline="592" data-legend-width="98">
- <rect x="545" y="583" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>
- <text x="567" y="592" class="t-muted" font-size="10" font-weight="500">Message bus</text>
+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="590" data-legend-baseline="592" data-legend-width="112">
+ <rect x="590" y="583" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>
+ <text x="612" y="592" class="t-muted" font-size="10" font-weight="500">Message bus</text>
</g>
- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="665" data-legend-baseline="592" data-legend-width="83">
- <rect x="665" y="583" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>
- <text x="687" y="592" class="t-muted" font-size="10" font-weight="500">External</text>
+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="724" data-legend-baseline="592" data-legend-width="93">
+ <rect x="724" y="583" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>
+ <text x="746" y="592" class="t-muted" font-size="10" font-weight="500">External</text>
</g>
</g>
</svg>
@@ -5432,7 +5588,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
<p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>
<button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes &amp; index</span></button>
<div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">
- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>
+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button>
<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>
<button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>
<button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>
@@ -5532,11 +5688,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function hasDrawableGeometry(element) {
- if (!element) return false;
+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;
var geometries = /^(path|line|polyline)$/i.test(element.tagName)
? [element]
: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));
return geometries.some(function (geometry) {
+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;
var source = geometry.tagName.toLowerCase() === 'path'
? geometry.getAttribute('d')
: geometry.tagName.toLowerCase() === 'polyline'
@@ -5781,6 +5938,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function cleanExportClone(clone) {
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {
+ el.remove();
+ });
+ // Route interaction rewrites CSS declarations through CSSOM. Normalize
+ // authored motion delays on the clone so exported bytes do not depend
+ // on whether the reader traced a route before downloading.
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {
+ var step = el.style.getPropertyValue('--step');
+ if (step) el.setAttribute('style', el.style.cssText);
+ });
// View transforms and neighborhood focus are HTML exploration state,
// never part of a downloaded full-diagram artifact.
clone.style.removeProperty('transform');
@@ -5801,6 +5968,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.removeAttribute('data-route-journey');
clone.removeAttribute('data-share-route');
clone.removeAttribute('data-share-reach');
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {
+ el.removeAttribute('data-reader-legend-corner');
+ el.style.removeProperty('--archify-reader-legend-transform');
+ });
Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {
el.remove();
});
@@ -5846,7 +6017,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
});
Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {
var originalLabel = el.getAttribute('data-source-evidence-original-label');
- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');
+ if (originalLabel == null) el.removeAttribute('aria-label');
else el.setAttribute('aria-label', originalLabel);
el.removeAttribute('data-source-evidence-count');
el.removeAttribute('data-source-evidence-original-label');
@@ -5909,6 +6080,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {
el.setAttribute('aria-pressed', 'false');
});
+ // A downloaded tree is always the complete hierarchy: collapsing is a
+ // reading aid, never a silent change to what the artifact contains.
+ clone.removeAttribute('data-tree-any-collapsed');
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {
+ el.removeAttribute('data-tree-hidden');
+ el.removeAttribute('data-tree-collapsed');
+ });
+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {
+ el.setAttribute('aria-expanded', 'true');
+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');
+ });
return !clone.hasAttribute('data-view-scale') &&
!clone.hasAttribute('data-focus-active') &&
!clone.hasAttribute('data-reach-active') &&
@@ -5924,9 +6106,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
!clone.hasAttribute('data-route-journey') &&
!clone.hasAttribute('data-share-route') &&
!clone.hasAttribute('data-share-reach') &&
+ !clone.hasAttribute('data-tree-any-collapsed') &&
!clone.style.getPropertyValue('transform') &&
!clone.style.getPropertyValue('clip-path') &&
- clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;
+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;
}
@@ -6702,13 +6885,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function samplesFor(element) {
if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];
+ var geometry = element;
+ if (element.getAttribute('data-motion-path')) {
+ geometry = element.cloneNode(false);
+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));
+ }
var length;
- try { length = element.getTotalLength(); } catch (_) { return []; }
+ try { length = geometry.getTotalLength(); } catch (_) { return []; }
if (!Number.isFinite(length) || length <= 0) return [];
var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));
var points = [];
for (var i = 0; i <= count; i++) {
- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));
+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));
}
return points;
}
@@ -7282,38 +7470,166 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var ownerToken = 0;
var ownerCleanup = null;
var lastEffectivePaused = null;
- var ambientStarted = false;
- var ambientPending = new Set();
-
- function detachAmbientBoundary() {
- if (!svg) return;
- svg.removeEventListener('animationend', onAmbientBoundary, true);
- svg.removeEventListener('animationcancel', onAmbientBoundary, true);
- }
- function settleAmbient(reason) {
- if (!capable) return false;
- ambientStarted = true;
- ambientPending.clear();
- detachAmbientBoundary();
- html.setAttribute('data-ambient-motion', 'settled');
- html.setAttribute('data-ambient-settle-reason', reason || 'complete');
- return true;
- }
- function onAmbientBoundary(event) {
- if (!ambientPending.has(event.target)) return;
- ambientPending.delete(event.target);
- if (!ambientPending.size) settleAmbient('complete');
- }
- function startAmbient() {
- if (ambientStarted || !capable) return false;
- ambientStarted = true;
- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));
- if (!ambientPending.size) return settleAmbient('empty');
- svg.addEventListener('animationend', onAmbientBoundary, true);
- svg.addEventListener('animationcancel', onAmbientBoundary, true);
- html.setAttribute('data-ambient-motion', 'running');
- html.removeAttribute('data-ambient-settle-reason');
- return true;
+ var entryStarted = false;
+ var entryPending = new Set();
+ var flowCount = 0;
+
+ // Runtime decoration carries geometry and tree visibility only. Keep each
+ // flow beside its authored edge so transforms, clipping and crossover
+ // paint order apply.
+ // Each edge carries a small light show: a comet (halo, tail, head)
+ // cascading downstream on one shared cycle, a lingering wake, and a
+ // ripple where the comet lands. Phases follow the authored step order:
+ // source-node rank where known, chronological message order in sequence
+ // diagrams.
+ function readSecondsVar(name, fallback) {
+ var value = '';
+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}
+ var seconds = parseFloat(value);
+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;
+ }
+ function nodeStep(from) {
+ // Authored IDs follow the schema's conservative identifier pattern, so
+ // direct selector interpolation stays safe here. The semantic wrapper
+ // groups the animated shape; its authored step ranks the node.
+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;
+ var shape = node ? node.querySelector('[data-animate="node"]') : null;
+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';
+ }
+ function edgePhase(shape, fallbackStep) {
+ // Sequence messages have no data-edge-from; their own authored step is
+ // already chronological, which is the right phase there.
+ var raw = nodeStep(shape.getAttribute('data-edge-from'));
+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');
+ var step = parseFloat(raw);
+ return Number.isFinite(step) ? step : fallbackStep;
+ }
+ function createFlows() {
+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);
+ var cycle = readSecondsVar('--flow-cycle', 6.4);
+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {
+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');
+ if (!d) return;
+ var anchor = shape;
+ // Tree Branches initializes after these overlays and includes their
+ // inherited ancestors in its existing collapse/expand lifecycle.
+ function tagOverlay(flow) {
+ flow.setAttribute('data-ambient-flow-overlay', 'true');
+ flow.setAttribute('aria-hidden', 'true');
+ if (shape.hasAttribute('data-tree-ancestors')) {
+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));
+ }
+ }
+ function addPath(cls) {
+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');
+ flow.setAttribute('d', d);
+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {
+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));
+ });
+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);
+ tagOverlay(flow);
+ shape.parentNode.insertBefore(flow, anchor.nextSibling);
+ anchor = flow;
+ return flow;
+ }
+ var wake = addPath('wake');
+ var len = 0;
+ try { len = wake.getTotalLength(); } catch (_) {}
+ if (!(len > 0)) {
+ wake.remove();
+ return;
+ }
+ var halo = addPath('halo');
+ var tail = addPath('tail');
+ var head = addPath('head');
+ var end = null;
+ try { end = head.getPointAtLength(len); } catch (_) {}
+ // Dashed authored lines keep their dash language through the show:
+ // the wake brightens only the authored segments and never fills the
+ // gaps back into a solid line.
+ var authoredDash = '';
+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}
+ if (authoredDash && authoredDash !== 'none') {
+ wake.style.setProperty('--flow-dasharray', authoredDash);
+ }
+ // Absolute caps keep the comet a slim streak on long edges instead
+ // of growing into a bright slab; the tail disintegrates into a
+ // sparkle of fragments behind the head, and --flow-shift trails
+ // each layer behind the head tip by its own length.
+ var headLen = Math.min(10, Math.max(4, len * 0.016));
+ var haloLen = Math.min(14, Math.max(8, len * 0.045));
+ var trail = len >= 120
+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }
+ : (len >= 60
+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }
+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });
+ var phase = edgePhase(shape, index) * stepDelay;
+ var configs = [
+ { flow: wake, dash: len, shift: 0, delay: phase },
+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },
+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },
+ { flow: head, dash: headLen, shift: 0, delay: phase },
+ ];
+ // Long edges earn a dimmer echo comet half a travel window behind.
+ if (len > 340) {
+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });
+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });
+ }
+ configs.forEach(function (cfg) {
+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');
+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');
+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');
+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');
+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);
+ });
+ // The sonar pair lands where the comet does; keep it out of the
+ // edge's mask so it can bloom over the node boundary.
+ if (end) {
+ ['ripple', 'ripple-echo'].forEach(function (kind) {
+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
+ ripple.setAttribute('cx', end.x.toFixed(1));
+ ripple.setAttribute('cy', end.y.toFixed(1));
+ ripple.setAttribute('r', '2');
+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));
+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);
+ tagOverlay(ripple);
+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');
+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);
+ anchor = ripple;
+ });
+ }
+ flowCount += 1;
+ });
+ }
+ function settleEntry() {
+ entryPending.clear();
+ svg.removeEventListener('animationend', onEntryBoundary, true);
+ svg.removeEventListener('animationcancel', onEntryBoundary, true);
+ html.setAttribute('data-ambient-entry', 'settled');
+ }
+ function onEntryBoundary(event) {
+ if (!entryPending.has(event.target)) return;
+ // The entrance settles only when each node's pulse finishes; the
+ // shorter fade-rise enter animation may end first without ending it.
+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;
+ entryPending.delete(event.target);
+ if (!entryPending.size) settleEntry();
+ }
+ function renderAmbient(suppressed) {
+ html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));
+ if (suppressed) {
+ entryStarted = true;
+ settleEntry();
+ } else if (!entryStarted) {
+ entryStarted = true;
+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));
+ if (!entryPending.size) settleEntry();
+ else {
+ svg.addEventListener('animationend', onEntryBoundary, true);
+ svg.addEventListener('animationcancel', onEntryBoundary, true);
+ html.setAttribute('data-ambient-entry', 'running');
+ }
+ }
}
function readStored() {
@@ -7348,11 +7664,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var systemPaused = reducedMotion();
var paused = effectivePaused();
html.setAttribute('data-motion', paused ? 'still' : 'live');
- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {
- settleAmbient('suppressed');
- } else if (!ambientStarted) {
- startAmbient();
- }
+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));
btn.setAttribute('aria-pressed', paused ? 'false' : 'true');
btn.disabled = systemPaused;
label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');
@@ -7457,7 +7769,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-motion');
html.removeAttribute('data-motion-owner');
html.removeAttribute('data-ambient-motion');
- html.removeAttribute('data-ambient-settle-reason');
+ html.removeAttribute('data-ambient-entry');
return {
capable: false,
pause: function () { return false; },
@@ -7473,6 +7785,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
}
+ createFlows();
html.setAttribute('data-motion-capable', 'true');
btn.hidden = false;
readerPaused = readStored() === 'still';
@@ -7482,6 +7795,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);
}
document.addEventListener('visibilitychange', syncVisibility);
+ if (typeof MutationObserver !== 'undefined') {
+ var contextObserver = new MutationObserver(render);
+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });
+ }
if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {
var ownerObserver = new MutationObserver(function () { publishOwner(); });
ownerObserver.observe(svg, {
@@ -7522,69 +7839,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Archify.sourceEvidence = (function () {
var element = document.getElementById('archify-source-evidence-data');
var payload = null;
- var svgNamespace = 'http://www.w3.org/2000/svg';
if (element) {
try {
var parsed = JSON.parse(element.textContent || 'null');
if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;
} catch (_) {}
}
- function installBeacons() {
- if (!payload) return 0;
- var svg = document.querySelector('.diagram-container svg');
- if (!svg) return 0;
- var installed = 0;
- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {
- var id = node.getAttribute('data-node-id');
- var sources = payload.nodes[id];
- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;
- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');
- var box;
- try { box = (shape || node).getBBox(); } catch (_) { return; }
- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;
-
- var count = sources.length;
- var label = viewerCount('viewer.passport.beacon', count);
- var beacon = document.createElementNS(svgNamespace, 'g');
- beacon.classList.add('source-evidence-beacon');
- beacon.setAttribute('data-source-evidence-beacon', '');
- beacon.setAttribute('aria-hidden', 'true');
- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;
- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');
- var title = document.createElementNS(svgNamespace, 'title');
- title.textContent = label;
- var plate = document.createElementNS(svgNamespace, 'rect');
- plate.setAttribute('width', '30');
- plate.setAttribute('height', '12');
- plate.setAttribute('rx', '6');
- var text = document.createElementNS(svgNamespace, 'text');
- text.setAttribute('x', '15');
- text.setAttribute('y', '8.25');
- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;
- beacon.appendChild(title);
- beacon.appendChild(plate);
- beacon.appendChild(text);
- node.appendChild(beacon);
-
- var originalLabel = node.getAttribute('aria-label') || '';
- node.setAttribute('data-source-evidence-count', String(count));
- node.setAttribute('data-source-evidence-original-label', originalLabel);
- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));
- installed += 1;
- });
- return installed;
- }
+ // Keep verified evidence discoverable to screen readers without adding
+ // visual marks. Restore first so repeated initialization never appends
+ // another count or retains one after evidence becomes unavailable.
+ var svg = document.querySelector('.diagram-container svg');
+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {
+ if (node.hasAttribute('data-source-evidence-count')) {
+ var savedLabel = node.getAttribute('data-source-evidence-original-label');
+ if (savedLabel == null) node.removeAttribute('aria-label');
+ else node.setAttribute('aria-label', savedLabel);
+ node.removeAttribute('data-source-evidence-count');
+ node.removeAttribute('data-source-evidence-original-label');
+ }
+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];
+ if (!Array.isArray(sources) || !sources.length) return;
+ var originalLabel = node.getAttribute('aria-label');
+ node.setAttribute('data-source-evidence-count', String(sources.length));
+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);
+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') +
+ viewerCount('viewer.passport.sourceCount', sources.length));
+ });
return {
available: function () { return Boolean(payload); },
repository: function () { return payload ? payload.repository : null; },
node: function (id) {
var sources = payload && payload.nodes ? payload.nodes[id] : null;
return Array.isArray(sources) ? sources.slice() : [];
- },
- installBeacons: installBeacons
+ }
+ };
+ })();
+
+ /* ============================================================
+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer
+ lays out the complete tree once and tags every node, link, and toggle
+ with its ancestors; collapsing only hides descendants, so visible nodes
+ never move and the reader keeps their place. Selecting a hidden node
+ through Finder, Outline, or a shared link expands its ancestors. Export
+ always writes the complete tree (see Export Cleanup).
+ ============================================================ */
+ Archify.treeBranches = (function () {
+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');
+ if (!svg) return { active: false };
+ var collapsed = Object.create(null);
+ var toggles = Object.create(null);
+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {
+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;
+ });
+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');
+ var expandAll = svg.querySelector('[data-tree-expand-all]');
+
+ function ancestors(el) {
+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);
+ }
+
+ function apply() {
+ Array.prototype.forEach.call(tagged, function (el) {
+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });
+ if (hidden) el.setAttribute('data-tree-hidden', '');
+ else el.removeAttribute('data-tree-hidden');
+ });
+ var any = false;
+ Object.keys(toggles).forEach(function (id) {
+ var toggle = toggles[id];
+ var isCollapsed = Boolean(collapsed[id]);
+ any = any || isCollapsed;
+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');
+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');
+ var node = svg.querySelector('[data-node-id="' + id + '"]');
+ if (node) {
+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');
+ else node.removeAttribute('data-tree-collapsed');
+ }
+ });
+ if (any) svg.setAttribute('data-tree-any-collapsed', '');
+ else svg.removeAttribute('data-tree-any-collapsed');
+ }
+
+ function setCollapsed(id, value) {
+ if (!toggles[id]) return false;
+ if (value) collapsed[id] = true;
+ else delete collapsed[id];
+ apply();
+ return true;
+ }
+
+ function toggle(id) { return setCollapsed(id, !collapsed[id]); }
+
+ // Reveal a node by expanding every collapsed ancestor; nothing else moves.
+ function reveal(id) {
+ var node = svg.querySelector('[data-node-id="' + id + '"]');
+ if (!node) return false;
+ var changed = false;
+ ancestors(node).forEach(function (ancestor) {
+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }
+ });
+ if (changed) apply();
+ return changed;
+ }
+
+ function restoreAll() {
+ collapsed = Object.create(null);
+ apply();
+ }
+
+ function activate(event) {
+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');
+ if (!target || !svg.contains(target)) return false;
+ event.preventDefault();
+ event.stopPropagation();
+ if (target.hasAttribute('data-tree-expand-all')) {
+ restoreAll();
+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');
+ if (root) root.focus();
+ } else {
+ toggle(target.getAttribute('data-tree-toggle'));
+ target.focus();
+ }
+ return true;
+ }
+
+ // Capture phase so the canvas focus handler never treats a toggle press
+ // as a background click that clears the current focus.
+ svg.addEventListener('click', activate, true);
+ svg.addEventListener('keydown', function (event) {
+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }
+ var node = event.target.closest('[data-node-id]');
+ if (!node || !svg.contains(node)) return;
+ var id = node.getAttribute('data-node-id');
+ // Arrow keys follow the tree convention: left collapses, right expands.
+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }
+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }
+ }, true);
+
+ // Focus reveals ancestors synchronously before positioning its lens.
+ // The observer also covers paths that change pressed state directly.
+ new MutationObserver(function (records) {
+ records.forEach(function (record) {
+ var el = record.target;
+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {
+ reveal(el.getAttribute('data-node-id'));
+ }
+ });
+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });
+
+ Object.keys(toggles).forEach(function (id) {
+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;
+ });
+ apply();
+
+ return {
+ active: true,
+ toggle: toggle,
+ collapse: function (id) { return setCollapsed(id, true); },
+ expand: function (id) { return setCollapsed(id, false); },
+ reveal: reveal,
+ restoreAll: restoreAll,
+ collapsedIds: function () { return Object.keys(collapsed); },
+ expandAllControl: expandAll
};
})();
- Archify.sourceEvidence.installBeacons();
+
/* ============================================================
Explore — stable-ID neighborhood focus + dependency-free pan/zoom.
@@ -8007,7 +8427,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function relationshipEdgeShapes(edge) {
if (!edge) return [];
if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function relationshipHitRecords() {
var recordsByKey = {};
@@ -8111,6 +8531,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function relationshipPulseGeometry(shape) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -8155,7 +8577,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function relationshipTokenPath(shape) {
if (!shape) return '';
var tagName = String(shape.tagName || '').toLowerCase();
- if (tagName === 'path') return shape.getAttribute('d') || '';
+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';
if (tagName === 'line') {
return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +
' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');
@@ -8916,6 +9338,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);
});
if (!normalized.length) return false;
+ // Hash restoration and internal selections use this path too. Reveal
+ // tree ancestors before measuring the selected node for its lens.
+ if (Archify.treeBranches && Archify.treeBranches.active) {
+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });
+ }
if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {
clear();
return true;
@@ -9131,6 +9558,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
window.addEventListener('scroll', requestLensPlacement, { passive: true });
window.addEventListener('resize', requestLensPlacement);
container.addEventListener('scroll', requestLensPlacement, { passive: true });
+ // Reader and Chrome may finish resizing the stage after window resize.
+ // The absolute Passport does not resize its container when reclamped.
+ if (typeof ResizeObserver === 'function') {
+ new ResizeObserver(function () {
+ if (!chip.hidden) requestLensPlacement();
+ }).observe(container);
+ }
document.addEventListener('visibilitychange', function () {
if (document.hidden) removeRelationshipPulse();
});
@@ -9242,7 +9676,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function edgeShapes(edge) {
if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function removeOverlay() {
Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {
@@ -9265,6 +9699,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function traceGeometry(shape, direction) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -9412,6 +9848,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Adaptive Reader Shell — one diagram across laptop and monitor.
The canonical SVG and viewBox never change. On ordinary desktop pages,
@@ -9468,14 +9905,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var shell = document.querySelector('.container');
var diagram = document.querySelector('.diagram-container');
var svg = diagram && diagram.querySelector(':scope > svg');
+ var legend = svg && svg.querySelector('[data-legend]');
var header = shell && shell.querySelector('.header');
var cards = shell && shell.querySelector('.cards');
var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;
var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;
- var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';
+ var readerFit = svg && svg.getAttribute('data-reader-fit');
+ var widthFirstReading = readerFit === 'width-first';
+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');
+ var readingScroll = widthFirstReading;
+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ var automaticAreaHeight = 0;
// Widest reader the overflow settle has accepted for this viewport (0 =
// uncapped). Card copy rewraps as the reader narrows, so recomputing
// from fixed heights alone would widen again and oscillate; only a
@@ -9485,6 +9928,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MAX_AUTOMATIC_SCALE = 1.5;
var MIN_PROJECTED_NODE_TEXT_PX = 6;
var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;
var requestedMinimumText = Number.isFinite(declaredMinimumText)
@@ -9535,24 +9979,34 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ // Smallest scale that keeps node text at the requested floor and
+ // context relationship labels readable. A declared wide reader holds
+ // relationship labels to the requested floor too; every other reader
+ // still keeps them at the 6px hard floor the browser gate enforces, so
+ // a first-screen fit can never push them below it.
function minimumReadableScale() {
- var sourceMinimum = null;
- var selectors = [
- 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
- ];
- if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {
- selectors.push('g[data-detail="context"][data-edge-from][data-edge-to] > text');
- }
- Array.from(svg.querySelectorAll(selectors.join(', '))).forEach(function (text) {
- if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var nodeMinimum = null;
+ var edgeMinimum = null;
+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';
+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;
var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
- if (Number.isFinite(sourceFontPx)) {
- sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ if (!Number.isFinite(sourceFontPx)) return;
+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');
+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));
+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {
+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);
+ } else if (primary || text.closest('[data-node-id]')) {
+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);
}
});
- return sourceMinimum != null
- ? Math.min(1, requestedMinimumText / sourceMinimum)
- : 1;
+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)
+ ? requestedMinimumText
+ : MIN_PROJECTED_NODE_TEXT_PX;
+ var scale = 0;
+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);
+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);
+ return scale > 0 ? Math.min(1, scale) : 1;
}
var sourcePrimary = null;
if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {
@@ -9585,11 +10039,66 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function clear() {
html.style.removeProperty('--archify-reader-width');
+ html.style.removeProperty('--archify-diagram-max-width');
+ html.style.removeProperty('--archify-diagram-min-height');
+ html.removeAttribute('data-reader-area');
+ html.removeAttribute('data-reader-narrow');
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
setRail(false);
lastWidth = 0;
+ automaticAreaHeight = 0;
settledCap = 0;
+ clearLegend();
+ }
+ function clearLegend() {
+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;
+ legend.removeAttribute('data-reader-legend-corner');
+ legend.style.removeProperty('--archify-reader-legend-transform');
+ }
+ // Keep the original legend in its SVG: renderer hover/focus selectors and
+ // canonical export still own that same group. Ordinary capped reading
+ // and fitted automatic sequences borrow the outer corner at 25–100%.
+ function syncLegend() {
+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;
+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;
+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {
+ clearLegend();
+ return;
+ }
+ var box = legend.getBBox();
+ var parentMatrix = legend.parentNode.getScreenCTM();
+ if (!parentMatrix || !box.width || !box.height) {
+ clearLegend();
+ return;
+ }
+ var rect = diagram.getBoundingClientRect();
+ var style = window.getComputedStyle(diagram);
+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);
+ if (!Number.isFinite(scale) || scale <= 0) {
+ clearLegend();
+ return;
+ }
+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);
+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);
+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);
+ var top = bottom - box.height * scale;
+ var nav = diagram.querySelector('.diagram-nav');
+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;
+ // Long or multi-row legends retain their canonical position if the
+ // spare corner cannot hold them clear of the dock and content area.
+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||
+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&
+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {
+ clearLegend();
+ return;
+ }
+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);
+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';
+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {
+ legend.style.setProperty('--archify-reader-legend-transform', value);
+ }
+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');
}
// Rail modes: "true" docks beside the diagram, "collapsed" leaves only the
// reveal control, "overlay" opens a drawer when docking would break the
@@ -9646,13 +10155,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)
};
}
+ // `width` is the diagram's reading width. The page shell never narrows
+ // below the desktop reader floor, so a narrow, tall diagram keeps a
+ // usable header, toolbar, and controls; its SVG is centred instead.
function applyWidth(width, minWidth) {
var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));
- if (Math.abs(rounded - lastWidth) < 1) return false;
+ var changed = Math.abs(rounded - lastWidth) >= 1;
lastWidth = rounded;
- html.style.setProperty('--archify-reader-width', rounded + 'px');
+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));
+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');
+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;
+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);
+ // Content fitting and automatic enlargement never reduce the outer
+ // reader region. The SVG alone takes the narrower reading width.
+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0
+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;
+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {
+ diagramWidth = automaticWidthCap;
+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');
+ html.setAttribute('data-reader-area', 'true');
+ } else {
+ // Ordinary automatic diagrams retain their existing document flow.
+ // Settling can also stop binding the cap without a new measure.
+ html.style.removeProperty('--archify-diagram-min-height');
+ html.removeAttribute('data-reader-area');
+ }
+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {
+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');
+ html.setAttribute('data-reader-narrow', 'true');
+ } else {
+ html.style.removeProperty('--archify-diagram-max-width');
+ html.removeAttribute('data-reader-narrow');
+ }
html.setAttribute('data-reader-layout', 'adaptive');
- return true;
+ syncLegend();
+ return changed;
}
function settleOverflow(minWidth) {
if (settleFrame) cancelAnimationFrame(settleFrame);
@@ -9664,11 +10201,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
document.documentElement.scrollHeight,
document.body.scrollHeight
) - window.innerHeight - belowFold();
- if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
+ // visual-check fails any page whose rounded-up height exceeds the
+ // viewport, so even a 1px remainder must be reduced or declared.
+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
- } else if (overflow > 1) {
+ } else if (overflow > 0) {
html.setAttribute('data-reader-overflow', 'authored');
} else {
html.removeAttribute('data-reader-overflow');
@@ -9683,17 +10222,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
+ // Sequence first-screen fitting preserves source text sizes instead
+ // of shrinking to the shared hard readability floor.
var readableWidth = viewBox && viewBox.width > 0
- ? viewBox.width * minimumReadableScale() + chrome.diagramX
+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX
: MIN_READER_WIDTH;
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
- var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO
+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO
? readableWidth
: measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)
? Math.max(MIN_READER_WIDTH, readableWidth)
: MIN_READER_WIDTH;
var minWidth;
- if (measuredHeightFit && ratio < WIDE_RATIO) {
+ if (automaticSequence) {
+ minWidth = Math.min(readableMinimumWidth, maxWidth);
+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {
minWidth = Math.min(readableMinimumWidth, viewportCap);
} else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {
minWidth = Math.min(readableMinimumWidth, maxWidth);
@@ -9715,10 +10258,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';
else mode = fitsReadable ? 'true' : 'overlay';
}
- // With notes below the fold, the diagram may trade the renderer's
- // comfortable primary size down to the rail's 12px floor so it and its
- // controls fit the first screen; taller graphs still scroll.
- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));
+ // Height-fit families with notes below the fold may shrink to their
+ // readable floor. Width-first families choose their reading width
+ // below and retain page scrolling instead.
+ if (mode === 'bottom') primaryWidth = 0;
if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));
var docked = mode === 'true';
setRail(mode);
@@ -9729,6 +10272,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + stackedBelow;
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);
+ // Compact automatic sequences fit the first screen without shrinking
+ // their authored text. Longer sequences retain reading width and page
+ // scroll; other width-first families keep their existing strategy.
+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=
+ readableWidth + (docked ? railExtra : 0);
+ readingScroll = widthFirstReading && !sequenceFits;
+ if (readingScroll) desiredWidth = maxWidth;
+ // Only a binding enlargement cap needs a separate normal reader area.
+ // Uncapped diagrams keep their existing natural height and Chrome fit.
+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;
var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
@@ -9757,7 +10310,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Math.round(shellRect.width * 100) / 100,
Math.round(shellRect.height * 100) / 100,
Math.round(diagramRect.width * 100) / 100,
- Math.round(diagramRect.height * 100) / 100
+ Math.round(diagramRect.height * 100) / 100,
+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''
].join('|');
}
function layoutPending() { return Boolean(frame || settleFrame); }
@@ -9776,6 +10330,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
schedule();
}, { passive: true });
window.addEventListener('load', schedule, { once: true });
+ window.addEventListener('beforeprint', clearLegend);
+ window.addEventListener('afterprint', schedule);
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
var resizeObserver = new ResizeObserver(schedule);
@@ -9818,6 +10374,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
measure: measure,
schedule: schedule,
whenStable: whenStable,
+ syncLegend: syncLegend,
active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },
receipt: function () { return { ratio: ratio, width: lastWidth }; }
};
@@ -10110,6 +10667,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };
return [
reserve,
+ lift,
Math.round(containerRect.width * 100) / 100,
Math.round(containerRect.height * 100) / 100,
Math.round(navRect.left * 100) / 100,
@@ -10120,7 +10678,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
lastReceipt ? lastReceipt.stageGap : ''
].join('|');
}
- function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }
+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }
function whenStable() {
return Archify.waitForStableLayout({
schedule: schedule,
@@ -10140,6 +10698,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
if (typeof ResizeObserver === 'function') {
var resizeObserver = new ResizeObserver(schedule);
[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });
+ // Camera zoom changes outer page flow without changing intrinsic SVG
+ // size. Follow that box for dock placement, independently of scrolling
+ // and the baseline stage-rail measurement.
+ new ResizeObserver(scheduleLift).observe(container);
}
if (typeof MutationObserver === 'function') {
var contentObserver = new MutationObserver(function (records) {
@@ -10223,6 +10785,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');
var inBtn = container.querySelector('[data-view="in"]');
var state = { scale: 1, x: 0, y: 0, mode: 'overview' };
+ var minimumZoom = 0.25;
+ var maximumZoom = 3;
var drag = null;
var cameraTimer = null;
var cameraFrame = null;
@@ -10231,12 +10795,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var clipFrame = 0;
var resizeFrame = 0;
var autoScrollUntil = 0;
+ var originalFlowHeight = container.style.getPropertyValue('height');
+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');
+ var compactPageFlow = false;
var viewBox = svg.viewBox && svg.viewBox.baseVal;
function clamp() {
var width = svg.clientWidth || 1;
var height = svg.clientHeight || 1;
+ if (state.scale < 1) {
+ var visibleWidth = Math.min(width, container.clientWidth);
+ var availableX = visibleWidth - width * state.scale;
+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2
+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));
+ // Long sequences keep their first rows in view instead of centering
+ // inside a layout box that can be several screens tall.
+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;
+ return;
+ }
state.x = Math.min(0, Math.max(width - width * state.scale, state.x));
state.y = Math.min(0, Math.max(height - height * state.scale, state.y));
}
@@ -10263,15 +10840,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var y;
var width;
var height;
- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {
+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {
x = viewBox.x + container.scrollLeft / metrics.scale;
y = viewBox.y;
width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));
height = viewBox.height;
} else {
- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;
+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;
y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;
- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);
+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);
height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);
}
width = Math.max(1, Math.min(viewBox.width, width));
@@ -10308,7 +10885,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',
hint: detailHint
});
- resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));
+ var readout = (showDetailLevel ? resolvedLevel + ' ' : '') + percent;
+ resetBtn.setAttribute('aria-label', readout + ' · ' + viewerText('viewer.nav.camera', { hint: detailHint }));
resetBtn.setAttribute('data-detail-level', detail);
container.setAttribute('data-detail-level', detail);
container.setAttribute('data-camera-mode', state.mode);
@@ -10336,13 +10914,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
Math.abs(rendered.x - state.x) < 0.05 &&
Math.abs(rendered.y - state.y) < 0.05;
}
+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its
+ // outer page-flow box for long ordinary diagrams, never the SVG itself:
+ // changing its height would feed the smaller size back into camera math.
+ function syncPageFlow(camera) {
+ camera = camera || state;
+ var html = document.documentElement;
+ var height = svg.clientHeight;
+ var ordinary = html.getAttribute('data-embed') !== 'true' &&
+ html.getAttribute('data-present') !== 'true' &&
+ (!window.matchMedia || !window.matchMedia('print').matches);
+ // Restore ordinary flow as soon as the target reaches 100%. Chrome
+ // uses that target to resume baseline rail measurement; retaining a
+ // partially shrunk box during the CSS transition would inflate reserve.
+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {
+ var style = getComputedStyle(container);
+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']
+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);
+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';
+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);
+ compactPageFlow = true;
+ } else if (compactPageFlow) {
+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);
+ else container.style.removeProperty('height');
+ compactPageFlow = false;
+ }
+ }
function syncViewportClip() {
if (clipFrame) cancelAnimationFrame(clipFrame);
clipFrame = 0;
function sample() {
clipFrame = 0;
var rendered = sampleRenderedState();
+ syncPageFlow(rendered);
clipToViewport(rendered);
+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();
if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);
}
sample();
@@ -10350,12 +10956,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function apply() {
clamp();
svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';
+ svg.setAttribute('data-view-scale', String(state.scale));
syncViewportClip();
renderControls();
- outBtn.disabled = state.scale <= 1;
- inBtn.disabled = state.scale >= 3;
+ outBtn.disabled = state.scale <= minimumZoom;
+ inBtn.disabled = state.scale >= maximumZoom;
container.classList.toggle('is-pannable', state.scale > 1);
- svg.setAttribute('data-view-scale', String(state.scale));
if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();
if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {
Archify.viewerChromeLayout.schedule();
@@ -10449,8 +11055,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
options = options || {};
if (options.manual !== false) interruptCamera();
var previous = state.scale;
- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));
+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));
if (next === previous) return;
+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;
+ var before = longDiagram ? svg.getBoundingClientRect() : null;
+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;
+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;
+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;
+ var documentTop = before ? window.scrollY + before.top - state.y : 0;
var centerX = (svg.clientWidth || 1) / 2;
var centerY = (svg.clientHeight || 1) / 2;
var contentX = (centerX - state.x) / previous;
@@ -10459,6 +11071,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
state.x = centerX - contentX * next;
state.y = centerY - contentY * next;
apply();
+ if (longDiagram) {
+ var scaledHeight = svg.clientHeight * next;
+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y
+ : documentTop + state.y + logicalY * next - anchorY;
+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });
+ }
}
function reset(options) {
options = options || {};
@@ -10715,6 +11333,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
else apply();
});
});
+ // Reader width and Chrome reserve can change without a window resize.
+ // Observe their resulting sizes; the SVG remains intrinsically sized, so
+ // the outer flow height cannot feed back into its camera base.
+ if (typeof ResizeObserver === 'function') {
+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });
+ flowObserver.observe(svg);
+ flowObserver.observe(container);
+ }
+ if (typeof MutationObserver === 'function') {
+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })
+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });
+ }
+ var printMedia = window.matchMedia && window.matchMedia('print');
+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });
window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });
apply();
pinControls();
@@ -11595,6 +12227,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var links = document.createElement('em');
links.textContent = badge;
links.title = context.kind === 'focus' ? badge : action;
+ if (item.links === 0) links.setAttribute('data-zero', 'true');
var meta = document.createElement('small');
meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');
meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');
@@ -11835,6 +12468,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
})();
+
/* ============================================================
Route Probe — shortest directed path over compiled semantics.
The graph is read from renderer-owned stable IDs and relationship
@@ -11941,7 +12575,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function edgeShapes(edge) {
if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function removeOverlay() {
Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {
@@ -12171,6 +12805,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function traceGeometry(shape, step) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -12271,6 +12907,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function journeyGeometry(shape) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -12867,6 +13505,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Semantic Lens — a counted, viewer-only legend over data-node-kind.
One selected kind reveals every authored relationship touching it.
@@ -12930,7 +13569,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
function edgeShapes(edge) {
if (!edge) return [];
if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];
- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));
+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));
}
function legendSourceBounds(entry) {
var bounds = null;
@@ -13103,6 +13742,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
function flowGeometry(shape, direction, step) {
var clone = shape.cloneNode(false);
+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));
+ clone.removeAttribute('data-motion-path');
clone.removeAttribute('id');
clone.removeAttribute('class');
clone.removeAttribute('style');
@@ -13540,6 +14181,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
};
})();
+
/* ============================================================
Diagram Guide — a factual command deck over existing interactions.
Counts come from compiled semantics; actions delegate to Finder, Route
diff --git a/test/viewer-camera-browser.test.mjs b/test/viewer-camera-browser.test.mjs
index 914413fc..d927cfdd 100644
--- a/test/viewer-camera-browser.test.mjs
+++ b/test/viewer-camera-browser.test.mjs
@@ -30,6 +30,29 @@ test('Camera accessible names retain the visible readout after native actions',
await send('Emulation.setEmulatedMedia', {
features: [{ name: 'prefers-reduced-motion', value: 'reduce' }],
});
+ async function assertAccessibleReadout(artifact, context) {
+ const loaded = browser.cdp.waitFor('Page.loadEventFired', session);
+ await send('Page.navigate', { url: pathToFileURL(artifact).href });
+ await loaded;
+ for (const action of [null, 'out', 'in', 'in', 'in', 'reset']) {
+ const result = await send('Runtime.evaluate', {
+ expression: `(async () => {
+ ${action ? `document.querySelector('[data-view="${action}"]').click();` : ''}
+ ${action ? 'await Archify.layoutStability.whenStable();' : ''}
+ const button = document.querySelector('[data-view="reset"]');
+ return {
+ visible: button.innerText.replace(/\\s+/g, ' ').trim(),
+ accessible: button.getAttribute('aria-label')
+ };
+ })()`,
+ awaitPromise: true, returnByValue: true,
+ });
+ assert.equal(result.exceptionDetails, undefined, result.exceptionDetails?.exception?.description);
+ const name = result.result.value;
+ assert.ok(name.visible, `${context}/${action}: ${JSON.stringify(name)}`);
+ assert.ok(name.accessible.includes(name.visible), `${context}/${action}: ${JSON.stringify(name)}`);
+ }
+ }
for (const [mode, example] of Object.entries(cases)) {
for (const locale of ['en', 'zh-CN']) {
const candidate = JSON.parse(fs.readFileSync(path.join(skillRoot, 'examples', example), 'utf8'));
@@ -38,29 +61,20 @@ test('Camera accessible names retain the visible readout after native actions',
const artifact = path.join(scratch, `${mode}-${locale}.html`);
fs.writeFileSync(input, JSON.stringify(candidate));
execFileSync(process.execPath, [path.join(skillRoot, 'bin/archify.mjs'), 'render', mode, input, artifact]);
- const loaded = browser.cdp.waitFor('Page.loadEventFired', session);
- await send('Page.navigate', { url: pathToFileURL(artifact).href });
- await loaded;
- for (const action of [null, 'out', 'in', 'in', 'in', 'reset']) {
- const result = await send('Runtime.evaluate', {
- expression: `(async () => {
- ${action ? `document.querySelector('[data-view="${action}"]').click();` : ''}
- await Archify.layoutStability.whenStable();
- const button = document.querySelector('[data-view="reset"]');
- return {
- visible: button.innerText.replace(/\\s+/g, ' ').trim(),
- accessible: button.getAttribute('aria-label')
- };
- })()`,
- awaitPromise: true, returnByValue: true,
- });
- assert.equal(result.exceptionDetails, undefined, result.exceptionDetails?.exception?.description);
- const name = result.result.value;
- assert.ok(name.visible, `${mode}/${locale}/${action}: ${JSON.stringify(name)}`);
- assert.ok(name.accessible.includes(name.visible), `${mode}/${locale}/${action}: ${JSON.stringify(name)}`);
- }
+ await assertAccessibleReadout(artifact, `${mode}/${locale}`);
}
}
+ const repoRoot = path.resolve(skillRoot, '..');
+ const readme = fs.readFileSync(path.join(repoRoot, 'README.md'), 'utf8');
+ const readmeLinks = new Set(Array.from(readme.matchAll(/\]\((examples\/[^)\s]+\.html)\)/g), match => match[1]));
+ const examples = fs.readdirSync(path.join(repoRoot, 'examples'))
+ .filter(name => name.endsWith('.architecture.json'))
+ .map(name => JSON.parse(fs.readFileSync(path.join(repoRoot, 'examples', name), 'utf8')).meta.output)
+ .filter(output => readmeLinks.has(output));
+ assert.ok(examples.length, 'README links architecture examples with authoritative inputs');
+ for (const example of examples) {
+ await assertAccessibleReadout(path.join(repoRoot, example), example);
+ }
});
test('Camera preserves transactions, rendered state and real caller handoffs', {