Commit Graph
8326 Commits
Author SHA1 Message Date
dotCooCoo 8ba55104f0 Merge main into feat/group-rows
# Conflicts:
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/addons/arrange.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/mcp.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-12-01 06:20:46 -08:00
.CooCoo 4e6cc52aea Merge pull request #10332 from dotCooCoo/fix/script-page-item-edits
Scripts: locked artboards stop path edits, and move and zOrder respect clipping paths
2026-12-01 06:19:21 -08:00
.CooCoo 83b2c22b78 Merge pull request #10148 from dotCooCoo/feat/corner-marks
Arrange Tools: Mark Bounds of Each draws corner marks or a rectangle on each selected object's bounds
2026-12-01 06:18:27 -08:00
.CooCoo 521347a60f Merge pull request #10370 from dotCooCoo/chore/rasterfilters-test-representative
Tests: check representative raster effects in the catalog test
2026-12-01 03:25:41 -08:00
.CooCoo 295da28ec5 Merge pull request #10420 from dotCooCoo/fix/pdf-read-counter-address-reuse
PDF: count test reads of a buffer from a mark, not over its address's whole history
2026-12-01 02:32:29 -08:00
yoriswind a0bdd86acc Reuse document resources when rendering PDF effects (#10342) 2026-12-01 11:17:48 +01:00
.CooCoo 0e8f44581d Merge pull request #10388 from dotCooCoo/fix/affinity-features-synthetic
Tests: run the attached recolor import test on a synthetic document
2026-12-01 01:53:38 -08:00
.CooCoo 084c01d031 Merge pull request #10364 from dotCooCoo/fix/halftone-euclidean-elliptical
Vector Halftone: Euclidean and Elliptical dot shapes
2026-12-01 01:22:58 -08:00
dotCooCoo 3fcb278b24 Merge main into feat/group-rows 2026-12-01 01:03:49 -08:00
dotCooCoo 9c4f01faf1 Merge main into feat/corner-marks 2026-12-01 01:03:01 -08:00
dotCooCoo 68dbba0b92 PDF: count test reads of a buffer from a mark, not over its address's whole history
reads_of counts reads by buffer address and never forgets them, so a buffer
allocated where another test's freed buffer was read starts with that count.
linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box asserted
reads_of(&blob) == 0 and failed once that way under 16 test threads.

Each read now gets a sequence number. read_mark returns the next one and
reads_of_since counts only the reads at or after a mark. The linked-pages test
takes a mark before opening the file.
2026-11-30 23:05:46 -08:00
dotCooCoo f08d12949c Tests: run the attached recolor import test on a synthetic document
The recolor adjustment test read test.af from the repository root and
returned early when the file was absent, so it never ran in CI. It now
builds a magenta rectangle with an attached Recolor adjustment in the
test and checks that lightness 1 imports as a white fill, that
lightness 0.5 at hue 0 draws pure red, and that a hidden adjustment
leaves the fill unchanged.
2026-11-30 23:03:43 -08:00
dotCooCoo 9b65da9150 Tests: check representative raster effects in the catalog test
listed_applied_edited_and_undone checks five representative catalog entries and an unknown effect id instead of every raster effect, and applies out-of-range parameters to Radial Blur and Unsharp Mask. Every effect is still drawn by each_effect_changes_the_canvas_and_draws_the_same_twice.
2026-11-30 21:36:06 -08:00
dotCooCoo b143f92f3f Vector Halftone: Euclidean and Elliptical dot shapes
Object > Vector Halftone and the live Vector Halftone effect get two
dot shapes that follow the classic spot functions. Euclidean dots are
round in the highlights, meet corner to corner at 50% as a checkerboard
and turn into round holes in the shadows. Elliptical dots are long,
join into chains along their length at 40% and on every side at 60%,
then turn into long holes. Each dot is a vector path whose area is the
cell's tone. The existing Ellipse shape is unchanged.
2026-11-30 20:49:40 -08:00
.CooCoo 84335645da Merge pull request #10335 from dotCooCoo/fix/linked-profile-listing
New Document: Manage Profiles reports a linked profile as unusable
2026-11-30 20:23:26 -08:00
dotCooCoo 74e572c8c5 Merge main into fix/script-page-item-edits
# Conflicts:
#	crates/engine/src/script/dom/paths.rs
2026-11-30 19:56:24 -08:00
.CooCoo 703252de65 Merge pull request #10334 from dotCooCoo/fix/script-run-accounting
Scripts: list rebuilds count against the run, a stop is not masked, bad answers throw at the call
2026-11-30 19:18:27 -08:00
dotCooCoo 0ae5a199b2 Tests: linked-profile tests take main's with_profiles temp root
with_profiles on main returns the TempDir root as a third value, so the
three new listing tests did not compile after the merge. They now keep
their outside files under that root, which removes them on drop.
2026-11-30 19:11:32 -08:00
dotCooCoo f4d82931ea Merge main into fix/linked-profile-listing 2026-11-30 18:52:47 -08:00
dotCooCoo bd1975c937 Merge main into fix/script-page-item-edits 2026-11-30 18:28:53 -08:00
dotCooCoo 1feb6c7f38 Scripts: duplicate refuses a copy of a clipping path below itself
mask.duplicate(mask, ElementPlacement.PLACEAFTER) put the copy directly
above the clipping path without an error. A copy now goes through the
same refusal as other objects; move of the clipping path below itself
still leaves it where it is.
2026-11-30 18:18:59 -08:00
.CooCoo e3a265870d Merge pull request #10331 from dotCooCoo/fix/script-tests-check-what-they-name
Tests: script DOM and New Document tests check what they name
2026-11-30 17:05:58 -08:00
.CooCoo 251d06b8b3 Merge pull request #10329 from dotCooCoo/fix/script-app-members-checks
Scripts: getIsFileOpen keeps backslashes in Unix file names; DocumentPreset checks its receiver
2026-11-30 16:42:58 -08:00
.CooCoo 8292a1cc0e Merge pull request #10325 from dotCooCoo/fix/step-repeat-review-findings
Step and Repeat: the dialog stays on its document, and copies go in at once
2026-11-30 16:26:25 -08:00
dotCooCoo 1ce1d2ccf2 New Document: Manage Profiles reports a linked profile as unusable
file.newProfiles and Manage Profiles checked a profile's file with
is_file, which follows a link. A profile file that was a link to a
document was listed as customized with Edit on, while file.new refuses
to read a link and gives the new document the defaults. A link that
led nowhere, or a folder, was listed as not customized, so Reset was
off and could not remove it, and Edit on a link that led nowhere wrote
the shipped profile where the link pointed.

The profile's file is now looked at without following a link:

- file.newProfiles lists a link or a folder as customized, with
  unusable: "not a plain file".
- Manage Profiles dims that profile's name, says why in its tooltip,
  and turns Edit off. Reset stays on for a link and removes the link,
  not the file it leads to. Reset is off for a folder, and
  file.newProfiles.reset gives an error instead of deleting a folder.
- file.newProfiles.edit gives an error for a link or a folder, and
  creates a missing profile file without following a link put there.

Docs: docs/mcp.md (New Document profiles) and the command help.
2026-11-30 16:07:05 -08:00
dotCooCoo fe89d3f81e Scripts: list rebuilds count against the run, a stop is not masked, bad answers throw at the call
- pageItems, pathItems and textFrames build their list of a document again
  after every edit. The rebuild walked the whole document without counting
  anything against the run, so a loop that edits and reads a collection in a
  large document did unbounded host work. A rebuilt list now counts 16 bytes
  per object (as the selection's list does) against the run's host-call
  allowance, and the path and type lists count the page items they scan.
- An edit's own ordinary error was returned ahead of a stop (an uncatchable
  Abort) from putting back the selection or switching back to the active
  document, so a script could catch it and go on. A stop now comes first.
- An answer to a waiting call that could not be read as a value (nested too
  deep, too many entries) ended the run instead of being thrown at the call.
  It is now thrown there, where the script can catch it, and a ScriptUI dialog
  that waited for the answer stops showing, as when its host call fails.
- The selection cost test also compares the host calls, under the same
  64 KiB limit for both documents.
2026-11-30 15:54:45 -08:00
dotCooCoo 4082035b82 Scripts: locked artboards stop path edits, and move and zOrder respect clipping paths
- PathItem point, paint, stroke and transform changes on a path on a locked
  artboard now throw `Cannot edit` and change nothing, as the PageItem
  setters do. `pathItems.removeAll()` deletes nothing when a path is on a
  locked artboard, as `pageItems.removeAll()` does; it used to delete them.
- `move` and `duplicate` with `PLACEAFTER` and the clipping path of a clip
  group or clipping layer as the relative object throw instead of putting
  the object above the clipping path, or reporting success without moving it.
- `zOrder` counts the art above a clipping path and below the layer's ruler
  guides, as the Arrange commands do, so a method that leaves the object
  where it is runs no command.

Docs: docs/mcp.md.
2026-11-30 15:51:02 -08:00
dotCooCoo 0a56d7df9d Tests: script DOM and New Document tests check what they name
- The grid-by-column test now checks each artboard's row and column, so
  RLGridByCol must fill from the rightmost column. It compared only the
  number of distinct rows and columns before, which a left-to-right fill
  also passes.
- The keepEmpty test asserts that keepEmpty false deletes the compound
  path, instead of accepting any state other than an empty compound.
- The addDocument profile test closes the profile document before the
  script reads the profile, so the read goes through the app-folder
  exemption and not through the rule for open documents' files.
- The report-origin test adds authored ReferenceError controls for
  Window and activeDocument, and for BridgeTalk thrown as an error
  object, so a hint list that grows to those names cannot change a
  message the script wrote.
- New Document profile tests, and the temporary folders and files in
  script_dom.rs and script_run.rs, use vectorcraft_testkit::TempDir, so
  a failing assertion no longer leaves process-id folders behind. The
  linked-profile test keeps its link target in the same temporary
  folder.
2026-11-30 15:50:56 -08:00
dotCooCoo b8ee4686b0 Scripts: getIsFileOpen keeps backslashes in Unix file names; DocumentPreset checks its receiver
app.getIsFileOpen treated any path with a backslash as a Windows path,
turning each backslash into a folder separator and ignoring letter case.
On macOS and Linux a backslash is a character of a file name, so
getIsFileOpen answered true for the path /work/a\b.ai while /work/a/b.ai
was open.
Paths now get the Windows rules only on Windows or when they start with a
drive letter.

DocumentPreset.typename and toString() answered for a preset kept from
an earlier run with #targetengine, while its settings throw a TypeError.
Both now check the preset the way the settings do.

Documents.addDocumentNoUI(startupPreset) was missing. It now makes the
document addDocument(startupPreset) makes.
2026-11-30 15:39:56 -08:00
.CooCoo b8470d947f Merge pull request #5272 from ljkx/fine-nudge-5258
Nudge: Ctrl/Cmd+arrow moves by a tenth of the keyboard increment (#5258)
2026-11-30 15:27:20 -08:00
dotCooCoo f498c562e2 Merge main into fix/step-repeat-review-findings 2026-11-30 14:51:53 -08:00
dotCooCoo 8bd0b57c57 Step and Repeat: the dialog stays on its document, and copies go in at once
The Step and Repeat dialog now acts only on the document it was opened
on. Its preview no longer runs on another document, and OK is refused
there, or after File > Revert, with the reason shown. Opening the dialog
again rolls back the earlier dialog's preview instead of leaving its
copies on the canvas.

object.stepAndRepeat makes every copy first and inserts them in one
pass, so a large grid walks the document a fixed number of times
instead of once per copy. The stacking order of the copies is
unchanged. A negative margin, and a gap of minus the width or height
or less, are refused instead of being clamped or folding the grid back
on itself.
2026-11-30 14:51:52 -08:00
.CooCoo 639ce5004e Merge pull request #10304 from dotCooCoo/fix/smooth-bridge-says-why
Smooth Bridge: a refusal says why an object is not a circle
2026-11-30 14:39:43 -08:00
.CooCoo cb0a23d293 Merge pull request #9052 from dotCooCoo/feat/scripts-api-d6-save-export-open
Scripts: documents save, export and open through Document.saveAs, exportFile and app.open
2026-11-30 14:36:03 -08:00
.CooCoo 38846fcdf3 Merge pull request #10116 from dotCooCoo/feat/edit-points-only
Selection Tools: Edit Points Only narrows a Direct Selection to its anchor points
2026-11-30 14:19:49 -08:00
.CooCoo 0b55e3160a Merge pull request #10085 from dotCooCoo/fix/color-value-finite
Colors: a color with a component too large to store is refused
2026-11-30 14:19:14 -08:00
.CooCoo f4f42de9d8 Merge pull request #10239 from dotCooCoo/fix/plugins-whole-tree-reads
CI: declare the files each crate reads in other crates, for test selection
2026-11-30 14:05:36 -08:00
.CooCoo 462b851eb7 Merge pull request #10257 from dotCooCoo/fix/merge-duplicate-tests
Tests: merge two duplicate engine tests, keeping every assertion
2026-11-30 14:05:18 -08:00
.CooCoo 5c9e3276a8 Merge pull request #10263 from dotCooCoo/fix/engine-tests-into-it
Tests: nine engine integration test files join the tests/it binary
2026-11-30 13:50:42 -08:00
dotCooCoo 8f8fa4fefa Merge main into fix/smooth-bridge-says-why 2026-11-30 13:42:22 -08:00
dotCooCoo 1d880065f3 Smooth Bridge: test a selected group of grouped circles
A selected group that holds two groups of one circle each keeps the
group with the outline, and the lower circle's group is removed.
2026-11-30 12:17:05 -08:00
dotCooCoo 96018f6d81 Merge main into fix/smooth-bridge-empty-groups 2026-11-30 12:16:57 -08:00
dotCooCoo 798a029bfc Smooth Bridge: a group the bridged circles leave empty goes
When outlines replace circles that sit in different groups, the circles
that go left their groups behind with nothing in them. Each group or
compound path left empty now goes in the same undo step, and so does
each group above it left empty in turn; layers and sublayers stay.
2026-11-30 11:44:20 -08:00
dotCooCoo dcf99ad998 Merge main into fix/smooth-bridge-says-why 2026-11-30 11:17:57 -08:00
dotCooCoo 9a060cfbf7 Smooth Bridge: a stretched circle is not called an ellipse of unequal width and height
A transform that stretches an ellipse keeps its stored width and height,
so a circle stretched into an oval still stores equal ones. The refusal
now names unequal width and height only when the stored values differ,
and gives the general message otherwise. docs/mcp.md notes that more
than 2,000 objects are refused by the circle limit before any object is
checked.
2026-11-30 11:17:57 -08:00
.CooCoo d794ccda0d Merge pull request #10298 from dotCooCoo/fix/smooth-bridge-circles
Smooth Bridge: a selected group of circles is bridged
2026-11-30 11:00:51 -08:00
dotCooCoo 8a5f206e3c Merge main into feat/scripts-api-d6-save-export-open 2026-11-30 10:55:42 -08:00
dotCooCoo 53ec5af6c8 Smooth Bridge: a refusal says why an object is not a circle
Smooth Bridge only joins circles. Anything else in the selection gave
"select two or more circles to bridge", the same message as for one
circle. An ellipse drawn by dragging without Shift is a few tenths of a
point off a circle and was refused with that message, which did not say
which object was at fault or why.

The refusal now names the first object that is not a circle and why:
an ellipse whose width and height differ (draw it with Shift held, or
give it equal width and height), a compound path (release it first),
an object that is hidden or locked, or another object. The message
shows on the status line while the dialog previews and after OK.
2026-11-30 10:40:37 -08:00
.CooCoo dc6beff197 Merge pull request #10281 from dotCooCoo/fix/issue-3211
Fix #3211: Text Wrap › Make wraps the area type selected with the object
2026-11-30 10:30:57 -08:00
.CooCoo 82108c11bd Merge pull request #9277 from dotCooCoo/feat/scripts-app-select-tool
Scripts: app.selectTool picks a tool
2026-11-30 09:44:47 -08:00