globe.gl 2.26.4 → 2.26.5

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.
@@ -540,10 +540,7 @@ var globe = Kapsule__default["default"]({
540
540
  var controls = state.renderObjs.controls();
541
541
  controls.minDistance = globeR * 1.01; // just above the surface
542
542
 
543
- setTimeout(function () {
544
- return controls.maxDistance = globeR * 100;
545
- }); // apply async after renderObjs sets maxDistance
546
-
543
+ controls.maxDistance = globeR * 100;
547
544
  controls.enablePan = false;
548
545
  controls.enableDamping = true;
549
546
  controls.dampingFactor = 0.1;
package/dist/globe.gl.js CHANGED
@@ -1,4 +1,4 @@
1
- // Version 2.26.4 globe.gl - https://github.com/vasturiano/globe.gl
1
+ // Version 2.26.5 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) :
@@ -70185,7 +70185,7 @@
70185
70185
  }
70186
70186
 
70187
70187
  if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
70188
- state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
70188
+ state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
70189
70189
  state.camera.far = state.skyRadius * 2.5;
70190
70190
  state.camera.updateProjectionMatrix();
70191
70191
  state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);
@@ -70617,10 +70617,7 @@
70617
70617
  var controls = state.renderObjs.controls();
70618
70618
  controls.minDistance = globeR * 1.01; // just above the surface
70619
70619
 
70620
- setTimeout(function () {
70621
- return controls.maxDistance = globeR * 100;
70622
- }); // apply async after renderObjs sets maxDistance
70623
-
70620
+ controls.maxDistance = globeR * 100;
70624
70621
  controls.enablePan = false;
70625
70622
  controls.enableDamping = true;
70626
70623
  controls.dampingFactor = 0.1;