Commit Graph
8150 Commits
Author SHA1 Message Date
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
Khawar Zamman Wani 7d4a7801d3 Merge origin/main into fix/font-name-editable-9338 2026-10-27 09:37:31 +05:30
Khawar Zamman Wani c8e4c4fd5f Merge origin/main into select-mask-workspace 2026-10-27 09:32:39 +05:30
Khawar Zamman Wani 720cd37518 Merge origin/main into fix/8169-huge-tiff-open 2026-10-27 09:28:53 +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
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 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 03:10:54 +01:00
David MannandClaude Opus 5.5 c4b224b074 Merge main into fix/9034-autosave-discard
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 03:08:44 +01:00
David MannandClaude Opus 5.5 3dd3bb85f3 Merge main into fix/xml-nesting-cap
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 03:08:19 +01:00
David MannandClaude Opus 5.5 a1d8918344 Merge main into fix/plugin-empty-code-section
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 03:08:07 +01:00
David MannandClaude Opus 5.5 c81e15cd24 Merge main into fix/5692-tsl-off-blend
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 03:07:51 +01:00
David MannandClaude Opus 5.5 f428433ccb Merge main into fix/psd-size-encoded
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:59:27 +01:00
David MannandClaude Opus 5.5 69d6037f57 Merge main into fix/history-options
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:53:17 +01:00
David MannandClaude Opus 5.5 3b6e93b8f1 Adapt to main: color wheel test uses the craft-ui dock area
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:51:30 +01:00
David MannandClaude Opus 5.5 90658663c7 Merge main into fix/cmyk-clip-vivid-light-group
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:41:36 +01:00
David MannandClaude Opus 5.5 1aea520792 Merge main into fix/svg-subimage-depth
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:38:34 +01:00
David MannandClaude Opus 5.5 77faaecbdc Merge main into fix/crop-x-ratio-keeps-size
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:38:11 +01:00
David MannandClaude Opus 5.5 e2a39347ad Merge main into fix/color-wheel-short-panel
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:38:05 +01:00
aiongg d42f9da94a Merge pull request #9758 from aiongg/layout
refactor: shared module layout (craft-contrib#20)
2026-10-26 21:31:40 -04:00
David Mann 63e2c7d100 Merge PR #9031: fix(io): preserve Halftone Pattern smart filters in PSD/PSB
# Conflicts:
#	docs/file-format-parity.md
#	docs/gaps.md
2026-10-27 02:23:29 +01:00
David Mann 6566789ac9 Merge origin/main into pr-6526-fixup 2026-10-27 02:23:26 +01:00
714b8f304d Integration: the reference application's Halftone Pattern keys HlSz/ScrT (#9031)
The PR read and wrote Halftone Pattern as `Sz  ` and `Ptrn` (enum `HlfT`:
`Dt  `/`Crc `/`Ln  `). The reference application's Filter Gallery uses `HlSz`
for the size and a `ScrT` enum (`ScrD` dot, `ScrC` circle, `ScrL` line), so a
Halftone Pattern saved there still opened as an opaque filter, and one we saved
lost its size and pattern there without a warning. The tests built their fixture
with the same keys as the code, so they passed either way.

Now the keys match, a default Halftone Pattern (HlSz 1, Cntr 5, ScrD) opens as
{size 1, contrast 5, dot} (fails before this commit), and descriptors with the
old keys stay verbatim. The docs no longer claim reopen checks in the reference
application.

Co-authored-by: denstu473 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:20:49 +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 <[email protected]>
2026-10-27 04:16:22 +03:00
David Mann 0d81a94d08 Merge PR #7689: perf(compression): Use zlib-rs with runtime detection 2026-10-27 02:15:21 +01: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 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:12:13 +01:00
David Mann ee6e30e7a2 Merge PR #9042: perf(gpu): NVIDIA's own memory on Linux, so many-layer documents stay off the CPU budget penalty (#5973) 2026-10-27 02:04:33 +01:00
ffd4d480bb Integration: bound the nvidia-smi query, smallest of same-id cards (#9042)
nvidia_video_memory ran `nvidia-smi` with Command::output(), which has no
deadline. It runs on the UI thread at startup, under the video-memory cache
lock, so a driver that never answers the query kept the window from opening.
It now runs with a 2 s deadline (stdout read on a helper thread, try_wait
polling), and a late process is killed and reaped on a detached thread.

parse_nvidia_smi took the first line naming the vendor/device id. Two cards
of one model with different memory (`0x2C0510DE, 16303` then
`0x2C0510DE, 8192`) gave 16 GB though wgpu may be on the 8 GB one; it now
takes the smallest.

Co-authored-by: Vishnu Vardhan Varma Byrraju <[email protected]>
Co-authored-by: Khawar Zamman Wani <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 02:02:57 +01:00
David Mann 20e3a66c87 Merge PR #9601: fix(ui): Camera Raw's Color Mixer Hue tracks show the neighbouring hues 2026-10-27 01:59:50 +01:00
473648732d Integration: drop the duplicated Change entry and history row in ui-parity.md (#9154)
The PR's follow-up commit appended the reworded entries instead of
replacing the first ones, so both versions were in the doc. Keeps the
"at least 53 pt tall" wording.

Co-authored-by: hectorviov <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 01:57:48 +01:00
David Mann e15bf0af01 Merge PR #9678: Free Transform: show the live W/H readout in the ruler unit (#9400) 2026-10-27 01:57:35 +01:00
David Mann ec9738806d Merge PR #9154: Color panel: the cube modes warn when a colour can't print (#8672) 2026-10-27 01:57:35 +01:00
David Mann cd485b6c2c Merge remote-tracking branch 'origin/main' into pr-7689-fixup 2026-10-27 01:54:27 +01:00
David Mann 68a5bbf2c3 Merge PR #9444: fix(ui): Select and Mask starts from its defaults unless Remember Settings is on (#9423) 2026-10-27 01:53:49 +01:00
skylar taylor-barrick 5c25299b61 Merge pull request #9749 from storytold/fix/nextest-0.9.150
ci: require nextest 0.9.150
2026-10-26 18:42:23 -06: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
saschaweissandClaude Opus 5.5 7786c2247b fix(ui): keep the Color Picker preview on the document it was opened on
A command Color Picker now records the document it was opened on, and its
live canvas preview never runs against another document that became
active while the picker was open (its layer ids would point elsewhere).
Covers the tab-switch gap noted in review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014QvfaMyAX4i4PbKBMnvFj6
2026-10-27 01:11:34 +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 <[email protected]>
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 85539a4f37 refactor(raw): split testgen.rs into testgen/ 2026-10-26 22:54:56 +00:00
aiongg 1f0d1a4ef3 refactor(psd): move tiff.rs's transcode module to tiff/transcode.rs 2026-10-26 22:54:56 +00:00
aiongg bb641e918a refactor(codecs): split tiff.rs into tiff/ 2026-10-26 22:54:56 +00:00
aiongg 96e670150f refactor(text): split layout.rs into layout/ 2026-10-26 22:54:56 +00:00
aiongg 57bfd18bd7 refactor(text): split psd.rs into psd/ 2026-10-26 22:54:56 +00:00
aiongg 9cfb3cc5b0 refactor(io): split smart_map.rs into smart_map/ 2026-10-26 22:54:56 +00:00
aiongg 2aa88b0956 refactor(io): split psd_export.rs into psd_export/ 2026-10-26 22:54:56 +00:00
aiongg 4d07ccded0 refactor(algo): split panorama.rs into panorama/ 2026-10-26 22:54:56 +00:00
aiongg ff2a29a364 refactor(algo): split inpaint.rs into inpaint/ 2026-10-26 22:54:56 +00:00
aiongg 7ba8fdc79f refactor(gpu): split plan.rs into plan/ 2026-10-26 22:54:56 +00:00