This module contains helper functions for constructing Dom.Element
records with the SVG namespace designation. Use these functions for any SVG
tags in your DOM.
These constructors wrap VirtualDom.node, with the same pattern as the
functions in the Dom.Node module
Construct a node with internal text in the SVG namespace
Construct a node in the SVG namespace that contains other nodes
Construct an element record in the SVG namespace, with the tag given as a
string argument; same pattern as Dom.Element.leaf
"circle"
|> Dom.Svg.elementWrap a list of SVG nodes in an SVG container element; the first argument gives the tag, and the second argument gives a list of child nodes
myPolygonNodes
|> Dom.Svg.wrapNodes "g"
Construct a leaf node in the SVG namespace