Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 5e205b6d1203909a3565fafe946199adea7741b4
parent cb42a1faf0f660c8c34c6c5f54ee635f316fc5fa
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  6 Nov 2026 02:26:04 -0500

umtool: the finale rail's labels may be sections or none; its clip card's source line wraps

- `deck.finale.railLabels`: "sections" (the section markers' labels alone,
  no pip's label or date) and "none" (no words on the rail) beside "all" and
  "nodes" -- rev9-panel's promise clock met the turned dates at the rail's
  left.
- The finale clip card's source line wraps to two lines at word boundaries
  with the source's title LAST (titleLast), so only the title's end is ever
  clamped -- never the date or the clock (rev 9: "Democrats PANIC … · N… ·
  13:48"). The finale page's byte-identity hash in deck-claims.test.mjs
  moves with it (its css and that line, nothing else).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/report-to-video/chrome-finale.mjs | 31+++++++++++++++++++++++--------
Mumtool/report-to-video/deck-claims.test.mjs | 6++++--
Mumtool/report-to-video/deck.mjs | 6++++--
Mumtool/report-to-video/finale.mjs | 9++++++---
Mumtool/report-to-video/finale.test.mjs | 2+-
Mumtool/report-to-video/modules/finale.mjs | 2+-
6 files changed, 39 insertions(+), 17 deletions(-)

diff --git a/umtool/report-to-video/chrome-finale.mjs b/umtool/report-to-video/chrome-finale.mjs @@ -120,7 +120,8 @@ export function finaleLayout(schedule, render) { }, text: { ...lay.text, titleY: deckY + lay.text.titleY, subtitleY: deckY + lay.text.subtitleY, ruleY: deckY + lay.text.ruleY }, }, - pips, labels, marks, totals, stats, captions, panel, + // `sections` / `none`: no pip's label or date on the rail. + pips, labels: f.railLabels === "sections" || f.railLabels === "none" ? { ...labels, groups: [], lead: 0 } : labels, marks, totals, stats, captions, panel, ...(claims ? { claims } : {}), statsTitle: f.statsTitle, railLabels: f.railLabels, @@ -223,7 +224,7 @@ export function finaleCues(schedule, render, L = finaleLayout(schedule, render)) }); L.marks.forEach((mk, j) => { travel(`mk${j}`, { x: r2(mk.foot.x - mk.x), y: r2(ft.y - bt.y), scale: 0.4 }, "finale marker"); - if (L.railLabels === "all") reveal(`ml${j}`, R + j * m.stagger, "finale marker label"); + if (L.railLabels === "all" || L.railLabels === "sections") reveal(`ml${j}`, R + j * m.stagger, "finale marker label"); }); // The claim checks, once the rail is in place: all at once, or ("rotate") // each in its slot, crossfading into the next at the slot's edge. @@ -304,6 +305,17 @@ export function finaleCues(schedule, render, L = finaleLayout(schedule, render)) * `window.from`). `fonts` = `{ regular, bold }`, `qrSrcs` = `{ [segmentId]: * "assets/qrNN.png" }`, `gsap` = the vendored script's asset path. */ +/** + * The clip card's source line with the source's TITLE last ("TheQuartering (Rumble) · Nov 3, 2026 · 13:48 · + * Democrats PANIC …"): wrapped to two lines, only the title's end is ever clamped -- never the date or the clock + * (rev 9: "Democrats PANIC … · N… · 13:48"). + */ +export function titleLast(subtitle) { + const parts = String(subtitle ?? "").split(" · "); + if (parts.length < 3) return String(subtitle ?? ""); + return [parts[0], ...parts.slice(2), parts[1]].join(" · "); +} + export function finaleHtml(schedule, render, window, opts = {}) { const L = finaleLayout(schedule, render); const { init, cues } = finaleCues(schedule, render, L); @@ -406,7 +418,7 @@ export function finaleHtml(schedule, render, window, opts = {}) { .map((mk, j) => { const top = rowTop[mk.row] ?? rowTop[0]; const stick = Y - top - 2; - const label = L.railLabels === "all" + const label = L.railLabels === "all" || L.railLabels === "sections" ? `<div class="ml" data-k="ml${j}" style="top:${top - Y}px; ${mk.side === "right" ? "left:18px" : "right:18px"}; max-width:${mk.max}px">${esc(mk.label)}</div>` : ""; return ( @@ -443,7 +455,7 @@ export function finaleHtml(schedule, render, window, opts = {}) { return ( `<div class="cap" data-k="cap${i}" data-seg="${esc(c.id)}" style="left:${cap.x}px; top:${cap.y}px; width:${cap.width}px">` + (c.title ? `<div class="ct">${esc(c.title)}</div>` : "") + - `<div class="cs">${subtitleMarkup(c.subtitle)}</div></div>` + + `<div class="cs">${subtitleMarkup(titleLast(c.subtitle))}</div></div>` + `<div class="cqr" data-k="qr${i}" style="left:${q.x}px; top:${q.y}px; width:${q.size}px; height:${q.size}px">` + (src ? `<img src="${esc(src)}" width="${q.size}" height="${q.size}" alt="">` : "") + `</div>` @@ -550,10 +562,13 @@ export function finaleHtml(schedule, render, window, opts = {}) { .cap { position: absolute; } .ct { font-family: 'DeckSansBold', sans-serif; font-size: ${cap.titleSize}px; line-height: ${Math.round(cap.titleSize * 1.2)}px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } - .cs { display: flex; white-space: nowrap; overflow: hidden; font-size: ${cap.subSize}px; line-height: ${Math.round(cap.subSize * 1.3)}px; color: ${pal.muted}; } - .cs .part { flex: none; } - .cs .part:not(:first-child):not(:last-child), .cs .part:first-child:nth-last-child(-n+3) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } - .cs .sep { flex: none; color: ${pal.accent}; padding: 0 0.42em; font-family: 'DeckSansBold', sans-serif; } + /* The source line wraps to two lines at word boundaries (rev 9: "Democrats PANIC … · N… · 13:48" cut both the + title and the date mid-word); past two, the second line ends in an ellipsis. A date or clock never breaks. */ + .cs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; + font-size: ${cap.subSize}px; line-height: ${Math.round(cap.subSize * 1.3)}px; color: ${pal.muted}; } + .cs .part { display: inline; } + .cs .part:not(:last-child) { white-space: nowrap; } + .cs .sep { display: inline; color: ${pal.accent}; padding: 0 0.42em; font-family: 'DeckSansBold', sans-serif; } .cqr { position: absolute; transform-origin: 0 0; } .cqr img { display: block; width: 100%; height: 100%; border-radius: 6px; image-rendering: pixelated; box-shadow: 0 0 0 1px ${rgba(pal.fg, 0.25)}, 0 6px 18px rgba(0, 0, 0, 0.35); } diff --git a/umtool/report-to-video/deck-claims.test.mjs b/umtool/report-to-video/deck-claims.test.mjs @@ -339,7 +339,9 @@ const BEFORE = { // eases and durations, every time within 4 ms. (Was 4966f5f6904d7c91e8c3bd64b16763b8.) deck: "d56d6f45c667dea15c0fec5675dbcc95", // Likewise the finale's (its 181 cues on the Huck cut: times within 2 ms, - // its window's start on the grid). Was e4cb165d4e3b816c0d648240cac91eb1. - finale: "afc1b75858e0c19a73e3d9549bc1f474", + // its window's start on the grid). Was e4cb165d4e3b816c0d648240cac91eb1; then afc1b758… until rev 9 (6 Nov) + // wrapped the clip card's source line to two lines with the title last (chrome-finale.mjs titleLast): the + // page's css and that line, nothing else. + finale: "ff1dd61a2a1de8a38b1fbf12a420b71d", built: "c6a44e98fce846811cbf87d449e6b40d", }; diff --git a/umtool/report-to-video/deck.mjs b/umtool/report-to-video/deck.mjs @@ -1851,7 +1851,9 @@ function finaleRailAt(schedule, render, railBottom, textScale) { // The pips across the rail, then their labels -- and when the labels turn, // the track starts far enough in that the first one reads whole. - const info = pipped.map((s) => ({ label: s.title || fin.dates?.[s.id] || "", date: fin.dates?.[s.id] ?? "" })); + // `sections` / `none`: no pip carries words (the section markers' labels alone, or nothing at all). + const pipWords = f.railLabels === "all" || f.railLabels === "nodes"; + const info = pipped.map((s) => (pipWords ? { label: s.title || fin.dates?.[s.id] || "", date: fin.dates?.[s.id] ?? "" } : { label: "", date: "" })); const dates = f.railLabels === "all"; const labelsAt = (xs, geo) => railLabelLayout(xs.map((x, k) => ({ x, ...info[k] })), geo, { dates }); let x0 = rail.x0; @@ -1890,7 +1892,7 @@ function finaleRailAt(schedule, render, railBottom, textScale) { ? { ...finaleClaims(fcl, { toBig, bigX: (k) => r2(xs[k]), size: rail.markerSize, ringSize: bigSize + 14, pips, marks, - markerLabels: f.railLabels === "all", W: base.W, margin: base.margin, mode: slots.mode, + markerLabels: f.railLabels === "all" || f.railLabels === "sections", W: base.W, margin: base.margin, mode: slots.mode, }), slots: slots.slots, } diff --git a/umtool/report-to-video/finale.mjs b/umtool/report-to-video/finale.mjs @@ -8,8 +8,9 @@ // "totals": true, the tally's final counts, large // "stats": [{ "label", "value", "note"?, "color"? }], up to 8, the author's words // "statsTitle": "…", over the stats (optional) -// "railLabels": "all" | "nodes" every label and date and the markers' labels, -// or each pip's label alone (default "all") +// "railLabels": "all" | "nodes" | "sections" | "none" every label and date and the markers' labels, +// each pip's label alone, the section markers' labels +// alone, or no words (default "all") // "timelineShare": "auto" | 0.38–0.6 how much of the frame's height the timeline takes: // "auto" (the default) the height its rows need, from // the share it always had up to FINALE_SHARE.auto; @@ -47,7 +48,9 @@ export const FINALE_VIDEOS = Object.freeze(["side", "corner", "hidden"]); export const FINALE_MOTIONS = Object.freeze(["grow", "cut"]); /** What the large rail labels: everything (labels, dates, markers) or the pips' labels only. */ -export const FINALE_RAIL_LABELS = Object.freeze(["all", "nodes"]); +// "sections": the section markers' labels alone (no pip's label or date); "none": no words on the rail at all +// (rev 9, 6 Nov: the promise clock over the finale met the turned dates at the rail's left). +export const FINALE_RAIL_LABELS = Object.freeze(["all", "nodes", "sections", "none"]); /** How the claim checks stand on the large rail: one at a time in turn, or all at once. */ export const FINALE_CLAIM_MODES = Object.freeze(["rotate", "all"]); diff --git a/umtool/report-to-video/finale.test.mjs b/umtool/report-to-video/finale.test.mjs @@ -58,7 +58,7 @@ test("deck.finale: every key validated, unknown keys refused, the defaults", () for (const want of [ 'render.chrome.deck.finale.video must be "side", "corner", "hidden"', 'render.chrome.deck.finale.motion must be "grow", "cut"', - 'render.chrome.deck.finale.railLabels must be "all", "nodes"', + 'render.chrome.deck.finale.railLabels must be "all", "nodes", "sections", "none"', "render.chrome.deck.finale.totals must be true or false", "render.chrome.deck.finale.statsTitle is 41 characters (at most 40)", "render.chrome.deck.finale.stats[0].label must not be empty", diff --git a/umtool/report-to-video/modules/finale.mjs b/umtool/report-to-video/modules/finale.mjs @@ -32,7 +32,7 @@ export default defineModule({ { key: "totals", type: "boolean", label: "Totals", default: true }, { key: "statsTitle", type: "text", label: "Stats title" }, { key: "stats", type: "stats", label: "Stats cards", max: 8 }, - { key: "railLabels", type: "enum", options: ["all", "nodes"], label: "Rail labels", default: "all" }, + { key: "railLabels", type: "enum", options: ["all", "nodes", "sections", "none"], label: "Rail labels", default: "all" }, { key: "pips", type: "boolean", label: "The finale's clips on the rail", default: true }, { key: "timelineShare", type: "number", min: 0.38, max: 0.6, step: 0.01, label: "Timeline share (auto when unset)" }, { key: "claims", type: "enum", options: ["rotate", "all"], label: "Claim checks", default: "rotate" },