|
|
@ -1,8 +1,7 @@
|
|
|
|
use strum_macros::{Display, EnumString, IntoStaticStr};
|
|
|
|
use strum_macros::{Display, EnumString, IntoStaticStr};
|
|
|
|
|
|
|
|
|
|
|
|
/// https://oreillymedia.github.io/Using_SVG/guide/units.html
|
|
|
|
/// https://oreillymedia.github.io/Using_SVG/guide/units.html
|
|
|
|
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
|
|
|
#[derive(Clone, Copy, PartialEq, Eq, Debug, Display, EnumString, IntoStaticStr)]
|
|
|
|
#[derive(Display, EnumString, IntoStaticStr)]
|
|
|
|
|
|
|
|
pub enum SVGUnit {
|
|
|
|
pub enum SVGUnit {
|
|
|
|
/// Pixel units, directly equivalent to SVG user units.
|
|
|
|
/// Pixel units, directly equivalent to SVG user units.
|
|
|
|
#[strum(serialize = "px")]
|
|
|
|
#[strum(serialize = "px")]
|
|
|
@ -36,4 +35,4 @@ impl SVGUnit {
|
|
|
|
Pica => 16.0,
|
|
|
|
Pica => 16.0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|