react-globe.gl 2.35.0 → 2.36.0
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/README.md +1 -0
- package/dist/react-globe.gl.d.ts +1 -0
- package/dist/react-globe.gl.js +6468 -2940
- package/dist/react-globe.gl.js.map +1 -1
- package/dist/react-globe.gl.min.js +4 -4
- package/dist/react-globe.gl.mjs +1 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -457,6 +457,7 @@ ReactDOM.render(
|
|
|
457
457
|
| <b>enablePointerInteraction</b> | <i>bool</i> | `true` | Whether to enable the mouse tracking events. This activates an internal tracker of the canvas mouse position and enables the functionality of object hover/click and tooltip labels, at the cost of performance. If you're looking for maximum gain in your globe performance it's recommended to switch off this property. |
|
|
458
458
|
| <b>pointerEventsFilter</b> | <i>func</i> | `() => true` | Filter function which defines whether a particular object can be the target of pointer interactions. In general, objects that are closer to the camera get precedence in capturing pointer events. This function allows having ignored object layers so that pointer events can be passed through to deeper objects in the various globe layers. The ThreeJS object and its associated data (if any) are passed as arguments: `pointerEventsFilter(obj, data)`. The function should return a boolean value. |
|
|
459
459
|
| <b>lineHoverPrecision</b> | <i>number</i> | 0.2 | Precision to use when detecting hover events over [Line](https://threejs.org/docs/#api/objects/Line) and [Points](https://threejs.org/docs/#api/objects/Points) objects, such as arcs, paths or particles. |
|
|
460
|
+
| <b>showPointerCursor</b> | <i>bool</i> or <i>func</i> | `true` | Whether to show a pointer cursor when hovering over clickable portions of the globe. Accepts either a `boolean` constant or a callback function which receives the object (type and data) currently under the cursor and is expected to return a `boolean` value. |
|
|
460
461
|
|
|
461
462
|
| Method | Arguments | Description |
|
|
462
463
|
| --- | :--: | --- |
|
package/dist/react-globe.gl.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ interface GlobeProps extends ConfigOptions {
|
|
|
286
286
|
enablePointerInteraction?: boolean;
|
|
287
287
|
pointerEventsFilter?: (object: Object3D, data?: object) => boolean;
|
|
288
288
|
lineHoverPrecision?: number;
|
|
289
|
+
showPointerCursor?: boolean | ((objType: string, objData: object) => boolean);
|
|
289
290
|
onZoom?: (pov: GeoCoords) => void;
|
|
290
291
|
}
|
|
291
292
|
|