From c6ac1246c271c66733366086f467e381c3fd65a8 Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 16 Dec 2012 16:15:47 +0100 Subject: Implemented core library --- src/path.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/path.js (limited to 'src/path.js') diff --git a/src/path.js b/src/path.js new file mode 100644 index 0000000..c064a91 --- /dev/null +++ b/src/path.js @@ -0,0 +1,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; +}; \ No newline at end of file -- cgit v1.2.3