mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 23:38:11 +08:00
Implement extending, joining, and creating new subpaths with the Spline tool (#2203)
* visualize spline end points using overlays * implement for spline tool to extend path by draging end points * allow holding Shift to begin drawing a new spline subpath in the same layer * implement spline tool to join two endpoints * fix naming * refactor spline tool * impl spline tool snapping and overlays * fix joining path and refactor * improve join_path comment * fix snapping overlays flickering by ignoring snapping in current layer * fix inserting single point on aborting spline tool * add snapping for endpoint even when regular snapping is disabled * fix extending * fix inserting new point instead of extending and Add hint for Shift to append * fix grammatical errors and code style * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
33ac141fb8
commit
f7b7f6b9f4
@@ -71,6 +71,9 @@ pub const HANDLE_ROTATE_SNAP_ANGLE: f64 = 15.;
|
||||
// Pen tool
|
||||
pub const CREATE_CURVE_THRESHOLD: f64 = 5.;
|
||||
|
||||
// Spline tool
|
||||
pub const PATH_JOIN_THRESHOLD: f64 = 5.;
|
||||
|
||||
// Line tool
|
||||
pub const LINE_ROTATE_SNAP_ANGLE: f64 = 15.;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user