mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
- duplicate() runs Edit > Duplicate, the place and the selection restore under one savepoint, so a refused place leaves the documents, the selection and the undo history as they were. It reads the copy's id from the command's own result, so ids above 2^53 return the copy. A path inside a compound path throws an error instead of copying the whole compound path. - An edit restores a mixed selection (direct-selected anchors and whole objects) in its original order with one select.anchorsMany. - Assigning the selection clears a Layers panel target. - A call on an inactive document switches back even when the selection restore fails. - documents.add with a grid by column passes the row count to file.new, which takes a new artboardLayout.rows key: 5 artboards in 4 rows give columns of 4 and 1. A preset keeps the rows until columns without rows, or another layout, is given, and New Document drops them when Columns or the layout changes. - A held page item stays the same object when its class changes in the same family (a placed image that is embedded becomes a RasterItem). - A waiting class member's answer is read as a class instance, and a class constructor called with new cannot wait. Docs: docs/mcp.md (DocumentPreset, duplicate, file.new rows), docs/gaps.md (G6).