animation improvements

This commit is contained in:
Anton Lavrenov
2016-05-14 21:49:44 +07:00
parent 630f60cdb7
commit e731d0ccfe
5 changed files with 8 additions and 7 deletions

View File

@@ -75,7 +75,7 @@
"no-regex-spaces": 2,
"no-reserved-keys": 0,
"no-restricted-modules": 0,
"no-return-assign": 2,
"no-return-assign": 0,
"no-script-url": 2,
"no-self-compare": 0,
"no-sequences": 2,

View File

@@ -7,7 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- typescript definition in npm package
- node@5.10.1, canvas@1.3.14, jsdom@8.5.0 support
- `Konva.Path` will be filled when it is not closed
- `Animation.start()` will not not immediate sync draw. This should improve performance a little.
## [0.12.4][2016-04-19]

View File

@@ -10331,8 +10331,8 @@
Konva.Animation._animationLoop = function() {
var Anim = Konva.Animation;
if(Anim.animations.length) {
requestAnimFrame(Anim._animationLoop);
Anim._runFrames();
requestAnimFrame(Anim._animationLoop);
}
else {
Anim.animRunning = false;
@@ -10341,7 +10341,7 @@
Konva.Animation._handleAnimation = function() {
if(!this.animRunning) {
this.animRunning = true;
this._animationLoop();
requestAnimFrame(this._animationLoop);
}
};

2
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -253,8 +253,8 @@
Konva.Animation._animationLoop = function() {
var Anim = Konva.Animation;
if(Anim.animations.length) {
requestAnimFrame(Anim._animationLoop);
Anim._runFrames();
requestAnimFrame(Anim._animationLoop);
}
else {
Anim.animRunning = false;
@@ -263,7 +263,7 @@
Konva.Animation._handleAnimation = function() {
if(!this.animRunning) {
this.animRunning = true;
this._animationLoop();
requestAnimFrame(this._animationLoop);
}
};