1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
SVG.Nested = function() { this.constructor.call(this, SVG.create('svg')) this.style('overflow', 'visible') } // Inherit from SVG.Container SVG.Nested.prototype = new SVG.Container // SVG.extend(SVG.Container, { // Create nested svg document nested: function() { return this.put(new SVG.Nested) } })