[−][src]Function sauron_core::svg::svg_element
pub fn svg_element<MSG>(
tag: &'static str,
attrs: Vec<Attribute<MSG>>,
children: Vec<Node<MSG>>
) -> Node<MSG>
creates an svg element with the tag, attributes and children. Example:
ⓘThis example is not tested
svg_element("circle", vec![cx(1.0), cy(1.0), r(1.0)], vec![]);