summaryrefslogtreecommitdiffstats
path: root/src/nested.js
blob: cd3a0e091ec241956ab4d83396d83d8eb30d2f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SVG.Nested = SVG.invent({
  // Initialize node
  create: function() {
    this.constructor.call(this, SVG.create('svg'))
    
    this.style('overflow', 'visible')
  }

  // Inherit from
, inherit: SVG.Container
  
  // Add parent method
, construct: {
    // Create nested svg document
  nested: function() {
      return this.put(new SVG.Nested)
    }
  }
})