mod arrow;
mod attrs;
mod axis;
mod circle;
mod grid;
mod path;
mod properties;
mod rect;
mod text;
pub use self::arrow::{arrow_iter, vector_iter};
pub use self::attrs::{Alignment, ArrowAttrs, LineAttrs, ShapeAttrs, TextAttrs};
pub use self::axis::{
AxisOptions, axis_bottom_iter, axis_left_iter, axis_right_iter, axis_top_iter,
};
pub use self::circle::circle_iter;
pub use self::grid::{grid_horizontal_iter, grid_vertical_iter};
pub use self::path::{Curve, PathCommand, area_iter, path_iter};
pub use self::properties::{
ArrowProperties, CircleProperties, LineProperties, RectProperties, TextProperties,
};
pub use self::rect::rect_iter;
pub use self::text::text_iter;
enum Orientation {
Flip,
Same,
}
impl Orientation {
#[inline]
fn apply(&self, x: f32, y: f32) -> [f32; 2] {
match self {
Orientation::Same => [x, y],
Orientation::Flip => [y, x],
}
}
}