Add Shape Tool for drawing polygons (#75)

* ⬠ Add polygon drawing tool

* 🔤 Minor fix of variable and function names

*  Remove stroke

* ⌨️ Use N key as polygo tool shortcut.

* ⌨️ Now using key Y for polygons.

* ⌨️ The tooltip for the shortcut is fixed
This commit is contained in:
0HyperCube
2021-04-17 11:08:44 -07:00
committed by GitHub
parent c94c2b3373
commit b30e9ce3ba
9 changed files with 324 additions and 95 deletions
+9
View File
@@ -24,6 +24,15 @@ pub enum Operation {
x1: f64,
y1: f64,
},
AddShape {
path: Vec<LayerId>,
insert_index: isize,
x0: f64,
y0: f64,
x1: f64,
y1: f64,
sides: u8,
},
DeleteLayer {
path: Vec<LayerId>,
},