aboutsummaryrefslogtreecommitdiff
path: root/archive
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-11 23:50:13 -0500
committerCraig Jennings <c@cjennings.net>2026-07-11 23:50:13 -0500
commitb137223e76c75217b594bc5e46e7625b10e31b0f (patch)
tree67ff4b35bf65b91447e7524bd2315013f8848804 /archive
parent440877965e8879f3c9567cf923b7c65c0eee227c (diff)
downloadarchsetup-b137223e76c75217b594bc5e46e7625b10e31b0f.tar.gz
archsetup-b137223e76c75217b594bc5e46e7625b10e31b0f.zip
feat(gallery): add svg.el renderer proving the Emacs target, fix gauge ticks
gallery-widget.el is the proof-of-concept Emacs renderer: it reads the generated tokens.el and renders the needle gauge (card 10) as SVG via svg.el. Rasterized through librsvg (the renderer Emacs itself uses), it matches the web card side by side: same arc, ticks, glowing amber needle, half-dome hub, and readout from the same tokens. That closes the riskiest unknown in the three-target plan, so the component pattern can now scale widget by widget. The comparison surfaced a real gallery bug: the web gauge's ticks were invisible. Their transform-origin put the rotation center 40px below the dial, so the rotated ticks landed outside the clipped area. I moved the ticks to the arc's top edge with the origin at the pivot, and all three now show at -60/0/+60. The parseability test caught a second bug: the mono token's font stack carries double quotes, which broke the font-family XML attribute. The renderer swaps them to single quotes. Tests are ERT (tests/gallery-widgets/), covering token resolution, angle math (normal/boundary/error), and the rendered document's structure. make test-unit now runs the elisp suites alongside the python ones, and make test-elisp runs them alone.
Diffstat (limited to 'archive')
0 files changed, 0 insertions, 0 deletions