commit 2e9d25bd3e886094395259ee5d3d480665d8509f
parent 038eb40866b3d5f0d177cb880039abae5e45af51
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 09:36:34 -0500
umtool: the deck's landscape fit checks are skipped for a stacked deck asked as the chrome preview asks (its render without its chrome)
vertical-deck.spec found it: the preview route refused the stacked deck with "footageScale 0.82 needs 608px but
a 1920px deck leaves 0".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/umtool/report-to-video/deck.mjs b/umtool/report-to-video/deck.mjs
@@ -214,7 +214,7 @@ export function validateChrome(chrome, render = {}) {
// The footage has to fit above the deck. Clamping the scale instead would
// make the setting lie about what was drawn. (The stacked vertical deck lays
// its own frame -- vertical-deck.mjs: nothing of the landscape fit applies.)
- if (!errors.length && !stackedOn(render)) {
+ if (!errors.length && !stackedOn({ ...render, chrome })) {
const g = deckGeometry({ ...render, chrome });
// Only a deck that sets `posts` and draws them is held to the column's fit
// here; one with posts on the defaults is checked by validatePosts, which
diff --git a/umtool/report-to-video/vertical-deck.test.mjs b/umtool/report-to-video/vertical-deck.test.mjs
@@ -154,6 +154,9 @@ test("the stacked geometry answers deck.mjs's: the footage the picture, the inst
assert.equal(resolveDeck(r).posts.show, false);
// The landscape fit checks do not apply.
assert.deepEqual(validateChrome(r.chrome, r), []);
+ // As the chrome preview route asks it: the render without its chrome beside the chrome.
+ const { chrome: _c, ...rest } = r;
+ assert.deepEqual(validateChrome(r.chrome, rest), []);
// The stamp over the picture's lower-left by default, inside it.
const st = stampGeometry(r);
assert.ok(st.x >= d.footage.x && st.y + st.height <= d.footage.y + d.footage.height);