react-globe.gl 2.22.2 → 2.22.3
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/react-globe.gl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 2.22.
|
|
1
|
+
// Version 2.22.3 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) :
|
|
@@ -70329,7 +70329,7 @@
|
|
|
70329
70329
|
}
|
|
70330
70330
|
|
|
70331
70331
|
if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
|
|
70332
|
-
state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
|
|
70332
|
+
state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
|
|
70333
70333
|
state.camera.far = state.skyRadius * 2.5;
|
|
70334
70334
|
state.camera.updateProjectionMatrix();
|
|
70335
70335
|
state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);
|
|
@@ -70903,10 +70903,7 @@
|
|
|
70903
70903
|
var controls = state.renderObjs.controls();
|
|
70904
70904
|
controls.minDistance = globeR * 1.01; // just above the surface
|
|
70905
70905
|
|
|
70906
|
-
|
|
70907
|
-
return controls.maxDistance = globeR * 100;
|
|
70908
|
-
}); // apply async after renderObjs sets maxDistance
|
|
70909
|
-
|
|
70906
|
+
controls.maxDistance = globeR * 100;
|
|
70910
70907
|
controls.enablePan = false;
|
|
70911
70908
|
controls.enableDamping = true;
|
|
70912
70909
|
controls.dampingFactor = 0.1;
|