resize and transform with changeLineWidths equal to the scale now scale the
strokes, dashes and effects of a path with no anchors, as they do for a path
with anchors. A member with no anchors of a compound path or compound shape
that shows a pattern is refused when the call transforms patterns, as a path
with a pattern of its own is.
node.move's description and docs/mcp.md now say that a compound path on a
locked artboard takes a path while it is new art there and still selected.
rotate, resize and transform on a path with no points returned success
after setting only the stroke weight, even when the call asked to
transform a fill or stroke pattern the path uses. The pattern stayed as
it was. Such a call now throws "the object has no bounds", as it did
before empty paths were accepted, and leaves the document unchanged.
docs/mcp.md states the exception.
Clicking OK or Cancel in Preferences ended the app with an uncaught
NSRangeException from -[_NSTouchBarFinderObservation invalidate]
whenever the Touch Bar server runs (any Mac with a Touch Bar). When a
window closes, accesskit_macos 0.27.1 put the content view's original
class back, which removed the key-value observing subclass AppKit's
Touch Bar support had installed on the view. AppKit then failed to
remove its observer.
accesskit_macos 0.27.2 leaves the class alone when key-value observing
has subclassed the view (AccessKit/accesskit#835). Cargo.lock moves to
it, with accesskit 0.25.2 and accesskit_consumer 0.39.2, which it
requires.
Fixes#10473
textFrames.removeAll() and the removeAll() of a group's pageItems,
groupItems and compoundPathItems checked only clip groups whose mask
they release. Deleting the type or art below an image in an ordinary
group named Image Trace left the image first, so the group was read as
a tracing and the image dropped out of pageItems. Both now throw
"Only Image Trace can make a tracing" and delete nothing, checking the
whole set being deleted at once.
The folder sits in a guard that removes it on drop, so a panic in the
write or the search no longer leaves the 41 MiB file in the temporary
directory. The normal path still removes it explicitly and fails on an
error.
- A document added outside a command while edit.undoGroup.begin is
open joins the group: its two edits are one "Job" step, and one undo
takes both back (Session::add_document).
- Canceling a group rewrites a batch's journal entry: a dropped step
that left another document in front becomes document.activate with
that index, so the edit made after the group replays in the same
document (keep_batch_steps).
- Renaming a graph design to its own name succeeds and records no undo
step, and the design list stays the same.
Each test fails with the covered lines removed.
- PSD slices: a version 7 or 8 descriptor that lists more than 10,000
slices, objects nested 17 deep and lists nested 17 deep are refused
with a warning, and 16 levels of either still open.
- .pcraft: a 12000 x 12000 canvas leaves the preview with the "too
large to combine" note before any layer is read.
- .af files: Multiply keeps its blend mode, and Linear Light imports as
Normal with one warning however many objects use it.
- action.batch: an unknown destination is refused, and destination
"folder" without destinationFolder is refused before any file opens.
- rules_parse_by_id_and_label reads a few shown labels back through
parse(label(h)). The labels are written in vectorcraft-color and the
ids come from craft-libs, so a label that drifts from its id no longer
parses.
- units_choose_the_default_scale covers $INSUNITS 3 (miles) and
7 (kilometers), which have no unit of their own and read as
millimeters at their scale.
- A rectangle bent along a circle keeps its corners at the ends of its
step, its baseline edge on the circle and its other edge on the circle
its height along the normal, with and without a rise off the path. A
straight path and a glyph with no advance leave the outline as it is.
- The file search for a character no loaded font covers loads a font
that covers it, and skips the same font padded to 41 MiB.
- pathItems.removeAll() now throws and deletes nothing when it would delete
the clipping path of a group or layer that keeps other objects, as
pageItems.removeAll() does. The check is shared with the art collections,
and the document's collection counts compound paths that edit.clear
empties and deletes.
- rotate, resize and transform check changeLineWidths at the
transformation's own scale with changePositions false before the early
return for a path with no points, so an empty path is refused as one with
bounds is instead of having its stroke weight set.
- docs/mcp.md describes both.
Adds six unit tests to the shapes module for behavior no test checked:
- A Rounded star or polygon with Randomize 0 still gets handles on
every anchor.
- Rounding handles are 0.4 x Rounded of the side long and at right
angles to the radius.
- A spiral starts at its center and ends a radius away at the angle
its turns reach.
- Randomize keeps polygon and star vertex radii within 45% of their
radius per unit, and moves at least one.
- Every face of a parallel 3D box is a parallelogram with four
distinct corners, seen from five directions.
- An end angle within 1e-9 degrees of a full turn opens the whole
shape for Arc instead of cutting it.
Add tests that fail when these PDF import paths break:
- Optional content membership dictionaries: AllOn, AnyOff, AllOff and
the default AnyOn decide which marked art the page walk skips, with
groups given as an array or a single reference. Each shown path keeps
the spot ink the walk found it painted in.
- Tiling patterns and soft masks nested more than 8 levels deep open
with their "nested too deeply" warnings.
- The ink-space scan stops 32 levels into an object and after 4,096
spaces.
- A one-ink image of more than 2^26 pixels is refused before its
samples are decoded.
remove(), the document's pageItems.removeAll() and textFrames.removeAll()
release the mask of a clip group whose clipping path they delete. A clip
group named Image Trace with an image next above its clipping path then
became an ordinary group named as a tracing with an image first, which
reads as a tracing. They now throw "Only Image Trace can make a tracing"
and delete nothing in that case.
docs/mcp.md names the removeAll() collections that release a mask and
the ones that refuse to delete a clipping path instead.
docs/mcp.md said that setting `closed` keeps the direct selection. Setting
it to false removes the closing segment, so the selection drops that
segment and each of its end anchors that no other selected segment uses.
The tests opening_a_path_* in crates/engine/src/tests/script_dom_paths.rs
cover these cases.
- Layer.zOrderPosition reads the sibling list through the cached layer
lists, so reading it for every layer of a loop lists the layers once.
Each read is still charged for the search through the list.
- TextFrames.removeAll releases the mask of a group or layer whose
clipping path is one of the type objects it deletes, as
PageItems.removeAll and remove() do, so the object above the type is
not made the clipping path.
- GroupItems.createFromFile checks that its collection is still there
first, so a collection whose group was deleted throws "Stale page item"
instead of the not-available message. docs/mcp.md says so.
A file.new step replayed from a journal or the Actions panel rounded
artboardLayout.rows and then refused a result over 1000, so a step with
rows 1000.5 or 5000 stopped the playback. The rows count now follows the
columns rule: it is rounded, must be 1 or more, and is kept to at most
1000. Recent stores the kept count. docs/mcp.md says the same.
A `CUPS_SERVER` or `ServerName` of `localhost`, `127.0.0.1` or `::1` counts
as this machine's scheduler only with no port or port 631. On another port
(a second CUPS instance) the dialog no longer reads `/etc/cups/ppd`, whose
queues belong to the default scheduler, and asks `lpoptions` and IPP
instead.
When the named server is one of CUPS's own domain sockets and neither the
PPD nor `lpoptions` lists sizes, the IPP lookup asks `localhost` on the IPP
default port, as it already does when no server is named. `ipptool` rejects
a URI whose host is a socket path (`httpSeparateURI` in CUPS's
`cups/http-support.c`), so another socket path is not asked.