use crate::LayerId; #[derive(Debug, Clone, PartialEq)] pub enum Operation { AddCircle { path: Vec, insert_index: isize, cx: f64, cy: f64, r: f64, }, AddRect { path: Vec, insert_index: isize, x0: f64, y0: f64, x1: f64, y1: f64, }, AddLine { path: Vec, insert_index: isize, x0: f64, y0: f64, x1: f64, y1: f64, }, AddShape { path: Vec, insert_index: isize, x0: f64, y0: f64, x1: f64, y1: f64, sides: u8, }, DeleteLayer { path: Vec, }, AddFolder { path: Vec, }, MountWorkingFolder { path: Vec, }, DiscardWorkingFolder, ClearWorkingFolder, CommitTransaction, }