The dock keeps an Arc<Workspace> and a Tracked spec model, the toolbar rail
takes Tracked slots, the Layers panel holds its rows as plain data in a
Tracked, and the menu bar is a Tracked model keyed for the native menu's
sync. PhotoCraft states the Creative component set. Export As lists its
resample methods, and layer.exportAs describes them, in the engine's order.
Part of #15476
* Hold ordered layer selection across reads
* Migrate UI and automation to the borrowed document selection
* Fix held selection migration diagnostics
* Preserve held selection for unchanged active layer
* Keep owned selection snapshots in engine tests
* Allow consuming a document state without cloning
* Preserve document ownership on close and capture export selection
* Migrate engine integration tests to held selection
* Keep isolate-layer test selection snapshot
* Read the active layer before editing the gradient test document
* Remove redundant selection slice borrows
---------
Co-authored-by: FredApps <[email protected]>
* Retain damage across document revisions
* Count canvas conversion after neutral revisions
* Check paragraph box damage against ink bounds
* Bound damage growth on deep documents
* Keep recorded effect reach without growing twice
* Construct indexed layer trees in damage history tests
---------
Co-authored-by: FredApps <[email protected]>
* Use fixed scratch volume capacity in engine unit tests
* Test fixed scratch capacity during preference setup
---------
Co-authored-by: FredApps <[email protected]>
Preserve the Channel Mixer rounding regression alongside main Color Balance coverage. Source and whitespace checks passed; hosted CI will validate the integrated tree.
The reference application refuses a Quick Selection click or drag there
with an alert and selects nothing. select.quick now returns its words,
and the canvas shows them in the OK alert without running the command.
Multichannel and Duotone weren't measured and keep selecting.
A rectangle that finds nothing opens the reference application's "Couldn't find an object to select" alert with "Don't show again" instead of a status-bar hint. Over an area where the sampled layer has no pixels it still records an "Object Selection" History state (select.object "recordEmptyArea"); scripts keep the #5246 error. A click that finds nothing shows no message.
Keep the guides transformed by the exact turn when Image Rotation requests them. Crop and Ruler Straighten still clear guides. Check guide positions, colours and undo through the rotation commands.
crates/ui-egui/src/dialogs/export_dialog.rs: main's version. Since #15449 the
Export As dialog is the framework's, so the PR's resample_field and
resample_label changes no longer apply; Preserve Details is added to main's
RESAMPLE_CHOICES in the next commit. The engine side (RESAMPLE with seven
methods, preserveDetails in presets) merged cleanly.
#12922 landed while this was in progress and moved the raw footprint from
99,99,301,251 (1400 partly selected, an outer 64/48/16 rim) to the rectangle
itself with 696 partly selected. The Enhance Edge off pin keeps main's current
output, so it still says "unchanged by this change". The rim tests are
unaffected: same bounds, same 2120 partly selected pixels at 253-254.
Fixes#12923
Enhance Edge ended at a hard cut: on the issue's red rectangle 29996 pixels
fully selected and four corners stuck at 186, where the reference application
measures 2146 partly selected pixels at 248-254 about three pixels inside the
edge. No setting of the refine parameters reaches that band - its one feather
softens both sides of the edge and moves the bounds (feather 2 gives bounds
99,99,301,251) - so the refined cut now keeps a feather clipped to itself: a
selected pixel loses up to one percent of its coverage, by the share of an
edge-radius neighbourhood around it that lies outside the cut. Smooth goes from
15 to 10 because at 15 the four corner pixels stay stuck at 186, outside the
measured band, and a rim that only takes coverage away cannot lift them.
Fixes#12923
Opening or closing an effects list or a group is view state: the document
revision, which feeds the modified state, saves and every revision-keyed
cache, stays where it is. DocState::layers_view_revision moves instead, and
the Layers panel's rows key on it.