// THE DIAL'S REMEMBERED-WEIGHT LOOKS (`deck.dial.rememberedAs`; operator, 11 Nov: "max weight statements could be // shown better" -- the long grey second needle and its small words crossed the main needle and the readout and did // not say what the weight was). Three looks beside today's, each worded from the ledger entry's own fields. import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import path from "node:path"; import test from "node:test"; import { fileURLToPath } from "node:url"; import { CALLOUT_HOLD, dialFinaleHtml, dialHtml, heaviestOf, rememberedMode, rememberedWords } from "./chrome-instruments.mjs"; import { estimateSchedule } from "./deck.mjs"; import { validateDial } from "./instruments.mjs"; import { moduleById } from "./modules/index.mjs"; const HERE = path.dirname(fileURLToPath(import.meta.url)); const MEASURE = JSON.parse(readFileSync(path.join(HERE, "fixtures", "measure-remembered", "measure.json"), "utf8")); const PALETTE = { bg: "#0F1312", fg: "#EDF0EC", muted: "#98A29B", accent: "#22AB83", amber: "#E8A33F" }; const renderAs = (as) => ({ width: 1920, height: 1080, fps: 30, transition: 0.4, palette: PALETTE, chrome: { engine: "hyperframes", layout: "deck", deck: { dial: as === undefined ? true : { rememberedAs: as }, odometer: true, trail: true } } }); const page = (as) => { const r = renderAs(as); const timeline = Array.from({ length: 3 }, (_, i) => ({ type: "clip", id: `c${i + 1}`, video: "v", start: 0, end: 10 })); const html = dialHtml({ ...estimateSchedule({ slug: "m", title: "M", provenance: {}, render: r, timeline }), measure: MEASURE }, r, { fonts: {} }); return { html, data: JSON.parse(/