mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 07:45:38 +00:00
Closing a path by dragging on its first anchor made that anchor smooth with symmetric handles, so the first segment bent along with the closing one. The drag now sets the first anchor's incoming handle to the mirror of the pointer. Its outgoing handle stays where it is on a corner, so the first segment keeps its shape, and on a smooth anchor it turns to stay in line at its own length. Alt makes the anchor a corner and leaves the outgoing handle where it was when Alt went down. A click on the first anchor closes the path with the incoming handle retracted and the anchor a corner, so the closing segment comes in straight. The Smart Pen's closing drag follows the same rule. path.close's `in` now places the handle as path.setHandle does, and a new `out` param places the outgoing handle and makes the anchor a corner.