Files
CropCompass/node_modules/svg.js/src/nested.js
T

19 lines
362 B
JavaScript

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)
}
}
})