- 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.
AutoCADRelease13, 14 and 15 write DXF formats that hold no true color.
With them, exportFile takes 256 indexed colors when the options leave
colors out, and AutoCADColors.TrueColors throws an error instead of
writing indexed colors without telling the script.
Docs: docs/mcp.md.
- 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.exportFile with ExportType.AutoCAD takes an ExportOptionsAutoCAD
object and writes a DXF file through document.export, adding .dxf unless
the name ends with it. ExportType.AUTOCAD is the same value as
ExportType.AutoCAD.
- The options map to the DXF writer: version (AutoCADRelease13, 14, 15, 18,
21 and 24 as the R13, R14, 2000, 2004, 2007 and 2010 formats), unit,
unitScaleRatio (drawing units for one unit, more than 0 and at most
1000), colors, rasterFormat, exportOption, alterPathsForAppearance,
convertTextToOutlines, exportSelectedArtOnly and scaleLineweights.
- An option the object leaves out takes the default the help page gives.
colors, rasterFormat, unit and unitScaleRatio have none there and default
to true colors, PNG, millimeters and 1.
- AutoCADExportFileFormat.DWG, the help page's default, throws an error that
says DWG is not available, and nothing is written.
- New enumerations: AutoCADColors, AutoCADCompatibility,
AutoCADExportFileFormat, AutoCADExportOption, AutoCADRasterFormat and
AutoCADUnit.
https://ai-scripting.docsforadobe.dev/jsobjref/ExportOptionsAutoCAD/https://ai-scripting.docsforadobe.dev/jsobjref/scripting-constants/
Docs: docs/mcp.md, docs/target-app-parity.md.
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".