globe.gl 2.28.1 → 2.28.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/globe.gl.d.ts +1 -1
- package/dist/globe.gl.js +909 -686
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +5 -5
- package/dist/globe.gl.mjs +6 -2
- package/package.json +8 -8
package/dist/globe.gl.mjs
CHANGED
|
@@ -356,16 +356,20 @@ var globe = Kapsule({
|
|
|
356
356
|
}, linkedGlobeProps), linkedRenderObjsProps),
|
|
357
357
|
methods: _objectSpread2(_objectSpread2({
|
|
358
358
|
pauseAnimation: function pauseAnimation(state) {
|
|
359
|
+
var _state$globe;
|
|
359
360
|
if (state.animationFrameRequestId !== null) {
|
|
360
361
|
cancelAnimationFrame(state.animationFrameRequestId);
|
|
361
362
|
state.animationFrameRequestId = null;
|
|
362
363
|
}
|
|
364
|
+
(_state$globe = state.globe) === null || _state$globe === void 0 ? void 0 : _state$globe.pauseAnimation();
|
|
363
365
|
return this;
|
|
364
366
|
},
|
|
365
367
|
resumeAnimation: function resumeAnimation(state) {
|
|
368
|
+
var _state$globe2;
|
|
366
369
|
if (state.animationFrameRequestId === null) {
|
|
367
370
|
this._animationCycle();
|
|
368
371
|
}
|
|
372
|
+
(_state$globe2 = state.globe) === null || _state$globe2 === void 0 ? void 0 : _state$globe2.resumeAnimation();
|
|
369
373
|
return this;
|
|
370
374
|
},
|
|
371
375
|
_animationCycle: function _animationCycle(state) {
|
|
@@ -413,11 +417,11 @@ var globe = Kapsule({
|
|
|
413
417
|
}
|
|
414
418
|
},
|
|
415
419
|
getScreenCoords: function getScreenCoords(state) {
|
|
416
|
-
var _state$
|
|
420
|
+
var _state$globe3;
|
|
417
421
|
for (var _len = arguments.length, geoCoords = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
418
422
|
geoCoords[_key - 1] = arguments[_key];
|
|
419
423
|
}
|
|
420
|
-
var cartesianCoords = (_state$
|
|
424
|
+
var cartesianCoords = (_state$globe3 = state.globe).getCoords.apply(_state$globe3, geoCoords);
|
|
421
425
|
return state.renderObjs.getScreenCoords(cartesianCoords.x, cartesianCoords.y, cartesianCoords.z);
|
|
422
426
|
},
|
|
423
427
|
toGlobeCoords: function toGlobeCoords(state, x, y) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "globe.gl",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.3",
|
|
4
4
|
"description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"unpkg": "dist/globe.gl.min.js",
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
"example/**/*"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tweenjs/tween.js": "18 -
|
|
51
|
+
"@tweenjs/tween.js": "18 - 20",
|
|
52
52
|
"accessor-fn": "1",
|
|
53
53
|
"kapsule": "1",
|
|
54
54
|
"three": ">=0.118 <1",
|
|
55
|
-
"three-globe": "^2.
|
|
56
|
-
"three-render-objects": "1"
|
|
55
|
+
"three-globe": "^2.27",
|
|
56
|
+
"three-render-objects": "^1.28"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.21.
|
|
60
|
-
"@babel/preset-env": "^7.21.
|
|
59
|
+
"@babel/core": "^7.21.5",
|
|
60
|
+
"@babel/preset-env": "^7.21.5",
|
|
61
61
|
"@rollup/plugin-babel": "^6.0.3",
|
|
62
62
|
"@rollup/plugin-commonjs": "^24.1.0",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
64
64
|
"@rollup/plugin-terser": "^0.4.1",
|
|
65
|
-
"postcss": "^8.4.
|
|
65
|
+
"postcss": "^8.4.23",
|
|
66
66
|
"rimraf": "^5.0.0",
|
|
67
|
-
"rollup": "^3.
|
|
67
|
+
"rollup": "^3.21.2",
|
|
68
68
|
"rollup-plugin-dts": "^5.3.0",
|
|
69
69
|
"rollup-plugin-postcss": "^4.0.2",
|
|
70
70
|
"typescript": "^5.0.4"
|