gralobe 1.0.68 → 1.0.70
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 +18 -0
- package/dist/gralobe.js +134 -107
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +18 -18
- package/dist/gralobe.umd.cjs.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -214,6 +214,21 @@ export declare class GlobeViz implements GlobeVizAPI {
|
|
|
214
214
|
* Handle hover interactions with throttling for performance
|
|
215
215
|
*/
|
|
216
216
|
private handleHover;
|
|
217
|
+
/**
|
|
218
|
+
* Mathematical ray-sphere intersection
|
|
219
|
+
* Returns the closest intersection point on the front face of the sphere,
|
|
220
|
+
* or null if the ray doesn't hit the sphere.
|
|
221
|
+
*
|
|
222
|
+
* This is necessary because the globe mesh is a PlaneGeometry that's morphed
|
|
223
|
+
* to a sphere via GPU shaders - raycasting against the mesh would hit the
|
|
224
|
+
* original plane geometry, not the visual sphere.
|
|
225
|
+
*
|
|
226
|
+
* @param rayOrigin - Ray origin point
|
|
227
|
+
* @param rayDirection - Normalized ray direction vector
|
|
228
|
+
* @param radius - Sphere radius (centered at origin)
|
|
229
|
+
* @returns Intersection point or null
|
|
230
|
+
*/
|
|
231
|
+
private raySphereIntersection;
|
|
217
232
|
/**
|
|
218
233
|
* Find feature at given lat/lon using point-in-polygon test
|
|
219
234
|
*/
|
package/package.json
CHANGED