globe.gl 2.37.0 → 2.38.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.mjs CHANGED
@@ -657,7 +657,7 @@ var globe = Kapsule({
657
657
  state.renderObjs.renderer().domElement.classList[objType && clickObjFns[objType] ? 'add' : 'remove']('clickable');
658
658
  state.hoverObj = hoverObj;
659
659
  }
660
- }).onClick(function (obj, ev, point) {
660
+ }).onClick(function (obj, ev, intersection) {
661
661
  if (!obj) return; // ignore background clicks
662
662
 
663
663
  // Handle click events on objects
@@ -681,6 +681,7 @@ var globe = Kapsule({
681
681
  var args = [ev];
682
682
 
683
683
  // include click coords
684
+ var point = intersection !== null && intersection !== undefined && intersection.isVector3 ? intersection : intersection === null || intersection === undefined ? undefined : intersection.point;
684
685
  if (objType === 'globe') {
685
686
  var _this$toGeoCoords = _this.toGeoCoords(point),
686
687
  lat = _this$toGeoCoords.lat,
@@ -695,7 +696,7 @@ var globe = Kapsule({
695
696
  dataAccessors.hasOwnProperty(objType) && args.unshift(dataAccessors[objType](globeObj.__data));
696
697
  objFns[objType].apply(objFns, args);
697
698
  }
698
- }).onRightClick(function (obj, ev, point) {
699
+ }).onRightClick(function (obj, ev, intersection) {
699
700
  if (!obj) return; // ignore background clicks
700
701
 
701
702
  // Handle right-click events
@@ -719,6 +720,7 @@ var globe = Kapsule({
719
720
  var args = [ev];
720
721
 
721
722
  // include click coords
723
+ var point = intersection !== null && intersection !== undefined && intersection.isVector3 ? intersection : intersection === null || intersection === undefined ? undefined : intersection.point;
722
724
  if (objType === 'globe') {
723
725
  var _this$toGeoCoords2 = _this.toGeoCoords(point),
724
726
  lat = _this$toGeoCoords2.lat,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.37.0",
3
+ "version": "2.38.1",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "type": "module",
6
6
  "unpkg": "dist/globe.gl.min.js",
@@ -53,7 +53,7 @@
53
53
  "kapsule": "^1.16",
54
54
  "three": ">=0.154 <1",
55
55
  "three-globe": "^2.40",
56
- "three-render-objects": "^1.34"
56
+ "three-render-objects": "^1.35"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/core": "^7.26.0",
@@ -62,7 +62,7 @@
62
62
  "@rollup/plugin-commonjs": "^28.0.2",
63
63
  "@rollup/plugin-node-resolve": "^16.0.0",
64
64
  "@rollup/plugin-terser": "^0.4.4",
65
- "postcss": "^8.4.49",
65
+ "postcss": "^8.5.1",
66
66
  "rimraf": "^6.0.1",
67
67
  "rollup": "^4.30.1",
68
68
  "rollup-plugin-dts": "^6.1.1",