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.
- 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.
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.
- 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.
window.floatTools placed a new strip at the canvas's top left, and fell
back to (0,0) when no view had been laid out yet: right after a document
opened, or with no document open. The strip then covered the top of the
docked Tools rail.
Without a laid-out view, the strip now opens beside the docked rail it
came from (else the Tools panel's), level with the rail's top and the
float space's cascade inset away from it, on the side toward the middle
of the window. A dragged tear-off still opens at the pointer.
The compact type was set to 92% of its nominal sizes (body 13 to 12,
labels 12.5 to 11.5, captions 11.5 to 10.5), but the display type that
draws the Home title stayed at 26 points on a 32-point line, so the
title drew about 8.7% larger than in 0.24.1. The display type is now
24 points on a 29-point line, its nominal 26 on 32 at the same scale.
A test checks that the title keeps the nominal title-to-body
proportion against the compact body type, and that its line keeps the
framework's display line proportion.