Keep XMP file buffers in native state and release them at the file run boundary. Count registered namespaces and expanded metadata against the heap limit. Reset marked readers after updates and allow failed library setup to retry.
app.executeMenuCommand('Fit Artboard to artwork bounds') threw the
command's error when the active artboard was locked or had no art on
it. The canvas's right-click menu dims Fit to Artwork Bounds then
(DocState::any_art_to_fit), so the script now does nothing and adds
no undo step, as for the other menu items that are not available. The docs state
that an available menu item runs its command and that an error that
command returns throws.
The host-versus-checker name table lists
Application.prototype.executeMenuCommand.
The script host ran its realm with E4X off, so XML literals were syntax
errors and XML, XMLList, Namespace, QName, isXMLName and
setDefaultXMLNamespace were missing from every script, although
vectorcraft-js has them. script.run and File › Scripts now turn E4X on
for .js and .jsx files, script text, #include files, $.evalFile, eval
and Function, and for a #targetengine engine.
script.check lists the e4x and xml features under the language need
instead of hostOnly, since VectorCraft runs them.
- A New Document profile is opened without following a link (O_NOFOLLOW
on Unix, FILE_FLAG_OPEN_REPARSE_POINT on Windows), and its kind and
bytes are read from that open file. A link put in the profile's place
after the plain-file check is refused instead of read.
- Page item and layer handles go stale when their document is reverted.
- controlBounds holds the control points of the object's paths.
- PageItems.toString() throws Stale document for a collection kept from
an earlier run.
- Assigning an object the opacity it reports runs no command, except on a
graph mark or label whose graph keeps another opacity.
- An object-model edit and the steps that restore the selection, layer
and active document succeed or fail together.
- hasOwnProperty and propertyIsEnumerable stop at an unavailable member
that hides one of a parent class.
- Assigning a name that a non-extensible host object inherits no longer
looks the name up with the object's indexer.
- The Application prototype inventory lists selectTool.
- docs/mcp.md names the Stale document error, and the parity line says
the tool changes only when the run ends without an error.
A script that called app.redraw() stopped with an error, because app had
no such member. The call now returns undefined and adds no undo step. A
run works on its own copy of the documents, and the app draws the
documents as they were before the run until the run ends, so the call
has nothing new to draw.
A page item's blendingMode gives the object's own blend mode as a
BlendModes value, and assigning one sets it through object.setProps.
The global BlendModes holds the 16 members the scripting constants page
lists; COLORBLEND and SATURATIONBLEND set the Color and Saturation
modes. Any other value throws "blendingMode needs a BlendModes value"
and changes nothing. Assigning the mode the object has adds no undo
step. An object in a hidden or locked layer refuses the change with
"Cannot edit", as opacity does.
New Document's More Settings now shows the columns a preset's rows give
the current artboards, and a new layout or column count replaces those
rows, in the dialog main rewrote.