tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues

tablet 0.2.0: dialects, and a decorated backdrop over the textarea

A page registers a dialect by name (defineDialect) and picks it with
<pebble-tablet dialect="...">: commands keyed by inputType or chord, where
null declines and the plain command runs; extra chords; a line decorator;
and a task-box action. stepWith(dialect) is the reducer; step stays plain.

When the dialect decorates, an aria-hidden backdrop is laid over the field's
box and spells the same lines in the same font, padding, border width, wrap
and scrollbar gutter, while the field's glyphs turn transparent. The textarea
stays the surface. Task boxes are the only clickable part; a click is a tick
action, one undo step. Decoration must never change a glyph's width
(docs/tablet.md).

The Chromium smoke checks it: same wrap and height as the field, scroll kept
in step, pixels within antialiasing of the field's own (a 1px shift differs
80x more), a real box click, and a real Enter, which a textarea reports as
insertLineBreak.

Size: 7928 -> 10042 B gz; the budget moves to 11600 (measured + ~15%).
scripts/publish.ts takes package names, so one package can be published
while the others' versions stay as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 3 sem. · 1c21b1c7c0e2042fadce32601c56d4f553054de5

Parents e06d292

12 fichiers modifiés, 737 ajouts, 35 suppressions