aboutsummaryrefslogtreecommitdiffstats
path: root/src/nested.js
blob: d42abf9c686a5d8abe89003d73272a9fbbd5588a (plain)
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)
  }
  
})