aboutsummaryrefslogtreecommitdiff
path: root/configs
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
commitcdbfd78a885856cf43537ddc491663f1eb93997f (patch)
treee883838299a8c9b3409c8d56ca937e072a5a1359 /configs
parentbd84f9008e6ebf32c7f2a0befb2b20feb8c1fa48 (diff)
downloadarchsetup-cdbfd78a885856cf43537ddc491663f1eb93997f.tar.gz
archsetup-cdbfd78a885856cf43537ddc491663f1eb93997f.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 'configs')
0 files changed, 0 insertions, 0 deletions