An Svg Printer for Rust
Breaking change -- Now uses anyhow and thiserror instead of failure and failure_derive Breaking change -- Now passes through error type which has now been attached to the SvgWrite Trait
Major change, all tags now need to be added using the Tag::tagname feature. This means that SvgWrite is no longer reliant on Generics and can be a Dynamic type.
To wrap a tag use
```rust let mut innerwriter = Tag::g().transform(3,4).wrap(outerwriter); Tag::rect(5,6,100,100).write(&mut inner_writer);
when
innerwriteris dropped,
outerwriter``` will be writable again, ensuring the structure of the Svg is correct
The Page drawing library has now also changed to use a Builder Pattern.
eg ```rust
let files = page::Pages::build(cards).pagesize(400,500).gridsize(4,4).writepages("base/path"); ```
Added Two new major types. The Tag, and Text, these can now be build and finished with a write on an SvgWrite eg: Tag::rect(x,y,w,h).fill("red").write<S:SvgWrite>(s:S);
Text also has a special method called bg which adds a a copy of the item behind it, to allow for wide strokes that don't cover the inside.
end
or g_end
as drop will write the close.