Expose all goog.fx.easing functions in the ol.easing namespace

This commit is contained in:
Tom Payne
2013-03-09 02:02:19 +01:00
parent 3981141999
commit e12458b32e
2 changed files with 26 additions and 0 deletions

View File

@@ -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

View File

@@ -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.