diff --git a/src/ol/easing.exports b/src/ol/easing.exports index 62418771ad..3b201be1ed 100644 --- a/src/ol/easing.exports +++ b/src/ol/easing.exports @@ -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 diff --git a/src/ol/easing.js b/src/ol/easing.js index 944279cfcc..8ae909a86f 100644 --- a/src/ol/easing.js +++ b/src/ol/easing.js @@ -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.