update the dependencies
This commit is contained in:
parent
106dd79677
commit
5e0e0e5be3
@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
macroquad = "0.4"
|
macroquad = "0.4"
|
||||||
tween = "2.1.0"
|
tween = "2.2.0"
|
||||||
lyon = "1.0"
|
lyon = "1.0"
|
||||||
tracing = { version = "0.1", features = [
|
tracing = { version = "0.1", features = [
|
||||||
"log",
|
"log",
|
||||||
@ -25,5 +25,5 @@ chrono = "0.4"
|
|||||||
svg = ["dep:svg"]
|
svg = ["dep:svg"]
|
||||||
|
|
||||||
[dependencies.svg]
|
[dependencies.svg]
|
||||||
version = "0.13"
|
version = "0.18"
|
||||||
optional = true
|
optional = true
|
||||||
|
|||||||
@ -180,11 +180,10 @@ pub mod svg_export {
|
|||||||
&mut min_x, &mut max_x, &mut min_y, &mut max_y, position.x,
|
&mut min_x, &mut max_x, &mut min_y, &mut max_y, position.x,
|
||||||
position.y,
|
position.y,
|
||||||
);
|
);
|
||||||
let txt = SvgText::new()
|
let txt = SvgText::new(text.clone())
|
||||||
.set("x", position.x)
|
.set("x", position.x)
|
||||||
.set("y", position.y)
|
.set("y", position.y)
|
||||||
.set("fill", color_to_svg(*color))
|
.set("fill", color_to_svg(*color));
|
||||||
.add(svg::node::Text::new(text.clone()));
|
|
||||||
doc = doc.add(txt);
|
doc = doc.add(txt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user