aboutsummaryrefslogtreecommitdiffstats
path: root/src/rect.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-16 16:15:47 +0100
committerwout <wout@impinc.co.uk>2012-12-16 16:15:47 +0100
commitc6ac1246c271c66733366086f467e381c3fd65a8 (patch)
tree09ff273e5ffea615ba9555e38a441e5248e37190 /src/rect.js
parent1fc78fe531ded4bc8a1ed5e176774600b897fcb1 (diff)
downloadsvg.js-c6ac1246c271c66733366086f467e381c3fd65a8.tar.gz
svg.js-c6ac1246c271c66733366086f467e381c3fd65a8.zip
Implemented core library
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