react-globe.gl 2.29.2 → 2.29.4
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.29.
|
|
1
|
+
// Version 2.29.4 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) :
|
|
@@ -133955,11 +133955,14 @@ var<${access}> ${name} : ${structName};`;
|
|
|
133955
133955
|
controls.dampingFactor = 0.1;
|
|
133956
133956
|
controls.rotateSpeed = 0.3;
|
|
133957
133957
|
controls.zoomSpeed = 0.3;
|
|
133958
|
+
controls.zoomToCursor = true;
|
|
133958
133959
|
controls.addEventListener('change', function () {
|
|
133960
|
+
controls.target.setScalar(0); // Keep orbit target on center
|
|
133961
|
+
|
|
133959
133962
|
// adjust controls speed based on altitude
|
|
133960
133963
|
var pov = _this.pointOfView();
|
|
133961
133964
|
controls.rotateSpeed = pov.altitude * 0.3;
|
|
133962
|
-
controls.zoomSpeed = Math.sqrt(pov.altitude) * 0.
|
|
133965
|
+
controls.zoomSpeed = Math.sqrt(pov.altitude) * 0.5;
|
|
133963
133966
|
|
|
133964
133967
|
// Update three-globe pov when camera moves, for proper hiding of elements
|
|
133965
133968
|
state.globe.setPointOfView(state.renderObjs.camera());
|