Commit Graph
8167 Commits
Author SHA1 Message Date
dotCooCoo 698ec93090 Select: removing objects one at a time checks and reads only the removed ones
Taking objects out of a selection (select.toggle, which Shift-click, the
Layers panel and a script's selected = false run) checked the whole
selection again, walking the tree once it held more than an eighth of the
document, and read every selected object's paints for the fill and stroke
proxies. Deselecting N objects one at a time took O(N^2) lookups.

Session::select now checks only the objects that follow the objects it
already checked, kept in their order, so a removal needs no checks. The
selection's paints keep counts (the first fill, stroke and weight met,
how many match it, and how many there are), so the objects that leave are
taken out of them and the objects that join are read. The paints are read
again when every value matching the first one is gone and others are left,
or when that takes fewer lookups.
2026-11-27 13:37:08 -08:00
dotCooCoo c5298100ee Appearance: proxies with an active row match only the targets they read
With an Appearance row active and many objects selected, the opacity
proxy (read on every repaint of the Color Wheel panel) and first_edited
stopped at the first target that answered, but ItemTarget::per_target
and per_target_of had already built a shared stack for every target.
With 30 objects selected, each call built 29.

ItemTarget::each_target and each_target_of now yield one target at a
time, and per_target and per_target_of collect them. The opacity proxy,
first_edited and the stroke proxy (which stops at a target it cannot
read) use the iterators, so a call that answers from the first object
builds no shared stack. The new test counts the stacks
built and fails with the eager form at either call site.
2026-11-27 13:32:23 -08:00
dotCooCoo 3c807e30d0 Parametric Shape: a new center, size or rotation takes a linked mask and placed gradients along
addon.pathtools.shape.set rewrote only the path and the shape's numbers, so
a linked opacity mask, placed gradients and pattern tiles stayed at their
old place when the shape moved, turned or changed size (a center-handle
drag, an explicit center, W or H with a reference point). The edit now
applies the transform between the old and new numbers to the object, as
object.scale and object.rotate do, and then sets the new outline. Scale
Strokes & Effects and Transform Patterns come from the new `strokes` and
`patterns` params or the preferences.
2026-11-27 13:22:59 -08:00
dotCooCoo 55bf6604be Scripts: app.documents lists the active document first
A script's documents[0] was the first tab, not the active document, so
scripts that read app.documents[0] as the document in front acted on
another one. The scripting guide says documents[0] is always the active
document:
https://ai-scripting.docsforadobe.dev/scriptingJavascript/objectReferences/

Each open document now records when it last became the current one.
documents lists the current document first and then the others from the
one current most recently to the one current longest ago (VectorCraft's
own rule). documents["name"] and getByName search in the same order. A
change a script makes to a document in the back switches to it and back,
and that switch no longer moves the document in the list.

Three tests that read documents[0] as the first tab with two documents
open now read documents[1].
2026-11-27 13:22:06 -08:00
dotCooCoo bf4bb07ec7 Graphs: paint opacity params text matches what a series stores
The params text of paint.setFill and paint.setStroke said a graph series
stores a path's opacity when `opacity` changed it. The commands store it
whenever `opacity` writes the topmost visible row of the kind, also when
the row already had that opacity (capture_series_opacity_writes). The
text now says so, and docs/mcp.md states the rule with the other series
paint rules.
2026-11-27 13:10:53 -08:00
dotCooCoo 325ec7305c Color: a targeted layer shows the paint of its editable art
With a layer targeted and no Appearance row active, the Fill and Stroke
proxies walked the layer itself and could show the paint of a locked
or hidden object in it, while paint.setFill, paint.setStroke and
paint.editGradient edit the layer's selected editable art. A gradient
stop edit from the Gradient, Color or Color Wheel panel then wrote the
locked object's stops onto the editable art. The proxies now read the
selected objects, as the commands do.
2026-11-27 12:45:17 -08:00
dotCooCoo 44401d8739 Clean Up: keep the clipping paths of groups and layers
Object > Path > Clean Up passed no clipping state into a layer's
objects, so Unpainted Objects removed a clipping layer's compound
clipping path. It also looked inside a group or compound path used as a
clipping path, so Stray Points, Unpainted Objects and Empty Text Paths
removed its members and could leave an empty compound path clipping.
Blank type used as a clipping path was removed too.

The walk now finds a clipping path with Node::clips for layers as well as
groups, and leaves the clipping path and everything it holds as they are,
whatever kind of object it is.
2026-11-27 12:39:53 -08:00
dotCooCoo 2e2fd7f874 Tests: the font list tests hold back other threads' font changes
Three tests in crates/engine/src/tests/fontlist.rs read the process-wide
font database twice while other tests in the same binary add fonts and
composite fonts to it. A font added between the two reads made the
lists differ, and the installed-family filter did not hide it, because
fonts added with `add_font` count as installed. A stress run of the
engine's font tests failed 4 times in 60.

The font list, Show Similar Fonts and Refresh Font List tests now hold
`test_fonts::steady_fonts` across their reads, as the font menu's tests
do, and compare whole lists. The installed-family filter and the 20-try
generation loop are removed.
2026-11-27 12:34:42 -08:00
ruchirguitarandClaude Opus 5.5 979ae2dc1b Language packs: measure back documents in their own composite fonts
When the packs change, poll_language_packs measures the type of every
open document again. A document in the back now has its own composite
fonts lent while it is measured, as measure_back_document does, so type
set in a composite font of the same name as one of the front document's
is not measured in the front document's definition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 00:19:55 +05:30
ruchirguitarandClaude Opus 5.5 22f5ca3cbf Language packs: review fixes, and plug-ins can't call proof commands
- proof.installPack, proof.removePack and proof.packs {refresh} are refused
  under automation roots: the shared font store is outside them.
- Plug-ins may not call proof.* (DENIED_PREFIXES), which
  plugin_call's every_command_is_reviewed requires of new commands.
- A synchronous install or refresh returns its own result, not one read
  back from the shared errors.
- proof.packs reads the jobs before the installed packs, and
  poll_language_packs reads busy() before the generation, so an install
  that ends between the reads is never missed.
- A pack change measures type with a language of its own again
  (refresh_document_text_bounds), so selection boxes and hits follow.
- The tests' Reset cancels and waits for background jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:55:40 +05:30
BFlat 98b56f3d97 Merge pull request #7068 from ruchirguitar/feat/docinfo-path-area
feat(docinfo): add path area to Document Info (#6965)
2026-11-28 00:35:01 +07:00
HassanKhan 76181f49b3 Merge remote-tracking branch 'upstream/main' into fix-9227-offset-pasted-clip 2026-11-27 21:37:57 +05:00
ruchirguitarandClaude Opus 5.5 fef393ddc0 Language packs: fmt, a Status struct for clippy, std Result in the tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:56:59 +05:30
ruchirguitarandClaude Opus 5.5 44afcbfb2a Spell-check other languages from the Craft apps' Language packs
Part of #4936. Spelling and hyphenation now read the Language packs
installed in the font store the Craft apps share, and proof.packs,
proof.installPack and proof.removePack list, install and remove them.
Installs need downloading on, which only the person turns on; in the
desktop app they run in the background and the documents are laid out
again when one ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:19:24 +05:30
dotCooCoo 4810395de9 Merge main into fix/transparency-symbol-part-display 2026-11-27 05:30:04 -08:00
dotCooCoo b5311fc40e Merge main into fix/blend-options-opening-drawing 2026-11-27 03:39:36 -08:00
HassanKhan cfc8c4613e Transform Each: Random with equal scales keeps proportions (#9320)
Random drew a separate share for the horizontal and the vertical scale,
so the same scale on both sides still came out uneven. Equal scales now
take one share; the five draws stay, so a seed keeps its moves and angle.
2026-11-27 15:50:41 +05:00
ruchirguitarandClaude Opus 5.5 1e5bac5fa3 fix(docinfo): work out the path area only while Objects is shown
The area pass normalizes every closed path's geometry, and the Document
Info panel fetches `document.info` again after each edit. A request now
skips the pass (`pathArea` null) when its category is not `objects` or
it passes `pathArea: false`, and the panel asks for the area only while
it shows Objects or All Categories (the cache key records which).

Tests: the engine gives no area for another category or with
`pathArea: false`, and the panel's result has no area while another
category is shown, edits included. Docs: gaps, parity and mcp rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:09:45 +05:30
FredApps 0378062246 Resolve Snapping documentation conflicts with main
Preserve the feature code and both sets of roadmap and parity notes.
2026-11-27 09:49:01 +01:00
ruchirguitarandClaude Opus 5.5 2d497db368 Merge main into the Document Info path area branch
Docs conflicts: main's "Last updated" banner; both sides' evidence and
history rows, newest first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:59:24 +05:30
HassanKhan ea9cd206f6 Paste: a pasted clipping path is an ordinary path (#9227)
A copy of a clip group's clipping path kept its clipping mark when pasted
outside the group, so Offset Path and the other path commands skipped it
and Offset Path's OK did nothing. Paste now clears the mark, and Release
Clipping Mask clears it on a selected path that clips nothing, which
repairs paths pasted before this fix.
2026-11-27 13:24:20 +05:00
dotCooCoo e0b9e9ab8e Keep Blend Options bound to the opening blend selection 2026-11-26 22:26:12 -08:00
.CooCoo 77ccc84e7c Merge pull request #9680 from dotCooCoo/fix/composite-font-import-avoid-oversize-copy
Reject oversized Composite Fonts imports before copying file contents
2026-11-26 21:41:16 -08:00
.CooCoo 651da6fd85 Merge pull request #9615 from dotCooCoo/fix/svg-filter-browser-selected-encoding
Preserve SVG Filter encoding from browser files
2026-11-26 21:37:33 -08:00
.CooCoo e88c5ea595 Merge pull request #9553 from dotCooCoo/fix/gradient-popover-opening-target
Keep Gradient Stop edits with the stop that opened the popover
2026-11-26 21:32:18 -08:00
.CooCoo b9bf25356b Merge pull request #8807 from yoriswind/codex/8804-color-conversion-swatch-index
Color conversion: index global swatch lookups
2026-11-26 21:31:37 -08:00
.CooCoo 9b914feb20 Merge pull request #4481 from el-j/fix/artboard-copy-oversized-art-4479
Fix #4479: duplicate and Alt-drag copy artwork larger than artboard
2026-11-26 21:29:53 -08:00
.CooCoo 81405c9dbe Merge pull request #9170 from ViktorBystrov72/fix/place-point-type-bounds
Measure aligned point type when placing native artwork
2026-11-26 21:29:12 -08:00
dotCooCoo 625f20d477 Show selected symbol part transparency values 2026-11-26 21:22:40 -08:00
BFlat 5958a5e95c Merge pull request #9097 from dotCooCoo/feat/scripts-xmp-objects
Scripts: ExternalObject loads the XMP objects XMPMeta, XMPFile and XMPConst
2026-11-27 11:55:06 +07:00
dotCooCoo 223e21c4cb Retire pending Create Object Mosaic approval on Undo or Redo 2026-11-26 20:18:24 -08:00
dotCooCoo 82994cf612 Reject oversized composite font files before copying or encoding 2026-11-26 20:10:34 -08:00
dotCooCoo 84c5bc0e33 Merge current VectorCraft main into Slice Options and Divide Slices 2026-11-26 19:49:49 -08:00
dotCooCoo cc2c5c770f Bound XMP metadata work and preserve packet boundaries 2026-11-26 19:15:16 -08:00
dotCooCoo 520d9edd8b Merge main into feat/scripts-xmp-objects 2026-11-26 19:04:59 -08:00
dotCooCoo 3ef0af042b Borrow inline SVG filter input before its size check 2026-11-26 19:01:25 -08:00
dotCooCoo 913b69d97f Merge commit '0aea8fed95071c341445ba587a4ce5d0d76753d0' into fix/ui-svg-filter-inline-cap 2026-11-26 19:00:44 -08:00
dotCooCoo c0da24c63a Name the gradient edit paint snapshot 2026-11-26 17:38:27 -08:00
dotCooCoo 89323603d9 Preserve SVG Filter encoding from browser files 2026-11-26 17:37:07 -08:00
BFlat 5f4f1e1dce Merge pull request #9578 from dotCooCoo/fix/proof-setup-browser-files
Open and save Proof Setup files in the browser
2026-11-27 08:35:47 +07:00
BFlat 459dcc54c5 Merge pull request #9576 from dotCooCoo/fix/replace-browser-picked-image
Replace Image: use files picked in the browser
2026-11-27 08:35:17 +07:00
BFlat 4d5d254947 Merge pull request #9526 from dotCooCoo/fix/variables-browser-pick-current
Load browser-picked data sources in the Variables panel
2026-11-27 08:28:51 +07:00
BFlat f3e81372f6 Merge pull request #9502 from dotCooCoo/fix/thousands-in-sums
Unit Converter: reject ambiguous commas in expressions
2026-11-27 08:26:58 +07:00
BFlat e5a5ec4d25 Merge pull request #9497 from dotCooCoo/fix/ui-blend-options-target
Keep Blend Options on the target it opened for
2026-11-27 08:26:12 +07:00
dotCooCoo c1a23c4185 Track each paint affected by Gradient Stop edits 2026-11-26 17:23:41 -08:00
dotCooCoo 9e085ff4f5 Merge current VectorCraft main into Slice dialog selection guard 2026-11-26 16:55:25 -08:00
dotCooCoo 75fa147553 Open and save Proof Setup files in the browser 2026-11-26 16:41:08 -08:00
dotCooCoo 3d5953a032 Describe Variables Import as requiring a data source 2026-11-26 16:23:28 -08:00
dotCooCoo da3a548ea5 Use browser picker contents when replacing an image 2026-11-26 16:15:31 -08:00
dotCooCoo 1715d85828 Merge commit 'refs/check/mac2-20261126-properties-fixed' into HEAD 2026-11-26 15:42:32 -08:00