[][src]Crate mksvg

mksvg

mksvg is a crate designed for the simple creation of svg files. the "SvgWrite" trait, provides writing methods for the various svg shapes. the "SvgW" implements it, and can be created with anything that implements std::io::Write

The "page" mod provides methods for creating pages laid out with "Cards", that is anything that implements the "Card" trait.

the "text" mod provides some wrapping utilities for printing multiple lines of text in svg

Re-exports

pub use crate::args::Args;
pub use crate::args::SvgArg;
pub use crate::path::PathD;
pub use crate::tag::Tag;
pub use crate::text::wrap;
pub use crate::text::Text;
pub use crate::write::SvgFmt;
pub use crate::write::SvgIO;
pub use crate::write::SvgWrite;

Modules

args

The aim of the args method is to make a list of svg arguments easy to compose

err
iter
page
path

path exists to make paths much easier to write svg paths while you can make the path anywey you like and send that as the argument, it may be simpler to create it like below:

tag
text

A utility for wrapping text, and allowing users to insert new lines fromconfig files etc. This primarily exists to enable the text_lines method in "write.rs" to print as desired.

unit
write