update the dependencies

This commit is contained in:
Franz Dietrich 2026-05-22 15:13:22 +02:00
parent 106dd79677
commit 5e0e0e5be3
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
macroquad = "0.4"
tween = "2.1.0"
tween = "2.2.0"
lyon = "1.0"
tracing = { version = "0.1", features = [
"log",
@ -25,5 +25,5 @@ chrono = "0.4"
svg = ["dep:svg"]
[dependencies.svg]
version = "0.13"
version = "0.18"
optional = true

View File

@ -180,11 +180,10 @@ pub mod svg_export {
&mut min_x, &mut max_x, &mut min_y, &mut max_y, position.x,
position.y,
);
let txt = SvgText::new()
let txt = SvgText::new(text.clone())
.set("x", position.x)
.set("y", position.y)
.set("fill", color_to_svg(*color))
.add(svg::node::Text::new(text.clone()));
.set("fill", color_to_svg(*color));
doc = doc.add(txt);
}
}