mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-24 19:41:51 +01:00
A kept run replays where its room is now: the room's position leaves the place comparison and becomes the offset of one RecordShift, which moves egui's records, every journal entry and what a memoized view returned. Room size, layer, layout, scale and environment stay compared. - Place::shift_to: the move is a whole step of egui's UI rounding; a moved record holds no paint callback and sits on an untransformed layer; clip rects follow when the clip moved with the room, or when the run lay wholly inside its clip (nothing culled). Otherwise the view runs. - Shift: journal arguments (A: Shift) and MemoView's R (R: Shift) move by the replay's shift inside replay::replay; rects and points move, Clip goes through the clip rule, the rest stays (stays!). Vec2 has no impl: a size and a move are both Vec2. - The engaged test reads the moved rect; the scroll-view rule compares the view moved with the record while the clip moved with it; sizing extents compare the room's size. - The scroll body moves its content by whole UI rounding steps, as egui places widget rects. - Trials: a moved replay equals a run there (pass records, revealed rects, returned rect); a room of another size runs; a cut run moved under its clip runs and moved with its clip replays; the Overview's scroll runs only entering cards and the pointer's.