19 lines
444 B
JavaScript
19 lines
444 B
JavaScript
var Class = require('../../core/class');
|
|
var Container = require('../../dom/container');
|
|
var Node = require('./node');
|
|
var DOM = require('./dom');
|
|
|
|
module.exports = Class(Node, Container, {
|
|
|
|
element_initialize: Node.prototype.initialize,
|
|
|
|
initialize: function(width, height){
|
|
this.element_initialize('g');
|
|
this.width = width;
|
|
this.height = height;
|
|
this.defs = DOM.createElement('defs');
|
|
this.element.appendChild(this.defs);
|
|
}
|
|
|
|
});
|