Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix(viewer): position semantic passport chip synchronously before paint (#200)
sx4imf3da4c43cdb1
diff --git a/archify/assets/template.html b/archify/assets/template.htmlindex 8e15e85c..c1592237 100644--- a/archify/assets/template.html+++ b/archify/assets/template.html@@ -7641,7 +7641,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8116,7 +8116,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8143,7 +8143,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8424,7 +8424,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8625,7 +8628,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8711,7 +8714,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8827,7 +8830,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.htmlindex 4a3c6288..2cc790db 100644--- a/archify/examples/dataflow-product-analytics.html+++ b/archify/examples/dataflow-product-analytics.html@@ -7752,7 +7752,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8227,7 +8227,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8254,7 +8254,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8535,7 +8535,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8736,7 +8739,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8822,7 +8825,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8938,7 +8941,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.htmlindex ea79fa9b..54e64c7b 100644--- a/archify/examples/lifecycle-agent-run.html+++ b/archify/examples/lifecycle-agent-run.html@@ -7701,7 +7701,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8176,7 +8176,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8203,7 +8203,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8484,7 +8484,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8685,7 +8688,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8771,7 +8774,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8887,7 +8890,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.htmlindex aaa74306..1555d33d 100644--- a/archify/examples/sequence-cache-miss-request.html+++ b/archify/examples/sequence-cache-miss-request.html@@ -7767,7 +7767,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8242,7 +8242,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8269,7 +8269,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8550,7 +8550,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8751,7 +8754,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8837,7 +8840,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8953,7 +8956,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.htmlindex cef9fccf..41f7e745 100644--- a/archify/examples/web-app-rendered.html+++ b/archify/examples/web-app-rendered.html@@ -7716,7 +7716,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8191,7 +8191,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8218,7 +8218,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8499,7 +8499,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8700,7 +8703,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8786,7 +8789,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8902,7 +8905,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.htmlindex bc9f6211..0e6ab9cd 100644--- a/archify/examples/workflow-agent-tool-call-rendered.html+++ b/archify/examples/workflow-agent-tool-call-rendered.html@@ -7758,7 +7758,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8233,7 +8233,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8260,7 +8260,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8541,7 +8541,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8742,7 +8745,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8828,7 +8831,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8944,7 +8947,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/archify/test/semantic-passport.test.mjs b/archify/test/semantic-passport.test.mjsindex 1e5c17ac..5997c803 100644--- a/archify/test/semantic-passport.test.mjs+++ b/archify/test/semantic-passport.test.mjs@@ -4,11 +4,14 @@ import { execFileSync } from 'node:child_process';import fs from 'node:fs';import os from 'node:os';import path from 'node:path';-import { fileURLToPath } from 'node:url';+import { fileURLToPath, pathToFileURL } from 'node:url';++import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));const skillRoot = path.resolve(__dirname, '..');const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-semantic-passport-'));+const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;const CASES = {architecture: 'web-app.architecture.json',@@ -32,6 +35,48 @@ function svg(html) {return html.match(/<svg\b[\s\S]*?<\/svg>/)?.[0] || '';}+async function evaluate(browser, sessionId, expression, awaitPromise = false) {+ const response = await browser.cdp.send('Runtime.evaluate', {+ expression,+ awaitPromise,+ returnByValue: true,+ }, sessionId);+ if (response.exceptionDetails) {+ throw new Error(response.exceptionDetails.exception?.description+ || response.exceptionDetails.text+ || 'Runtime.evaluate failed');+ }+ return response.result?.value;+}++async function loadArtifact(browser, artifactPath, { width = 1440, height = 900 } = {}) {+ const sessionId = await browser.sessionPromise;+ await browser.cdp.send('Emulation.setDeviceMetricsOverride', {+ width,+ height,+ deviceScaleFactor: 1,+ mobile: false,+ }, sessionId);+ const loaded = browser.cdp.waitFor('Page.loadEventFired', sessionId);+ const navigation = await browser.cdp.send('Page.navigate', {+ url: pathToFileURL(artifactPath).href,+ }, sessionId);+ if (navigation.errorText) throw new Error(`Chrome navigation failed: ${navigation.errorText}`);+ await loaded;+ await evaluate(browser, sessionId, `(function () {+ document.documentElement.setAttribute('data-motion', 'still');+ var fontsReady = document.fonts && document.fonts.ready+ ? document.fonts.ready.catch(function () {})+ : Promise.resolve();+ return fontsReady.then(function () {+ return new Promise(function (resolve) {+ requestAnimationFrame(function () { requestAnimationFrame(resolve); });+ });+ });+ })()`, true);+ return sessionId;+}+test('all typed renderers emit details-on-demand metadata and native SVG titles', () => {for (const [mode, example] of Object.entries(CASES)) {const html = render(mode, example);@@ -83,6 +128,62 @@ test('Relationship Lens renders one Semantic Passport and copyable stable focusassert.match(html, /target\.closest\('\[data-node-id\], \[data-relationship-hit-key\], \.overview-map'\)/);assert.match(html, /document\.addEventListener\('click',[\s\S]+?clear\(\);\s+\}, true\);/);assert.match(html, /Archify\.focus\.clear\(\{ restoreFocus: true \}\)/);+ assert.match(html, /renderRelationshipLens\(normalized\[0\],\s*byId\);\s*placeRelationshipLens\(\);/);+ assert.match(html, /applyReachability[\s\S]*?placeRelationshipLens\(\);/);+ assert.match(html, /clearRelationshipPreview[\s\S]*?renderRelationshipCopyAction\(\);\s*placeRelationshipLens\(\);/);+ assert.match(html, /previewRelationship[\s\S]*?renderRelationshipPulse\(key\);\s*placeRelationshipLens\(\);/);+ assert.match(html, /relationsBtn\.addEventListener\('click'[\s\S]*?placeRelationshipLens\(\);/);+ assert.match(html, /reposition:\s*placeRelationshipLens/);+});++test('semantic passport computes and applies target top synchronously on open and switch without a 1-frame snap', {+ skip: chromePath ? false : 'Set ARCHIFY_CHROME to run the real browser regression.',+}, async () => {+ const artifact = path.join(tmp, 'passport-synchronous-placement.html');+ execFileSync(process.execPath, [+ path.join(skillRoot, 'bin', 'archify.mjs'),+ 'render',+ 'architecture',+ path.join(skillRoot, 'examples', CASES.architecture),+ artifact,+ ]);+ const browser = new ChromeVisualBrowser(chromePath);+ try {+ const sessionId = await loadArtifact(browser, artifact, { width: 1440, height: 900 });+ const result = await evaluate(browser, sessionId, `(function () {+ var chip = document.getElementById('focus-chip');+ var initialHidden = chip.hidden;+ var initialTop = chip.style.top;++ // Focus node 'auth' (top rank): must compute and apply top synchronously before next paint+ Archify.focus.set('auth', { toggle: false });+ var synchronousTopAuth = chip.style.top;+ var hiddenAuth = chip.hidden;++ // Switch focus to node 's3' (bottom rank): must update top synchronously without stale 1-frame delay+ Archify.focus.set('s3', { toggle: false });+ var synchronousTopS3 = chip.style.top;+ var hiddenS3 = chip.hidden;++ return {+ initialHidden: initialHidden,+ initialTop: initialTop,+ synchronousTopAuth: synchronousTopAuth,+ hiddenAuth: hiddenAuth,+ synchronousTopS3: synchronousTopS3,+ hiddenS3: hiddenS3+ };+ })()`);++ assert.equal(result.initialHidden, true);+ assert.equal(result.hiddenAuth, false);+ assert.notEqual(result.synchronousTopAuth, '', 'passport target position must land synchronously before next paint');+ assert.equal(result.hiddenS3, false);+ assert.notEqual(result.synchronousTopS3, '', 'switched passport target position must land synchronously');+ assert.notEqual(result.synchronousTopAuth, result.synchronousTopS3, 'target positions for different nodes must differ');+ } finally {+ await browser.close().catch(() => {});+ }});test('Node Finder searches and presents the same passport facts', () => {diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gifindex 5094ef30..4ea01bdc 100644Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differdiff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.jsonindex 3d6d7830..4d38f1d3 100644--- a/docs/assets/archify-live-proof.json+++ b/docs/assets/archify-live-proof.json@@ -7,13 +7,13 @@"fps": 10,"frameCount": 54,"durationSeconds": 5.4,- "bytes": 1731693,- "sha256": "de3f05c390409b99c3f8d4e9e213dbe67688846f836b7c0e66010410666ed2c7",+ "bytes": 1787526,+ "sha256": "7f98d2f90b44447e94d9a2f8965508c8b2c676f3a7dc046474fe5bb5fb8082b6","scenes": [{"id": "signal-flow","artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",- "artifactSha256": "5f0042bfcfcd229ed7f8d14b8be665f1dca901486034943d4475766a599c7771",+ "artifactSha256": "1c0313a1dda471eeea5c1317e1fa3eb7bd5a65ee6742b89c1d17c28ee30e6260","view": "happy-path","eyebrow": "WORKFLOW · SIGNAL FLOW","title": "Agent Tool Call",@@ -22,7 +22,7 @@{"id": "blueprint","artifact": "docs/gallery/artifacts/production-deployment.architecture.html",- "artifactSha256": "c640b8bde8a2400b99e01d9b8fc690e4a2ee47dde299363839499b27404f5fe0",+ "artifactSha256": "5a20f978b9016025c0d2b05dd9bf4ec1aadfc0344c154f7cd505408b960128a7","view": "request-boundary","eyebrow": "ARCHITECTURE · BLUEPRINT","title": "Production Deployment",@@ -31,7 +31,7 @@{"id": "classic","artifact": "docs/gallery/artifacts/cache-miss.sequence.html",- "artifactSha256": "c027d67e0e8e3286617897254d9ddb4de04f714ff01231b05f535f9e62d20b82",+ "artifactSha256": "60ebfa00e4c90581d8f7cf4a04e9596e969ef6a514046452716ca472fd34c424","view": "cache-fallback","eyebrow": "SEQUENCE · CLASSIC","title": "Cache Miss Request",diff --git a/docs/gallery.html b/docs/gallery.htmlindex 270055df..a310c6fd 100644--- a/docs/gallery.html+++ b/docs/gallery.html@@ -298,7 +298,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5f0042bfcfcd229ed7f8d14b8be665f1dca901486034943d4475766a599c7771">5f0042bfcfcd</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1c0313a1dda471eeea5c1317e1fa3eb7bd5a65ee6742b89c1d17c28ee30e6260">1c0313a1dda4</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -328,7 +328,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c640b8bde8a2400b99e01d9b8fc690e4a2ee47dde299363839499b27404f5fe0">c640b8bde8a2</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5a20f978b9016025c0d2b05dd9bf4ec1aadfc0344c154f7cd505408b960128a7">5a20f978b901</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -357,7 +357,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c027d67e0e8e3286617897254d9ddb4de04f714ff01231b05f535f9e62d20b82">c027d67e0e8e</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="60ebfa00e4c90581d8f7cf4a04e9596e969ef6a514046452716ca472fd34c424">60ebfa00e4c9</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -386,7 +386,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1a5118b5902b43c8ebc299379cf0bf317e69dadc11c9e4a4c4f264542033ac1b">1a5118b5902b</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b3dc75366d3994e5ede4f4eb183e7e3bcae4f63a9acafd34e382c1a4e53055d8">b3dc75366d39</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -415,7 +415,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2e3b3a8270c108e99104857888606b92f2b7abd63841210df837d27ea8e533c2">2e3b3a8270c1</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="4e9c506f6f5357f18f4720b617b954776843d123a0bbeab572ceb8c403ff1dc4">4e9c506f6f53</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -444,7 +444,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d71260a3c92d3bae6c19260794a36b86e101c882b1a2723e722a6e127ae96ad8">d71260a3c92d</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="876b9cb4acf638ba23c44cef6d6a21482dc5d9e7ac9d5cae99eabe3f92d98db0">876b9cb4acf6</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -473,7 +473,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="03351223c865f8e74bc65ad1fc51c330a8c4bd007cdbe3f69cbd2a7fdadf1e58">03351223c865</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="bfa0603b5d43e34dc3d4970915f747f3e94135bcdf89204ab500d9c11d81fa9f">bfa0603b5d43</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -502,7 +502,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="4b649b9f886e59df0def182b0ec1bd5aca1bba115e7335ff60a498a7f87aa0c2">4b649b9f886e</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="510a13e5fbbc478be1a108b22fe9883b16b303206852558ba934b03edabe037c">510a13e5fbbc</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -531,7 +531,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ee5b76cbd7ac35173eb7e9a341a22bd7052877433797fca123786deebda27c7f">ee5b76cbd7ac</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e9402e43b5c7f0e4409d6842c7926b34a7555d39cc60425855377f0bda97c776">e9402e43b5c7</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -560,7 +560,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d62f3c11044a4c864a6c589e32e0ee4128ad1546c30afa3fe1131d6fcf3bb82f">d62f3c11044a</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3f3e521dd596338e42603884456282a1609b4004f59b60723a88f7541d912b9d">3f3e521dd596</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -589,7 +589,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b51b04e6061e1a5713ca8e026d5755dd58bea9ccf6233171ca6acafdb0fb7a4f">b51b04e6061e</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c4234fcc5b00a405e43cb5ac7e7881941e7d92466283b939a6e8dcc064e879a2">c4234fcc5b00</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -675,8 +675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 723038,- "artifactSha256": "5f0042bfcfcd229ed7f8d14b8be665f1dca901486034943d4475766a599c7771",+ "artifactBytes": 723124,+ "artifactSha256": "1c0313a1dda471eeea5c1317e1fa3eb7bd5a65ee6742b89c1d17c28ee30e6260","sourceBytes": 5687,"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c","checks": [@@ -775,8 +775,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 724872,- "artifactSha256": "c640b8bde8a2400b99e01d9b8fc690e4a2ee47dde299363839499b27404f5fe0",+ "artifactBytes": 724958,+ "artifactSha256": "5a20f978b9016025c0d2b05dd9bf4ec1aadfc0344c154f7cd505408b960128a7","sourceBytes": 5476,"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb","checks": [@@ -875,8 +875,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 716842,- "artifactSha256": "c027d67e0e8e3286617897254d9ddb4de04f714ff01231b05f535f9e62d20b82",+ "artifactBytes": 716928,+ "artifactSha256": "60ebfa00e4c90581d8f7cf4a04e9596e969ef6a514046452716ca472fd34c424","sourceBytes": 4345,"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389","checks": [@@ -975,8 +975,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 719238,- "artifactSha256": "1a5118b5902b43c8ebc299379cf0bf317e69dadc11c9e4a4c4f264542033ac1b",+ "artifactBytes": 719324,+ "artifactSha256": "b3dc75366d3994e5ede4f4eb183e7e3bcae4f63a9acafd34e382c1a4e53055d8","sourceBytes": 5164,"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [@@ -1075,8 +1075,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 716567,- "artifactSha256": "2e3b3a8270c108e99104857888606b92f2b7abd63841210df837d27ea8e533c2",+ "artifactBytes": 716653,+ "artifactSha256": "4e9c506f6f5357f18f4720b617b954776843d123a0bbeab572ceb8c403ff1dc4","sourceBytes": 5375,"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [@@ -1175,8 +1175,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 720496,- "artifactSha256": "d71260a3c92d3bae6c19260794a36b86e101c882b1a2723e722a6e127ae96ad8",+ "artifactBytes": 720582,+ "artifactSha256": "876b9cb4acf638ba23c44cef6d6a21482dc5d9e7ac9d5cae99eabe3f92d98db0","sourceBytes": 5627,"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110","checks": [@@ -1275,8 +1275,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 717252,- "artifactSha256": "03351223c865f8e74bc65ad1fc51c330a8c4bd007cdbe3f69cbd2a7fdadf1e58",+ "artifactBytes": 717338,+ "artifactSha256": "bfa0603b5d43e34dc3d4970915f747f3e94135bcdf89204ab500d9c11d81fa9f","sourceBytes": 4370,"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [@@ -1375,8 +1375,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 724459,- "artifactSha256": "4b649b9f886e59df0def182b0ec1bd5aca1bba115e7335ff60a498a7f87aa0c2",+ "artifactBytes": 724545,+ "artifactSha256": "510a13e5fbbc478be1a108b22fe9883b16b303206852558ba934b03edabe037c","sourceBytes": 5433,"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [@@ -1475,8 +1475,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 714131,- "artifactSha256": "ee5b76cbd7ac35173eb7e9a341a22bd7052877433797fca123786deebda27c7f",+ "artifactBytes": 714217,+ "artifactSha256": "e9402e43b5c7f0e4409d6842c7926b34a7555d39cc60425855377f0bda97c776","sourceBytes": 4417,"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42","checks": [@@ -1575,8 +1575,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 715123,- "artifactSha256": "d62f3c11044a4c864a6c589e32e0ee4128ad1546c30afa3fe1131d6fcf3bb82f",+ "artifactBytes": 715209,+ "artifactSha256": "3f3e521dd596338e42603884456282a1609b4004f59b60723a88f7541d912b9d","sourceBytes": 4274,"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [@@ -1675,8 +1675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 715216,- "artifactSha256": "b51b04e6061e1a5713ca8e026d5755dd58bea9ccf6233171ca6acafdb0fb7a4f",+ "artifactBytes": 715302,+ "artifactSha256": "c4234fcc5b00a405e43cb5ac7e7881941e7d92466283b939a6e8dcc064e879a2","sourceBytes": 3793,"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.htmlindex ea79fa9b..54e64c7b 100644--- a/docs/gallery/artifacts/agent-run.lifecycle.html+++ b/docs/gallery/artifacts/agent-run.lifecycle.html@@ -7701,7 +7701,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8176,7 +8176,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8203,7 +8203,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8484,7 +8484,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8685,7 +8688,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8771,7 +8774,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8887,7 +8890,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.htmlindex bc9f6211..0e6ab9cd 100644--- a/docs/gallery/artifacts/agent-tool-call.workflow.html+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html@@ -7758,7 +7758,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8233,7 +8233,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8260,7 +8260,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8541,7 +8541,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8742,7 +8745,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8828,7 +8831,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8944,7 +8947,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.htmlindex 7016aef1..9a1288e2 100644--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html@@ -7779,7 +7779,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8254,7 +8254,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8281,7 +8281,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8562,7 +8562,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8763,7 +8766,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8849,7 +8852,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8965,7 +8968,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.htmlindex aaa74306..1555d33d 100644--- a/docs/gallery/artifacts/cache-miss.sequence.html+++ b/docs/gallery/artifacts/cache-miss.sequence.html@@ -7767,7 +7767,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8242,7 +8242,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8269,7 +8269,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8550,7 +8550,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8751,7 +8754,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8837,7 +8840,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8953,7 +8956,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.htmlindex 9001d825..83b4f74f 100644--- a/docs/gallery/artifacts/deployment-release.lifecycle.html+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html@@ -7713,7 +7713,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8188,7 +8188,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8215,7 +8215,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8496,7 +8496,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8697,7 +8700,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8783,7 +8786,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8899,7 +8902,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.htmlindex 0e18a15c..dd46535d 100644--- a/docs/gallery/artifacts/event-stream.dataflow.html+++ b/docs/gallery/artifacts/event-stream.dataflow.html@@ -7791,7 +7791,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8266,7 +8266,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8293,7 +8293,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8574,7 +8574,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8775,7 +8778,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8861,7 +8864,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8977,7 +8980,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.htmlindex 31870c1f..944133d8 100644--- a/docs/gallery/artifacts/incident-response.workflow.html+++ b/docs/gallery/artifacts/incident-response.workflow.html@@ -7718,7 +7718,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8193,7 +8193,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8220,7 +8220,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8501,7 +8501,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8702,7 +8705,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8788,7 +8791,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8904,7 +8907,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.htmlindex 4a3c6288..2cc790db 100644--- a/docs/gallery/artifacts/product-analytics.dataflow.html+++ b/docs/gallery/artifacts/product-analytics.dataflow.html@@ -7752,7 +7752,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8227,7 +8227,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8254,7 +8254,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8535,7 +8535,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8736,7 +8739,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8822,7 +8825,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8938,7 +8941,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.htmlindex 5fd911c7..306ff208 100644--- a/docs/gallery/artifacts/production-deployment.architecture.html+++ b/docs/gallery/artifacts/production-deployment.architecture.html@@ -7783,7 +7783,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8258,7 +8258,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8285,7 +8285,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8566,7 +8566,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8767,7 +8770,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8853,7 +8856,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8969,7 +8972,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.htmlindex ee85de98..c2349db1 100644--- a/docs/gallery/artifacts/release-delivery.workflow.html+++ b/docs/gallery/artifacts/release-delivery.workflow.html@@ -7744,7 +7744,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8219,7 +8219,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8246,7 +8246,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8527,7 +8527,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8728,7 +8731,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8814,7 +8817,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8930,7 +8933,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.htmlindex cef9fccf..41f7e745 100644--- a/docs/gallery/artifacts/web-app.architecture.html+++ b/docs/gallery/artifacts/web-app.architecture.html@@ -7716,7 +7716,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8191,7 +8191,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8218,7 +8218,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8499,7 +8499,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8700,7 +8703,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8786,7 +8789,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8902,7 +8905,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.jsonindex cce7ebab..b4d25d6d 100644--- a/docs/gallery/manifest.json+++ b/docs/gallery/manifest.json@@ -27,8 +27,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 723038,- "artifactSha256": "5f0042bfcfcd229ed7f8d14b8be665f1dca901486034943d4475766a599c7771",+ "artifactBytes": 723124,+ "artifactSha256": "1c0313a1dda471eeea5c1317e1fa3eb7bd5a65ee6742b89c1d17c28ee30e6260","sourceBytes": 5687,"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c","checks": [@@ -127,8 +127,8 @@"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 724872,- "artifactSha256": "c640b8bde8a2400b99e01d9b8fc690e4a2ee47dde299363839499b27404f5fe0",+ "artifactBytes": 724958,+ "artifactSha256": "5a20f978b9016025c0d2b05dd9bf4ec1aadfc0344c154f7cd505408b960128a7","sourceBytes": 5476,"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb","checks": [@@ -227,8 +227,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 716842,- "artifactSha256": "c027d67e0e8e3286617897254d9ddb4de04f714ff01231b05f535f9e62d20b82",+ "artifactBytes": 716928,+ "artifactSha256": "60ebfa00e4c90581d8f7cf4a04e9596e969ef6a514046452716ca472fd34c424","sourceBytes": 4345,"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389","checks": [@@ -327,8 +327,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 719238,- "artifactSha256": "1a5118b5902b43c8ebc299379cf0bf317e69dadc11c9e4a4c4f264542033ac1b",+ "artifactBytes": 719324,+ "artifactSha256": "b3dc75366d3994e5ede4f4eb183e7e3bcae4f63a9acafd34e382c1a4e53055d8","sourceBytes": 5164,"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [@@ -427,8 +427,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 716567,- "artifactSha256": "2e3b3a8270c108e99104857888606b92f2b7abd63841210df837d27ea8e533c2",+ "artifactBytes": 716653,+ "artifactSha256": "4e9c506f6f5357f18f4720b617b954776843d123a0bbeab572ceb8c403ff1dc4","sourceBytes": 5375,"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [@@ -527,8 +527,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 720496,- "artifactSha256": "d71260a3c92d3bae6c19260794a36b86e101c882b1a2723e722a6e127ae96ad8",+ "artifactBytes": 720582,+ "artifactSha256": "876b9cb4acf638ba23c44cef6d6a21482dc5d9e7ac9d5cae99eabe3f92d98db0","sourceBytes": 5627,"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110","checks": [@@ -627,8 +627,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 717252,- "artifactSha256": "03351223c865f8e74bc65ad1fc51c330a8c4bd007cdbe3f69cbd2a7fdadf1e58",+ "artifactBytes": 717338,+ "artifactSha256": "bfa0603b5d43e34dc3d4970915f747f3e94135bcdf89204ab500d9c11d81fa9f","sourceBytes": 4370,"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [@@ -727,8 +727,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 724459,- "artifactSha256": "4b649b9f886e59df0def182b0ec1bd5aca1bba115e7335ff60a498a7f87aa0c2",+ "artifactBytes": 724545,+ "artifactSha256": "510a13e5fbbc478be1a108b22fe9883b16b303206852558ba934b03edabe037c","sourceBytes": 5433,"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [@@ -827,8 +827,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 714131,- "artifactSha256": "ee5b76cbd7ac35173eb7e9a341a22bd7052877433797fca123786deebda27c7f",+ "artifactBytes": 714217,+ "artifactSha256": "e9402e43b5c7f0e4409d6842c7926b34a7555d39cc60425855377f0bda97c776","sourceBytes": 4417,"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42","checks": [@@ -927,8 +927,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 715123,- "artifactSha256": "d62f3c11044a4c864a6c589e32e0ee4128ad1546c30afa3fe1131d6fcf3bb82f",+ "artifactBytes": 715209,+ "artifactSha256": "3f3e521dd596338e42603884456282a1609b4004f59b60723a88f7541d912b9d","sourceBytes": 4274,"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [@@ -1027,8 +1027,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 715216,- "artifactSha256": "b51b04e6061e1a5713ca8e026d5755dd58bea9ccf6233171ca6acafdb0fb7a4f",+ "artifactBytes": 715302,+ "artifactSha256": "c4234fcc5b00a405e43cb5ac7e7881941e7d92466283b939a6e8dcc064e879a2","sourceBytes": 3793,"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [diff --git a/examples/archify-repo-grid.html b/examples/archify-repo-grid.htmlindex 0bb4651a..87369b7a 100644--- a/examples/archify-repo-grid.html+++ b/examples/archify-repo-grid.html@@ -7660,7 +7660,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8135,7 +8135,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8162,7 +8162,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8443,7 +8443,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8644,7 +8647,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8730,7 +8733,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8846,7 +8849,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/archify-repo.html b/examples/archify-repo.htmlindex 14ab404c..761470de 100644--- a/examples/archify-repo.html+++ b/examples/archify-repo.html@@ -7722,7 +7722,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8197,7 +8197,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8224,7 +8224,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8505,7 +8505,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8706,7 +8709,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8792,7 +8795,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8908,7 +8911,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.htmlindex 6be7702a..e8ee89ce 100644--- a/examples/checkout-platform-delta.html+++ b/examples/checkout-platform-delta.html@@ -12475,7 +12475,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -12950,7 +12950,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -12977,7 +12977,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -13258,7 +13258,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -13459,7 +13462,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -13545,7 +13548,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -13661,7 +13664,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;@@ -27555,7 +27558,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -28030,7 +28033,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -28057,7 +28060,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -28338,7 +28341,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -28539,7 +28545,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -28625,7 +28631,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -28741,7 +28747,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.jsonindex d2b6a097..dc1eaf9f 100644--- a/examples/checkout-platform-delta.receipt.json+++ b/examples/checkout-platform-delta.receipt.json@@ -219,8 +219,8 @@"Boundary identity is conservatively derived from kind + label."],"artifact": {- "sha256": "fac25cdc6d96bf5be6fa42520c80e161964a5d8d7f5f61031150bcde41094596",- "bytes": 2023841+ "sha256": "eccd8e4efa88840cd1fe1cd640b0625a370d561f4cf686319472dbb975304838",+ "bytes": 2024013},"validation": {"checksPassed": 28,diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.htmlindex 4a3c6288..2cc790db 100644--- a/examples/dataflow-product-analytics.html+++ b/examples/dataflow-product-analytics.html@@ -7752,7 +7752,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8227,7 +8227,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8254,7 +8254,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8535,7 +8535,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8736,7 +8739,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8822,7 +8825,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8938,7 +8941,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex ea79fa9b..54e64c7b 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -7701,7 +7701,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8176,7 +8176,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8203,7 +8203,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8484,7 +8484,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8685,7 +8688,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8771,7 +8774,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8887,7 +8890,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/maka-architecture.html b/examples/maka-architecture.htmlindex f0446520..32e248ad 100644--- a/examples/maka-architecture.html+++ b/examples/maka-architecture.html@@ -7748,7 +7748,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8223,7 +8223,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8250,7 +8250,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8531,7 +8531,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8732,7 +8735,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8818,7 +8821,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8934,7 +8937,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/rag-pipeline.html b/examples/rag-pipeline.htmlindex 376aabe6..ca973ae8 100644--- a/examples/rag-pipeline.html+++ b/examples/rag-pipeline.html@@ -7763,7 +7763,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8238,7 +8238,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8265,7 +8265,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8546,7 +8546,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8747,7 +8750,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8833,7 +8836,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8949,7 +8952,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.htmlindex aaa74306..1555d33d 100644--- a/examples/sequence-cache-miss-request.html+++ b/examples/sequence-cache-miss-request.html@@ -7767,7 +7767,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8242,7 +8242,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8269,7 +8269,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8550,7 +8550,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8751,7 +8754,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8837,7 +8840,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8953,7 +8956,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.htmlindex cef9fccf..41f7e745 100644--- a/examples/web-app-rendered.html+++ b/examples/web-app-rendered.html@@ -7716,7 +7716,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8191,7 +8191,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8218,7 +8218,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8499,7 +8499,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8700,7 +8703,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8786,7 +8789,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8902,7 +8905,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/web-app.html b/examples/web-app.htmlindex cef9fccf..41f7e745 100644--- a/examples/web-app.html+++ b/examples/web-app.html@@ -7716,7 +7716,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8191,7 +8191,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8218,7 +8218,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8499,7 +8499,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8700,7 +8703,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8786,7 +8789,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8902,7 +8905,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.htmlindex bc9f6211..0e6ab9cd 100644--- a/examples/workflow-agent-tool-call-rendered.html+++ b/examples/workflow-agent-tool-call-rendered.html@@ -7758,7 +7758,7 @@if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -8233,7 +8233,7 @@target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8260,7 +8260,7 @@if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8541,7 +8541,10 @@}var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8742,7 +8745,7 @@chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8828,7 +8831,7 @@relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');@@ -8944,7 +8947,7 @@reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;