- Add Unit::format_area(self, pt2: f64) -> String to format area in document units.
- Add pathArea (pt²) to document.info output and insert Path Area row in Objects section.
- Calculate compound path net enclosed area using fill rules (Non-Zero / Even-Odd), subtracting holes.
- Exclude guides and open paths, and avoid double-counting on nested compound paths.
- Update progress evidence and entries in docs/gaps.md and docs/target-app-parity.md (identifying Path Area as a VectorCraft addition beyond reference panel).
The two Direct Selection preference tests in
crates/ui-egui/src/tests/removeanchors.rs now use
crate::testing::ui_context() and app.canvas_view() to place the click,
as the other canvas tests on main do.
- An object of a host class counts its handle and its cache entry toward
the heap when it is made and after each collection.
- Reading an object of a host class as data, the receiver of a member
call included, charges its class name and handle to the data limits
before they are copied.
- The settings of a run's DocumentPreset objects are held to 16 MiB
together; a setting assigned again counts only its new value.
- getIsFileOpen treats `\` as part of a name outside Windows, except in
a path with a drive letter.
- Assigning an opacity reuses the stored one only when the value equals
what the getter reports.
- file.new's artboardLayout messages list `rows`.
- The selection de-dup uses a set; the host name inventory lists
app.undo and app.redo; the getIsFileOpen test quotes its paths as JSON.
- docs/mcp.md: a null presetSettings uses the preset's settings, and the
preset settings limit and the getIsFileOpen comparison are described.
Document.selection treated undefined like null and cleared the selection.
It now throws a TypeError for undefined, as for any value that is not a
page item, a list of them, null or [], and leaves the selection as it was.
A link in the grants file's place whose target is missing is there but
cannot be read, so script.grants fails on it and script.grants.revoke
leaves it as it is, instead of treating it as a missing grants file.
new Window() and add() threw that resource specifications were not
available yet. They now read a resource specification in place of the
type, as
https://extendscript.docsforadobe.dev/user-interface-tools/resource-specifications/
describes it: a type, then braces holding `name: value` properties,
where `name: Class { ... }` defines a control.
- `crates/js/src/scriptui_resource.rs` reads `[name:] Type { ... }`.
A value is null, true, false, a quoted string, a number, an inline
array or an inline object. The commas between properties may be left
out, as in the page's own example. A malformed specification throws a
SyntaxError. One longer than 1 MiB or nested more than 64 deep throws
a RangeError; these limits are VectorCraft's own.
- With a resource specification, new Window() and add() read no other
argument. `properties` gives the creation properties. Each control in
the braces is added through add(), with its limits of 512 controls
nested 16 deep, and set as the container's property of its name. A
list's `items` gives its item texts, as add()'s third argument does.
Each other value is assigned to the property of its name. Palettes and
windows still throw that they are not available yet.
- The script.run params text, docs/mcp.md and the Scripts line in
docs/target-app-parity.md describe resource specifications.
A headless window step whose control matched no name fell back to the
first control with that text, even when that control had a name of its
own, so a step could reach a different control than the one it named.
The text now matches only controls without a name.
app.undo() and app.redo() run edit.undo and edit.redo in the active
document, so they reach only the steps the running script made, and the
run still ends as one undo step. With no such step they change nothing,
and with no document open they throw "No active document".
- remove() on the last path of a compound path keeps the compound path,
empty, as move() does, so a script that holds it can still read it.
edit.clear takes keepEmpty: true for this, and passes it on to
path.deleteAnchors when it deletes direct-selected anchors; without
it, Clear still deletes a compound path it empties.
- note, like name, takes a number or a Boolean as the text String()
gives it.
- Assigning a graph mark or label the opacity it already has throws
Cannot edit in a hidden or locked layer when the graph keeps another
opacity for its series or kind, since the assignment would still
change the graph.
- Only the exact opacity the getter reports counts as the opacity an
object already has; a value that differs from it by less than 0.0001
is now applied instead of being dropped.
- Reading a document's selection orders only the selected objects, by
their place in the tree, so its cost no longer grows with the size of
the document.
- docs/mcp.md: the opacity exception, note, keepEmpty, and that
strict-mode code throws a TypeError when it assigns a member an object
lacks.
Docs: docs/mcp.md.
- zOrder() on an object in a hidden or locked layer throws Cannot edit
and changes nothing, as the other setters do.
- Assigning an object the opacity it already has no longer throws when
its layer is hidden or locked. hidden and locked are still refused
there, whatever the value.
- The docs say that a top-level var selection = ... assigns the
selection, that the selection order and the tab order of documents
differ from the objectReferences page, and that assigning a member a
collection lacks throws Not found.
Docs: docs/mcp.md.