globe.gl 2.45.3 → 2.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globe.gl.js +8 -2
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +2 -2
- package/dist/globe.gl.mjs +7 -1
- package/package.json +1 -1
package/dist/globe.gl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 2.
|
|
1
|
+
// Version 2.46.0 globe.gl - https://github.com/vasturiano/globe.gl
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -181156,6 +181156,11 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
181156
181156
|
return finalGeoCoords[p] = +finalGeoCoords[p];
|
|
181157
181157
|
}); // coerce coords to number
|
|
181158
181158
|
|
|
181159
|
+
if (state.povTween) {
|
|
181160
|
+
// cancel any ongoing pov animation
|
|
181161
|
+
state.povTween.end();
|
|
181162
|
+
state.povTween = undefined;
|
|
181163
|
+
}
|
|
181159
181164
|
if (!transitionDuration) {
|
|
181160
181165
|
// no animation
|
|
181161
181166
|
setCameraPos(finalGeoCoords);
|
|
@@ -181163,7 +181168,8 @@ var<${access}> ${ name } : ${ structName };`;
|
|
|
181163
181168
|
// Avoid rotating more than 180deg longitude
|
|
181164
181169
|
while (curGeoCoords.lng - finalGeoCoords.lng > 180) curGeoCoords.lng -= 360;
|
|
181165
181170
|
while (curGeoCoords.lng - finalGeoCoords.lng < -180) curGeoCoords.lng += 360;
|
|
181166
|
-
state.tweenGroup.add(new Tween(curGeoCoords).to(finalGeoCoords, transitionDuration).easing(Easing.Cubic.InOut).onUpdate(setCameraPos).onComplete(function () {
|
|
181171
|
+
state.tweenGroup.add(state.povTween = new Tween(curGeoCoords).to(finalGeoCoords, transitionDuration).easing(Easing.Cubic.InOut).onUpdate(setCameraPos).onComplete(function () {
|
|
181172
|
+
state.povTween = undefined;
|
|
181167
181173
|
state.tweenGroup.remove(this);
|
|
181168
181174
|
}).start());
|
|
181169
181175
|
}
|