Skip to main content

smooth_frame/
lib.rs

1//! Sketch-like smooth corner / smooth frame 的 cubic Bezier 几何库。
2//!
3//! 低层类型 [`SmoothCorner`] 支持任意凸角;[`SmoothFrame`] 负责闭合凸多边形;
4//! [`SmoothRect`] 只是矩形便捷封装。
5
6#![warn(missing_docs)]
7
8mod errors;
9mod input;
10mod output;
11mod process;
12mod types;
13mod utils;
14
15pub use errors::SmoothError;
16pub use input::corner::SmoothCorner;
17pub use input::frame::SmoothFrame;
18pub use input::rect::SmoothRect;
19pub use output::format::{PathFormatter, SvgPathFormat};
20pub use output::path::{CubicSegment, PathCommand, SmoothPath};
21pub use process::corner::SmoothCornerGeometry;
22pub use types::geometry::{Point, Vector};