mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 10:53:35 +01:00
While an arc is drawn, by a drag or as the piece the next click adds, the Quick Pen tool shows a protractor around the arc's center: a tick every 15° from where the arc starts, a longer one every 90°, and one where it ends. The piece the next click adds shows its protractor only while Enable Rubber Band for the Pen tool shows that piece. With Smart Guides on, the end of a continuous arc snaps onto the nearest tick of its protractor, on the same circle, when the tick lies within the snapping tolerance of the pointer, no other Smart Guide snaps the point, and neither Snap to Grid nor Snap to Pixel snaps drawn points. A sharp-corner arc sweeps its arc size, so its end does not snap. Shift does not constrain Quick Pen points, so it does not change the snapping. The protractor, its 15° step and the snapping are VectorCraft's own behavior. The Smart Guides targets now also report whether a point landed on one of them (`Targets::snap_hit`), so a target whose label or line is hidden still takes precedence over a tick. Adds tests for the arc's circle, the tick snapping by drag and by click and its precedence, and the protractor during a drag and while hovering. Also adds tests of existing Quick Pen behavior: a point snapping to a Smart Guide, and the distance label shown while hovering.