- 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.
A script's addDocument with previewMode OverprintPreview failed: file.new
turned the view on with view.overprintPreview, which scripts may not
run. A script's file.new now asks for the view, and the run turns
Overprint Preview on when it ends; a run that fails does not turn it on.
The images a New Document profile's symbols, patterns and brushes link
to were read under the script's file gate, after the profile's own file
was read outside it, so images beside the profile showed only their
preview. They are now read the way the profile's file is, under the
automation roots in force.
- 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.
getPresetSettings now reads the built-in first preset of the profile, as addDocument does on main, so a saved preset with the same name no longer changes the settings it gives.
getPresetSettings leaves out previewMode for a Pixel Preview preset, which
addDocument does not take. removeAll releases the clip of a group or layer
whose clipping mask it deletes. Inserting an artboard keeps the active
artboard by id, and the run report gives its new index, also in a document
the run opened. Scoped name lookups charge for the entries they scan.
Showing or hiding the perspective grid of an older document adds no undo
step for the attachment migration alone.
Async function activations now save and restore this_in_env, strict_class, new_target and this_env with main's Frame fields. The string spread test sets its fuel above what main's iterator-based spread takes.
As asked in review. Cargo.toml: main moved craft-libs to 51fcc3b0; the font
store crates this branch adds move with it, so every craft-libs crate stays
at one rev.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Adding a control or an item, and removing items, builds both arrays
before the first write, so a run that ends at the heap limit leaves the
lists and the dialog's counts as they were.
- A listener registered after an event started does not hear it in a later
phase, a capturing container's re-registration included.
- show() reads the dialog again when a getter changes a list item's text
after the item was read.
- Enter and Escape skip an OK or Cancel button inside a hidden or disabled
container.
- A resource string of a name and a type without braces throws a
SyntaxError, and a \u escape pair of surrogates reads as one character.
- In the app, queued events wait while another dialog is open over the
script's dialog, and the run's own questions wait while a popup, such as
an open drop-down list, is over it. ui.dialog.confirm and
ui.dialog.cancel take only the dialog, ui.dialog.set needs a field or an
action and answers with the dialog it set, and OK is refused while a
dialog open over it waits. A cancel after typed text clicks the cancel
button the dialog has when its turn comes, and an immediate cancel the
run refuses is an error.
- A click on a list box row gives the list the keyboard focus.
- The vc hint test names BridgeTalk, since Window now exists; the params
text and docs/mcp.md say that a show() in a handler notify runs throws
only in the app, and define_script_ui says when end is not called.
main added a test named wrappers_go_stale_after_revert and passes the
command id to dom::before_command by reference.
- The revert test of this branch is renamed
objects_read_before_a_revert_are_stale_and_ones_read_after_are_the_loaded_ones.
- command_value takes `id` as a &str, so the call passes it as it is,
which clippy's needless_borrow check requires.