mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-22 17:36: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,
|
mut on_err: F,
|
||||||
) -> Result<(), E> {
|
) -> Result<(), E> {
|
||||||
for elt in svg.root.descendants() {
|
for elt in svg.root.descendants() {
|
||||||
let transform = elt.abs_transform();
|
let transform = {
|
||||||
let transform = Affine::new([
|
let usvg::Transform { a, b, c, d, e, f } = elt.abs_transform();
|
||||||
transform.a,
|
Affine::new([a, b, c, d, e, f])
|
||||||
transform.b,
|
};
|
||||||
transform.c,
|
|
||||||
transform.d,
|
|
||||||
transform.e,
|
|
||||||
transform.f,
|
|
||||||
]);
|
|
||||||
match &*elt.borrow() {
|
match &*elt.borrow() {
|
||||||
usvg::NodeKind::Group(_) => {}
|
usvg::NodeKind::Group(_) => {}
|
||||||
usvg::NodeKind::Path(path) => {
|
usvg::NodeKind::Path(path) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue