mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
path.curvatureEdit, path.removeAnchor, path.convertAnchor, path.reshapeSegment, path.split, path.setHandle and path.insertAnchor read subpath as an unsigned integer and fell back to 0 for any other value. A subpath of 1.5, -1 or "1" edited subpath 0 and the command reported success. path.split read anchor and segment with as_u64 too and treated any other value as absent, so a bad anchor beside a good segment split at the segment. These commands now refuse a subpath that is not a whole number of 0 or more with "missing integer `subpath`", the error path.curvatureEdit, path.removeAnchor, path.convertAnchor and path.reshapeSegment already give for a bad anchor or segment, and path.split refuses such an anchor or segment too. Without a subpath, or with null, they edit subpath 0 as before. The document and the undo history stay as they were after each error. The params text of the six commands that listed subpath as required now marks it optional. Docs: docs/mcp.md, docs/target-app-parity.md.