pub fn to_piet(&self, offset_matrix: Affine, ctx: &mut PaintCtx) {
        let mut state = SvgRenderer::new(offset_matrix * self.inner_affine());
        // I actually made `SvgRenderer` able to handle a stack of `<defs>`, but I'm gonna see if
        // resvg always puts them at the top.
        let root = self.tree.root();
        for n in root.children() {
            state.render_node(&n, ctx);
        }
    }
/// Convert SvgData into Piet draw instructions
Convert SvgData into Piet draw instructions
Convert SvgData into Piet draw instructions
pub fn to_piet(&self, offset_matrix: Affine, ctx: &mut PaintCtx) {
        let mut state = SvgRenderer::new(offset_matrix * self.inner_affine());
        // I actually made `SvgRenderer` able to handle a stack of `<defs>`, but I'm gonna see if
        // resvg always puts them at the top.
        let root = self.tree.root();
        for n in root.children() {
            state.render_node(&n, ctx);
        }
    }
pub fn to_piet ( & self , offset_matrix : Affine , ctx : & mut PaintCtx ) { let mut state = SvgRenderer :: new ( offset_matrix * self . inner_affine ( ) ) ; // I actually made `SvgRenderer` able to handle a stack of `<defs>`, but I'm gonna see if // resvg always puts them at the top. let root = self . tree . root ( ) ; for n in root . children ( ) { state . render_node ( & n , ctx ) ; } }
Convert SvgData into Piet draw instructions
Convert SvgData into Piet draw instructions
&self
offset_matrix
Affine
ctx
&mut PaintCtx
&self
offset_matrix
Affine
ctx
&mut PaintCtx