GT2/GT2-iOS/node_modules/art/modes/canvas/_image.js

21 lines
436 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
var Class = require('../../core/class');
var Base = require('./base');
module.exports = Class(Base, {
base_initialize: Base.prototype.initialize,
initialize: function(src, width, height){
this.base_initialize();
if (arguments.length == 3) this.draw.apply(this, arguments);
},
draw: function(src, width, height){
this.width = width;
this.height = height;
return this.invalidate();
},
renderTo: function(){ }
});