pub fn apply(self, dom: DomBuilder<SvgElement>) -> DomBuilder<SvgElement> {
        match self {
            ShapeStyleVar::Static(shape_style) => shape_style.apply(dom),
            ShapeStyleVar::Dynamic(shape_style_signal) => dom.attr_signal(
                "class",
                shape_style_signal.map(|shape_style| shape_style.classes_string()),
            ),
        }
    }
//must consume self because of the signal
must consume self because of the signal
must consume self because of the signal
pub fn apply(self, dom: DomBuilder<SvgElement>) -> DomBuilder<SvgElement> {
        match self {
            ShapeStyleVar::Static(shape_style) => shape_style.apply(dom),
            ShapeStyleVar::Dynamic(shape_style_signal) => dom.attr_signal(
                "class",
                shape_style_signal.map(|shape_style| shape_style.classes_string()),
            ),
        }
    }
pub fn apply ( self , dom : DomBuilder < SvgElement > ) -> DomBuilder < SvgElement > { match self { ShapeStyleVar :: Static ( shape_style ) => shape_style . apply ( dom ) , ShapeStyleVar :: Dynamic ( shape_style_signal ) => dom . attr_signal ( " " , shape_style_signal . map ( | shape_style | shape_style . classes_string ( ) ) , ) , } }
must consume self because of the signal
must consume self because of the signal
self
dom
DomBuilder<SvgElement>
self
dom
DomBuilder<SvgElement>