Add Path tool support for Ctrl-dragging to pull out zero-length handles with angle locking (#2620)

* implement check-drag and angle-lock

* track bool

* flip-smooth-sharp

* fixed bugs

* fixed flip-smooth jump bug and random angle locking bug

* ctrl-alt 90 case

* aligned flip-smooth sharp and fixed arbitrary handle-length when flipped

* code-review change

* 0.5 instead of 0.8

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0SlowPoke0
2025-05-17 13:23:11 -07:00
committed by GitHub
co-authored by Keavon Chambers
parent 54b4ef145c
commit 6e7f218068
4 changed files with 114 additions and 35 deletions
+1
View File
@@ -102,6 +102,7 @@ pub const HIDE_HANDLE_DISTANCE: f64 = 3.;
pub const HANDLE_ROTATE_SNAP_ANGLE: f64 = 15.;
pub const SEGMENT_INSERTION_DISTANCE: f64 = 7.5;
pub const SEGMENT_OVERLAY_SIZE: f64 = 10.;
pub const HANDLE_LENGTH_FACTOR: f64 = 0.5;
// PEN TOOL
pub const CREATE_CURVE_THRESHOLD: f64 = 5.;