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.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
- if (state.povTween) {
415
- // cancel any ongoing pov animation
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.46.0",
3
+ "version": "2.46.1",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "type": "module",
6
6
  "unpkg": "dist/globe.gl.min.js",