1 2 3 4 5 6 7 8 9 10 11 12 13
SVG.Path = function Path() { this.constructor.call(this, SVG.createElement('path')); }; // inherit from SVG.Shape SVG.Path.prototype = new SVG.Shape(); // set path data SVG.Path.prototype.data = function(d) { this.setAttribute('d', d); return this; };