- move, remove() and zOrder throw "Only Image Trace can make a tracing",
with nothing changed, when they would leave an image at the bottom of
an ordinary group named Image Trace: a path moved out of the group or
to its top, Send to Back or Send Backward on the image, and Bring to
Front or Bring Forward on the object below it.
- releaseTracing() throws "Cannot release a tracing containing added
artwork", with nothing changed, when the tracing holds an object its
trace did not make. imageTrace.release keeps only the source image, so
the added object would be deleted.
- The TracingOptions members with no setting and TracingObject.areaCount
are left out of hasOwnProperty and reflect. Reading them still throws.
Docs: docs/mcp.md.
- A compound path's `pathItems` is a `PathItems` object scoped to the
compound path: it reads its paths, `parent` is the compound path, and
the methods that make a path throw. `removeAll()` keeps the compound
path, empty, as `remove()` of its last path does. `PathItems` gains
`toString()`.
- `GroupItem.clipped` throws when the path that would become the
clipping path, or the clipping path it would release, is hidden or
locked, before `layer.clippingMask.toggle` changes it.
- After `artboards.add` or `insert` gives the active artboard another
index, `app.doScript` steps act on that artboard at its new index. The
Artboard tool's selection kept from the run's start is held by
artboard id, so a Fit to Artwork Bounds or paste step acts on the same
artboards after one is inserted or removed.
- `Layer.opacity` runs no command only for the exact value its getter
reports, as a page item's does.
- `Layer.zOrderPosition` reads the kept list of layers and each layer's
place in it, so a loop over the layers lists them once.
- Tests: the Revert test compares the artboard's name with the saved
one, and the `clipped` test reads `clipped` inside the script after
the error.
app.getIsFileOpen treated any path with a backslash as a Windows path,
turning each backslash into a folder separator and ignoring letter case.
On macOS and Linux a backslash is a character of a file name, so
getIsFileOpen answered true for the path /work/a\b.ai while /work/a/b.ai
was open.
Paths now get the Windows rules only on Windows or when they start with a
drive letter.
DocumentPreset.typename and toString() answered for a preset kept from
an earlier run with #targetengine, while its settings throw a TypeError.
Both now check the preset the way the settings do.
Documents.addDocumentNoUI(startupPreset) was missing. It now makes the
document addDocument(startupPreset) makes.
- The 1000% scale limit applies only when Fit to Page is off, since the
scale factors are not used with it on.
- A script run clears the print command allowance when it ends, so a
panic inside print cannot leave file.print open to later runs.
- saveAs without options takes the format from the path the script
names, so a link at that path cannot change it.
- A File the host gives back charges its path to the heap.
- DocumentPreset.typename throws for a preset from an earlier run.
- Documents.addDocumentNoUI throws that it is not available yet.
- The print tests remove their folders when an assertion fails.
The enumerations whose default member an option keeps (OutputFlattening,
CompressionQuality, the PDF color, compression, mark and security enums,
and the SVG encoding, DTD, CSS and font enums) are now defined, so a
script that sets an option to its default no longer throws a
ReferenceError; another member still throws as not available yet.
saveAs, exportFile, app.open and close with SAVECHANGES refuse a path
whose real file name is not valid UTF-8 instead of writing to or opening
a file named with a lossy copy of it.
PathItem now takes PageItem's translate, rotate and resize: main's PathItem versions are removed, and resize on a path keeps main's changeLineWidths percent for the stroke weight. Hidden objects are refused, and an identity transform of an empty path checks its Transformation value and does nothing.
- A scoped removeAll() or Edit > Clear that leaves a clipping group or
layer without art releases its mask in the same undo step, also when
the mask was a compound path's last member.
- GroupItem.clipped refuses changes to a hidden or locked group, layer
or artboard.
- After the script deletes the artboard it chose, action steps use the
same active artboard as getActiveArtboardIndex() and the view. File >
Revert discards the script's choice.
- A compound path's pathItems is a PathItems object; its creation
methods throw an error. PathItems and PageItems methods refuse the
other class's scoped collections.
- Scoped collections convert to strings.
- Layer.color returns an RGBColor, so it can be assigned to paint.
- Each zOrderPosition read counts its scan toward the script's budget.