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 19:08:44 +01:00
committed by Keavon Chambers
parent 0ca4b9fe7c
commit 90df412aab
9 changed files with 324 additions and 95 deletions

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>,
},