use cfg_if::cfg_if;
use crate::geometry::{FSize, ISize};
cfg_if! {
if #[cfg(all(target_pointer_width = "64", any(target_os = "macos", target_os = "ios")))] {
pub type Float = f64;
} else if #[cfg(target_family = "wasm")] {
pub type Float = f64;
} else {
pub type Float = f32;
}
}
pub trait Dimension {
fn size(&self) -> FSize;
fn pixel_size(&self) -> ISize;
}