svg_nd/lib.rs
1/*a Copyright
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15@file lib.rs
16@brief Generate SVG output
17 */
18
19//a Imports
20use indent_display::IndentedOptions;
21pub struct IndentOpt();
22impl<'a> IndentedOptions<'a> for IndentOpt {}
23
24/// The [Point] type is a 2D point of f64's
25pub type Point = geo_nd::FArray<f64, 2>;
26
27/// The [Bezier] type is a Bezier curve of [Point]s
28pub type Bezier = bezier_nd::Bezier<f64, Point, 2>;
29
30mod bbox;
31mod bezier_path;
32mod color_database;
33mod polygon;
34mod range;
35mod transform;
36// mod xml;
37
38pub use bbox::BBox;
39pub use bezier_path::BezierPath;
40pub use color_database::{Color, ColorDatabase};
41pub use polygon::Polygon;
42pub use range::Range;
43pub use transform::Transform;
44// mod generate_svg;
45
46mod svg;
47mod svg_colors;
48mod svg_element;
49mod svg_error;
50mod svg_event;
51
52// pub use generate_svg::{GenerateSvg, GenerateSvgElement};
53pub use svg::{Svg, SvgConfig};
54pub use svg_colors::SvgColorDatabase;
55pub use svg_element::SvgElement;
56pub use svg_error::SvgError;
57pub use svg_event::ElementIter;