mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 11:07:01 -06:00
The segment menu in Edit Points offered only Straight Segment and Curved Segment. It now also has Add Point, which adds a point where the right click was, Delete Segment, which removes the segment from a closed outline so that the outline opens there (grayed out on an open outline), and Open Path, which opens the outline at the segment's start point (Close Path on an open outline). `shape.deleteSegment` does the deletion for the CLI and MCP. The place on a segment that a click picks was found only in steps of 1/32 of the segment, so Add Point and Ctrl-click could add the point as far as 1/64 of a straight segment's length from the pointer. It is now narrowed down after that first pass. Adding or deleting a point now forgets a point type remembered for handle drags, as opening and closing the outline already did. `shape.addPoint` on the first point of an open outline no longer splits the closing edge of another outline later in the same path.