Commit Graph
6208 Commits
Author SHA1 Message Date
aiongg ea609119ea egui: pin storytold/egui next at 1a44fd11c 2026-11-20 11:17:07 +00:00
aiongg a9bd542c50 Container regions: a scrolling body in unbounded room shows its measured line in every real run
The real run is told by the run's own flag (no sizing pass), not by
whether a measured size is present.
2026-11-20 11:17:07 +00:00
aiongg 4b2769acac Replay audit: bare floats exact, reads and inputs compared; a whole story value's edit reaches its fields
A bare f32 or f64 a record holds or a view returns compares exactly; only
positions and the hit-shape distances snap within the tolerance. The audit
compares a kept run's reads and framework inputs with the real run's. A
command reader notes the keymap whether its resolution was kept or made
in the pass. A Tracked key holds its size, and an edit reaches every read
of a part inside it (BindKey::reaches), so a field of a story value bound
earlier in the pass runs again when the Properties editor writes the
whole value. Story value keys hash the name and the type.
2026-11-20 11:17:07 +00:00
aiongg 7dfc887cec Lints: DropMark copies; PlainData puts its bound on the type parameter; a stop-group alias in a bar trial 2026-11-20 11:17:07 +00:00
aiongg bddc593180 Merge storytold next into memo-audit-fix
Memoized views stay the one change mechanism: next's settling-path additions (modifier reads as bind keys, given-edit
and keymap unsettling, settle counters) give way to the tracked inputs that cover them, and request_own_repaint calls
become request_repaint. next's command board, node facts after the node check, the guide drag out of a ruler and the
CommandStates input are taken; the trials next wrote on Lazy::settles run on memoized views. The ruler guide env value
keys a view under the canvas in every pass of a drag. The replay audit's run in the gate takes next's target selection.
2026-11-20 10:26:06 +00:00
aiongg 5589523161 stories: values bound together come from one story value or StoryData::pair_at, helpers bind by source
A story binds two values at once from pair_at when one of them must keep its own name, as a dialog's open does for
the gallery's opener; values bound together otherwise share one story value, and a helper takes the value's ValueAt
beside it. The PDF export story's open leaves its settings value, so the card opens the dialog again after Cancel.
Unused Bind imports in story files are gone.
2026-11-20 10:11:06 +00:00
aiongg ddc06cae58 craft-ui: a scrolling body's measuring run keeps its unbounded band
The bound to the measured line applies once this pass measured the body; its measuring run lays the content out in
the unbounded band, so a measure reports the content's whole extent.
2026-11-20 09:58:39 +00:00
aiongg 717ff260cb stories: format 2026-11-20 09:50:49 +00:00
aiongg f39ad653e3 tests: drop the two card audit trials that pass without their fixes
Shown as the gallery shows cards (raised surfaces in rows that run only in view), a card moved by a fractional wheel
step and a card partly out of view still replay equal to a run with the moved-replay fixes reverted, so neither trial
guards them; the gallery's audit-on suite does.
2026-11-20 09:49:11 +00:00
aiongg 90e40105d2 stories: start and metadata stories bind their story value through ValueAt
They copied the value out and wrote it back, so their binds named the copy by address.
2026-11-20 09:49:00 +00:00
aiongg e4d8cbda9f craft-ui: a scrolling body in unbounded room shows its measured content
A content-sized scroll container nested in a body that scrolls is offered no bound along y: its view is the line this
pass measured, never an unbounded band (whose bar parts had NaN geometry). The card trials of the replay audit show
cards as the gallery does: raised surfaces in rows that run only in view, the scrolling card sized to its content.
2026-11-20 09:46:45 +00:00
aiongg 922dc82098 stories: story values kept in a local bind through ValueAt
Script: `let PAT = data.value(ARGS);` (or ranged, choice) whose locals a later Bind::bound / Bind::bound_mixed in the
same block binds becomes `let (PAT, AT) = data.value_at(ARGS);` and the binds become AT.bind / AT.bind_mixed; 292
values, 333 binds; unused Bind imports dropped.
2026-11-20 09:46:30 +00:00
aiongg b31717b578 craft-ui: StoryData::value_at binds a story value or a field of it by source
ValueAt names a value by its data's source and a part of it by the part's offset in the value, as bind_tracked! names
a field of a Tracked, so a story that keeps a value in a local binds it as StoryData::bind does.
2026-11-20 09:46:26 +00:00
aiongg 5ac0410a58 craft-ui: the replay audit compares geometry within 1/256 pt
A record moved by a whole pixel from positions off the float grid differs from a run at the new place by rounding
only. Shift::snapped takes a value's coordinates and floats from the run's where they lie within the tolerance, so the
journal, the rect and the output compare with == after it; egui's PassRecords::first_difference takes the same
tolerance (aiongg/egui b65cbd8d9, pinned here). Ids, counts, colours and text stay exact.
2026-11-20 09:46:25 +00:00
aiongg bc0da2bbf6 tests: memo audit trials for a card holding a scrolling body
A card with its own scrolling body replays moved with its rows' places from their own view, and cut by the view
above with its scroll region's view cut too; the nested trial's card keeps a fixed room.
2026-11-20 08:53:32 +00:00
aiongg e1fbd5b1b9 craft-ui: a scroll region's noted view is a clip
The view of a scroll region cuts what lies outside it: a replay cut by the clip around it cuts the view as a run
there does.
2026-11-20 08:48:12 +00:00
aiongg 3a644d6ff5 craft-ui: a scroll area places a child's rect from the view it shows
A child's place was noted relative to its area's view when it ran and moved by the record's shift on replay, which
is right only for an area outside the replayed run: an area inside it moved with the run, so its children kept their
place. The note holds the child's rect, which moves with the record, and the area takes the place from the view it
lays out for (Placed holds it from begin).
2026-11-20 08:48:12 +00:00
aiongg 2e8d7a21bf stories: bind mixed story values through StoryData::bind_mixed
Scripted: Bind::bound_mixed(data.value(..)) becomes data.bind_mixed(..) at 35 sites, and an import of Bind that
nothing else uses goes.
2026-11-20 08:28:54 +00:00
aiongg d08973e932 craft-ui: StoryData::bind_mixed binds a story value that may be mixed by its source
A mixed story value bound by address names it in its pass only. bind_mixed binds it as bind does (the data's
source, the value's name), through a Tracked source that holds a Mixed value.
2026-11-20 08:28:54 +00:00
aiongg b9c91aa76f craft-ui: a moved replay places content and registrations where a run there would
Three causes of replays that differ from a run at the new place:
- the clip a member joins its arena through, and the clip of its over parts, are clips (shift::Clip): a replay cut by
  the view takes the view's clip, as a run there does;
- a view that replays moved inside a run is kept in that run's journal at its new place;
- a scrolling body moves its content by whole physical pixels on steps of egui's UI rounding, and a kept run moves
  only by such a step (lazy::keeps_placement): paint snaps to the pixel grid, so a record moved by a fraction of a
  pixel would not be where a run puts it.
Trials (audit on): a fractional wheel step, a card scrolled partly out of view, a view replayed moved inside a run.
2026-11-20 08:28:54 +00:00
aiongg 018c7ee94c tests: a hidden page is measured once in each pass
Pages measures each hidden page once per pass (the page closure reads data the framework does not track), so a
settled frame measures it again and an edit read earlier in the pass measures it in both passes. The trials assert
that rule and that the pages take the new size in the frame of the edit.
2026-11-20 08:28:54 +00:00
aiongg e69f80e8a3 gallery tests: a story value edit runs its card in the frame of the edit 2026-11-20 08:04:20 +00:00
aiongg 0033d0c7b3 craft-ui: a kept run replays only on the font atlas it ran on
egui clears the font atlas when it fills up and rebuilds it for new text options; a kept galley's glyphs then name
other glyphs. lazy::Place holds the atlas generation (egui Fonts::atlas_generation, aiongg/egui memo-atlas-generation
dd086c7f29), so the one rule for kept paint covers it. Trial: a settled view runs after the atlas is rebuilt.
2026-11-20 08:04:19 +00:00
aiongg 417460a887 tracked: two Tracked values are equal when what they hold is
The mock's document holds a Tracked view and stays a story value, which compares by value.
2026-11-20 08:04:19 +00:00
aiongg 22835c7cf2 stories: format the scripted binds 2026-11-20 08:04:18 +00:00
aiongg 07bc5387be gallery mock: the document's view is Tracked
The canvas, the Navigator and the status bar's zoom show and edit it, so they bind it by its source.
2026-11-20 07:43:21 +00:00
aiongg 13764666ac stories: bind story values through StoryData::bind
Scripted: Bind::bound(data.value(..)) becomes data.bind(..) and Bind::bound(data.ranged(..)) data.bind_ranged(..).
2026-11-20 07:43:21 +00:00
aiongg 906be95f25 craft-ui: kept records hold no read of a place by address; Tracked bindings key by source
A place's address names it in its pass only: a record kept for a later pass (a memoized view's) keeps no
BindKey::Place read and its replay notes none, while a measure-only record used within its pass keeps them.
State more than one part shows or edits is Tracked: a bind_tracked! binding keys by the value's source and the
field's offset (BindKey::Tracked), in its read, its edit and its memo key, so a replay in a later pass re-notes the
read and an edit later in the pass reruns it. StoryData::bind binds a story value the same way, and the Properties
editor binds and notes its edits through it. The memo_settled reader and editor share a Tracked value.
2026-11-20 07:42:50 +00:00
aiongg ae4c4b0679 tests: format 2026-11-20 07:35:33 +00:00
aiongg 5098b0e3ea tests: drop the overflow trial that a bar trial already guards
bars::overflow::a_bar_too_short_for_its_members_takes_the_wheel_from_its_first_frame fails without the real run's
extent; the scroll trial passed with or without it.
2026-11-20 07:31:57 +00:00
aiongg 8af8aeffad craft-ui: a record's journal holds what its real run registered, not its measuring runs
A body inside a memoized view measures only in some passes, and what a measuring run hands forward lives in the
body's kept transcript. The journal took those entries too, so a replay added a measuring sweep's registrations in a
pass that measured nothing. Trial: a view whose body measured in its run replays as a run with the audit on.
2026-11-20 07:31:57 +00:00
aiongg afbb2d66b0 craft-ui: a number field whose value is not finite has no numeric value in its node
It shows the dash, as a mixed field does. A NaN numeric value also never equals itself in a node comparison.
2026-11-20 07:31:57 +00:00
aiongg d5ea6a0e53 craft-ui: a memoized view's run in a pass egui will discard keeps no record
egui paints nothing of a pass it will discard (Painter::is_visible is false in it), so a run there registers invisible
widgets and no nodes; a shown pass's replay of that record lacked them. The kept record stays the last shown pass's, a
settled view still replays in such a pass, and the replay audit skips it. Trial: a settled view replays through a
discarded pass, and new props there run the view again in the shown pass.
2026-11-20 07:31:57 +00:00
aiongg c3c1ef70ad craft-ui: a scrolling body's measuring run lays its content out beside the bars, and again at full view when it fits
The first sweep takes the view an overflowing body shows; content that fits leaves another view, so the sweep is
taken back through the draft journal (lazy-store writes included) and runs once more there. The body's measure no
longer keys on the last pass's extent. Trials: the first frame lays content out at the settled width, and an
overflowing body's settled memoized children run no measuring run when the body measures again.
2026-11-20 07:13:24 +00:00
aiongg d368d684c9 tests: a bar member's shown part is its interact rect
A member the bar cuts keeps its whole rect as its response rect; the part
the bar shows is the rect egui senses it in.
2026-11-20 06:19:22 +00:00
aiongg f43fb4e2c2 craft-ui: a root's egui widget takes its whole rect and egui clips its interact rect
As egui's own widgets do (Response::rect and interact_rect): a root its
clip cuts reports and reveals where it is, and egui's hit test uses the
part inside the clip. Widening a widget's sense checks its interact
rect; a secondary release opens a press opener only inside it.
2026-11-20 06:08:46 +00:00
aiongg 16952f629e tests: a tab strip places its tabs by their measure in its first frame, and reports the rects it places
The frame-0 trial uses a panel strip too narrow for its tabs that takes
its measured height, so it fails without the measure ahead. The report
trial checks tab_rects in the frame a title changes.
2026-11-20 06:08:46 +00:00
aiongg 71a764ab94 craft-ui: a collection takes its rows' measure ahead in the run that measures them
The measure ahead ran the row measure as a measuring run and set the
layout inside it, so a layout that reports its placement only outside
measuring runs (the tab strip's report: tab rects, hidden tabs, the
overflow button) kept the placement from before the measure in a pass
with no measuring run. The layout now takes the results after the
measure, in the run that called it.

The docking trial checks that a label too long for its group moves the
group's other tab to the overflow menu in the frame of the change.
2026-11-20 06:08:46 +00:00
aiongg e7e877ac57 Merge pull request #2504 from aiongg/modifier-reads
craft-ui: a modifier read reruns the settled component that read it
2026-11-20 01:03:16 -05:00
aiongg a7fb8a074e Merge pull request #2490 from aiongg/picker-caption-widest
Preset picker: a caption range keeps the field at its widest caption
2026-11-20 01:02:42 -05:00
aiongg 5ed60e5564 craft-ui: a record's clip with no area is Rect::NOTHING
A cut member's shapes record an empty clip that came about in different ways in
different passes; one clip passes nothing.
2026-11-20 05:38:29 +00:00
aiongg 2b3f149afe craft-ui: a record journals each read once
The reads are a set to what reads them. A run that measures a component again (a kept
transcript's check) reads nothing new, so its journal no longer depends on how many
times the pass measured.
2026-11-20 05:38:29 +00:00
aiongg 6b634df42e craft-ui: a scrolling body's real run decides its scroll from the content this pass measured
The measuring run records the content's extent, and the real run takes it at step 5:
whether the content overflows (the wheel, the bars, the strips) and how far it
scrolls. A bar too short for its members takes the wheel from its first frame.
2026-11-20 05:38:29 +00:00
FredApps 051ec4fd62 Merge pull request #2389 from yoriswind/codex/shared-dpx-export-u8-r1
Avoid widened sample buffers in eight-bit DPX export
2026-11-20 12:36:48 +07:00
FredApps 54cb4af7e1 Merge pull request #2396 from yoriswind/codex/shared-dpx-decode-widen-r1
Reduce temporary memory when decoding DPX and Cineon
2026-11-20 12:31:20 +07:00
aiongg b5f9412055 Merge pull request #2469 from aiongg/drag-value-lag
Value drags rerun only the regions that show the value (photocraft#15859)
2026-11-20 00:22:50 -05:00
aiongg 34cfca1ee9 Merge pull request #2436 from aiongg/next-workspace-ci
ci: use main's workspace workflow on next
2026-11-20 00:21:43 -05:00
aiongg 19b53c5edd tests: a root's widgets sense what its members sense in the same pass 2026-11-20 05:17:28 +00:00
aiongg 4953aafdf9 craft-ui: a root's widgets take this pass's member senses once its body has run
Step 8 registers the root's own sense and its parts'. After paint_over, every member
of its arena has joined, and the root's widget and its transformed body's forwarding
widget take the members' senses (egui ORs the sense of a widget registered again in a
pass). A press's untargeted check reads the root widget's sense from the pass egui's
targets come from. The union of last pass's members goes.
2026-11-20 04:58:01 +00:00
aiongg 0ca4fd7c26 craft-ui: a modifier read reruns the settled component that read it
Cx::modifiers read the pass's modifiers without a record, so a settled region
whose component painted by them (a menu bar underlining its mnemonics while Alt is
held) replayed its last paint until something else ran it. The read is now noted
under BindKey::Modifiers, and the pointer's begin hook notes an edit of that key
when the pass's modifiers, latched ones included, differ from the last pass's: the
regions that read them run in that frame, as for any edited value.

Part of storytold/photocraft#15476.
2026-11-20 04:41:35 +00:00