Implement Freehand Tool (#503)

* Implement freehand tool

* Address review comments

* Consistent ordering of tools

* Add hotkey N for freehand tool

* Tweak freehand tool hint
This commit is contained in:
Paul Kupper
2022-01-30 11:39:49 +01:00
committed by Keavon Chambers
parent dae79caf15
commit 0da8dabba9
13 changed files with 259 additions and 23 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ impl Document {
Some([vec![DocumentChanged, CreatedLayer { path: path.clone() }]].concat())
}
Operation::AddPen {
Operation::AddPolyline {
path,
insert_index,
points,
+1 -1
View File
@@ -45,7 +45,7 @@ pub enum Operation {
transform: [f64; 6],
style: style::PathStyle,
},
AddPen {
AddPolyline {
path: Vec<LayerId>,
transform: [f64; 6],
insert_index: isize,