transform_rejects_a_mistyped_reflect_copy_or_origin_before_editing ran
a rotate with a null origin and checked only that the call succeeded.
It now compares the resulting path with the same rotate with origin
left out, so a null origin that moved the pivot would fail the test.
A proof of the working CMYK space converts through the working color
settings. With a profile assigned to the document in place of the
working CMYK space, Edit › Color Settings changes the working settings
while the active settings stay the same, and the canvas kept showing
the proof through the previous working space.
- The canvas's frame key also holds the working color settings
(`cms::working_settings`).
- The test now requires a re-render after `edit.assignProfile`, and
checks that a new working CMYK space re-renders a Working CMYK proof
while the active settings stay the same.
The progress line now says that in Draw Behind the copy of the clipping path of a clip group or a clipping layer goes directly above it, so the clipping path stays the bottom object, as docs/mcp.md and copy_beside already do.
script.grants listed no grants when Script Grants.json was there but
could not be read, was larger than 4 MiB, did not parse, had another
version or held no list of grants, or when its lock could not be taken.
It now returns "the script file permissions could not be read: {e}" in
those cases, as script.grants.revoke already fails on such a file. A
missing grants file still lists none, and a grant in the file that is
not well formed is still left out.
The run-time grant lookup keeps reading such a file as holding no grants.
The new message has a row in every complete-message catalog. The params
text, docs/mcp.md and the Scripts line in docs/target-app-parity.md state
the error.
A file read off the UI thread that waits behind another file's profile
question, and has no question any more once Color Settings change, now
does the rest of its read (policies, linked files, type) off the UI
thread, as an answered file does, instead of on the UI thread. It opens
at once when no thread can start, and a failure is reported once.
A profile question that comes while another dialog is open (a paste
waiting for its Swatch Conflict answer, say) now waits until that dialog
closes instead of replacing it and canceling the paste.
Follows #7733.
effect.setParams compared a Pathfinder effect's values other than its
Pathfinder Options exactly, so a mixingRate of 50 over a stored 50.0
counted as an edit and recorded an undo step. A float now compares with
any number by value, and two integers still compare exactly.
The touching-run search looked up the sample before each angle with a
linear scan over the run, so a long run of samples within the tolerance
cost time in proportion to the square of its length. It now collects the
run's sample angles once and uses partition_point, which gives the same
sample at every angle.
An Alt-press on a width point's center narrows the selection to that point,
ready to drag a copy. A release without a drag kept it narrowed and did not
remember the earlier selection, so an Alt-double-click on one of several
selected points opened Width Point Edit for that point alone, where a plain
double-click opens it for all of them. A release without a drag now
remembers the earlier selection as a plain click does, and an Alt-drag
still copies only the point under the pointer.
Since the change that brings a library pattern's global and spot colors
under a numbered name ("Ink 2") when the document gives the name another
color, adding the same pattern or color again added more copies, and
Use Library Item still linked a pattern's art to the document's own
color of that name.
- A library color whose name the document gives another color is the
document's numbered copy with the same color, so adding it again adds
nothing. A numbered name that the same call also picks is not shared.
- A pattern the document holds with its art linked to the document's
own color of a name, as pasting with Merge leaves it, is reused
instead of coming in again as "Squares 2".
- `added` lists the colors a pattern brought, after the picked swatches.
- A library tint added with its base color links to the base's name in
the document, and a later add finds it there.
- library.use brings a pattern's colors the same way.
Docs: docs/mcp.md.
An answer that names another question, Cancel or OK, now has to leave the
open question answerable: the right token's OK still starts the edit at the
clicked character. The canvas double-click lands a quarter of the way into
the text, and after OK the caret has to be the one a click at that point
puts in the type being edited.
A distorted CMYK image whose opacity mask is a gray image with the
same corners writes the mask as the image's /SMask, and every piece of
its mesh draws that one image. The image was resampled for the size its
transform places it at, before the pieces' shared size was known, so
with downsampling on every piece stretched a smaller image across the
corners. The masked image is now resampled for the size the pieces
share, as the same image without a mask is, and the pieces are drawn
from the same expansion they were measured on.
status_locals took the nearest `let name = ` before a `.status(name)` call,
even when that `let` was in an inner block that closed before the call. For
`let note = "Outer"; { let note = "Inner"; log(note); } app.status(note);`
the untranslated-strings report listed "Inner" and missed "Outer".
The scan now skips a binding whose block a `}` closes before the call.
Braces inside string and character literals are skipped with quoted_end,
the helper without_comments already uses. message_scan_reads_locals_given_to_a_status
covers the shadowing case and a status local followed by brace literals.
A press near an anchor of a member selected inside a group grabs the
member by that anchor, with Smart Guides or Snap to Point on, and a
drag lands that anchor on another object's anchor. The new test covers
the snapping origin that #8091 gave such a press; it fails when
hover_point stops reading selected art under the pointer.
A CMYK image with an opacity mask on its own pixel grid is written with
the mask's alpha as its soft mask. That path recoded the image's own
pixels and ignored its color mask, so the colors the color mask hides
were drawn wherever the mask's alpha was not zero.
The soft mask is now the mask's alpha multiplied by the alpha of the
pixels the color mask shows, and the cache key includes the shown
pixels. A test covers a plain and a distorted image.
When two or more neighboring sampled normal angles all came out within the
touching tolerance, the root search took the run as one place where the
outlines touch and returned a single line at its middle. A point just
outside a circle, with both of its tangents on neighboring samples, then
got one line that misses the circle instead of two.
The search now looks between each pair of those samples for a value that
leaves the tolerance, and finds the roots between those places: a crossing
where the sign changes, a dip where it does not. A run that stays within
the tolerance, as at a corner, still gives one line.
colored_revolve_faces_leave_no_alpha_holes_at_one_to_one compared each
representation only with its own 3x render, so a 60% opacity lost or
applied twice by SVG or PDF import passed at both scales. The test now
also reads the alpha inside the body: 153 within 3 levels with a fill
opacity of 60%, 214 within 3 levels with 60% gradient stops (front and
back faces at 60% each), and 255 when opaque.
With one object selected, no anchor points selected and the Artboard tool
chosen, align.toSelection returns "selection", the stored choice. The params
text and docs/mcp.md now name that condition, and crates/mcp/src/ui_catalog.rs
is regenerated. A test covers the case.
The panel's document.info cache was read by value on every call, so
each frame of the panel deep-copied the whole JSON result even when
nothing was fetched, a frame with its menu open copied it once more,
and a refresh copied it again to store it. The cache is now an Arc: a
frame whose key matches returns the stored result, and a refresh
stores the new one without a copy.
The key is unchanged (document, revision, Selection Only and, while the
Artboard tool is current, its options), a category still filters the
stored result, and a failed fetch leaves the stored result in place.
Tests: frames_that_fetch_nothing_reuse_the_cached_rows checks that idle
frames share one result with the same rows as the by-value read, and
that each key change stores a new one; cached_rows_read_timing (ignored)
times both reads.