globe.gl 2.46.0 → 2.46.1
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 +4 -6
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +2 -2
- package/dist/globe.gl.mjs +3 -5
- package/package.json +1 -1
package/dist/globe.gl.mjs
CHANGED
|
@@ -405,17 +405,15 @@ var globe = Kapsule({
|
|
|
405
405
|
if (geoCoords.lat === undefined && geoCoords.lng === undefined && geoCoords.altitude === undefined) {
|
|
406
406
|
return curGeoCoords;
|
|
407
407
|
} else {
|
|
408
|
+
var _state$povTween;
|
|
408
409
|
// Setter
|
|
409
410
|
var finalGeoCoords = Object.assign({}, curGeoCoords, geoCoords);
|
|
410
411
|
['lat', 'lng', 'altitude'].forEach(function (p) {
|
|
411
412
|
return finalGeoCoords[p] = +finalGeoCoords[p];
|
|
412
413
|
}); // coerce coords to number
|
|
413
414
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
state.povTween.end();
|
|
417
|
-
state.povTween = undefined;
|
|
418
|
-
}
|
|
415
|
+
(_state$povTween = state.povTween) === null || _state$povTween === void 0 || _state$povTween.end(); // cancel any ongoing pov animation
|
|
416
|
+
|
|
419
417
|
if (!transitionDuration) {
|
|
420
418
|
// no animation
|
|
421
419
|
setCameraPos(finalGeoCoords);
|