Skip to content

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

chore: refresh viewer evidence artifacts

sunsunsunfdc244bf7822
diff --git a/archify.zip b/archify.zip
index 32a53b38..84142219 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.html
index 8c89e807..7193d161 100644
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@ -10951,6 +10951,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10970,6 +10971,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11032,11 +11048,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.html
index f991ff7f..b48e23b2 100644
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@ -10900,6 +10900,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10919,6 +10920,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10981,11 +10997,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 7c7be056..6c5b8340 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -10966,6 +10966,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10985,6 +10986,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11047,11 +11063,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.html
index a90dad7c..e874a413 100644
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@ -10915,6 +10915,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10934,6 +10935,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10996,11 +11012,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.html
index da00bfcb..91084d7d 100644
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@ -10957,6 +10957,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10976,6 +10977,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11038,11 +11054,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index 4004be68..4e883d0b 100644
Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differ
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index 6cbc64a8..f6ef0c07 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": 1709565,
- "sha256": "fb6991a8f5623716708a9f2c5df675be3e54a8ccec932a1446bd999ec35afd46",
+ "bytes": 1517346,
+ "sha256": "1b351cbf7542397aaa1c176d0f024947665160dab1ae949602d813c7a0cd4c55",
"scenes": [
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "d8131a3160c73916fffa8417c1769fe5ea651369576bce0c77e5057ca96264e5",
+ "artifactSha256": "8371f79b63d4f387c6280df72e34b09b98181397c5a8d10b8041828996d818d0",
"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": "980d1cad42a58e29ccc35dec0a9dd0f83fc4eb6f3070e5d2b23c5ea5c51ff79a",
+ "artifactSha256": "58f8a543be64bd64c098c1a83f7f13fe8f85fe0912baff2f3f94c3e07619ed9e",
"view": "request-boundary",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "06d2eff27e2d98efa47ff8cb3409481804549a416c8a682e55bf53676a77f009",
+ "artifactSha256": "803b3644ee6af22be4429c93559ccb357bf028e7486beb9df1541bc0ae8b2815",
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/gallery.html b/docs/gallery.html
index b50ab070..d644091c 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="d8131a3160c73916fffa8417c1769fe5ea651369576bce0c77e5057ca96264e5">d8131a3160c7</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8371f79b63d4f387c6280df72e34b09b98181397c5a8d10b8041828996d818d0">8371f79b63d4</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&amp;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="980d1cad42a58e29ccc35dec0a9dd0f83fc4eb6f3070e5d2b23c5ea5c51ff79a">980d1cad42a5</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="58f8a543be64bd64c098c1a83f7f13fe8f85fe0912baff2f3f94c3e07619ed9e">58f8a543be64</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&amp;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="06d2eff27e2d98efa47ff8cb3409481804549a416c8a682e55bf53676a77f009">06d2eff27e2d</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="803b3644ee6af22be4429c93559ccb357bf028e7486beb9df1541bc0ae8b2815">803b3644ee6a</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&amp;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="106f2f1a9f1e2359371c5a8811f080b040f5737c5b4852839cbc1c72637ed82c">106f2f1a9f1e</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9cd8bf415d6cfcae9dac48b9bb13f14ce1317b8c4795bc7a0d23e1ab06c3e83e">9cd8bf415d6c</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&amp;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="b488807ac306b1b2876192862f96d9e392823e7c3944da73cc4c5c88abbb5825">b488807ac306</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6150bdf9e0f1305be3cf9caed8bea67705efaa8ffbfbf8b374ffb4e5caaab5cb">6150bdf9e0f1</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&amp;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="b2892d4bfdcca1fa82f42e1866c3310322f2da435ef362b724dfd2c744e30d00">b2892d4bfdcc</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d5afc8949f4a9bab069fe0e1249eacf7bd9cbf7d4b7798cf01e3c24f88e41182">d5afc8949f4a</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&amp;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="20dd0fd86cfc2f74248fdacdbf06f6ec00964b704f4a0ca9dc07f9094e215cdc">20dd0fd86cfc</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="93de83101fa1e61ecdec2e72bf1bb9ce25c64b9f2c78776505b6885b4aaf3593">93de83101fa1</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&amp;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="1b35ea5238753781d739abdda0dccf9279b6e30fd0d4cfc8cc2722442ef2a90f">1b35ea523875</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c4b94a512da25471ca94034b629f57234fd2700d1c2ae3d451bc606d0c8fc1cc">c4b94a512da2</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&amp;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="7b40a5ce3f61dcfa0834dd23cc8b9ec7010591686d7c275f60db29b554e8b819">7b40a5ce3f61</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="43ef17f4785cf0baccd6db89ba5be205e5d6c64da13e97c160b6f551bbcf4dfd">43ef17f4785c</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&amp;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="f5e0b14137a5ac03edb8066b2cfb354cf4fd3f141dd2c17f960b0a4c69aa6324">f5e0b14137a5</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="f366916839e340a1b005888465bfd6163c16d2dd2e92de284f565137fc20ec26">f366916839e3</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&amp;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="742fbd3feebdc8a140d57b8a0380fdf55607365e4c8fbc397c3da876c0b6ee29">742fbd3feebd</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="45044c372156e85aaf909950cacb74a680459b8d1b22f25269922baa208a56e3">45044c372156</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&amp;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": 723473,
- "artifactSha256": "d8131a3160c73916fffa8417c1769fe5ea651369576bce0c77e5057ca96264e5",
+ "artifactBytes": 724275,
+ "artifactSha256": "8371f79b63d4f387c6280df72e34b09b98181397c5a8d10b8041828996d818d0",
"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": 725307,
- "artifactSha256": "980d1cad42a58e29ccc35dec0a9dd0f83fc4eb6f3070e5d2b23c5ea5c51ff79a",
+ "artifactBytes": 726109,
+ "artifactSha256": "58f8a543be64bd64c098c1a83f7f13fe8f85fe0912baff2f3f94c3e07619ed9e",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -875,8 +875,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 717277,
- "artifactSha256": "06d2eff27e2d98efa47ff8cb3409481804549a416c8a682e55bf53676a77f009",
+ "artifactBytes": 718079,
+ "artifactSha256": "803b3644ee6af22be4429c93559ccb357bf028e7486beb9df1541bc0ae8b2815",
"sourceBytes": 4345,
"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389",
"checks": [
@@ -975,8 +975,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 719673,
- "artifactSha256": "106f2f1a9f1e2359371c5a8811f080b040f5737c5b4852839cbc1c72637ed82c",
+ "artifactBytes": 720475,
+ "artifactSha256": "9cd8bf415d6cfcae9dac48b9bb13f14ce1317b8c4795bc7a0d23e1ab06c3e83e",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -1075,8 +1075,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 717002,
- "artifactSha256": "b488807ac306b1b2876192862f96d9e392823e7c3944da73cc4c5c88abbb5825",
+ "artifactBytes": 717804,
+ "artifactSha256": "6150bdf9e0f1305be3cf9caed8bea67705efaa8ffbfbf8b374ffb4e5caaab5cb",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -1175,8 +1175,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 720931,
- "artifactSha256": "b2892d4bfdcca1fa82f42e1866c3310322f2da435ef362b724dfd2c744e30d00",
+ "artifactBytes": 721733,
+ "artifactSha256": "d5afc8949f4a9bab069fe0e1249eacf7bd9cbf7d4b7798cf01e3c24f88e41182",
"sourceBytes": 5627,
"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110",
"checks": [
@@ -1275,8 +1275,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 717687,
- "artifactSha256": "20dd0fd86cfc2f74248fdacdbf06f6ec00964b704f4a0ca9dc07f9094e215cdc",
+ "artifactBytes": 718489,
+ "artifactSha256": "93de83101fa1e61ecdec2e72bf1bb9ce25c64b9f2c78776505b6885b4aaf3593",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -1375,8 +1375,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 724894,
- "artifactSha256": "1b35ea5238753781d739abdda0dccf9279b6e30fd0d4cfc8cc2722442ef2a90f",
+ "artifactBytes": 725696,
+ "artifactSha256": "c4b94a512da25471ca94034b629f57234fd2700d1c2ae3d451bc606d0c8fc1cc",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -1475,8 +1475,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 714566,
- "artifactSha256": "7b40a5ce3f61dcfa0834dd23cc8b9ec7010591686d7c275f60db29b554e8b819",
+ "artifactBytes": 715368,
+ "artifactSha256": "43ef17f4785cf0baccd6db89ba5be205e5d6c64da13e97c160b6f551bbcf4dfd",
"sourceBytes": 4417,
"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42",
"checks": [
@@ -1575,8 +1575,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 715558,
- "artifactSha256": "f5e0b14137a5ac03edb8066b2cfb354cf4fd3f141dd2c17f960b0a4c69aa6324",
+ "artifactBytes": 716360,
+ "artifactSha256": "f366916839e340a1b005888465bfd6163c16d2dd2e92de284f565137fc20ec26",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1675,8 +1675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 715651,
- "artifactSha256": "742fbd3feebdc8a140d57b8a0380fdf55607365e4c8fbc397c3da876c0b6ee29",
+ "artifactBytes": 716453,
+ "artifactSha256": "45044c372156e85aaf909950cacb74a680459b8d1b22f25269922baa208a56e3",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.html
index f991ff7f..b48e23b2 100644
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@ -10900,6 +10900,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10919,6 +10920,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10981,11 +10997,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.html
index da00bfcb..91084d7d 100644
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@ -10957,6 +10957,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10976,6 +10977,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11038,11 +11054,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index bbbc1228..26cebf84 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -10978,6 +10978,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10997,6 +10998,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11059,11 +11075,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 7c7be056..6c5b8340 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -10966,6 +10966,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10985,6 +10986,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11047,11 +11063,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.html
index 7a1870e3..b84be320 100644
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@ -10912,6 +10912,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10931,6 +10932,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10993,11 +11009,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index 1ad66f33..78e51804 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -10990,6 +10990,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -11009,6 +11010,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11071,11 +11087,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index 5fdfe06a..c6bef6bb 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -10917,6 +10917,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10936,6 +10937,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10998,11 +11014,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.html
index 8c89e807..7193d161 100644
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@ -10951,6 +10951,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10970,6 +10971,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11032,11 +11048,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.html
index de6454f5..9462459a 100644
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@ -10982,6 +10982,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -11001,6 +11002,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11063,11 +11079,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.html
index 11636d80..ff5df1e4 100644
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@ -10943,6 +10943,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10962,6 +10963,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11024,11 +11040,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.html
index a90dad7c..e874a413 100644
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@ -10915,6 +10915,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10934,6 +10935,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10996,11 +11012,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 0c5d3ce4..64630d09 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -27,8 +27,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 723473,
- "artifactSha256": "d8131a3160c73916fffa8417c1769fe5ea651369576bce0c77e5057ca96264e5",
+ "artifactBytes": 724275,
+ "artifactSha256": "8371f79b63d4f387c6280df72e34b09b98181397c5a8d10b8041828996d818d0",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -127,8 +127,8 @@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 725307,
- "artifactSha256": "980d1cad42a58e29ccc35dec0a9dd0f83fc4eb6f3070e5d2b23c5ea5c51ff79a",
+ "artifactBytes": 726109,
+ "artifactSha256": "58f8a543be64bd64c098c1a83f7f13fe8f85fe0912baff2f3f94c3e07619ed9e",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -227,8 +227,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 717277,
- "artifactSha256": "06d2eff27e2d98efa47ff8cb3409481804549a416c8a682e55bf53676a77f009",
+ "artifactBytes": 718079,
+ "artifactSha256": "803b3644ee6af22be4429c93559ccb357bf028e7486beb9df1541bc0ae8b2815",
"sourceBytes": 4345,
"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389",
"checks": [
@@ -327,8 +327,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 719673,
- "artifactSha256": "106f2f1a9f1e2359371c5a8811f080b040f5737c5b4852839cbc1c72637ed82c",
+ "artifactBytes": 720475,
+ "artifactSha256": "9cd8bf415d6cfcae9dac48b9bb13f14ce1317b8c4795bc7a0d23e1ab06c3e83e",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -427,8 +427,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 717002,
- "artifactSha256": "b488807ac306b1b2876192862f96d9e392823e7c3944da73cc4c5c88abbb5825",
+ "artifactBytes": 717804,
+ "artifactSha256": "6150bdf9e0f1305be3cf9caed8bea67705efaa8ffbfbf8b374ffb4e5caaab5cb",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -527,8 +527,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 720931,
- "artifactSha256": "b2892d4bfdcca1fa82f42e1866c3310322f2da435ef362b724dfd2c744e30d00",
+ "artifactBytes": 721733,
+ "artifactSha256": "d5afc8949f4a9bab069fe0e1249eacf7bd9cbf7d4b7798cf01e3c24f88e41182",
"sourceBytes": 5627,
"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110",
"checks": [
@@ -627,8 +627,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 717687,
- "artifactSha256": "20dd0fd86cfc2f74248fdacdbf06f6ec00964b704f4a0ca9dc07f9094e215cdc",
+ "artifactBytes": 718489,
+ "artifactSha256": "93de83101fa1e61ecdec2e72bf1bb9ce25c64b9f2c78776505b6885b4aaf3593",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -727,8 +727,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 724894,
- "artifactSha256": "1b35ea5238753781d739abdda0dccf9279b6e30fd0d4cfc8cc2722442ef2a90f",
+ "artifactBytes": 725696,
+ "artifactSha256": "c4b94a512da25471ca94034b629f57234fd2700d1c2ae3d451bc606d0c8fc1cc",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -827,8 +827,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 714566,
- "artifactSha256": "7b40a5ce3f61dcfa0834dd23cc8b9ec7010591686d7c275f60db29b554e8b819",
+ "artifactBytes": 715368,
+ "artifactSha256": "43ef17f4785cf0baccd6db89ba5be205e5d6c64da13e97c160b6f551bbcf4dfd",
"sourceBytes": 4417,
"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42",
"checks": [
@@ -927,8 +927,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 715558,
- "artifactSha256": "f5e0b14137a5ac03edb8066b2cfb354cf4fd3f141dd2c17f960b0a4c69aa6324",
+ "artifactBytes": 716360,
+ "artifactSha256": "f366916839e340a1b005888465bfd6163c16d2dd2e92de284f565137fc20ec26",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1027,8 +1027,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 715651,
- "artifactSha256": "742fbd3feebdc8a140d57b8a0380fdf55607365e4c8fbc397c3da876c0b6ee29",
+ "artifactBytes": 716453,
+ "artifactSha256": "45044c372156e85aaf909950cacb74a680459b8d1b22f25269922baa208a56e3",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index 4992ed8b..d4e9c224 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -15675,6 +15675,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram &amp;&amp; ratio &gt;= WIDE_RATIO) {
@@ -15694,6 +15695,21 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ &#39;text[data-node-label], text[data-boundary-label], text[data-detail=&quot;context&quot;]&#39;
+ )).forEach(function (text) {
+ if (text.getAttribute(&#39;data-detail&#39;) === &#39;context&#39; &amp;&amp; !text.closest(&#39;[data-node-id]&#39;)) return;
+ var sourceFontPx = parseFloat(text.getAttribute(&#39;font-size&#39;) || &#39;&#39;);
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell &amp;&amp; diagram &amp;&amp; svg &amp;&amp; (ratio &gt;= WIDE_RATIO || intrinsicHeightFit) &amp;&amp;
@@ -15756,11 +15772,11 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox &amp;&amp; viewBox.width &gt; 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox &amp;&amp; viewBox.width &gt; 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit &amp;&amp; ratio &lt; WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit &amp;&amp; ratio &lt; WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
@@ -30763,6 +30779,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram &amp;&amp; ratio &gt;= WIDE_RATIO) {
@@ -30782,6 +30799,21 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ &#39;text[data-node-label], text[data-boundary-label], text[data-detail=&quot;context&quot;]&#39;
+ )).forEach(function (text) {
+ if (text.getAttribute(&#39;data-detail&#39;) === &#39;context&#39; &amp;&amp; !text.closest(&#39;[data-node-id]&#39;)) return;
+ var sourceFontPx = parseFloat(text.getAttribute(&#39;font-size&#39;) || &#39;&#39;);
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell &amp;&amp; diagram &amp;&amp; svg &amp;&amp; (ratio &gt;= WIDE_RATIO || intrinsicHeightFit) &amp;&amp;
@@ -30844,11 +30876,11 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox &amp;&amp; viewBox.width &gt; 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox &amp;&amp; viewBox.width &gt; 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit &amp;&amp; ratio &lt; WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit &amp;&amp; ratio &lt; WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index fa7d983c..27e30bf5 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": "938525dbbb883ca079ec360646c7f78c9ce76c13e05143c2d8665af505b0cb97",
- "bytes": 2024908
+ "sha256": "f868200193aedc8438e647e39cca4ee8ef7f96ad1042e5df7331adb1602fb99f",
+ "bytes": 2026644
},
"validation": {
"checksPassed": 28,
diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.html
index 8c89e807..7193d161 100644
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@ -10951,6 +10951,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10970,6 +10971,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11032,11 +11048,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.html
index f991ff7f..b48e23b2 100644
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@ -10900,6 +10900,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10919,6 +10920,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10981,11 +10997,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 7c7be056..6c5b8340 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -10966,6 +10966,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10985,6 +10986,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11047,11 +11063,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.html
index a90dad7c..e874a413 100644
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@ -10915,6 +10915,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10934,6 +10935,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10996,11 +11012,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/examples/web-app.html b/examples/web-app.html
index a90dad7c..e874a413 100644
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@ -10915,6 +10915,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10934,6 +10935,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -10996,11 +11012,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.html
index da00bfcb..91084d7d 100644
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@ -10957,6 +10957,7 @@
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
var MAX_READER_WIDTH = 1920;
+ var MIN_PROJECTED_NODE_TEXT_PX = 6;
var SAFE_BOTTOM_GAP = 12;
if (diagram && ratio >= WIDE_RATIO) {
@@ -10976,6 +10977,21 @@
var style = window.getComputedStyle(element);
return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);
}
+ function minimumReadableScale() {
+ var sourceMinimum = null;
+ Array.from(svg.querySelectorAll(
+ 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'
+ )).forEach(function (text) {
+ if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;
+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');
+ if (Number.isFinite(sourceFontPx)) {
+ sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);
+ }
+ });
+ return sourceMinimum != null
+ ? Math.min(1, MIN_PROJECTED_NODE_TEXT_PX / sourceMinimum)
+ : 1;
+ }
function eligible() {
return Boolean(
shell && diagram && svg && (ratio >= WIDE_RATIO || intrinsicHeightFit) &&
@@ -11038,11 +11054,11 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
+ var readableWidth = viewBox && viewBox.width > 0
+ ? viewBox.width * minimumReadableScale() + chrome.diagramX
: MIN_READER_WIDTH;
var minWidth = Math.min(
- intrinsicHeightFit && ratio < WIDE_RATIO ? sourceWidth : MIN_READER_WIDTH,
+ intrinsicHeightFit && ratio < WIDE_RATIO ? readableWidth : MIN_READER_WIDTH,
viewportCap
);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);