Commit Graph
3891 Commits
Author SHA1 Message Date
jonathanwxh-cell 56ef54cf4c Merge upstream main and resolve conflicts for PR #7621
Preserve the PR's intended behavior and regressions while retaining upstream module extraction and changes. Formatting and independent static review passed.

Local verification: Runtime tests and broader Clippy/WASM/integration gates remain unverified locally because of resource limits.

Local UI verification is incomplete. Hosted CI must establish the remaining gates; this commit does not claim the PR is ready to merge.
2026-10-27 19:34:27 +08:00
mahefanante 87d4098cbd Fix: apple gpu 2026-10-27 10:41:07 +00:00
Vlad Grankovsky 8ca3410a54 Merge origin/main into codex/multi-channel-editing
Integrate main 7ac7b8b10 with selection morphology and cropped feather-mask optimizations. Preserve both progress-document histories.
2026-10-27 11:31:28 +01:00
Khawar Zamman Wani f4742dd8aa test: update copy-on-write document selection 2026-10-27 15:13:46 +05:30
Don Omondi dadc7ff2ca Format smart object test imports 2026-10-27 12:19:01 +03:00
Khawar Zamman Wani d1d9780ce8 test: import selection surface types 2026-10-27 14:47:25 +05:30
Don Omondi 285770532b Merge main into embedded vector save-back
Resolve conflicts with the engine's cmd/ module move and the per-crate
integration test binaries. Run a selected VectorCraft.app bundle directly
(identified by bundle id) and reject nested gzip in bounded SVG parsing.
2026-10-27 11:59:56 +03:00
Khawar Zamman Wani ffd9ec70c5 fix(selection): ignore off-canvas remnants when deselecting 2026-10-27 13:58:29 +05:30
Khawar Zamman Wani 34af1d8e66 fix(engine): convert Bitmap images in bands 2026-10-27 13:18:39 +05:30
Khawar Zamman Wani 8324e278a1 perf(selection): combine GRAY8 masks directly in tiles 2026-10-27 12:42:18 +05:30
dotCooCoo 92b4e9b9de Cancel pending link scans when closing a document
Discard background scan results when a document closes so they cannot change the missing-link state after the same document reopens.
2026-10-27 00:11:47 -07:00
Khawar Zamman Wani 32e166b720 perf(selection): scope Color Range sampling to active bounds 2026-10-27 12:37:05 +05:30
Khawar Zamman Wani 761c46c56e perf(selection): combine marquee additions and subtractions sparsely 2026-10-27 12:15:33 +05:30
dotCooCoo f3afeaaf54 Refresh the open Print dialog after spooler contention ends
Retry printer enumeration after a busy result and restore the available printer controls without reopening the dialog. Cover opening and drawing the dialog while the spooler is held, then drawing it after release.
2026-10-26 23:39:59 -07:00
dotCooCoo e670397fe0 Keep uncached printer listings responsive while the spooler is busy
Return an empty or unsupported result when the spooler lock is held and no matching cached printer list exists. Preserve the source-specific cache and cover empty and mismatched caches with regression tests.

Merge current main and move the Print dialog changes into its extracted modules.
2026-10-26 23:30:52 -07:00
Khawar Zamman Wani 67172a9d08 Merge origin/main into fix/6501-multi-layer-free-transform 2026-10-27 11:57:10 +05:30
Khawar Zamman Wani 243ecf4ce2 test(selection): use the grayscale pixel format at each depth 2026-10-27 11:01:59 +05:30
Khawar Zamman Wani e65f25fbeb perf(selection): crop Smooth and Feather command masks 2026-10-27 10:56:00 +05:30
dotCooCoo 8dd05a03bd Merge main into the Smart Object layer filter
Keep the Smart Object filter and missing-link state handling in the extracted
engine and UI modules. Retain the Histogram control documentation.
2026-10-26 22:17:11 -07:00
aiongg 7ac7b8b106 refactor(selection): take the feather reach from the blur (#9802)
The feather's ⌈3σ⌉ truncation radius was written out in the blur and again in two engine callers: the windowed marquee and lasso feather (#9794) and the canvas-edge padding of Select › Modify › Feather. selection::feather_reach returns it from the blur's own σ rules, and both callers use it, so a change to the blur's reach can't leave them behind. Output is unchanged; a test pins that the feather leaves everything past its reach at zero.
2026-10-27 01:07:05 -04:00
aiongg a27436adcb Merge main into perf/selection-morphology
Resolves the move of crates/engine/src/selection_cmds.rs to cmd/selection_cmds.rs: the two hunks apply at the new path, and modify_window.rs with its tests moves under cmd/selection_cmds/.
2026-10-27 04:27:45 +00:00
Khawar Zamman Wani f15c93ce73 Merge origin/main into pen-path-operations 2026-10-27 09:49:45 +05:30
Khawar Zamman Wani ba43eb3ea5 Merge origin/main into save-for-web-webp 2026-10-27 09:44:59 +05:30
Khawar Zamman Wani 55b8df82fc perf(selection): window marquee and lasso feather masks (#9794)
* perf: window marquee and lasso feather masks to drawn bounds

* perf: benchmark small feathered tool selections on a 24 MP canvas
2026-10-27 00:12:47 -04:00
Khawar Zamman Wani 2c2faad9ae Merge origin/main into fix/6501-multi-layer-free-transform 2026-10-27 09:42:36 +05:30
Vlad Grankovsky 7ce7189e50 Merge origin/main into codex/multi-channel-editing
Port selected-colour editing through main d42f9da94 and its engine/UI
module layout. Preserve native channel targets, drawing previews, tone
editors and filter behavior in the split modules, with their existing
regressions and public facade exports.
2026-10-27 04:18:03 +01:00
Khawar Zamman Wani d843f4c34b perf: invert selections using sparse shared tiles 2026-10-27 08:25:37 +05:30
Joe 8132c2a1f3 Merge upstream/main into feat/psd-puppet-warp-2
Upstream split smart_cmds.rs into smart_cmds/ and smart_map.rs into
smart_map/: the stored-mesh hook moves to smart_cmds/rendering.rs, the
Puppet Warp import and export arms to smart_map/import.rs and export.rs.
2026-10-27 09:34:33 +07:00
Finn NewickandClaude Opus 5.5 76a52bf284 Merge origin/main into feat/atn-camera-raw
main split atn_cmds.rs into submodules: the Camera Raw Filter mapping moves to
cmd/atn_cmds/steps_image.rs and its event to events.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:31:02 +00:00
09f2c299ae Integration: keep vector-mask edits on the mask for type on a path (#9321)
The Type Path branch in edit_path caught every `"name":"layer"` edit of a
type-on-a-path layer, including edits of its targeted vector mask: Direct
Selection showed the mask, but a drag moved the Type Path by the mask's
knot indices and left the mask as it was. On main the same command edits
the mask, and path.info / path.get / path.transform still read the mask.

`"name":"layer"` now keeps that meaning: it edits the vector mask when
the layer has one, and the Type Path only when it has none or with
`"typePath": true`, which Direct Selection sends for the Type Path
(PathRef::TypePath). path.list reports the Type Path under its own
`typePath` key, so `layerPath` still names the vector mask, and an edited
Type Path keeps the knot cap type.attachToPath enforces. Both points were
found by CodeRabbit.

The canvas also draws the Type Path with the other tools, as it does a
shape's path: the Pen's Auto Add/Delete edits it, and before this a Pen
click on the baseline added or deleted anchors the user couldn't see.

Co-authored-by: DuBearte <130190089+DuBearte@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:10:54 +01:00
David MannandClaude Opus 5.5 a9bafe4cda Merge main into fix/flip-angle-gradient-sweep
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:08:38 +01:00
David MannandClaude Opus 5.5 3dd3bb85f3 Merge main into fix/xml-nesting-cap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:08:19 +01:00
David MannandClaude Opus 5.5 a538495ef3 Merge main into fix/system-tools-full-path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:08:11 +01:00
David MannandClaude Opus 5.5 e9cee5ee06 Merge main into fix/image-size-resolution-range
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:07:17 +01:00
David MannandClaude Opus 5.5 c2b76a223c Merge main into fix/scale-effects-bevel-texture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:59:49 +01:00
David MannandClaude Opus 5.5 c141af3f43 Merge main into fix/remove-enable-animations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:59:30 +01:00
David MannandClaude Opus 5.5 f955669d9a Merge main into fix/svg-markup-check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:56:02 +01:00
David MannandClaude Opus 5.5 69d6037f57 Merge main into fix/history-options
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:53:17 +01:00
David MannandClaude Opus 5.5 39b0162209 Merge main into fix/crop-hidden-resample-budget
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:50:54 +01:00
David Mann 6566789ac9 Merge origin/main into pr-6526-fixup 2026-10-27 02:23:26 +01:00
Don OmondiandClaude Opus 5.5 5606deba34 Test native digest cache against copy-on-write edits and LRU recency
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 04:16:22 +03:00
053f0b7198 Integration: level 3 instead of fast() under zlib-rs, io test into tests/it (#7689)
zlib-rs maps level 1 to deflate_quick, which writes static Huffman blocks
only, so every Compression::fast() caller (PDF export and print, brush
presets, PNG Fast) wrote 5-32% bigger streams than miniz's level 1 did.
Level 3 is the lowest level that is never bigger than miniz level 1 on the
docs/images photos, raw and Up-filtered (level 2 was +0.9% on one); it is
0-16% smaller and takes 1.2-3.4 times as long. The new test exports a
noisy-gradient RGB document as PDF and checks the image stream against
miniz level 1 of the same samples: 603007 vs 547315 bytes with fast(),
passes with level 3. The PR's doc no longer says the levels are unchanged.

Main moved the io integration tests into crates/io/tests/it/, so the new
deflate_compatibility.rs moves there and uses crate::common.

Co-authored-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:12:13 +01:00
David MannandClaude Opus 5.5 55673a1e49 Address CodeRabbit review: pick the first snapshot's type layers on their own (#6087)
Served fonts chose the layers to redraw from the open document only, so the
first History snapshot was refreshed only for layers the open document still
had, and with the open layer's "shows our own layout" verdict. A type layer
deleted since the document opened kept its fallback-font pixels in the
snapshot, and a PSD layer edited since lost the file's pixels there.

`served_fonts::pick` now checks the snapshot (when it no longer is the open
document) on its own, and `Session::refresh_type_layers` takes
`TypeLayerRef`s that say which version each layer was picked in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 01:42:42 +01:00
David Mann a16f9e3e06 Merge remote-tracking branch 'origin/main' into HEAD 2026-10-27 01:26:26 +01:00
David Mann 999e98e8b1 Merge remote-tracking branch 'origin/main' into HEAD 2026-10-27 01:22:22 +01:00
David Mann b92dc34e48 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/prefs_ui.rs
2026-10-27 01:17:25 +01:00
Don OmondiandClaude Opus 5.5 4c76339c36 Address CodeRabbit review: macOS app bundles, label, digest cache, SVG warp bounds
- External vector editing on macOS: discover VectorCraft.app in /Applications and
  ~/Applications, offer Illustrator when an Adobe Illustrator*.app is found, and accept a
  chosen .app under Other application. CFBundleExecutable is read from a bounded Info.plist
  (XML or binary, streamed with a nesting cap) and must resolve inside Contents/MacOS;
  chosen bundles open with /usr/bin/open -a. vectorcraft-cli is looked for in the same
  bundle, then in known installs. Logic is compiled and unit-tested on every Unix.
- Windows "not found" errors name the dialog's "Other application" option.
- Native preview hash verification is remembered per source allocation in a 32-entry
  Weak-keyed LRU (no strong references, no reusable stale addresses, lock not held
  while hashing), so refreshes and warp frames hash a shared source once.
- source_box uses the new io::svg::bounded_canvas_bounds for SVG without Stack Mode, so
  warp setup gets a frame for drawings whose editable layer caches exceed the budget.
  Stack Mode and Edit Contents stay strict. Exact 24,000,000-pixel boundary tested.
- Document every non-test function this PR adds; describe macOS behaviour in
  docs/embedded-vector-editing.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:02:40 +03:00
aiongg 065c2c2beb test: keep split modules visible to the source scans
The i18n coverage scan and prefs_usage stopped reading a file at its first `#[cfg(test)] mod`. A split parent declares `#[cfg(test)] mod tests;` before the rest of its code, so the scans skipped that code, and on main an inline test module in the middle of panels.rs hid the code after it. Both now drop only the body of an inline test module.

The prefs audits in scorecard and prefs_usage count a read when the section and the field appear in the same file. Both now also treat a split module (`foo.rs` with `foo/`) as one file, and prefs_usage leaves out `engine/src/prefs/` as scorecard already does, since that directory now holds the rest of the prefs model.

On main and on this branch: the i18n coverage report is identical (2,142 source keys; the old scan found 2,049 on main), `cargo xtask scorecard --check` is up to date, and prefs_usage passes.
2026-10-26 22:54:56 +00:00
aiongg b32f4a0a55 test(engine): name the print_cmds child tests by their cmd:: path
The spooling tests rerun themselves in a child process with an exact test-name filter. print_cmds moved under cmd/, so the filters name cmd::print_cmds::tests::…; with the old names the child ran no tests.
2026-10-26 22:54:55 +00:00
aiongg 501b7f3459 refactor(engine): move the *_cmds modules under cmd/ 2026-10-26 22:54:55 +00:00