mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
shape.pointType makes a vertex smooth (handles in line and equal), straight (in line) or corner (independent), turning its segments into curves so it has handles. shape.moveHandle drags a control handle; the other one follows as the point's type says (given, or read from the handles). shape.points also reports each vertex's type. Canvas: clicking a vertex shows its handles, which drag (one undo step per drag) and follow the type chosen for it. Right-click a vertex for Smooth / Straight / Corner Point and Delete Point, or anywhere for Exit Edit Points; a shape's context menu gets Edit Points. The selection box is hidden while points are edited. Co-authored-by: Cursor <cursoragent@cursor.com>