From 5e0e0e5be3b2b2a3f1d6dbd015be1fc26fbc5ec3 Mon Sep 17 00:00:00 2001 From: Franz Dietrich Date: Fri, 22 May 2026 15:13:22 +0200 Subject: [PATCH] update the dependencies --- turtle-lib/Cargo.toml | 4 ++-- turtle-lib/src/export_svg.rs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/turtle-lib/Cargo.toml b/turtle-lib/Cargo.toml index 41f7110..d096df5 100644 --- a/turtle-lib/Cargo.toml +++ b/turtle-lib/Cargo.toml @@ -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 diff --git a/turtle-lib/src/export_svg.rs b/turtle-lib/src/export_svg.rs index d2c0a3a..e64f504 100644 --- a/turtle-lib/src/export_svg.rs +++ b/turtle-lib/src/export_svg.rs @@ -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); } }