mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 02:08:12 +08:00
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:
committed by
Keavon Chambers
parent
b19a9ab6fd
commit
6511f5a628
@@ -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>,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user