mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-22 09:26:33 +11:00
improve code formatting
This commit is contained in:
parent
5aaf288d1c
commit
6c4194848f
1 changed files with 4 additions and 9 deletions
|
@ -64,15 +64,10 @@ pub fn render_tree_with<F: FnMut(&mut SceneBuilder, &usvg::Node) -> Result<(), E
|
|||
mut on_err: F,
|
||||
) -> Result<(), E> {
|
||||
for elt in svg.root.descendants() {
|
||||
let transform = elt.abs_transform();
|
||||
let transform = Affine::new([
|
||||
transform.a,
|
||||
transform.b,
|
||||
transform.c,
|
||||
transform.d,
|
||||
transform.e,
|
||||
transform.f,
|
||||
]);
|
||||
let transform = {
|
||||
let usvg::Transform { a, b, c, d, e, f } = elt.abs_transform();
|
||||
Affine::new([a, b, c, d, e, f])
|
||||
};
|
||||
match &*elt.borrow() {
|
||||
usvg::NodeKind::Group(_) => {}
|
||||
usvg::NodeKind::Path(path) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue