Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,4 +1,7 @@
goog.provide('ol.easing');
/**
* @module ol/easing
*/
var _ol_easing_ = {};
/**
@@ -7,7 +10,7 @@ goog.provide('ol.easing');
* @return {number} Output between 0 and 1.
* @api
*/
ol.easing.easeIn = function(t) {
_ol_easing_.easeIn = function(t) {
return Math.pow(t, 3);
};
@@ -18,8 +21,8 @@ ol.easing.easeIn = function(t) {
* @return {number} Output between 0 and 1.
* @api
*/
ol.easing.easeOut = function(t) {
return 1 - ol.easing.easeIn(1 - t);
_ol_easing_.easeOut = function(t) {
return 1 - _ol_easing_.easeIn(1 - t);
};
@@ -29,7 +32,7 @@ ol.easing.easeOut = function(t) {
* @return {number} Output between 0 and 1.
* @api
*/
ol.easing.inAndOut = function(t) {
_ol_easing_.inAndOut = function(t) {
return 3 * t * t - 2 * t * t * t;
};
@@ -40,7 +43,7 @@ ol.easing.inAndOut = function(t) {
* @return {number} Output between 0 and 1.
* @api
*/
ol.easing.linear = function(t) {
_ol_easing_.linear = function(t) {
return t;
};
@@ -53,10 +56,11 @@ ol.easing.linear = function(t) {
* @return {number} Output between 0 and 1.
* @api
*/
ol.easing.upAndDown = function(t) {
_ol_easing_.upAndDown = function(t) {
if (t < 0.5) {
return ol.easing.inAndOut(2 * t);
return _ol_easing_.inAndOut(2 * t);
} else {
return 1 - ol.easing.inAndOut(2 * (t - 0.5));
return 1 - _ol_easing_.inAndOut(2 * (t - 0.5));
}
};
export default _ol_easing_;