linebender / resvg

An SVG rendering library.
Apache License 2.0
2.85k stars 228 forks source link

Create your own usvg::Tree #713

Closed biojet1 closed 9 months ago

biojet1 commented 9 months ago

In the new build #712
You cant crate your own usvg::Tree now. Everything is private. You have to use _usvg::Tree::fromxmltree. Is there a way to create your own usvg::Tree ?

LaurenzV commented 9 months ago

See here: https://github.com/RazrFalcon/resvg/issues/710

RazrFalcon commented 9 months ago

Nope. That's by design.

biojet1 commented 9 months ago

find . -type f -name '*.rs' -exec sed -i 's/pub(crate) /pub /g' {} \;