summaryrefslogtreecommitdiffstats
path: root/src/path.js
blob: c064a917ea84b4614b2aaed56e3d09651f606eb4 (plain)
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;
};