summaryrefslogtreecommitdiffstats
path: root/src/path.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.js')
-rw-r--r--src/path.js13
1 files changed, 13 insertions, 0 deletions
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