mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +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:
@@ -270,7 +270,7 @@ pub fn input_mappings() -> Mapping {
|
||||
//
|
||||
// SplineToolMessage
|
||||
entry!(PointerMove; action_dispatch=SplineToolMessage::PointerMove),
|
||||
entry!(KeyDown(MouseLeft); action_dispatch=SplineToolMessage::DragStart),
|
||||
entry!(KeyDown(MouseLeft); action_dispatch=SplineToolMessage::DragStart { append_to_selected: Shift }),
|
||||
entry!(KeyUp(MouseLeft); action_dispatch=SplineToolMessage::DragStop),
|
||||
entry!(KeyDown(MouseRight); action_dispatch=SplineToolMessage::Confirm),
|
||||
entry!(KeyDown(Escape); action_dispatch=SplineToolMessage::Confirm),
|
||||
|
||||
Reference in New Issue
Block a user