giles
e2fe070dd4
Fix :ref callback bug in adapter-dom — Pretext island fully working
Root cause: adapter-dom.sx line 345 handled :ref by calling
(dict-set! attr-val "current" el), assuming React-style ref objects.
Callback-style refs (fn (el) ...) passed a function, not a dict,
causing dict-set! to fail with "dict key val" error.
Fix: (if (callable? attr-val) (attr-val el) (dict-set! attr-val "current" el))
Supports both callback refs and dict refs.
Pretext island now fully working:
- 3 controls: width slider, font size slider, algorithm toggle
- Knuth-Plass + greedy line breaking via bytecode-compiled library
- canvas.measureText for pixel-perfect browser font metrics
- Effect-based imperative DOM rendering (createElement + appendChild)
- Reactive: slider drag → re-measure → re-break → re-render
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 08:26:48 +00:00
..
2026-04-04 12:18:41 +00:00
2026-04-05 21:18:14 +00:00
2026-03-24 10:01:41 +00:00
2026-04-13 08:26:48 +00:00
2026-04-04 12:18:41 +00:00
2026-04-04 12:18:41 +00:00
2026-04-10 11:46:41 +00:00
2026-03-15 01:42:19 +00:00
2026-04-04 20:49:02 +00:00
2026-04-04 20:49:02 +00:00
2026-03-24 12:22:08 +00:00
2026-04-04 12:18:41 +00:00
2026-04-04 12:18:41 +00:00
2026-04-12 11:42:28 +00:00
2026-04-09 19:59:04 +00:00
2026-04-03 21:48:54 +00:00
2026-04-03 21:48:54 +00:00
2026-04-05 21:18:14 +00:00
2026-03-24 12:22:08 +00:00
2026-04-04 12:18:41 +00:00