diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 09:32:28 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | ccdb7e478248fcf8489eb8a6f9b58178107a26f5 (patch) | |
| tree | b3a38fa2a0b6b4db63cf742c54f2dd8701097a3c /test/session_export.script | |
| parent | 7ad16df2813c0c3012bae6262014b07b7bc7277d (diff) | |
| download | sketchbook-ccdb7e478248fcf8489eb8a6f9b58178107a26f5.tar.gz sketchbook-ccdb7e478248fcf8489eb8a6f9b58178107a26f5.zip | |
examples/live: the code drawn as a paragraph, every place measured
`code` draws the editor's text with one f.paragraph: the code face at
1.25, a span in its class's ink where the grammar's class changes
(`paragraph`, which `update` calls too). Every range, the caret and the
problem's mark are boxes from sk.text.places, one layout of the same
paragraph: a byte's box runs from its place to the next byte's on its
line (a `\n` and the end a space wide), a range a box a line it covers.
The band is the layout's size. The constant 10x22 cell goes: `update`
finds the byte under a press with the same places (the last byte whose
line holds the pointer's y and whose x is at or left of it), then the
number token there by the grammar's parse, as before.
The pictures do not move: at this face and size the measured advance is
10 and the line 22, so every storyboard beat's code band is the part 2
picture's, pixel for pixel (0 of 960x600 differ in each of 11 beats;
only the scope and the lead in the corner, which vary run to run, do).
zig build test: 92 of 92 steps.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/session_export.script')
0 files changed, 0 insertions, 0 deletions
