svg-node
Tiny module to create an SVG element.
Usage
createElement(nodeName, [document])
Creates a new SVG element named nodeName
. For example:
var createNode =var svg =var rect =rectrectrectrectrectsvgsvgsvgdocumentbody
If you're working in a weird environment and need to pass in your
own document
object you can do so using the function's second
argument.
License
MIT. See LICENSE.md for details.