1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#![deny(clippy::all)]
#![feature(is_sorted)]
#![feature(test)]
pub mod buffer;
mod map;
mod point;
pub mod util;
pub use buffer::{
fragment, fragment::Fragment, Cell, CellBuffer, FragmentBuffer, Property, Settings, Signal,
};
pub use point::Point;
pub fn to_svg(ascii: &str) -> String {
let cb = CellBuffer::from(ascii);
cb.get_node().to_string()
}
pub fn to_svg_with_settings(ascii: &str, settings: &Settings) -> String {
let cb = CellBuffer::from(ascii);
let (node, _w, _h) = cb.get_node_with_size(settings);
node.to_string()
}