Plato on Github
Report Home
src/animation.js
Maintainability
133.81
Lines of code
39
Difficulty
11.67
Estimated Errors
0.21
Function weight
By Complexity
By SLOC
define('lyria/animation', ['mixer', 'eventmap'], function(mixer, EventMap) { var Animation = (function() { var Animation = function($elem, options) { this.$elem = $elem; this.frame.width = 0 || options.width; this.frame.height = 0 || options.height; this.frame.current = 0; this.speed = 1; this.sprite.width; this.sprite.height; this.sprite.image = new Image(); // Mix-in eventmap mixer([this, Animation.prototype], new EventMap()); this.on('play', function() { }); this.on('pause', function() { }); this.on('reset', function() { }); this.on('stop', function() { }); }; return Animation; })(); return Animation; });