GT2/GT2-Android/node_modules/art/modes/svg/group.js

19 lines
444 B
JavaScript
Raw Normal View History

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