aboutsummaryrefslogtreecommitdiffstats
path: root/src/rect.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/rect.js')
-rw-r--r--src/rect.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rect.js b/src/rect.js
new file mode 100644
index 0000000..b08d68e
--- /dev/null
+++ b/src/rect.js
@@ -0,0 +1,7 @@
+
+SVG.Rect = function Rect() {
+ this.constructor.call(this, SVG.createElement('rect'));
+};
+
+// inherit from SVG.Shape
+SVG.Rect.prototype = new SVG.Shape(); \ No newline at end of file