aboutsummaryrefslogtreecommitdiffstats
path: root/src/document.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.js')
-rw-r--r--src/document.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js
index e69de29..a510c44 100644
--- a/src/document.js
+++ b/src/document.js
@@ -0,0 +1,16 @@
+
+SVG.Document = function Document(c) {
+ this.constructor.call(this, SVG.createElement('svg'));
+
+ this.setAttribute('xmlns', SVG.namespace);
+ this.setAttribute('version', '1.1');
+ this.setAttribute('xlink', 'http://www.w3.org/1999/xlink', SVG.namespace);
+
+ document.getElementById(c).appendChild(this.svgElement);
+};
+
+// inherit from SVG.Element
+SVG.Document.prototype = new SVG.Element();
+
+// include the container object
+SVG.Document.include(SVG.Container); \ No newline at end of file