summaryrefslogtreecommitdiffstats
path: root/src/path.js
blob: ab5221a904600338d42d346646c6c4559f216f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SVG.Path = function() {
  this.constructor.call(this, SVG.create('path'))
}

// Inherit from SVG.Shape
SVG.Path.prototype = new SVG.Shape

SVG.extend(SVG.Path, {
  // Private: Native plot
  _plot: function(data) {
    return this.attr('d', data || 'M0,0')
  }
  
})