Expose all goog.fx.easing functions in the ol.easing namespace
This commit is contained in:
@@ -3,3 +3,6 @@
|
||||
@exportProperty ol.easing.upAndDown
|
||||
@exportProperty ol.easing.elastic
|
||||
@exportProperty ol.easing.bounce
|
||||
@exportProperty ol.easing.easeIn
|
||||
@exportProperty ol.easing.easeOut
|
||||
@exportProperty ol.easing.inAndOut
|
||||
|
||||
@@ -1,5 +1,28 @@
|
||||
goog.provide('ol.easing');
|
||||
|
||||
goog.require('goog.fx.easing');
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
*/
|
||||
ol.easing.easeIn = goog.fx.easing.easeIn;
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
*/
|
||||
ol.easing.easeOut = goog.fx.easing.easeOut;
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
*/
|
||||
ol.easing.inAndOut = goog.fx.easing.inAndOut;
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} t Input between 0 and 1.
|
||||
|
||||
Reference in New Issue
Block a user