Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "easey", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Easing for Modest Maps", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -1,2 +0,2 @@ | ||
(function(context, MM) { | ||
;(function(context, MM) { | ||
@@ -314,3 +314,2 @@ easey.TouchHandler = function() { | ||
var timeSince = new Date().getTime() - prevTime; | ||
var point = MM.getMousePoint(e, map); | ||
@@ -317,0 +316,0 @@ function dispatchZoomed() { |
@@ -1,3 +0,2 @@ | ||
(function(context, MM) { | ||
;(function(context, MM) { | ||
var easey = function() { | ||
@@ -142,3 +141,3 @@ var easey = {}, | ||
easey.resetRun = function () { | ||
start = (+ new Date()); | ||
start = (+ new Date()); | ||
return easey; | ||
@@ -221,10 +220,10 @@ }; | ||
// Width | ||
function w(s) { | ||
var w = function(s) { | ||
return w0 * cosh(r0) / cosh (rho * s + r0); | ||
} | ||
}; | ||
// Zoom | ||
function u(s) { | ||
var u = function(s) { | ||
return (w0 / sqr(rho)) * cosh(r0) * tanh(rho * s + r0) - (w0 / sqr(rho)) * sinh(r0) + u0; | ||
} | ||
}; | ||
@@ -240,6 +239,6 @@ // Special case, when no panning necessary | ||
return u0; | ||
} | ||
}; | ||
w = function(s) { | ||
return w0 * Math.exp(k * rho * s); | ||
} | ||
}; | ||
} | ||
@@ -255,6 +254,7 @@ | ||
return new MM.Coordinate(y, x, 0).zoomTo(z); | ||
} | ||
}; | ||
easey.easing('linear'); | ||
easey.run(S / V * 1000, callback); | ||
} | ||
}; | ||
@@ -265,2 +265,2 @@ return easey; | ||
this.easey = easey; | ||
})(this, com.modestmaps); | ||
})(this, MM); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
727872
26
0
10037