use serde::ser::{Serialize, Serializer, SerializeStruct};
pub enum Path {
M{abs: bool, x: f64, y: f64}, L{abs: bool, x: f64, y: f64}, H{abs: bool, y: f64}, V{abs: bool, x: f64}, A{abs: bool, rx: f64, ry: f64, x_axis_rotation: f64, large_arc_flag: f64, sweep_flag: f64, x: f64, y: f64,}, C{abs: bool, x1: f64, y1: f64, x2: f64, y2: f64, x: f64, y: f64}, S{abs: bool, x2: f64, y2: f64, x: f64, y: f64}, Q{abs: bool, x1: f64, y1: f64, x: f64, y: f64}, T{abs: bool, x1: f64, y1: f64, x: f64, y: f64}, Z{abs: bool}, }
pub struct Polygon {
pub commands: Vec<Path>,
}
impl Polygon {
pub fn new(commands: Vec<Path>) -> Self {
Self {
commands
}
}
}