blob: 41b157f7020a57d8374914cf7f6095a30eee5d8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
SVG.Doc = function Doc(e) {
this.constructor.call(this, SVG.create('svg'));
this.attr('xmlns', SVG.ns);
this.attr('version', '1.1');
this.attr('xlink', SVG.xlink, SVG.ns);
if (typeof e == 'string')
e = document.getElementById(e);
e.appendChild(this.node);
};
// inherit from SVG.Element
SVG.Doc.prototype = new SVG.Element();
// include the container object
SVG.Utils.merge(SVG.Doc, SVG.Container);
|