use super::{
path::{PathBase,Path,SubPathIterator}
};
pub enum LineJoin {
ROUND,
BEVEL,
MITER(f32) }
pub enum LineCap {
ROUND,
BUTT,
SQUARE
}
pub fn stroke_path(path: &Path, width_x: f32, width_y: f32, join: LineJoin, cap: LineCap) -> Path {
let width = width_x.max(width_y);
if width > 0.0 {
let (width_weight_x, width_weight_y) = if width_x > width_y {
(1.0, width_y.max(0.0) / width_x)
} else {
(width_x.max(0.0) / width_y, 1.0)
};
let stroke_path_segments = vec![];
for sub_path in SubPathIterator::new(path.segments()) {
}
Path::new(stroke_path_segments)
} else {
Path::default()
}
}
#[cfg(test)]
mod tests {
}