Archilyzer · Source

archilyzer

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

commit bb24465e873f87225da4388894af8f996969f087
parent 331d42ddac2d7031859434d9ca631fb22db12eb3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  6 Nov 2026 02:49:07 -0500

umtool: the wedge's words never sit on a scale figure

"3>300": the wedge's words on the 300 at the top. They are measured the same
way as the as-of label (their box from .qlab's css against dialFigures' boxes
and the hub) and step in along the wedge's middle, 8 units at a time, until
they are clear by 10 (a gap that reads, not a touch).
Over every wedge the 200-420 scale can show (663 values
and qualifiers), the old fixed spot touched a figure for 210; the new spot
touches none.

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

Diffstat:
Mumtool/report-to-video/chrome-instruments.mjs | 20+++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/umtool/report-to-video/chrome-instruments.mjs b/umtool/report-to-video/chrome-instruments.mjs @@ -188,6 +188,9 @@ function dialParts({ size, ox, oy, scale, cfg, colors, fonts, track, prefix = "" const layer = (k, inner, cls = "ly") => `<div class="${cls}" data-k="${prefix}${k}"><svg width="${size}" height="${size}" viewBox="0 0 ${size} ${size}">${inner}</svg></div>`; const parts = []; parts.push(`<div class="ly face">${face.svg}</div>`); + // Where words laid on the face must not go: its scale figures, and the hub. + const faceFigures = dialFigures({ size, scale, mark: cfg.mark }); + const hub = { x0: C - 18 * u, x1: C + 18 * u, y0: C - 18 * u, y1: C + 18 * u }; if (cfg.ghosts) { track.remembered.forEach((g, j) => { parts.push(layer(`g${j}`, `<line x1="${C}" y1="${C - Rf + 6 * u}" x2="${C}" y2="${C - Rf + 46 * u}" stroke="${colors.ghost}" stroke-width="${px(3.5)}" stroke-linecap="round"/>`)); @@ -207,8 +210,17 @@ function dialParts({ size, ox, oy, scale, cfg, colors, fonts, track, prefix = "" // face's own dark around the accent, and its words -- the glyph and the digits -- at its outer edge. parts.push(layer(`q${j}`, `<path d="${sectorPath(C, C, Rf - 48 * u, Rf - 2 * u, a0, a1)}" fill="${colors.accent}" fill-opacity="0.78" stroke="${colors.face}" stroke-width="${px(4)}"/>` + `<path d="${sectorPath(C, C, Rf - 48 * u, Rf - 2 * u, a0, a1)}" fill="none" stroke="${colors.accent}" stroke-width="${px(2)}"/>`)); - const [lx, ly] = polar(C, C, Rf - 108 * u, (a0 + a1) / 2); - parts.push(`<div class="qlab" data-k="${prefix}ql${j}" style="left:${lx}px; top:${ly}px">${esc(weightWords(c))}</div>`); + // Its words clear of every scale figure (rev 9: "3>300", the words on the 300 at the top): inside the wedge + // on its middle, stepping in toward the hub until their box (.qlab: 26 display, 1/6 padding) is clear. + const words = weightWords(c); + const fs = px(26), bw = words.length * fs * 0.6 + 2 * px(6), bh = fs * 1.2 + 2 * px(1); + const spots = []; + for (let r = Rf - 108 * u; r >= Rf - 190 * u - 1e-9; r -= 8 * u) { + const [x, y] = polar(C, C, r, (a0 + a1) / 2); + spots.push({ x, y, box: boxAt(x, y, bw, bh) }); + } + const spot = clearSpot(spots, [...faceFigures.map((f) => f.box), hub], 10 * u); + parts.push(`<div class="qlab" data-k="${prefix}ql${j}" style="left:${spot.x}px; top:${spot.y}px">${esc(words)}</div>`); }); if (cfg.goal) { parts.push(layer("gl", `<polygon points="${C - 11 * u},${C - R - 2 * u} ${C + 11 * u},${C - R - 2 * u} ${C},${C - Rf + 16 * u}" fill="${colors.amber}" stroke="${colors.bg}" stroke-width="${px(2)}"/>`)); @@ -232,8 +244,6 @@ function dialParts({ size, ox, oy, scale, cfg, colors, fonts, track, prefix = "" // AS OF FEB 2025 · TOLD 4×" sat on the 380). Along its ghost, never down into the readout's words under the hub; // where its box would touch a figure's, its words go on two lines, then it steps in toward the hub. if (cfg.ghosts) { - const figures = dialFigures({ size, scale, mark: cfg.mark }); - const hub = { x0: C - 18 * u, x1: C + 18 * u, y0: C - 18 * u, y1: C + 18 * u }; track.remembered.forEach((g, j) => { const a = dialAngle(g.value, scale); const head = weightWords(g); @@ -241,7 +251,7 @@ function dialParts({ size, ox, oy, scale, cfg, colors, fonts, track, prefix = "" // The moving start's count rides on its ghost (rev 9: "≈390 · TOLD 5×", the peak module off beside the dial). const told = g.told > 1 ? `TOLD ${g.told}×` : ""; const forms = told ? [[`${asOf} · ${told}`], [asOf, told]] : [[asOf]]; - const spot = clearSpot(asofSpots({ C, Rf, u, a, head, forms, px, fpx }), [...figures.map((f) => f.box), hub], 3 * u); + const spot = clearSpot(asofSpots({ C, Rf, u, a, head, forms, px, fpx }), [...faceFigures.map((f) => f.box), hub], 3 * u); parts.push(`<div class="asof" data-k="${prefix}ga${j}" style="left:${spot.x}px; top:${spot.y}px"><b>${esc(head)}</b>${spot.lines.map((l) => `<span>${esc(l)}</span>`).join("")}</div>`); }); }