/// create an image control from svg
create an image control from svg
create an image control from svg
pub fn svg<MSG>(mut attrs: Vec<Attribute<MSG>>) -> Node<MSG>
where
    MSG: 'static,
{
    let spec_position = find_value(AttribKey::PositionType, &attrs)
        .map(|w| w.as_position_type())
        .flatten();
    attrs.push(style(Style {
        position_type: if let Some(spec_position) = spec_position {
            spec_position
        } else {
            Default::default()
        },
        size: Size {
            width: Dimension::Percent(1.0),
            height: Dimension::Percent(1.0),
        },
        ..Default::default()
    }));
    widget(Widget::Svg, attrs, vec![])
}
pub fn svg < MSG > ( mut attrs : Vec < Attribute < MSG > > ) -> Node < MSG > where MSG : ' static , { let spec_position = find_value ( AttribKey :: PositionType , & attrs ) . map ( | w | w . as_position_type ( ) ) . flatten ( ) ; attrs . push ( style ( Style { position_type : if let Some ( spec_position ) = spec_position { spec_position } else { Default :: default ( ) } , size : Size { width : Dimension :: Percent ( 1.0 ) , height : Dimension :: Percent ( 1.0 ) , } , .. Default :: default ( ) } ) ) ; widget ( Widget :: Svg , attrs , vec ! [ ] ) }
create an image control from svg
create an image control from svg
attrs
Vec<Attribute<MSG>>