Implement svg layer structure (#59)

* Add folder struct

* Add file system like structure to interface with svgs

* Add primitive undo functionality

* Restructure layer system
This commit is contained in:
TrueDoctor
2021-04-12 00:57:39 +02:00
committed by Keavon Chambers
parent b19a9ab6fd
commit 6511f5a628
8 changed files with 245 additions and 31 deletions
+23 -2
View File
@@ -1,4 +1,25 @@
use crate::LayerId;
pub enum Operation {
AddCircle { cx: f64, cy: f64, r: f64 },
AddRect { x0: f64, y0: f64, x1: f64, y1: f64 },
AddCircle {
path: Vec<LayerId>,
insert_index: isize,
cx: f64,
cy: f64,
r: f64,
},
AddRect {
path: Vec<LayerId>,
insert_index: isize,
x0: f64,
y0: f64,
x1: f64,
y1: f64,
},
DeleteLayer {
path: Vec<LayerId>,
},
AddFolder {
path: Vec<LayerId>,
},
}