Remove goog.fx.easing
This commit is contained in:
+9
-8
@@ -1,36 +1,37 @@
|
|||||||
goog.provide('ol.easing');
|
goog.provide('ol.easing');
|
||||||
|
|
||||||
goog.require('goog.fx.easing');
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start slow and speed up.
|
* Start slow and speed up.
|
||||||
* @function
|
|
||||||
* @param {number} t Input between 0 and 1.
|
* @param {number} t Input between 0 and 1.
|
||||||
* @return {number} Output between 0 and 1.
|
* @return {number} Output between 0 and 1.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.easing.easeIn = goog.fx.easing.easeIn;
|
ol.easing.easeIn = function(t) {
|
||||||
|
return Math.pow(t, 3);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start fast and slow down.
|
* Start fast and slow down.
|
||||||
* @function
|
|
||||||
* @param {number} t Input between 0 and 1.
|
* @param {number} t Input between 0 and 1.
|
||||||
* @return {number} Output between 0 and 1.
|
* @return {number} Output between 0 and 1.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.easing.easeOut = goog.fx.easing.easeOut;
|
ol.easing.easeOut = function(t) {
|
||||||
|
return 1 - ol.easing.easeIn(1 - t);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start slow, speed up, and then slow down again.
|
* Start slow, speed up, and then slow down again.
|
||||||
* @function
|
|
||||||
* @param {number} t Input between 0 and 1.
|
* @param {number} t Input between 0 and 1.
|
||||||
* @return {number} Output between 0 and 1.
|
* @return {number} Output between 0 and 1.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.easing.inAndOut = goog.fx.easing.inAndOut;
|
ol.easing.inAndOut = function(t) {
|
||||||
|
return 3 * t * t - 2 * t * t * t;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user