mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Adding an anchor with the Pen or Add Anchor Point tool, or removing one with the Pen, Delete Anchor Point, Remove Anchor Points or the Delete key with Delete Removes Anchor Points and Keeps Paths Joined on, turned a path with rounded Live Corners into a plain path: the arcs were baked into anchors and the corner widgets disappeared. path.insertAnchor now adds the anchor on the matching side of the uncut outline, at the point the drawn segment has at t, and cuts the corners again at their radii and kinds. path.removeAnchor and path.removeAnchors remove the uncut corner each removed anchor belongs to, so removing either end of a corner's arc removes that corner and the others stay live; a path left with no corner is removed. A relative radius keeps the length it is drawn at, up to the corner's new largest radius. Selected anchors and segments follow their corners, a split selected segment stays selected as its two halves with the new anchor, and Remove Anchor Points selects the first anchor of the next corner. An anchor added on a corner's arc still makes the path plain, and the status bar now says the corners were expanded. Docs: docs/mcp.md, the params text of path.insertAnchor, path.removeAnchor and path.removeAnchors, and the Live Corners entry in docs/target-app-parity.md.