globe.gl 2.28.1 → 2.28.2

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
@@ -356,16 +356,20 @@ var globe = Kapsule({
356
356
  }, linkedGlobeProps), linkedRenderObjsProps),
357
357
  methods: _objectSpread2(_objectSpread2({
358
358
  pauseAnimation: function pauseAnimation(state) {
359
+ var _state$globe;
359
360
  if (state.animationFrameRequestId !== null) {
360
361
  cancelAnimationFrame(state.animationFrameRequestId);
361
362
  state.animationFrameRequestId = null;
362
363
  }
364
+ (_state$globe = state.globe) === null || _state$globe === void 0 ? void 0 : _state$globe.pauseAnimation();
363
365
  return this;
364
366
  },
365
367
  resumeAnimation: function resumeAnimation(state) {
368
+ var _state$globe2;
366
369
  if (state.animationFrameRequestId === null) {
367
370
  this._animationCycle();
368
371
  }
372
+ (_state$globe2 = state.globe) === null || _state$globe2 === void 0 ? void 0 : _state$globe2.resumeAnimation();
369
373
  return this;
370
374
  },
371
375
  _animationCycle: function _animationCycle(state) {
@@ -413,11 +417,11 @@ var globe = Kapsule({
413
417
  }
414
418
  },
415
419
  getScreenCoords: function getScreenCoords(state) {
416
- var _state$globe;
420
+ var _state$globe3;
417
421
  for (var _len = arguments.length, geoCoords = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
418
422
  geoCoords[_key - 1] = arguments[_key];
419
423
  }
420
- var cartesianCoords = (_state$globe = state.globe).getCoords.apply(_state$globe, geoCoords);
424
+ var cartesianCoords = (_state$globe3 = state.globe).getCoords.apply(_state$globe3, geoCoords);
421
425
  return state.renderObjs.getScreenCoords(cartesianCoords.x, cartesianCoords.y, cartesianCoords.z);
422
426
  },
423
427
  toGlobeCoords: function toGlobeCoords(state, x, y) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.28.1",
3
+ "version": "2.28.2",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "type": "module",
6
6
  "unpkg": "dist/globe.gl.min.js",
@@ -52,7 +52,7 @@
52
52
  "accessor-fn": "1",
53
53
  "kapsule": "1",
54
54
  "three": ">=0.118 <1",
55
- "three-globe": "^2.26",
55
+ "three-globe": "^2.27",
56
56
  "three-render-objects": "1"
57
57
  },
58
58
  "devDependencies": {