Skip to content

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

feat(check): predict fixed-width viewport overflow before the browser gate

tt-a1iffd68ef2202d
diff --git a/archify.zip b/archify.zip
index 40eea1a5..0fccd10d 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/assets/template.html b/archify/assets/template.html
index ef07b28d..9f5a28a0 100644
--- a/archify/assets/template.html
+++ b/archify/assets/template.html
@@ -11260,10 +11260,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
- // Widest reader the overflow settle has accepted for this viewport. Card
- // copy rewraps as the reader narrows, so recomputing from fixed heights
- // alone would widen again and oscillate; only a resize lifts the cap.
- var settledCap = Infinity;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11325,7 +11326,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
- settledCap = Infinity;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11396,7 +11397,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11439,7 +11440,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
window.addEventListener('resize', function () {
- settledCap = Infinity;
+ settledCap = 0;
schedule();
}, { passive: true });
window.addEventListener('load', schedule, { once: true });
diff --git a/archify/bin/archify.mjs b/archify/bin/archify.mjs
index 7296264e..6ae3d86a 100755
--- a/archify/bin/archify.mjs
+++ b/archify/bin/archify.mjs
@@ -2647,6 +2647,7 @@ function checkerDiagnostics(checker) {
}
function compositionFixes(issue) {
+ if (issue.code === 'composition/viewport-height') return [String(issue.detail || '').replace(/^\[[^\]]+\]\s*/, '')];
if (issue.code !== 'composition/desktop-readability') return COMPOSITION_FIXES[issue.code] || [];
const sourceFontPx = Number(issue.sourceFontPx);
const actualBudgetPx = Number(issue.availableDiagramWidth);
diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.html
index 7ec78f00..b2c8a321 100644
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@ -11371,6 +11371,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11432,6 +11437,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11464,6 +11470,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11501,7 +11508,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11543,7 +11550,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.html
index f723a96b..42f9ebe7 100644
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@ -11306,6 +11306,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11367,6 +11372,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11399,6 +11405,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11436,7 +11443,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11478,7 +11485,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 1cd422c3..7dd284cc 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -11386,6 +11386,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11447,6 +11452,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11479,6 +11485,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11516,7 +11523,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11558,7 +11565,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.html
index b2675a31..5018d353 100644
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@ -11359,6 +11359,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11420,6 +11425,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11452,6 +11458,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11489,7 +11496,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11531,7 +11538,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.html
index 53bf1e7a..2afef86e 100644
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@ -11377,6 +11377,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11438,6 +11443,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11470,6 +11476,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11507,7 +11514,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11549,7 +11556,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/archify/renderers/shared/desktop-readability.mjs b/archify/renderers/shared/desktop-readability.mjs
index 5576cf3e..90ddc272 100644
--- a/archify/renderers/shared/desktop-readability.mjs
+++ b/archify/renderers/shared/desktop-readability.mjs
@@ -80,3 +80,52 @@ export function declaredWideReadabilityBudget({
limit,
};
}
+
+// Vertical chrome that always stacks with the SVG at the 1440x900 desktop
+// viewport, measured from the delivered Viewer with the shortest one-line
+// header and no cards: body padding 12, header 39, diagram padding/border 75.
+// The guided-views strip adds 61 when meta.views exist. Cards are excluded so
+// the prediction stays a lower bound.
+export const DESKTOP_FIXED_VERTICAL_CHROME_PX = Object.freeze({ body: 12, header: 39, diagram: 75, guidedViews: 61 });
+
+// A canvas the Reader can neither narrow (viewBox ratio below the wide
+// threshold) nor scroll readably (no intrinsic-height fit) renders at the full
+// reader width, so its page height is a function of the viewBox alone. Returns
+// null when the Reader has a way to fit the page; otherwise the certain
+// overflow at 1440x900 before any cards are counted.
+export function predictedFixedWidthOverflow({
+ viewBoxWidth,
+ viewBoxHeight,
+ readerFit,
+ hasGuidedViews = false,
+ viewport = DESKTOP_READABILITY_VIEWPORT,
+ bodyHorizontalPx = DECLARED_WIDE_REFERENCE_BODY_HORIZONTAL_PX,
+ diagramHorizontalPx = DECLARED_WIDE_REFERENCE_DIAGRAM_HORIZONTAL_PX,
+ chrome = DESKTOP_FIXED_VERTICAL_CHROME_PX,
+} = {}) {
+ if (![viewBoxWidth, viewBoxHeight].every(Number.isFinite) || viewBoxWidth <= 0 || viewBoxHeight <= 0) return null;
+ const ratio = viewBoxWidth / viewBoxHeight;
+ if (readerFit === 'intrinsic-height' || ratio >= DECLARED_WIDE_READER_RATIO) return null;
+ const svgWidthPx = viewport.width - bodyHorizontalPx - diagramHorizontalPx;
+ const svgHeightPx = Math.round(svgWidthPx * viewBoxHeight / viewBoxWidth);
+ const fixedChromePx = chrome.body + chrome.header + chrome.diagram + (hasGuidedViews ? chrome.guidedViews : 0);
+ const pageHeightPx = svgHeightPx + fixedChromePx;
+ if (pageHeightPx <= viewport.height) return null;
+ return {
+ viewportWidth: viewport.width,
+ viewportHeight: viewport.height,
+ ratio: Math.round(ratio * 100) / 100,
+ wideRatio: DECLARED_WIDE_READER_RATIO,
+ svgWidthPx,
+ svgHeightPx,
+ fixedChromePx,
+ pageHeightPx,
+ overflowPx: pageHeightPx - viewport.height,
+ };
+}
+
+export function describeFixedWidthOverflow(issue) {
+ const maximumViewBoxHeight = Math.floor(issue.viewBoxWidth / issue.wideRatio);
+ const wideViewBoxWidth = Math.ceil(issue.viewBoxHeight * issue.wideRatio);
+ return `Preserve every node, relationship, and label. This ${issue.viewBoxWidth}x${issue.viewBoxHeight} canvas (ratio ${issue.ratio}) declares no intrinsic-height fit and is below the ${issue.wideRatio} wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders ${issue.svgHeightPx}px tall at the full ${issue.svgWidthPx}px width and the page reaches ${issue.pageHeightPx}px before cards against ${issue.viewportHeight}px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most ${maximumViewBoxHeight} at this width, or spread content sideways so the width is at least ${wideViewBoxWidth} at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit.`;
+}
diff --git a/archify/scripts/check-render-output.mjs b/archify/scripts/check-render-output.mjs
index 0a125dd1..bb2bd989 100644
--- a/archify/scripts/check-render-output.mjs
+++ b/archify/scripts/check-render-output.mjs
@@ -10,6 +10,8 @@ import {
DECLARED_WIDE_READER_CONTRACT,
declaredWideReadabilityBudget,
MIN_PROJECTED_NODE_TEXT_PX,
+ describeFixedWidthOverflow,
+ predictedFixedWidthOverflow,
projectedNodeTextPx,
} from '../renderers/shared/desktop-readability.mjs';
@@ -114,6 +116,13 @@ if (svgMatches.length === 1) {
const beforeLegend = legendStart >= 0 ? svg.slice(0, legendStart) : svg;
const desktopReadability = collectDesktopReadability(svgAttrs, beforeLegend, readerContract);
const desktopReadabilityIssue = desktopReadability.issue;
+ // The browser gate measures this later; the geometry is already certain here.
+ const viewportHeightIssue = predictedFixedWidthOverflow({
+ viewBoxWidth: viewBoxSize(svgAttrs)[0],
+ viewBoxHeight: viewBoxSize(svgAttrs)[1],
+ readerFit: svgAttrs['data-reader-fit'] || null,
+ hasGuidedViews: /class="guided-views/.test(html),
+ });
const arrows = collectArrows(beforeLegend);
const diagonal = arrows.flatMap((arrow) => diagonalStraightSegments(arrow).map((segment) => ({ arrow, ...segment })));
addCheck(
@@ -170,20 +179,24 @@ if (svgMatches.length === 1) {
const labelClearanceIsError = qualityProfile === 'showcase';
const labelContainmentIsError = qualityProfile === 'showcase';
const desktopReadabilityIsError = qualityProfile === 'showcase';
+ // Certain geometry, but new: surface it as evidence first (CONTRIBUTING.md#product-and-compatibility-contracts).
+ const viewportHeightIsError = false;
const compositionErrors = (qualityGatesEnforced ? containerBorderRuns.length : 0)
+ (crossingIsError ? relationshipCrossings.length : 0)
+ (corridorIsError ? ambiguousCorridors.length : 0)
+ (labelClearanceIsError ? labelRouteClearance.length : 0)
+ (labelContainmentIsError ? labelCanvasOverflow.length : 0)
+ (rhythmIsError ? routeRhythmIssues.length : 0)
- + (desktopReadabilityIsError && desktopReadabilityIssue ? 1 : 0);
+ + (desktopReadabilityIsError && desktopReadabilityIssue ? 1 : 0)
+ + (viewportHeightIsError && viewportHeightIssue ? 1 : 0);
const compositionWarnings = (qualityGatesEnforced ? 0 : containerBorderRuns.length)
+ (crossingIsError ? 0 : relationshipCrossings.length)
+ (corridorIsError ? 0 : ambiguousCorridors.length)
+ (labelClearanceIsError ? 0 : labelRouteClearance.length)
+ (labelContainmentIsError ? 0 : labelCanvasOverflow.length)
+ (rhythmIsError ? 0 : routeRhythmIssues.length)
- + (desktopReadabilityIsError || !desktopReadabilityIssue ? 0 : 1);
+ + (desktopReadabilityIsError || !desktopReadabilityIssue ? 0 : 1)
+ + (viewportHeightIsError || !viewportHeightIssue ? 0 : 1);
composition = {
schemaVersion: 1,
profile: qualityProfile,
@@ -201,6 +214,7 @@ if (svgMatches.length === 1) {
labelCanvasOverflowIssues: labelCanvasOverflow.length,
minLabelRouteClearance: minimumLabelRouteClearance(labelRouteMeasurements),
desktopReadabilityIssues: desktopReadabilityIssue ? 1 : 0,
+ viewportHeightIssues: viewportHeightIssue ? 1 : 0,
minProjectedNodeTextPx: desktopReadability.evidence.minimumProjectedTextPx,
...roundedRouteMetrics(routeMetrics),
},
@@ -295,6 +309,15 @@ if (svgMatches.length === 1) {
projectedFontPx: desktopReadabilityIssue.projectedFontPx,
minimumProjectedFontPx: MIN_PROJECTED_NODE_TEXT_PX,
}] : []),
+ ...(viewportHeightIssue ? [{
+ severity: viewportHeightIsError ? 'error' : 'warning',
+ code: 'composition/viewport-height',
+ readerFit: svgAttrs['data-reader-fit'] || null,
+ viewBoxWidth: viewBoxSize(svgAttrs)[0],
+ viewBoxHeight: viewBoxSize(svgAttrs)[1],
+ ...viewportHeightIssue,
+ detail: `[composition/viewport-height] ${describeFixedWidthOverflow({ ...viewportHeightIssue, viewBoxWidth: viewBoxSize(svgAttrs)[0], viewBoxHeight: viewBoxSize(svgAttrs)[1] })}`,
+ }] : []),
],
};
addCheck(
diff --git a/archify/test/artifact-receipt-flush.test.mjs b/archify/test/artifact-receipt-flush.test.mjs
index 2a3971ab..c1791e9e 100644
--- a/archify/test/artifact-receipt-flush.test.mjs
+++ b/archify/test/artifact-receipt-flush.test.mjs
@@ -31,7 +31,7 @@ for (const profile of ['standard', 'showcase']) {
`<path data-edge-id="edge-${index}" data-edge-from="source-${index}" data-edge-to="target-${index}" d="M 20 40 L 220 40" class="a-default" marker-end="url(#arrowhead)"/>`
)).join('\n');
const html = path.join(tmp, `${profile}.html`);
- fs.writeFileSync(html, `<svg viewBox="0 0 240 160" data-quality-profile="${profile}">${arrows}</svg>`);
+ fs.writeFileSync(html, `<svg viewBox="0 0 240 154" data-quality-profile="${profile}">${arrows}</svg>`);
// A regular file is the synchronous-output control. The pipe must carry
// exactly the same bytes, including the final diagnostic and closing JSON.
diff --git a/archify/test/render-output-checks.test.mjs b/archify/test/render-output-checks.test.mjs
index ecec6d7c..dec235b4 100644
--- a/archify/test/render-output-checks.test.mjs
+++ b/archify/test/render-output-checks.test.mjs
@@ -30,7 +30,9 @@ test('render output check: finite_svg preserves slashes in unquoted HTML attribu
}
});
-function checkHtml(name, svgBody, profile = 'standard', viewBox = '0 0 240 160', head = '', svgAttributes = '') {
+// 240x154 keeps the default fixture at the 1.55 wide ratio, so the fixed-width
+// viewport-height rule stays out of tests that target other composition rules.
+function checkHtml(name, svgBody, profile = 'standard', viewBox = '0 0 240 154', head = '', svgAttributes = '') {
const htmlPath = path.join(tmp, `${name}.html`);
fs.writeFileSync(htmlPath, `<!doctype html><html><head>${head}</head><body><svg viewBox="${viewBox}" data-quality-profile="${profile}"${svgAttributes}>${svgBody}</svg></body></html>`);
try {
@@ -59,6 +61,36 @@ test('render output check: showcase rejects node copy that becomes illegible at
assert.ok(issue?.projectedFontPx < issue?.minimumProjectedFontPx);
});
+test('render output check: predicts the certain 1440x900 overflow of a fixed-width portrait canvas', () => {
+ const node = `
+ <g data-node-id="a">
+ <rect x="20" y="20" width="200" height="60" rx="6" class="c-mask"/>
+ <text data-node-label x="120" y="55" class="t-primary" font-size="12">Node</text>
+ </g>
+ `;
+ // 1080x780 dataflow: measured in Chrome at 972px SVG / 1159px page before cards.
+ const portrait = checkHtml('viewport-height-portrait', node, 'showcase', '0 0 1080 780', '', '');
+ const issue = portrait.result.composition.issues.find((item) => item.code === 'composition/viewport-height');
+ assert.equal(issue?.severity, 'warning', 'new rule surfaces as evidence first');
+ assert.equal(portrait.code, 0);
+ assert.equal(issue.svgHeightPx, 972);
+ assert.equal(issue.fixedChromePx, 126, 'no guided-views strip in this fixture');
+ assert.equal(issue.pageHeightPx, 1098);
+ assert.match(issue.detail, /meta\.viewBox height is at most 696 at this width/);
+ assert.match(issue.detail, /width is at least 1209 at this height/);
+ assert.equal(portrait.result.composition.summary.warnings, 1);
+
+ const withViews = checkHtml('viewport-height-views', node, 'showcase', '0 0 1080 780', '<div class="guided-views"></div>');
+ assert.equal(withViews.result.composition.issues.find((item) => item.code === 'composition/viewport-height')?.pageHeightPx, 1159);
+
+ const declaredFit = checkHtml('viewport-height-fit', node, 'showcase', '0 0 1080 780', '', ' data-reader-fit="intrinsic-height"');
+ assert.equal(declaredFit.result.composition.issues.some((item) => item.code === 'composition/viewport-height'), false, 'a Reader-declared fit can scroll readably');
+
+ const wide = checkHtml('viewport-height-wide', node, 'showcase', '0 0 1600 900');
+ assert.equal(wide.result.composition.issues.some((item) => item.code === 'composition/viewport-height'), false, 'a wide canvas is narrowed by the Reader instead');
+ assert.equal(wide.result.composition.metrics.viewportHeightIssues, 0);
+});
+
test('render output check: compares exact projected size before rounding diagnostics', () => {
const sourceFontPx = 8.1;
const viewBoxWidth = 1260;
@@ -420,7 +452,7 @@ test('render output check: a relationship label cannot leave the canvas', () =>
const issue = result.composition.issues.find((item) => item.code === 'composition/label-canvas-containment');
assert.equal(issue.label, 'approved replay');
assert.deepEqual(issue.labelRect, { x: 200, y: 48, width: 60, height: 14 });
- assert.deepEqual(issue.viewBox, [240, 160]);
+ assert.deepEqual(issue.viewBox, [240, 154]);
assert.deepEqual(issue.overflowPx, { right: 20 });
assert.match(issue.detail, /extends past the right edge by 20px/);
// The rule owns no named check: it fails the receipt through composition,
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index 1b6f98d1..e6cbddf3 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 2b1c0fe5..0ae92029 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": 1634896,
- "sha256": "995d2579c918fb8c073458460d6874fba71fdab3782f4a3384521b8d2686f686",
+ "bytes": 1611656,
+ "sha256": "95745008358a1f5a3ec406f89f10c62c90f3be006e1036be7b2d794ae417533d",
"scenes": [
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "5cd4ea2dfe063331dc56425f65000112a7a3f2d4ecc5df2aee65c5b71e2879ce",
+ "artifactSha256": "2a68a9d934f521a8cb9a137192c064212c7f0e4dae44360e53198ad109c569fb",
"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": "407534d90702d82cbcfa0ea984c3bcd4b618680c5c099731fcb5e50ee71d6fde",
+ "artifactSha256": "0be20f52539b648e67c946d825fee716fe1b5e5e8093e38a7c7b5475bea7112b",
"view": "request-boundary",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "3cc6925ffb9cc1bb82c5d42eb8213970b0943663231ee8c024017c0ab84d3c53",
+ "artifactSha256": "9a0edff4c99787c90b34c7c919051d03b4183504976711b5cec6020b68df0b2b",
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.html
index 0463a814..12871b11 100644
--- a/docs/cases/mco-runtime.architecture.html
+++ b/docs/cases/mco-runtime.architecture.html
@@ -11421,6 +11421,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11482,6 +11487,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11514,6 +11520,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11551,7 +11558,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11593,7 +11600,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery.html b/docs/gallery.html
index eabc4de8..9af0f9d6 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="5cd4ea2dfe063331dc56425f65000112a7a3f2d4ecc5df2aee65c5b71e2879ce">5cd4ea2dfe06</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2a68a9d934f521a8cb9a137192c064212c7f0e4dae44360e53198ad109c569fb">2a68a9d934f5</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="407534d90702d82cbcfa0ea984c3bcd4b618680c5c099731fcb5e50ee71d6fde">407534d90702</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="0be20f52539b648e67c946d825fee716fe1b5e5e8093e38a7c7b5475bea7112b">0be20f52539b</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="3cc6925ffb9cc1bb82c5d42eb8213970b0943663231ee8c024017c0ab84d3c53">3cc6925ffb9c</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9a0edff4c99787c90b34c7c919051d03b4183504976711b5cec6020b68df0b2b">9a0edff4c997</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="64cc0930cda44ea7a54e341c4f49dbf748b413ec771bc7457440b6bc5df149bd">64cc0930cda4</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b5ef0f1aac86bcbcfe337bef1542e9bd10e0b36d0decb505c39e8919f2cf74fe">b5ef0f1aac86</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="81c7361d1d404722c7985022d39f45a5bca51f0b74a11821fd2889991c053cae">81c7361d1d40</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="abf4e634486376c56eb15bf6851266775bf695cfab5e3fd1e086bc699d56e93b">abf4e6344863</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="aba265e695ea94b4af66c36c43767aad559d1505865cdeae51e27845e43eb559">aba265e695ea</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="046ea84ffc1567178929f2797366a77ae603ca22d89bc2e00e588285e9eeeb08">046ea84ffc15</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="cc0d43132b5384e2aac117ae8c5b260d5b857f2e7cb26113b7ccf25868b7903e">cc0d43132b53</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="be2f4ac8e7a3f44a67df1897c1833f903a61546f8c1b0983e3712c159e818c36">be2f4ac8e7a3</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="2acfddb7c9916c9826a1feba1e09d6e7ae6376c5c0d4f7c3552124a1e49c5844">2acfddb7c991</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="fb55bf1e0167bbf2fd6a17c21616d55857233580e8b3a6637cf07db563cd3662">fb55bf1e0167</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="027fa4649bb6e81cdbbae0bbeefb9b66fe4723f3ccd5bc614fe278fdd53338f5">027fa4649bb6</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="bf6965c8c0bb9683a452baf406a0d0c676c8ef298135920175976b51995f0840">bf6965c8c0bb</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="4e74b6991eb84b55ff3bed26f045127463680444e05ab0b854790c75869c6a53">4e74b6991eb8</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="a56c1e87402f5af00353a150761f185d6b182eaac95d1f3621148375ab634006">a56c1e87402f</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="cbe585163afb07d938b19a31e14d380063ac78652e0cbcd63b580fec288c2105">cbe585163afb</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="36baa99681119200001971c10d75709d104725bf3ff8bcc9b916aebfa1981886">36baa9968111</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": 842020,
- "artifactSha256": "5cd4ea2dfe063331dc56425f65000112a7a3f2d4ecc5df2aee65c5b71e2879ce",
+ "artifactBytes": 842451,
+ "artifactSha256": "2a68a9d934f521a8cb9a137192c064212c7f0e4dae44360e53198ad109c569fb",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -734,6 +734,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 29,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.788321167883212,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -795,8 +796,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 845248,
- "artifactSha256": "407534d90702d82cbcfa0ea984c3bcd4b618680c5c099731fcb5e50ee71d6fde",
+ "artifactBytes": 845679,
+ "artifactSha256": "0be20f52539b648e67c946d825fee716fe1b5e5e8093e38a7c7b5475bea7112b",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -854,6 +855,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 36,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 7.5,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -920,8 +922,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 837132,
- "artifactSha256": "3cc6925ffb9cc1bb82c5d42eb8213970b0943663231ee8c024017c0ab84d3c53",
+ "artifactBytes": 837563,
+ "artifactSha256": "9a0edff4c99787c90b34c7c919051d03b4183504976711b5cec6020b68df0b2b",
"sourceBytes": 4374,
"sourceSha256": "9a799a3661c16cd6ab4f6373ff6a04da95a9ab70d93b0a349b668466f4912fd7",
"checks": [
@@ -979,6 +981,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 8,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.027777777777779,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -1040,8 +1043,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 838236,
- "artifactSha256": "64cc0930cda44ea7a54e341c4f49dbf748b413ec771bc7457440b6bc5df149bd",
+ "artifactBytes": 838667,
+ "artifactSha256": "b5ef0f1aac86bcbcfe337bef1542e9bd10e0b36d0decb505c39e8919f2cf74fe",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -1088,7 +1091,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -1099,6 +1102,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 36.3,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 6.2,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -1135,7 +1139,25 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"minimumProjectedTextPx": 6.2,
"semanticTextCount": 24
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 720,
+ "viewBoxHeight": 900,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 0.8,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 1683,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1870,
+ "overflowPx": 970,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 720x900 canvas (ratio 0.8) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 1683px tall at the full 1346px width and the page reaches 1870px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 464 at this width, or spread content sideways so the width is at least 1395 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -1160,8 +1182,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 835555,
- "artifactSha256": "81c7361d1d404722c7985022d39f45a5bca51f0b74a11821fd2889991c053cae",
+ "artifactBytes": 835986,
+ "artifactSha256": "abf4e634486376c56eb15bf6851266775bf695cfab5e3fd1e086bc699d56e93b",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -1208,7 +1230,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -1219,6 +1241,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 119,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 7.7,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -1255,7 +1278,25 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"minimumProjectedTextPx": 7.7,
"semanticTextCount": 23
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 720,
+ "viewBoxHeight": 900,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 0.8,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 1683,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1870,
+ "overflowPx": 970,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 720x900 canvas (ratio 0.8) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 1683px tall at the full 1346px width and the page reaches 1870px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 464 at this width, or spread content sideways so the width is at least 1395 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -1280,8 +1321,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 839487,
- "artifactSha256": "aba265e695ea94b4af66c36c43767aad559d1505865cdeae51e27845e43eb559",
+ "artifactBytes": 839918,
+ "artifactSha256": "046ea84ffc1567178929f2797366a77ae603ca22d89bc2e00e588285e9eeeb08",
"sourceBytes": 5618,
"sourceSha256": "91411404fb4828a3b7ea358f3a7b9877781c9e9dc9c04b42b6eb4a757281b59f",
"checks": [
@@ -1339,6 +1380,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 44.3,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.027777777777779,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -1400,8 +1442,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 836250,
- "artifactSha256": "cc0d43132b5384e2aac117ae8c5b260d5b857f2e7cb26113b7ccf25868b7903e",
+ "artifactBytes": 836681,
+ "artifactSha256": "be2f4ac8e7a3f44a67df1897c1833f903a61546f8c1b0983e3712c159e818c36",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -1448,7 +1490,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -1459,6 +1501,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 22,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 7,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -1495,7 +1538,25 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"minimumProjectedTextPx": 7,
"semanticTextCount": 28
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 820,
+ "viewBoxHeight": 920,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 0.89,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 1510,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1697,
+ "overflowPx": 797,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 820x920 canvas (ratio 0.89) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 1510px tall at the full 1346px width and the page reaches 1697px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 529 at this width, or spread content sideways so the width is at least 1426 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -1520,8 +1581,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 843485,
- "artifactSha256": "2acfddb7c9916c9826a1feba1e09d6e7ae6376c5c0d4f7c3552124a1e49c5844",
+ "artifactBytes": 843916,
+ "artifactSha256": "fb55bf1e0167bbf2fd6a17c21616d55857233580e8b3a6637cf07db563cd3662",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -1568,7 +1629,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -1579,6 +1640,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 9,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 6.027777777777779,
"maxBends": 4,
"routesOverSuggestedBends": 1,
@@ -1615,7 +1677,25 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"minimumProjectedTextPx": 6.027777777777779,
"semanticTextCount": 36
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 1080,
+ "viewBoxHeight": 780,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 1.38,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 972,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1159,
+ "overflowPx": 259,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 1080x780 canvas (ratio 1.38) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 972px tall at the full 1346px width and the page reaches 1159px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 696 at this width, or spread content sideways so the width is at least 1209 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -1640,8 +1720,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 832564,
- "artifactSha256": "027fa4649bb6e81cdbbae0bbeefb9b66fe4723f3ccd5bc614fe278fdd53338f5",
+ "artifactBytes": 832995,
+ "artifactSha256": "bf6965c8c0bb9683a452baf406a0d0c676c8ef298135920175976b51995f0840",
"sourceBytes": 4044,
"sourceSha256": "7c0ad72ee7affbd6c6e4758b7520d61ddd4508c917acf36beabcad3ee7ca3ba7",
"checks": [
@@ -1699,6 +1779,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": null,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.320388349514563,
"maxBends": 3,
"routesOverSuggestedBends": 2,
@@ -1760,8 +1841,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 834106,
- "artifactSha256": "4e74b6991eb84b55ff3bed26f045127463680444e05ab0b854790c75869c6a53",
+ "artifactBytes": 834537,
+ "artifactSha256": "a56c1e87402f5af00353a150761f185d6b182eaac95d1f3621148375ab634006",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1808,7 +1889,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -1819,6 +1900,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": null,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 6.642857142857143,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -1855,7 +1937,25 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"minimumProjectedTextPx": 6.642857142857143,
"semanticTextCount": 22
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 980,
+ "viewBoxHeight": 680,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 1.44,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 934,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1121,
+ "overflowPx": 221,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 980x680 canvas (ratio 1.44) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 934px tall at the full 1346px width and the page reaches 1121px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 632 at this width, or spread content sideways so the width is at least 1054 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -1880,8 +1980,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 836873,
- "artifactSha256": "cbe585163afb07d938b19a31e14d380063ac78652e0cbcd63b580fec288c2105",
+ "artifactBytes": 837304,
+ "artifactSha256": "36baa99681119200001971c10d75709d104725bf3ff8bcc9b916aebfa1981886",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
@@ -1939,6 +2039,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 20,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 7.5,
"maxBends": 3,
"routesOverSuggestedBends": 1,
diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.html
index f723a96b..42f9ebe7 100644
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@ -11306,6 +11306,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11367,6 +11372,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11399,6 +11405,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11436,7 +11443,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11478,7 +11485,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.html
index 53bf1e7a..2afef86e 100644
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@ -11377,6 +11377,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11438,6 +11443,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11470,6 +11476,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11507,7 +11514,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11549,7 +11556,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index 1d6a5588..c1cf6904 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -11398,6 +11398,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11459,6 +11464,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11491,6 +11497,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11528,7 +11535,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11570,7 +11577,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 1cd422c3..7dd284cc 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -11386,6 +11386,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11447,6 +11452,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11479,6 +11485,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11516,7 +11523,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11558,7 +11565,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.html
index 0011573a..c7091e35 100644
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@ -11332,6 +11332,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11393,6 +11398,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11425,6 +11431,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11462,7 +11469,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11504,7 +11511,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index 1e3c4d2c..f777ac90 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -11410,6 +11410,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11471,6 +11476,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11503,6 +11509,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11540,7 +11547,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11582,7 +11589,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index ee6a1d2e..ef2d78a0 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -11337,6 +11337,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11398,6 +11403,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11430,6 +11436,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11467,7 +11474,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11509,7 +11516,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.html
index 7ec78f00..b2c8a321 100644
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@ -11371,6 +11371,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11432,6 +11437,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11464,6 +11470,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11501,7 +11508,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11543,7 +11550,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.html
index cb9dcda0..3b4741a6 100644
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@ -11414,6 +11414,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11475,6 +11480,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11507,6 +11513,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11544,7 +11551,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11586,7 +11593,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.html
index 7197761c..16b5798d 100644
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@ -11363,6 +11363,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11424,6 +11429,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11456,6 +11462,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11493,7 +11500,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11535,7 +11542,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.html
index b2675a31..5018d353 100644
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@ -11359,6 +11359,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11420,6 +11425,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11452,6 +11458,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11489,7 +11496,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11531,7 +11538,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 5c805be5..064d11c3 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -27,8 +27,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 842020,
- "artifactSha256": "5cd4ea2dfe063331dc56425f65000112a7a3f2d4ecc5df2aee65c5b71e2879ce",
+ "artifactBytes": 842451,
+ "artifactSha256": "2a68a9d934f521a8cb9a137192c064212c7f0e4dae44360e53198ad109c569fb",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -86,6 +86,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 29,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.788321167883212,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -147,8 +148,8 @@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 845248,
- "artifactSha256": "407534d90702d82cbcfa0ea984c3bcd4b618680c5c099731fcb5e50ee71d6fde",
+ "artifactBytes": 845679,
+ "artifactSha256": "0be20f52539b648e67c946d825fee716fe1b5e5e8093e38a7c7b5475bea7112b",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -206,6 +207,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 36,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 7.5,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -272,8 +274,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 837132,
- "artifactSha256": "3cc6925ffb9cc1bb82c5d42eb8213970b0943663231ee8c024017c0ab84d3c53",
+ "artifactBytes": 837563,
+ "artifactSha256": "9a0edff4c99787c90b34c7c919051d03b4183504976711b5cec6020b68df0b2b",
"sourceBytes": 4374,
"sourceSha256": "9a799a3661c16cd6ab4f6373ff6a04da95a9ab70d93b0a349b668466f4912fd7",
"checks": [
@@ -331,6 +333,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 8,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.027777777777779,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -392,8 +395,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 838236,
- "artifactSha256": "64cc0930cda44ea7a54e341c4f49dbf748b413ec771bc7457440b6bc5df149bd",
+ "artifactBytes": 838667,
+ "artifactSha256": "b5ef0f1aac86bcbcfe337bef1542e9bd10e0b36d0decb505c39e8919f2cf74fe",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -440,7 +443,7 @@
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -451,6 +454,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 36.3,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 6.2,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -487,7 +491,25 @@
"minimumProjectedTextPx": 6.2,
"semanticTextCount": 24
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 720,
+ "viewBoxHeight": 900,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 0.8,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 1683,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1870,
+ "overflowPx": 970,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 720x900 canvas (ratio 0.8) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 1683px tall at the full 1346px width and the page reaches 1870px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 464 at this width, or spread content sideways so the width is at least 1395 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -512,8 +534,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 835555,
- "artifactSha256": "81c7361d1d404722c7985022d39f45a5bca51f0b74a11821fd2889991c053cae",
+ "artifactBytes": 835986,
+ "artifactSha256": "abf4e634486376c56eb15bf6851266775bf695cfab5e3fd1e086bc699d56e93b",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -560,7 +582,7 @@
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -571,6 +593,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 119,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 7.7,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -607,7 +630,25 @@
"minimumProjectedTextPx": 7.7,
"semanticTextCount": 23
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 720,
+ "viewBoxHeight": 900,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 0.8,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 1683,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1870,
+ "overflowPx": 970,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 720x900 canvas (ratio 0.8) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 1683px tall at the full 1346px width and the page reaches 1870px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 464 at this width, or spread content sideways so the width is at least 1395 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -632,8 +673,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 839487,
- "artifactSha256": "aba265e695ea94b4af66c36c43767aad559d1505865cdeae51e27845e43eb559",
+ "artifactBytes": 839918,
+ "artifactSha256": "046ea84ffc1567178929f2797366a77ae603ca22d89bc2e00e588285e9eeeb08",
"sourceBytes": 5618,
"sourceSha256": "91411404fb4828a3b7ea358f3a7b9877781c9e9dc9c04b42b6eb4a757281b59f",
"checks": [
@@ -691,6 +732,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 44.3,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.027777777777779,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -752,8 +794,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 836250,
- "artifactSha256": "cc0d43132b5384e2aac117ae8c5b260d5b857f2e7cb26113b7ccf25868b7903e",
+ "artifactBytes": 836681,
+ "artifactSha256": "be2f4ac8e7a3f44a67df1897c1833f903a61546f8c1b0983e3712c159e818c36",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -800,7 +842,7 @@
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -811,6 +853,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 22,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 7,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -847,7 +890,25 @@
"minimumProjectedTextPx": 7,
"semanticTextCount": 28
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 820,
+ "viewBoxHeight": 920,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 0.89,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 1510,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1697,
+ "overflowPx": 797,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 820x920 canvas (ratio 0.89) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 1510px tall at the full 1346px width and the page reaches 1697px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 529 at this width, or spread content sideways so the width is at least 1426 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -872,8 +933,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 843485,
- "artifactSha256": "2acfddb7c9916c9826a1feba1e09d6e7ae6376c5c0d4f7c3552124a1e49c5844",
+ "artifactBytes": 843916,
+ "artifactSha256": "fb55bf1e0167bbf2fd6a17c21616d55857233580e8b3a6637cf07db563cd3662",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -920,7 +981,7 @@
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -931,6 +992,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 9,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 6.027777777777779,
"maxBends": 4,
"routesOverSuggestedBends": 1,
@@ -967,7 +1029,25 @@
"minimumProjectedTextPx": 6.027777777777779,
"semanticTextCount": 36
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 1080,
+ "viewBoxHeight": 780,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 1.38,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 972,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1159,
+ "overflowPx": 259,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 1080x780 canvas (ratio 1.38) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 972px tall at the full 1346px width and the page reaches 1159px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 696 at this width, or spread content sideways so the width is at least 1209 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -992,8 +1072,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 832564,
- "artifactSha256": "027fa4649bb6e81cdbbae0bbeefb9b66fe4723f3ccd5bc614fe278fdd53338f5",
+ "artifactBytes": 832995,
+ "artifactSha256": "bf6965c8c0bb9683a452baf406a0d0c676c8ef298135920175976b51995f0840",
"sourceBytes": 4044,
"sourceSha256": "7c0ad72ee7affbd6c6e4758b7520d61ddd4508c917acf36beabcad3ee7ca3ba7",
"checks": [
@@ -1051,6 +1131,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": null,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 6.320388349514563,
"maxBends": 3,
"routesOverSuggestedBends": 2,
@@ -1112,8 +1193,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 834106,
- "artifactSha256": "4e74b6991eb84b55ff3bed26f045127463680444e05ab0b854790c75869c6a53",
+ "artifactBytes": 834537,
+ "artifactSha256": "a56c1e87402f5af00353a150761f185d6b182eaac95d1f3621148375ab634006",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1160,7 +1241,7 @@
"status": "pass",
"summary": {
"errors": 0,
- "warnings": 0
+ "warnings": 1
},
"metrics": {
"properCrossings": 0,
@@ -1171,6 +1252,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": null,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 1,
"minProjectedNodeTextPx": 6.642857142857143,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -1207,7 +1289,25 @@
"minimumProjectedTextPx": 6.642857142857143,
"semanticTextCount": 22
},
- "issues": []
+ "issues": [
+ {
+ "severity": "warning",
+ "code": "composition/viewport-height",
+ "readerFit": null,
+ "viewBoxWidth": 980,
+ "viewBoxHeight": 680,
+ "viewportWidth": 1440,
+ "viewportHeight": 900,
+ "ratio": 1.44,
+ "wideRatio": 1.55,
+ "svgWidthPx": 1346,
+ "svgHeightPx": 934,
+ "fixedChromePx": 187,
+ "pageHeightPx": 1121,
+ "overflowPx": 221,
+ "detail": "[composition/viewport-height] Preserve every node, relationship, and label. This 980x680 canvas (ratio 1.44) declares no intrinsic-height fit and is below the 1.55 wide ratio, so the desktop Reader can neither narrow it nor accept vertical scroll: it renders 934px tall at the full 1346px width and the page reaches 1121px before cards against 900px, a certain visual-check failure. Either compact vertical spacing so meta.viewBox height is at most 632 at this width, or spread content sideways so the width is at least 1054 at this height; for architecture, omitting meta.viewBox lets the renderer size the canvas and declare the fit."
+ }
+ ]
}
},
{
@@ -1232,8 +1332,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 836873,
- "artifactSha256": "cbe585163afb07d938b19a31e14d380063ac78652e0cbcd63b580fec288c2105",
+ "artifactBytes": 837304,
+ "artifactSha256": "36baa99681119200001971c10d75709d104725bf3ff8bcc9b916aebfa1981886",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
@@ -1291,6 +1391,7 @@
"labelCanvasOverflowIssues": 0,
"minLabelRouteClearance": 20,
"desktopReadabilityIssues": 0,
+ "viewportHeightIssues": 0,
"minProjectedNodeTextPx": 7.5,
"maxBends": 3,
"routesOverSuggestedBends": 1,
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index 9042f589..8a2d6362 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -16216,6 +16216,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -16277,6 +16282,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute(&#39;data-reader-layout&#39;);
html.removeAttribute(&#39;data-reader-overflow&#39;);
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -16309,6 +16315,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow &gt; 1 &amp;&amp; lastWidth &gt; Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute(&#39;data-reader-overflow&#39;, &#39;reduced&#39;);
} else if (overflow &gt; 1) {
html.setAttribute(&#39;data-reader-overflow&#39;, &#39;authored&#39;);
@@ -16346,7 +16353,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -16388,7 +16395,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener(&#39;resize&#39;, schedule, { passive: true });
+ window.addEventListener(&#39;resize&#39;, function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener(&#39;load&#39;, schedule, { once: true });
if (document.fonts &amp;&amp; document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === &#39;function&#39;) {
@@ -31860,6 +31870,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -31921,6 +31936,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute(&#39;data-reader-layout&#39;);
html.removeAttribute(&#39;data-reader-overflow&#39;);
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -31953,6 +31969,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow &gt; 1 &amp;&amp; lastWidth &gt; Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute(&#39;data-reader-overflow&#39;, &#39;reduced&#39;);
} else if (overflow &gt; 1) {
html.setAttribute(&#39;data-reader-overflow&#39;, &#39;authored&#39;);
@@ -31990,7 +32007,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -32032,7 +32049,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener(&#39;resize&#39;, schedule, { passive: true });
+ window.addEventListener(&#39;resize&#39;, function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener(&#39;load&#39;, schedule, { once: true });
if (document.fonts &amp;&amp; document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === &#39;function&#39;) {
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index 6c2dda71..fd11ea92 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": "8a6b372b00b947da76246b6b91e6a49b3cf8189d150c51c7cb8e15219f3898b2",
- "bytes": 2296768
+ "sha256": "ccbe2b90fdab3e60de8631de466f539695c9ebb352a7bbfc773d44a367e24352",
+ "bytes": 2297630
},
"validation": {
"checksPassed": 28,
diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.html
index 7ec78f00..b2c8a321 100644
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@ -11371,6 +11371,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11432,6 +11437,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11464,6 +11470,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11501,7 +11508,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11543,7 +11550,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.html
index f723a96b..42f9ebe7 100644
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@ -11306,6 +11306,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11367,6 +11372,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11399,6 +11405,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11436,7 +11443,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11478,7 +11485,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 1cd422c3..7dd284cc 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -11386,6 +11386,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11447,6 +11452,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11479,6 +11485,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11516,7 +11523,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11558,7 +11565,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.html
index b2675a31..5018d353 100644
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@ -11359,6 +11359,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11420,6 +11425,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11452,6 +11458,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11489,7 +11496,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11531,7 +11538,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/examples/web-app.html b/examples/web-app.html
index b2675a31..5018d353 100644
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@ -11359,6 +11359,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11420,6 +11425,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11452,6 +11458,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11489,7 +11496,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11531,7 +11538,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.html
index 53bf1e7a..2afef86e 100644
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@ -11377,6 +11377,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11438,6 +11443,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11470,6 +11476,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11507,7 +11514,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11549,7 +11556,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/experiments/mco-showcase/mco-runtime.html b/experiments/mco-showcase/mco-runtime.html
index 4bfb3145..d3af6e56 100644
--- a/experiments/mco-showcase/mco-runtime.html
+++ b/experiments/mco-showcase/mco-runtime.html
@@ -11384,6 +11384,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -11445,6 +11450,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -11477,6 +11483,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
) - window.innerHeight;
if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {
applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);
+ settledCap = lastWidth;
html.setAttribute('data-reader-overflow', 'reduced');
} else if (overflow > 1) {
html.setAttribute('data-reader-overflow', 'authored');
@@ -11514,7 +11521,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -11556,7 +11563,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
}
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
- window.addEventListener('resize', schedule, { passive: true });
+ window.addEventListener('resize', function () {
+ settledCap = 0;
+ schedule();
+ }, { passive: true });
window.addEventListener('load', schedule, { once: true });
if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});
if (typeof ResizeObserver === 'function') {
diff --git a/viewer/reader-layout.js b/viewer/reader-layout.js
index 2e42254e..b089dc32 100644
--- a/viewer/reader-layout.js
+++ b/viewer/reader-layout.js
@@ -13,10 +13,11 @@
var frame = 0;
var settleFrame = 0;
var lastWidth = 0;
- // Widest reader the overflow settle has accepted for this viewport. Card
- // copy rewraps as the reader narrows, so recomputing from fixed heights
- // alone would widen again and oscillate; only a resize lifts the cap.
- var settledCap = Infinity;
+ // Widest reader the overflow settle has accepted for this viewport (0 =
+ // uncapped). Card copy rewraps as the reader narrows, so recomputing
+ // from fixed heights alone would widen again and oscillate; only a
+ // resize lifts the cap.
+ var settledCap = 0;
var WIDE_RATIO = 1.55;
var MIN_DESKTOP_WIDTH = 1024;
var MIN_READER_WIDTH = 960;
@@ -78,7 +79,7 @@
html.removeAttribute('data-reader-layout');
html.removeAttribute('data-reader-overflow');
lastWidth = 0;
- settledCap = Infinity;
+ settledCap = 0;
}
function chromeMetrics() {
var bodyStyle = window.getComputedStyle(body);
@@ -149,7 +150,7 @@
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);
var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;
- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap));
+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));
applyWidth(width, minWidth);
settleOverflow(minWidth);
return {
@@ -192,7 +193,7 @@
archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };
window.addEventListener('resize', function () {
- settledCap = Infinity;
+ settledCap = 0;
schedule();
}, { passive: true });
window.addEventListener('load', schedule, { once: true });