svg-create-element
create an svg element
example
var createElement = ;var svg = ;svg;documentbody;
methods
var createElement =
var elem = createElement(name, attr)
Create a new svg dom element elem
named by the string name
.
Optionally you can set attributes on the newly-created element by supplying
attr
mappings. Camel-cased attr
keys will automatically be converted to
hypthenated names.
install
With npm do:
npm install svg-create-element
license
MIT