mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Update usvg and resvg
This commit is contained in:
@@ -59,9 +59,9 @@ document-features = { version = "0.2", optional = true }
|
||||
image = { version = "0.24", optional = true, default-features = false }
|
||||
|
||||
# svg feature
|
||||
resvg = { version = "0.22", optional = true }
|
||||
resvg = { version = "0.23", optional = true }
|
||||
tiny-skia = { version = "0.6", optional = true }
|
||||
usvg = { version = "0.22", optional = true }
|
||||
usvg = { version = "0.23", optional = true }
|
||||
|
||||
# feature "serde":
|
||||
serde = { version = "1", features = ["derive"], optional = true }
|
||||
|
||||
@@ -194,7 +194,7 @@ pub fn load_svg_bytes(svg_bytes: &[u8]) -> Result<egui::ColorImage, String> {
|
||||
resvg::render(
|
||||
&rtree,
|
||||
usvg::FitTo::Original,
|
||||
tiny_skia::Transform::default(),
|
||||
Default::default(),
|
||||
pixmap.as_mut(),
|
||||
)
|
||||
.ok_or_else(|| "Failed to render SVG".to_owned())?;
|
||||
|
||||
Reference in New Issue
Block a user