Thing 2.0 cut 6a: render (the closed command list, overlays, scroll clipping) #19

Merged
eureka merged 4 commits from hands/thing2-render into main 2026-11-28 07:00:02 +00:00
Owner

Render turns the laid-out, bound tree into the closed render-command list of build spec §2.2 in f32 logical px (device px divided by scale, thing2:ruling:layout-in-device-px): overlays after the main tree in order, scroll content clipped, node-anchored overlays positioned from their anchor minus scroll ancestors' offsets (thing2:follow_up:overlay-anchor-follows-scroll), diagnostics from layout then render in a defined order, text as placeholder runs until cut 9. A Use placeholder gets a 16x16 minimum so its error is visible (f10's layout golden is the only one that moves). Image, Polyline and Polygon commands come with the leaves cut (6b).

Spec thing2:cut_spec:cut-render.r1, report h1; Soul s1 holds with no findings. 272 tests; 16 render goldens; mutants all caught.

🤖 Generated with Claude Code

Render turns the laid-out, bound tree into the closed render-command list of build spec §2.2 in f32 logical px (device px divided by scale, `thing2:ruling:layout-in-device-px`): overlays after the main tree in order, scroll content clipped, node-anchored overlays positioned from their anchor minus scroll ancestors' offsets (`thing2:follow_up:overlay-anchor-follows-scroll`), diagnostics from layout then render in a defined order, text as placeholder runs until cut 9. A Use placeholder gets a 16x16 minimum so its error is visible (f10's layout golden is the only one that moves). Image, Polyline and Polygon commands come with the leaves cut (6b). Spec `thing2:cut_spec:cut-render.r1`, report h1; Soul s1 holds with no findings. 272 tests; 16 render goldens; mutants all caught. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
LaidNode gains parent and clip becomes Option<Rect> (the padding box); Measure gains text(), the
same engine's lines for a Text leaf at its final width; a Use placeholder takes 16x16 logical
(1x1 cells), re-blessing layout-f10 and nothing else.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
render() turns a BoundTree, its LaidTree, ScrollOffsets and a Theme into commands, placed
geometry and diagnostics: clips balanced, scroll applied once through one clamp, overlays
translated by their anchor's scroll ancestors and never clipped by the main tree, text through
Measure::text. Goldens render-*.txt through the one bless path; f01 and f05 gain paint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Thing 2.0 cut 6a: render command docs name no forbidden vocabulary
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 2m35s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 2m39s
054480dc99
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eureka merged commit 9da9080f8a into main 2026-11-28 07:00:02 +00:00
eureka deleted branch hands/thing2-render 2026-11-28 07:00:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Thing!19
No description provided.