mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 19:07:59 +08:00
animation improvements
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
"no-regex-spaces": 2,
|
"no-regex-spaces": 2,
|
||||||
"no-reserved-keys": 0,
|
"no-reserved-keys": 0,
|
||||||
"no-restricted-modules": 0,
|
"no-restricted-modules": 0,
|
||||||
"no-return-assign": 2,
|
"no-return-assign": 0,
|
||||||
"no-script-url": 2,
|
"no-script-url": 2,
|
||||||
"no-self-compare": 0,
|
"no-self-compare": 0,
|
||||||
"no-sequences": 2,
|
"no-sequences": 2,
|
||||||
|
@@ -7,7 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
### Changed
|
### Changed
|
||||||
- typescript definition in npm package
|
- typescript definition in npm package
|
||||||
- node@5.10.1, canvas@1.3.14, jsdom@8.5.0 support
|
- 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]
|
## [0.12.4][2016-04-19]
|
||||||
|
|
||||||
|
4
konva.js
4
konva.js
@@ -10331,8 +10331,8 @@
|
|||||||
Konva.Animation._animationLoop = function() {
|
Konva.Animation._animationLoop = function() {
|
||||||
var Anim = Konva.Animation;
|
var Anim = Konva.Animation;
|
||||||
if(Anim.animations.length) {
|
if(Anim.animations.length) {
|
||||||
requestAnimFrame(Anim._animationLoop);
|
|
||||||
Anim._runFrames();
|
Anim._runFrames();
|
||||||
|
requestAnimFrame(Anim._animationLoop);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Anim.animRunning = false;
|
Anim.animRunning = false;
|
||||||
@@ -10341,7 +10341,7 @@
|
|||||||
Konva.Animation._handleAnimation = function() {
|
Konva.Animation._handleAnimation = function() {
|
||||||
if(!this.animRunning) {
|
if(!this.animRunning) {
|
||||||
this.animRunning = true;
|
this.animRunning = true;
|
||||||
this._animationLoop();
|
requestAnimFrame(this._animationLoop);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
konva.min.js
vendored
2
konva.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -253,8 +253,8 @@
|
|||||||
Konva.Animation._animationLoop = function() {
|
Konva.Animation._animationLoop = function() {
|
||||||
var Anim = Konva.Animation;
|
var Anim = Konva.Animation;
|
||||||
if(Anim.animations.length) {
|
if(Anim.animations.length) {
|
||||||
requestAnimFrame(Anim._animationLoop);
|
|
||||||
Anim._runFrames();
|
Anim._runFrames();
|
||||||
|
requestAnimFrame(Anim._animationLoop);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Anim.animRunning = false;
|
Anim.animRunning = false;
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
Konva.Animation._handleAnimation = function() {
|
Konva.Animation._handleAnimation = function() {
|
||||||
if(!this.animRunning) {
|
if(!this.animRunning) {
|
||||||
this.animRunning = true;
|
this.animRunning = true;
|
||||||
this._animationLoop();
|
requestAnimFrame(this._animationLoop);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user