mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
isRunning function for Sprite object
This commit is contained in:
@@ -136,6 +136,15 @@
|
||||
this.anim.stop();
|
||||
clearInterval(this.interval);
|
||||
},
|
||||
/**
|
||||
* determine if animation of sprite is running or not. returns true or false
|
||||
* @method
|
||||
* @memberof Kinetic.Animation.prototype
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
isRunning: function() {
|
||||
return this.anim.isRunning();
|
||||
},
|
||||
_updateIndex: function() {
|
||||
var index = this.frameIndex(),
|
||||
animation = this.getAnimation(),
|
||||
|
||||
Reference in New Issue
Block a user