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.
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.
- 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.
- 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.
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.
- 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.
stream_length took the last "obj" substring in the text as the object
header, so a stream dictionary name such as /Tag/obj moved the scan past
the outer dictionary and lost its /Length. The keyword now counts only at
the start of the text or after PDF white space.
Since #7669 the flattener's rasters have been encoded through the shared
image codec with its default compression (zlib level 6). EPS export, and
any other export that flattens, encodes every rasterized area this way
and then decodes it again right away, so a document with many live
effects exported about 170 ms slower to EPS. The rasters are now written
with PngCompression::Fast, as the SVG filter raster already is
(crates/effects/src/svg_filter.rs). The pixels and the EPS output bytes
do not change.
`PathItems.index()` with a number went straight to `items_doc`, which
refuses every compound-path-scoped `PathItems` so that creating paths
there stays unavailable. Its siblings (`[n]`, `getByName`, `length`,
`removeAll`) already dispatch scoped collections to the layer handlers
first, but `index` did not, so `compoundPathItems[0].pathItems.index(0)`
threw "creating paths in a compound path is not available yet". Route a
scoped `index` to `scoped_index` like the other lookups; the guard now
only stops real creation.
dxf_widest and dxf_leftmost folded from f64::MIN and f64::MAX, so a DXF
that kept its header but lost every vertex gave an infinite product and
the unitScaleRatio and pica assertions still passed. Both now reduce the
coordinates and fail when there are none.
docs/mcp.md: a relative save or open path is resolved against the
working folder of the process that wrote or read the file.