globe.gl 2.35.0 → 2.35.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 +2 -2
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +2 -2
- package/dist/globe.gl.mjs +1 -1
- package/package.json +1 -1
package/dist/globe.gl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 2.35.
|
|
1
|
+
// Version 2.35.1 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) :
|
|
@@ -133688,7 +133688,7 @@ var<${access}> ${name} : ${structName};`;
|
|
|
133688
133688
|
var globeR = state.globe.getGlobeRadius();
|
|
133689
133689
|
var controls = state.renderObjs.controls();
|
|
133690
133690
|
state.renderObjs.camera().near = 0.05; // less will start causing depth z-fighting issues
|
|
133691
|
-
controls.minDistance = globeR
|
|
133691
|
+
controls.minDistance = globeR + Math.max(0.001, state.renderObjs.camera().near * 1.1); // just above the surface, as much as camera near plane permits
|
|
133692
133692
|
controls.maxDistance = globeR * 100;
|
|
133693
133693
|
controls.enablePan = false;
|
|
133694
133694
|
controls.enableDamping = true;
|