updating text_svg to perhaps contain the handle

This commit is contained in:
Chris Cochrun 2025-05-05 10:37:51 -05:00
parent 1a2ff0a4bc
commit b95e76eff4
3 changed files with 29 additions and 25 deletions

View file

@ -24,6 +24,7 @@ pub struct TextSvg {
stroke: Option<Stroke>,
fill: Color,
alignment: TextAlignment,
handle: Option<Handle>,
}
impl Hash for TextSvg {
@ -173,6 +174,8 @@ impl TextSvg {
}
}
pub fn build(self)
pub fn fill(mut self, color: impl Into<Color>) -> Self {
self.fill = color.into();
self