react-globe.gl 2.29.0 → 2.29.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.
@@ -1,4 +1,4 @@
1
- // Version 2.29.0 react-globe.gl - https://github.com/vasturiano/react-globe.gl
1
+ // Version 2.29.2 react-globe.gl - https://github.com/vasturiano/react-globe.gl
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['react'], factory) :
@@ -133948,7 +133948,7 @@ var<${access}> ${name} : ${structName};`;
133948
133948
  var globeR = state.globe.getGlobeRadius();
133949
133949
  var controls = state.renderObjs.controls();
133950
133950
  state.renderObjs.camera().near = 0.05; // less will start causing depth z-fighting issues
133951
- controls.minDistance = globeR * (1 + Math.max(1e-5, state.renderObjs.camera().near * 0.012)); // just above the surface, as much as camera near plane permits
133951
+ controls.minDistance = globeR + Math.max(0.001, state.renderObjs.camera().near * 1.1); // just above the surface, as much as camera near plane permits
133952
133952
  controls.maxDistance = globeR * 100;
133953
133953
  controls.enablePan = false;
133954
133954
  controls.enableDamping = true;