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