Crate mksvg[][src]

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 write::SvgW;
pub use write::SvgWrite;
pub use args::Args;
pub use args::SvgArg;
pub use page::Card;

Modules

args

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

page
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.

write