V(svg)
Return a Vectorizer object. If svg
parameter is a string, construct SVG DOM elements from the string markup. If svg
is an SVG DOM element, just wrap that element by the Vectorizer object and return it. You can think of this function as of the jQuery $ function except that the V
function does not accept selectors. The Vectorizer object contains a reference to the original SVG DOM element in its node
property.
var vel = V('<g><rect/><text/></g>');
console.log(vel.node);