mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
- Document.selection = undefined (an index past the end of pageItems) throws "this is not a page item" and keeps the selection; null and [] still clear it. Repeated items are found with a set instead of a scan of the list. - Assigning a page item the opacity it already has runs no command, unless a graph keeps another opacity for the item's series or kind. - PageItems.toString() on a stale collection throws as typename does. - PageItem.controlBounds throws "not available yet" instead of returning the visible bounds, which leave out the direction handles. - A host class member that is not available hides an available member of the same name in the class it descends from, for hasOwnProperty and propertyIsEnumerable. - script.check: a call of another method of an object literal with its own saveAs or exportFile (local.install()), and a property assignment that names the variable (this.local = d, $.global['local'] = d), end the exemption, so a later saveAs counts as a file write. - docs/mcp.md: SCALEBYFACTOR is a multiplier from 0.01 to 64, and SCALEBYRESOLUTION takes 0.72 to 4608 ppi. The write_encoded doc comment limits the all-or-nothing case to paths the access check refuses. - Tests: the authored error-origin case throws the Window text, the getIsFileOpen paths are JSON string literals, the folder saveAs case looks up its grant and expects "Script file is not a regular file", the selection case catches the error inside the script, and the close case checks that the file changed.