commit 6b71e6322493696a27d7e0636d1767675ecbb9fa
parent e512121b0c47b0bb4e984193299b4712559c2d84
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 6 Nov 2026 02:28:32 -0500
umtool: beside the column the extras stand along the clip's foot, a size down
The first column defaults (the diet badge top-right) put the badge over the
stream's face cam in clips that have it top-right (rev9-panel at 360 s). Now
all three along the foot of the 1248×702 clip box, sized to fit side by side:
the diet badge 308 px at the left, the streak 446 in the middle, the goals 320
at the right (COLUMN_SCALES), unless a position, x/y or scale is named; the
top of the clip stays clear.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/umtool/report-to-video/measure-extras.test.mjs b/umtool/report-to-video/measure-extras.test.mjs
@@ -388,7 +388,9 @@ test("beside the instruments' column (the clip box 1248×702): the extras' own a
assert.equal(hit(homes.diet, homes.streak), false, "the diet badge never on the streak strip");
assert.equal(hit(homes.diet, homes.goals), false);
assert.equal(hit(homes.streak, homes.goals), false);
- assert.equal(resolveMeasureExtra("diet", r).position, "top-right");
+ assert.equal(resolveMeasureExtra("diet", r).position, "bottom-left");
+ assert.equal(resolveMeasureExtra("diet", r).scale, 0.7);
+ for (const id of ["diet", "streak", "goals"]) assert.ok(homes[id].y > box.y + box.height / 3, `${id} along the foot, the top (the face cam) clear`);
assert.equal(resolveMeasureExtra("peak", r), null, "the moving start is off with the dial on");
assert.equal(resolveMeasureExtra("peak", withDeck({ dial: true, peak: true })).position, "top-center", "named, it is on");
assert.equal(resolveMeasureExtra("diet", withDeck({ dial: true, diet: { position: "bottom-left" } })).position, "bottom-left", "a named anchor wins");
diff --git a/umtool/report-to-video/modules/measure-extras-settings.mjs b/umtool/report-to-video/modules/measure-extras-settings.mjs
@@ -108,7 +108,11 @@ export const MEASURE_DEFAULTS = Object.freeze({
});
/** Each extra's anchor beside the instruments' column (resolveMeasureExtra), when its own is not named. */
-export const COLUMN_POSITIONS = Object.freeze({ diet: "top-right", streak: "bottom-left", goals: "bottom-right", peak: "top-center", promise: "top-center" });
+// All along the foot, a size down, so the top of the clip -- where the streams' face cam is -- stays clear:
+// diet 308 px at the left, the streak 446 in the middle, the goals 320 at the right (48–356, 425–871, 928–1248).
+export const COLUMN_POSITIONS = Object.freeze({ diet: "bottom-left", streak: "bottom-center", goals: "bottom-right", peak: "top-center", promise: "top-center" });
+/** Each extra's size beside the column, when its own `scale` is not named. */
+export const COLUMN_SCALES = Object.freeze({ diet: 0.7, streak: 0.72, goals: 0.8 });
/** Where the promise clock stands (`promise.slot`): the instruments' column (the trail's slot), the footage box, or the column when the instruments are on. */
export const PROMISE_SLOTS = Object.freeze(["auto", "column", "footage"]);
@@ -136,10 +140,13 @@ export function resolveMeasureExtra(id, render) {
if (id === "peak" && v === undefined && resolveDial(render)) return null;
const own = isObj(v) ? v : {};
const out = { ...base, ...own };
- // Beside the instruments' column the clip box is 1248×702: the anchors that keep
- // the five clear of each other there (the diet badge above the streak strip's
- // corner, not on it) -- unless a position is named.
- if (instrumentsOn(render) && own.position === undefined && COLUMN_POSITIONS[id]) out.position = COLUMN_POSITIONS[id];
+ // Beside the instruments' column the clip box is 1248×702: the anchors and sizes
+ // that keep them clear of each other there (the diet badge beside the streak
+ // strip, not on it) -- unless a position is named.
+ if (instrumentsOn(render) && own.position === undefined && own.x === undefined && COLUMN_POSITIONS[id]) {
+ out.position = COLUMN_POSITIONS[id];
+ if (own.scale === undefined && COLUMN_SCALES[id]) out.scale = COLUMN_SCALES[id];
+ }
// Where the promise clock stands: the column's trail slot when the instruments are on ("auto").
if (id === "promise") out.slot = out.slot === "auto" ? (instrumentsOn(render) ? "column" : "footage") : out.slot;
if (id === "diet" || id === "streak") {