The text editor requested the I-beam every pass of an open session, wherever
the pointer was. At hover priority it beat the canvas tool's cursor and showed
over panels, the options bar and the rest of the UI. It now asks only while its
press is not idle: the pointer is over the editor or its own press is held.
Component::FOCUS_SCOPE gives a leaf the scope ContainerProps::focus gives a container, through the leaf
shape's focus hook. TextEditor opens a scope that restores (FocusPolicy::TAB_LAYER), so a session that
ends hands the focus back to the stop it came from, the canvas, instead of the stop before the editor
(the rulers' corner, whose arrows moved the zero point after a commit; photocraft#15555). Regenerates
docs/contract-api.md.
The same read as in the Layers and Channels panels: pointer::frame(..).mods
notes the pointer as a tracked input, so a memoized view holding the
component ran on every pointer move in the window. pointer::mods returns
the same modifiers and notes only the modifiers. Fifteen more sites read
the frame for its modifiers only (the preset browser, the tile grid, the
section footer, the dock's drop, the canvas guides, the crop tool, the
bins, Color Range, the raw develop dialog, the table conditions, the form dialogs,
Save for Web) and the text style panel; each reads pointer::mods now.
The preset browser also reads the pointer's buttons, press and release
for its rows' events; it reads the frame only when there are events, so
a pass without one does not depend on the pointer.
In PhotoCraft this left Swatches, Gradients, Patterns, Styles, Shapes,
Tool Presets, Character and Paragraph Styles, Brushes and Glyphs running
on every pointer move over the canvas; with the change every docked
panel replays.
Trial: the preset browser in a host view replays on a pointer move
beside it, in its list view (fails without the browser change) and its
tile view (fails without the tile grid change), and Alt held runs it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ParamRows and ParamDialog take a PresetSource for their pattern rows (a hosted dialog's build gives one over owned
inputs); the export and PDF export dialogs, the swatch list (swatch_source, thumbs from the drawn colours), the
gradient palette and Gradient Map picker, the pattern fill editor, the text style picker (style_source) and the Layer
Style dialog (patterns, style presets, contour_source) build their presets from sources. Their painters are fns:
RampSampler, SwatchPainter, ContourSampler. Key types and the model types they are built from are memo props.
A memoized view inside an open popover replays while nothing changes; an open preset picker runs no list row while
nothing changes; a Size drag in the Brush Preset picker runs its head and replays the list.
The Swatches panel's rows stay public as `swatch_rows(groups, words)`, which the source's rows fn calls.
PageRulers handed the text ruler the canvas's top strip, which starts after the
canvas corner, and the ruler cut its own corner square out of that strip, so the
selector sat one strip depth right of the corner, over the horizontal ruler, and
the corner stayed blank. The host now gives the corner (TextRuler::corner):
Rulers::strips returns it beside the strips, and PageRulers shows the ruler over
the top strip and the corner. The corner follows the host in either direction.
The selector's box is the icon size with the theme's small rounding, in the
column's colour with the state layer under the pointer; the corner continues the
strip round it; the glyph is centred by its own bounds.
`RulerFace { Edge, Centred }` sits beside `TickEdge`, and
`RulerFace::of(set)` maps the creative set to Edge and the office set to
Centred. The shared tick painter takes the face. Centred draws a bar
inset in the strip by `space.gap.tight`, centres the marks on it, and
puts a number in place of each whole-unit mark. No mark runs under a
number (`RulerFace::beside_numbers`), so a whole-unit tick shows only
where its number is dropped.
TextRuler, VerticalRuler and canvas Rulers take an optional `face` prop
in their style key. Unset, the style resolves it from the scope's set.
PageRulers passes its face to both of its rulers, and the timeline ruler
keeps the edge face.
Under Centred:
- the strip is on the chrome surface and the bar carries the margin
shade and the text column on the well;
- numbers show only over the text area and are dropped where a marker
stands;
- canvas Rulers shade their margin bands as the text ruler does.
Edge is the look the rulers had before. Each ruler gets an edge and a
centred story.
next's submenu switch (62189858af) requests a plain repaint, and its trial counts a memoized view beside the bar,
which replays while sibling submenus switch, in place of a settling Lazy region.
next's WordCraft port and the framework work under it (243d68e12d) take the memoized-view APIs where they meet the
branch: story values bind through StoryData::bind, value_at and pair_at (next's copy-out stories included; one held
form story still binds a copy, as its held answer is a note beside the value); next's env values (GroupLevel,
ControlPlace, RibbonLook, ScreenModeSet), IconMark and PageBandRoom derive MemoProps, and the shell entry keys the page
band's room; request_own_repaint calls become request_repaint. The collection extent next reworked (motion-owned
style context, FillHeight, ideal width by item count) moves into items_extent. The header's hosted cells join the
parts' roving group from the pass's own membership (parts_group over Cx::join_roving), as the parts' stops do. A
content-sized shell slot measures its content with the app running in it every pass. The gallery card hands the
story's output from its view's real run (StoryRun).
Conflicts resolved by keeping both sides. The start screen keeps next's
Greeting layout and its move of the recent body to recent_list.rs; the
desktop Home grid aspect and card padding now reach recent_body through a
desktop_home flag. The scroll bars keep both the document chrome (arrows,
corner) and next's drag tip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
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.
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.
- api/non-exhaustive: #[non_exhaustive] on public enums, variants and structs, with constructors for what
callers built by struct expression (KeytipControl, GroupWidths, RibbonMenuRequest, EdgeLook::sample,
BalloonItem, CropScope::object, PageBandRoom, WheelSpeed, AltCodePages, GalleryFace, GradientTile).
GalleryItem, RibbonOutput, LineBreakOptions, AsianTypography and GapEdge join the closed list.
- props/hand-setter: setters that only store become #[prop] fields. Keytips drops its own enabled field
for Common enabled, and its show becomes show_over.
- contract/no-global-state: constant tables are const, not static.
- contract/egui-import, memory, allocate: LayerId, TreeUpdate, Id::unique, the text scroll memory and
allocate_space go through runtime::egui.
- contract/overlay-flag: CanvasScrollbars declares overlay; its drag story covers Open.
- Markers and exception entries only where the code is the exception (stories, trials, unit-square
coordinates, the balloons id scope).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Dialogs: ButtonPlace { Foot, Side, Body } beside the port's refusal notice and
ChildDialog; every side_buttons caller (find, hyperlink, paragraph, list manager,
form dialogs) takes button_place, keeping the port's held answers, close buttons
and name check.
- Colour picker: upstream's fixed Full arrangement, CompareSwatch and warning module;
the port's shown_model and tabbed Colors dialog kept (its buttons stand in the side
column, the Full layout's in the picker's slot); the Compact layout shows the
compare block beside its area when the host gives a compare colour; focus_on_open
goes as upstream.
- Task bar: the grip is the bar's first member on one floating surface, for the task
kind only; the selection kind and the close reason stay.
- Keymap: lookup_where's accept filter runs through upstream's winners().
- craft-gpu: upstream's provider-neutral crate, with the port's eframe start-up
choices behind a startup feature (facade gpu-startup); duplicate facade row removed.
- Facade features, ATTRIBUTION, BMP density probe, margin story fit, theme icon-pack
and dialog first-field trials: both sides kept; the clipboard presence code stays
replaced by the port's offer modules.
TextRuler::paint_ticks drops the tick rule's extra labelled step beyond each
end where the ruler is cut to an extent (a page's x range), so no ticks show
past the page. TextRuler and VerticalRuler fill the column with surface.sunken
and the margins with surface.canvas: the margins were the lighter part
(surface.sunken is #fff in ArtCraft light), the reverse of a word processor's
ruler. Trials a_ruler_cut_to_an_extent_paints_no_tick_past_it and
the_ruler_column_is_lighter_than_its_margins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A kept run records the memory owners it registered and the generation of
ended shown lives; a view whose components' shown memory was evicted or
ended since runs when it is shown again. A kept or saved binding in a view's
props feeds the context's count of writes made outside a component's edit
(set_saved_value and forget_saved per key, forget for session memory), read
through the view's key, and those writes note the edit for the frame.
A record whose run asked for a discard pass is never replayed: egui's count
of discard requests is compared between open and close, and layout memory,
whose ask reaches egui only in the end hook, notes its own. A run keeps the
key from before it, so a view that writes through its props runs once more
from the written value before it replays. A memoized view's entry id is
claimed once per pass, as stage bases are.
Check inputs are keyed only when a view takes the key (NameCheck and the
binding check box their inputs), PresetNames borrows the library and walks
its names, a Tracked field binding keys by address and write count, and
caption icons read again take the next generation.
A memoized view's content is a fn and its props are its only input, so the
framework sees every input it reads. While its key (the props type, the fn's
address and the props' inputs) equals the key after its last run, it adds
that run again and returns what the run returned. Lazy and MemoView share
one runner and one settled test; a memo view ignores the two rules that infer
a change of app data (input arrived, a repaint was asked), replays a run of an
earlier pass of the same frame when nothing it read was edited after the run
started and the run asked for no discard pass, and keeps its entry through
absence up to twice the shown views per viewport.
MemoProps gains identity() (the props type with its lifetimes erased, through
the typeid crate), &mut Tracked<T> by revision and Bind by value and place.
A binding's check takes its inputs as props: check(fn) and
check_with(inputs, fn), one mechanism; a composite hands its check on through
BindMut::check_of. The preset name check (NameCheck) takes inputs the same
way, with PresetNames as a library's names. Glyph is Any + MemoProps, and an
icon keys a glyph by its type, then by its key; the caption glyph owns an
Arc<CaptionIcons>.
Facts::register is journaled, layout memory notes discard asks into the open
record, and the settle counters become MemoRun and last_pass_memo_runs. The
idle-frame trial moves onto memo views, beside count trials of the mechanism.
FormCx::accept files or closes as the OK press; FormButtons::Close leaves out OK;
ListManager::name_box binds the name box; FindReplaceDialog::show_tab and
set_go_to_kinds, and options() opens Search Options; ParagraphFormat::contextual_spacing.
- FooterPlace::Body and FooterSlot: a container's footer drawn at the cell its body keeps; the footer step still
runs it, so roles, platform order, Enter, Escape and Alt-Reset stay the dialog's. Dialog::button_place(ButtonPlace
{ Foot, Side, Body }) replaces side_buttons(bool); every caller updated.
- Grid::fit(GridFit { Stack, Fixed }) and layout::empty_cell, with the grid_fixed story.
- ColorArea sizes by AreaShape { Plot, Square } from tokens, never from the room.
- CompareSwatch: one block, new over current, one edge, captions, warnings column from the block's top.
- ColorWarningChip arrangement enum (Stacked, Beside) replaces beside(bool); icon.sm chips.
- Full: area and strip over Only Web Colors and the screen-pick button; compare block and actions slot over two
field groups in grids that never stack; '#' in the radio column, hex field across the channel cells. No wrap, no
alpha row, no OKLCH column (OKLCH rows join group 2 with their radios); Only Web Colors always shown.
- Compact: width from the plot area and strip; hex row with the screen-pick button at its end.
- ColorPickerDialog puts its buttons in the picker's slot; color_picker_dialog story.
- Trials: Full arrangement across rooms, densities and themes; dialog proportions and button cell; compact width;
body-placed dialog buttons and their keys.