prototype_changes_cannot_forge_a_page_item stored both caught error
messages in one variable, so when the second write stopped throwing, the
variable still held the first message and the assertion still passed.
Each try block now logs its own outcome.
Assigning a DocumentPreset setting stored any value until the run ended,
and the value was checked only when addDocument read it. A script could
keep gigabytes of strings in presets that no addDocument would accept.
The setter now checks the value before storing it: a value of the
setting's enumeration, a finite number, a title of at most 4096 bytes,
true or false for documentBleedLink, or four finite numbers for
documentBleedOffsetRect. undefined unsets any setting, and the three
settings addDocument does not apply yet also take null. A value of
another kind throws a TypeError, a longer title throws a RangeError, and
the setting keeps its old value. addDocument still checks the ranges.
document.export and Export As write .cmx exchange files with 32-bit
coordinates through craft-cdr's write_cmx, in the layouts the .cmx
reader reads. The chosen artboard is the file's page, or with Use
Artboards each chosen artboard is a page of one file, and each layer with
art on a page is a layer of that page.
- vectorcraft-metafile gets painted_layers: the WMF writer's walk of the
visible art, layer by layer, with each fill's and stroke's solid paint,
its miter limit and the swatches of the document and of the documents
it places.
- The export keeps CMYK, RGB, gray, spot colors at their tints and
Registration; type is written as outlines, and gradients and patterns
as one color. The warnings name images, clipping masks, transparency,
art past a page's edge, dash offsets, dashes aligned to corners, miter
limits, and each loss the writer reports: nonzero fills written
even-odd, long paths, rounded dashes, shortened names, low spot tints,
and spot colors without a name or a known color.
The plug-in store turn, the Data Recovery area hold, the script grants
lock and the hang report file each released their file lock only by
closing the file. The lock stays held while any copy of the handle is
open, and a child process that any thread starts holds a copy until it
runs its program. While one was starting, the next turn on the plug-in
store waited, an app found its own recovery area busy, a grants change
timed out, and the next launch left a hang report alone.
Each holder now unlocks the file when it is dropped, as #9837 does for
the nightly session and the GPU start file. The engine's three locks
share one type, `store::LockedFile`. A left hang report that a launch
locks to read is held the same way.
Each new test keeps a copy of the handle open, drops the holder and
takes the lock again.
With the Selection tool, the first Cmd-click (Ctrl on Windows and Linux)
now always goes to Direct Selection or Group Selection, also over a
selected object: it picks the object under the pointer, a member of a
group included, and arms Select Behind. While Cmd stays held, each
further Cmd-click over the selection selects the next object under the
pointer, counting the members of groups one by one, and comes back to
the topmost after the last. Letting go of Cmd (a pointer, hover or key
event without it), choosing another tool or switching documents ends it.
Before, the first Cmd-click over a selected object selected the object
behind it at once, and Select Behind stepped through whole groups, so a
member lying under another member of the same group could not be
reached that way.
- doc::hit::leaves_at lists the objects a Direct Selection click picks
under a point, topmost first, in one traversal of the document; a
clipping mask or a group drawn with its own geometry effects falls back
to repeated hit tests. The list stops at 256 objects.
- The session keeps the arming (Session::behind_armed) and passes it to
the tools as ToolContext::behind_armed.
- Docs: docs/control-protocol.md (ui.pointer), docs/mcp.md,
docs/target-app-parity.md and docs/ui-parity.md.
When a clipped subpath had more segments or crossings than the crossing
search takes, Fill Area dropped it before the search, so a square that
its visible part crossed was still filled whole. Such a subpath now
stays out of the maps but is kept aside with the masks around it, and
an area it crosses or comes within the gap of is not filled when every
one of those masks reaches the area. An area it stays clear of, or
crosses only where a mask hides it, is filled as before. The hover
counts these subpaths and their masks when it decides whether to
search on another thread. docs/mcp.md describes the rule.
Follows #9336.
script::folder::list and script::startup::list measured the 250 ms
listing limit (MAX_SCAN) with a real Instant. script.listInstalled,
script.startup.run and the File > Scripts menu read the folders through
them, so a test that went through any of these got a truncated listing
and missing scripts whenever the disk stalled for 250 ms.
- folder::Clock is either Wall (the real time since the listing started,
the default) or Fixed (the same time at every check). Both list
functions take one.
- Session::set_script_listing_clock sets the clock the two commands and
the menu's listing job use; the app keeps the real clock.
- The script folder, startup script, scripts menu, script run and Safe
Mode tests list with a fixed zero time, so a slow disk cannot cut a
listing short. Direct listing calls use the test file's list helper.
- New tests check that script.listInstalled, script.startup.run and the
menu stop at the session's clock once it is past the limit and list
everything at the limit.
a_cancelled_export_stops_the_exporter cancelled from another thread after
a 300 ms sleep and asserted the elapsed time. The exporter now reports one
step before it loops forever, and the test's progress sink cancels the
token when that report arrives. The cancel lands while the exporter runs,
and the test asserts Err(Cancelled) and that the report arrived once. With
the cancel check between budget slices removed, the export ends at its
instruction budget instead and the test fails.
Clear, Ungroup, a script or any other edit that removed the isolated
object left isolation mode on an id that was no longer in the document.
Session::edit now ends isolation mode after every edit that removes the
isolated object, as Undo and Redo already did. While a symbol is edited,
removing a group isolated inside the symbol's art isolates the editing
layer again, as Exit Isolation Mode from that group does.
The paths that put an earlier document back now put isolation mode back
with it: a canceled undo group, a canceled undo scope that joined an open
group, an interaction's next preview or cancel, and the measured deferred
preview. When the edits they take back had removed the isolated object,
that object is isolated again.
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.
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.
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].
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.
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.
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.
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.
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.
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>
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>
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.