commit 87e0eebe6b1295a53563d33c2bf34cda3a365138
parent 7c83418a1e83c800962af9aa92bfdaf5413f8164
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 26 Oct 2026 14:28:00 -0400
Brand intro: the wipe swap's line stops short of the mark beside the word
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/umtool/report-to-video/chrome-intro.mjs b/umtool/report-to-video/chrome-intro.mjs
@@ -758,12 +758,23 @@ export function introHtml({
: parts.letters.slice(0, nW).map(glyph).join("\n ");
const mediaGlyphs = parts.letters.slice(nW).map((l, j) => glyph(plan ? { ...l, tx: plan.mediaTx[j] } : l, nW + j)).join("\n ");
const lineH = plan ? r3(plan.line.y1 - plan.line.y0) : 0;
+ // The wipe's line spans the prefix, old and new, and stops short of the
+ // mark beside it (the mark's right edge, in the word's own coordinates).
+ let barL = 0;
+ let barR = 0;
+ if (plan) {
+ barL = Math.min(plan.newL, parts.letters[0].box.x0) - 14;
+ barR = Math.max(...plan.glyphs.map((g) => g.box.x1), ...plan.out.map((i) => parts.letters[i].box.x1)) + 14;
+ if (withMark) barL = Math.max(barL, plan.newL - plan.oldL + parts.mark.x + parts.mark.size - plan.recenter + 12);
+ barL = r3(barL);
+ barR = r3(barR);
+ }
const newGlyphs = plan
? `
<g clip-path="url(#intro-swapin)">
${plan.glyphs.map((g, j) => `<g data-k="n${j}"><path data-k="nf${j}" transform="translate(${g.tx} ${g.ty}) scale(${g.s})" d="${g.d}"/></g>`).join("\n ")}
</g>${swap === "wipe" ? `
- <g data-k="bar"><rect x="${r3(Math.min(plan.newL, parts.letters[0].box.x0) - 14)}" y="${r3(plan.line.y0 - 46)}" width="${r3(Math.max(...plan.glyphs.map((g) => g.box.x1), ...plan.out.map((i) => parts.letters[i].box.x1)) - Math.min(plan.newL, parts.letters[0].box.x0) + 28)}" height="44" fill="url(#intro-swapglow)"/><rect x="${r3(Math.min(plan.newL, parts.letters[0].box.x0) - 14)}" y="${r3(plan.line.y0 - 3)}" width="${r3(Math.max(...plan.glyphs.map((g) => g.box.x1), ...plan.out.map((i) => parts.letters[i].box.x1)) - Math.min(plan.newL, parts.letters[0].box.x0) + 28)}" height="6" rx="3" fill="${accent.ink}"/></g>` : ""}`
+ <g data-k="bar"><rect x="${barL}" y="${r3(plan.line.y0 - 46)}" width="${r3(barR - barL)}" height="44" fill="url(#intro-swapglow)"/><rect x="${barL}" y="${r3(plan.line.y0 - 3)}" width="${r3(barR - barL)}" height="6" rx="3" fill="${accent.ink}"/></g>` : ""}`
: "";
const urlGlyphs = plan
? plan.urls.map((u, j) => `