|
|
@ -1419,6 +1419,68 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
|
return -change/2 * (t*(t-2) - 1) + start; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
* Easing Functions - inspired from http://gizma.com/easing/
|
|
|
|
* only considering the t value for the range [0, 1] => [0, 1] |
|
|
|
* https://gist.github.com/gre/1650294
|
|
|
|
*/ |
|
|
|
exports.easingFunctions = { |
|
|
|
// no easing, no acceleration
|
|
|
|
linear: function (t) { |
|
|
|
return t |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInQuad: function (t) { |
|
|
|
return t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutQuad: function (t) { |
|
|
|
return t * (2 - t) |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutQuad: function (t) { |
|
|
|
return t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInCubic: function (t) { |
|
|
|
return t * t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutCubic: function (t) { |
|
|
|
return (--t) * t * t + 1 |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutCubic: function (t) { |
|
|
|
return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1 |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInQuart: function (t) { |
|
|
|
return t * t * t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutQuart: function (t) { |
|
|
|
return 1 - (--t) * t * t * t |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutQuart: function (t) { |
|
|
|
return t < .5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInQuint: function (t) { |
|
|
|
return t * t * t * t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutQuint: function (t) { |
|
|
|
return 1 + (--t) * t * t * t * t |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutQuint: function (t) { |
|
|
|
return t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
/***/ }, |
|
|
|
/* 2 */ |
|
|
|
/***/ function(module, exports, __webpack_require__) { |
|
|
@ -21114,66 +21176,6 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
|
this._loadHierarchySystem(); |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
* Easing Functions - inspired from http://gizma.com/easing/
|
|
|
|
* only considering the t value for the range [0, 1] => [0, 1] |
|
|
|
* https://gist.github.com/gre/1650294
|
|
|
|
*/ |
|
|
|
this.easingFunctions = { |
|
|
|
// no easing, no acceleration
|
|
|
|
linear: function (t) { |
|
|
|
return t |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInQuad: function (t) { |
|
|
|
return t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutQuad: function (t) { |
|
|
|
return t * (2 - t) |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutQuad: function (t) { |
|
|
|
return t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInCubic: function (t) { |
|
|
|
return t * t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutCubic: function (t) { |
|
|
|
return (--t) * t * t + 1 |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutCubic: function (t) { |
|
|
|
return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1 |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInQuart: function (t) { |
|
|
|
return t * t * t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutQuart: function (t) { |
|
|
|
return 1 - (--t) * t * t * t |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutQuart: function (t) { |
|
|
|
return t < .5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t |
|
|
|
}, |
|
|
|
// accelerating from zero velocity
|
|
|
|
easeInQuint: function (t) { |
|
|
|
return t * t * t * t * t |
|
|
|
}, |
|
|
|
// decelerating to zero velocity
|
|
|
|
easeOutQuint: function (t) { |
|
|
|
return 1 + (--t) * t * t * t * t |
|
|
|
}, |
|
|
|
// acceleration until halfway, then deceleration
|
|
|
|
easeInOutQuint: function (t) { |
|
|
|
return t < .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
// apply options
|
|
|
|
this._setTranslation(this.frame.clientWidth / 2, this.frame.clientHeight / 2); |
|
|
|
this._setScale(1); |
|
|
@ -23289,7 +23291,7 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
|
this.easingTime = easingTime || this.easingTime + this.animationSpeed; |
|
|
|
this.easingTime += this.animationSpeed; |
|
|
|
|
|
|
|
var progress = this.easingFunctions[this.animationEasingFunction](this.easingTime); |
|
|
|
var progress = util.easingFunctions[this.animationEasingFunction](this.easingTime); |
|
|
|
|
|
|
|
this._setScale(this.sourceScale + (this.targetScale - this.sourceScale) * progress); |
|
|
|
this._setTranslation( |
|
|
|