1mod configuration;
2mod error;
3mod geometry;
4mod patterns;
5mod renderer;
6mod shapes;
7mod smart_positioning;
8mod stage_type;
9mod utils;
10
11pub use configuration::{
12 Colors, Configuration, Fonts, LineHeights, Opacity, Options, Sizes, Theme,
13};
14pub use renderer::{render_to_png, render_to_surface, render_to_svg};
15pub use stage_type::StageType;
16
17#[cfg(test)]
18mod tests {
19 use super::*;
20
21 #[test]
22 fn test_default_configuration() {
23 let configuration = Configuration::default();
24 assert!(configuration.options.show_background);
25 assert!(configuration.options.smart_label_positioning);
26 }
27
28 #[test]
29 fn test_default_stage_type() {
30 let stage = StageType::default();
31 assert_eq!(stage, StageType::Activities);
32 }
33}