Unused kinetic.pan() method

This commit is contained in:
Tim Schaub
2016-11-06 07:56:53 -07:00
parent 5fb9a2ebf8
commit 01da26b1c4

View File

@@ -1,7 +1,5 @@
goog.provide('ol.Kinetic');
goog.require('ol.animation');
/**
* @classdesc
@@ -105,32 +103,6 @@ ol.Kinetic.prototype.end = function() {
};
/**
* @param {ol.Coordinate} source Source coordinate for the animation.
* @return {ol.PreRenderFunction} Pre-render function for kinetic animation.
*/
ol.Kinetic.prototype.pan = function(source) {
var decay = this.decay_;
var initialVelocity = this.initialVelocity_;
var velocity = this.minVelocity_ - initialVelocity;
var duration = this.getDuration_();
var easingFunction = (
/**
* @param {number} t T.
* @return {number} Easing.
*/
function(t) {
return initialVelocity * (Math.exp((decay * t) * duration) - 1) /
velocity;
});
return ol.animation.pan({
source: source,
duration: duration,
easing: easingFunction
});
};
/**
* @private
* @return {number} Duration of animation (milliseconds).