Commit Graph
4855 Commits
Author SHA1 Message Date
aiongg 0cc267d2db Export As trial reads the registry through install::command_specs, so it holds in a process of its own 2026-11-21 05:08:14 +00:00
aiongg cfa1d0e7cf Pin craft-libs next 614f4d5f1
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
2026-11-21 03:55:47 +00:00
David Mann 830d9033a3 Merge #14628 into the merge queue batch
Artboard from Group: the artboard is Normal at 100 % opacity (#14552)

# Conflicts:
#	crates/engine/src/cmd/artboard_cmds.rs
2026-11-20 15:52:19 +01:00
David Mann e291d5e8a7 Merge #15253 into the merge queue batch
Use exact right-angle turns in Arbitrary canvas rotation (#14469)
2026-11-20 15:52:18 +01:00
David Mann ce32662e0b Merge #13225 into the merge queue batch
Quick Selection: refuse Indexed Color and Bitmap documents

# Conflicts:
#	crates/engine/src/cmd/smartselect_cmds.rs
2026-11-20 15:52:17 +01:00
David Mann 7fbe96eaca Merge #14697 into the merge queue batch
Name the Artboard from Layers history step "New Artboard From Layers" (#14578)

# Conflicts:
#	crates/engine/src/cmd/artboard_cmds.rs
2026-11-20 15:06:08 +01:00
David Mann d7b23e1460 Merge #15031 into the merge queue batch
Export As: Resample lists Preserve Details, in the reference order
2026-11-20 15:06:05 +01:00
David Mann ce75b3be93 Merge #14908 into the merge queue batch
fix(engine): Layer from Background takes the lowest free Layer N
2026-11-20 15:06:04 +01:00
David Mann e6187cc5bf Merge #14455 into the merge queue batch
fix(engine): the Channel Mixer command mixes with whole percentages
2026-11-20 15:06:04 +01:00
David Mann e9ebbe1107 Merge #15855 into the merge queue batch
fix(selection): give Quick Selection's Enhance Edge its measured soft rim
2026-11-20 14:16:40 +01:00
David Mann 8b8ff0a709 Merge #15810 into the merge queue batch
Auto-Blend Layers: a selected Background stays the Background (#14214)
2026-11-20 14:16:39 +01:00
David Mann 0a84102123 Merge #15783 into the merge queue batch
Preserve legacy Airbrush rates and initial Fade steps
2026-11-20 14:16:38 +01:00
David Mann 79100d117a Merge #15775 into the merge queue batch
Read the Object Finder seed at full resolution
2026-11-20 14:16:37 +01:00
David Mann acea29d552 Merge #15725 into the merge queue batch
Label Ellipse tool creation steps in History
2026-11-20 14:16:35 +01:00
David Mann 331846a92e Merge #15319 into the merge queue batch
Duplicate Layer: leave Indexed documents out of the destination list (#14612)
2026-11-20 14:16:35 +01:00
David Mann 22938f5e88 Merge #14662 into the merge queue batch
fix(engine): Image Rotation Arbitrary follows the Image Interpolation preference
2026-11-20 14:16:34 +01:00
FredAppsandFredApps a1f4dc1aa1 Use the document mutator in the damage-history fixture (#15959)
Co-authored-by: FredApps <[email protected]>
2026-11-20 19:28:10 +07:00
FredAppsandFredApps abad0deaea Hold the normalized layer selection across engine reads (#15907)
* 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]>
2026-11-20 18:11:54 +07:00
FredAppsandFredApps 4f348a17ab Retain damage across document revisions (#15749)
* 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]>
2026-11-20 18:11:43 +07:00
FredAppsandFredApps 4fd58daa82 Use fixed scratch volume capacity in engine unit tests (#15794)
* Use fixed scratch volume capacity in engine unit tests

* Test fixed scratch capacity during preference setup

---------

Co-authored-by: FredApps <[email protected]>
2026-11-20 18:11:33 +07:00
hnoerenberg 84e48c9630 cargo fmt 2026-11-20 09:45:29 +01:00
hnoerenberg a9c031ee39 Merge upstream/main into fix/rotate-interpolation-pref-14465
# Conflicts:
#	crates/engine/src/cmd/mode_cmds.rs
2026-11-20 09:41:00 +01:00
FredApps 421cfd0f74 Merge main into Channel Mixer percentage fix
Preserve the Channel Mixer rounding regression alongside main Color Balance coverage. Source and whitespace checks passed; hosted CI will validate the integrated tree.
2026-11-20 09:28:05 +01:00
hnoerenberg d3a1a2aa4c Merge upstream/main into fix/layer-from-bg-name-14821 2026-11-20 09:16:34 +01:00
rmsff bab27ebf30 Test the Quick Selection refusal in Indexed Color and Bitmap 2026-11-20 10:11:11 +03:00
rmsff 3946436c63 Quick Selection: refuse Indexed Color and Bitmap documents
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.
2026-11-20 10:11:11 +03:00
rmsff 038e4e9bb8 Object Selection: alert when a rectangle finds nothing, silent click
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.
2026-11-20 10:10:55 +03:00
Dan 7d1c4c6688 Merge main and preserve guides during exact Arbitrary turns
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.
2026-11-20 05:08:06 +00:00
Hector Villarreal 12d075b149 Merge main into fix/export-preserve-details
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.
2026-11-19 21:46:45 -06:00
David Mann 29cfc7b3cb Merge #15397 into the merge queue batch
Place Embedded: a placed file keeps its physical size at the document's resolution (#14105)
2026-11-20 02:04:36 +01:00
David Mann 53e11b4045 Merge #14529 into the merge queue batch
Variables: Preview checkbox in the Apply Data Set dialog (#14496)
2026-11-20 02:04:33 +01:00
David Mann 8c16bacd5d Merge #14657 into the merge queue batch
Apply Image: Darker Color and Lighter Color blending (#14478)
2026-11-20 02:04:32 +01:00
David Mann 066fe93ec3 Merge #14542 into the merge queue batch
Color Table: an .act count of 0 loads as one white entry (#14374)
2026-11-20 02:04:32 +01:00
David Mann 17d0c45b5c Merge #15007 into the merge queue batch
Find and Replace Text: search the layers in the reference order (#14661)
2026-11-20 02:04:32 +01:00
David Mann ddb38c9efc Merge #14424 into the merge queue batch
Check Spelling: start at the active layer, go up the stack and wrap
2026-11-20 02:04:31 +01:00
David Mann 76c5769455 Merge #13888 into the merge queue batch
Paths to Illustrator: lower-case c / l for segments that end on a smooth anchor (#13781)
2026-11-20 02:04:29 +01:00
David Mann 081747710d Merge #15045 into the merge queue batch
Color lookup export: bake the whole visible stack over the canvas, masks included
2026-11-20 02:04:29 +01:00
David Mann 7d4d3d85db Merge #15212 into the merge queue batch
fix(layer-style): start a new Outer Glow at the measured defaults

# Conflicts:
#	crates/engine/src/layer_style.rs
2026-11-20 02:04:28 +01:00
hnoerenberg b2e4444f3a Merge upstream/main into fix/quick-selection-enhance-edge-12923
17 commits, no overlap with the quick-selection edge work (smartselect_cmds.rs, matting.rs, quick.rs untouched upstream).
2026-11-20 01:03:57 +01:00
hnoerenberg 7555a8fda3 docs(smartselect): note that RIM_HALO is ceil(3*sigma)+1
Comment only: spells out the rounding the integer cast relies on - exact while ENHANCE.radius stays integral.
2026-11-20 01:03:16 +01:00
hnoerenberg e3b14133de test(selection): follow main's Quick Selection footprint
#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
2026-11-20 00:20:00 +01:00
aiongg 6cef4c278a Merge pull request #15813 from aiongg/perf-15709b
Key document queries on revisions instead of per-frame walks (#15709)
2026-11-19 18:16:39 -05:00
aiongg f63ed56fe8 Merge pull request #15782 from aiongg/engine-split-registry
Engine install registry (#15710)
2026-11-19 18:16:25 -05:00
hnoerenberg d57c96f1eb Merge remote-tracking branch 'upstream/main' into fix/quick-selection-enhance-edge-12923 2026-11-19 23:55:51 +01:00
hnoerenberg 7854fdebba fix(selection): give Quick Selection's Enhance Edge its measured soft rim
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
2026-11-19 23:48:30 +01:00
aiongg 60385cb15e Keep effects and group disclosure off the document revision
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.
2026-11-19 21:47:28 +00:00
David Mann 4b64ec5198 Merge #15206 into the merge queue batch
fix(layer-style): keep Inner Shadow values inside the page's ranges
2026-11-19 22:27:53 +01:00
David Mann 484a2e2119 Merge #14456 into the merge queue batch
fix(engine): Color Balance action steps round tones and default Preserve Luminosity off
2026-11-19 22:27:51 +01:00
David Mann 49f5814430 Merge #14569 into the merge queue batch
fix(engine): Image Rotation Arbitrary refuses Bitmap documents

# Conflicts:
#	crates/engine/src/cmd.rs
2026-11-19 22:27:50 +01:00
David Mann 2aee1c0367 Merge #14555 into the merge queue batch
fix(engine): arbitrary canvas rotation keeps and turns its guides
2026-11-19 22:27:49 +01:00