Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,6 +1,6 @@
goog.provide('ol.Kinetic');
/**
* @module ol/Kinetic
*/
/**
* @classdesc
* Implementation of inertial deceleration for map movement.
@@ -13,7 +13,7 @@ goog.provide('ol.Kinetic');
* @struct
* @api
*/
ol.Kinetic = function(decay, minVelocity, delay) {
var _ol_Kinetic_ = function(decay, minVelocity, delay) {
/**
* @private
@@ -56,7 +56,7 @@ ol.Kinetic = function(decay, minVelocity, delay) {
/**
* FIXME empty description for jsdoc
*/
ol.Kinetic.prototype.begin = function() {
_ol_Kinetic_.prototype.begin = function() {
this.points_.length = 0;
this.angle_ = 0;
this.initialVelocity_ = 0;
@@ -67,7 +67,7 @@ ol.Kinetic.prototype.begin = function() {
* @param {number} x X.
* @param {number} y Y.
*/
ol.Kinetic.prototype.update = function(x, y) {
_ol_Kinetic_.prototype.update = function(x, y) {
this.points_.push(x, y, Date.now());
};
@@ -75,7 +75,7 @@ ol.Kinetic.prototype.update = function(x, y) {
/**
* @return {boolean} Whether we should do kinetic animation.
*/
ol.Kinetic.prototype.end = function() {
_ol_Kinetic_.prototype.end = function() {
if (this.points_.length < 6) {
// at least 2 points are required (i.e. there must be at least 6 elements
// in the array)
@@ -114,7 +114,7 @@ ol.Kinetic.prototype.end = function() {
/**
* @return {number} Total distance travelled (pixels).
*/
ol.Kinetic.prototype.getDistance = function() {
_ol_Kinetic_.prototype.getDistance = function() {
return (this.minVelocity_ - this.initialVelocity_) / this.decay_;
};
@@ -122,6 +122,7 @@ ol.Kinetic.prototype.getDistance = function() {
/**
* @return {number} Angle of the kinetic panning animation (radians).
*/
ol.Kinetic.prototype.getAngle = function() {
_ol_Kinetic_.prototype.getAngle = function() {
return this.angle_;
};
export default _ol_Kinetic_;