Bump resvg/usvg/tiny-skia dependencies

This commit is contained in:
Simon Hausmann 2022-11-01 10:44:33 +01:00
parent cecdb330f8
commit 65e4e7bf15
4 changed files with 11 additions and 12 deletions

View file

@ -55,9 +55,9 @@ fontdue = { version = "0.7.1" }
# for processing and embedding the rendered image (texture)
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
image = "0.24"
tiny-skia = "0.6.1"
resvg = "0.23"
usvg = "0.23"
tiny-skia = "0.8.2"
resvg = "0.25"
usvg = "0.25"
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32")))'.dependencies]
libc = { version = "0.2" }

View file

@ -282,7 +282,7 @@ fn load_image(
))
})?;
// TODO: ideally we should find the size used for that `Image`
let original_size = tree.svg_node().size;
let original_size = tree.size;
let width = original_size.width() * scale_factor;
let height = original_size.height() * scale_factor;