mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 18:46:57 -06:00
New cmd::points with shape.editPoints (enter/leave; a preset becomes a freeform in shape-local points), shape.points (vertices in slide points), shape.movePoint, shape.addPoint (splits a line, quadratic or cubic segment) and shape.deletePoint. After each change the box is fitted around the outline and kept in place on the slide, rotation and flips included. Closing edges are made explicit so they take points too. On the canvas the edited shape shows its vertices as handles: drag one (one undo step per drag), Cmd/Ctrl-click a vertex to delete it or the outline to add one; Escape, Enter or a click elsewhere leaves Edit Points. Shape Format ▸ Edit Shape gets an Edit Points item. Not yet: smooth/straight/corner point types and Bézier control handles. Co-authored-by: Cursor <cursoragent@cursor.com>