globe.gl 2.32.5 → 2.33.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/dist/globe.gl.js +4806 -3821
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +5 -5
- package/dist/globe.gl.mjs +8 -6
- package/package.json +12 -12
package/dist/globe.gl.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import ThreeGlobe from 'three-globe';
|
|
|
4
4
|
import ThreeRenderObjects from 'three-render-objects';
|
|
5
5
|
import accessorFn from 'accessor-fn';
|
|
6
6
|
import Kapsule from 'kapsule';
|
|
7
|
-
import
|
|
7
|
+
import { Tween, Easing, Group } from '@tweenjs/tween.js';
|
|
8
8
|
|
|
9
9
|
function styleInject(css, ref) {
|
|
10
10
|
if (ref === void 0) ref = {};
|
|
@@ -83,8 +83,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
83
83
|
r,
|
|
84
84
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
85
85
|
if (Object.getOwnPropertySymbols) {
|
|
86
|
-
var
|
|
87
|
-
for (r = 0; r <
|
|
86
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
87
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
88
88
|
}
|
|
89
89
|
return i;
|
|
90
90
|
}
|
|
@@ -92,7 +92,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
92
92
|
if (null == r) return {};
|
|
93
93
|
var t = {};
|
|
94
94
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
95
|
-
if (e.
|
|
95
|
+
if (e.includes(n)) continue;
|
|
96
96
|
t[n] = r[n];
|
|
97
97
|
}
|
|
98
98
|
return t;
|
|
@@ -371,6 +371,7 @@ var globe = Kapsule({
|
|
|
371
371
|
_animationCycle: function _animationCycle(state) {
|
|
372
372
|
// Frame cycle
|
|
373
373
|
state.renderObjs.tick();
|
|
374
|
+
state.tweenGroup.update();
|
|
374
375
|
state.animationFrameRequestId = requestAnimationFrame(this._animationCycle);
|
|
375
376
|
},
|
|
376
377
|
pointOfView: function pointOfView(state) {
|
|
@@ -395,7 +396,7 @@ var globe = Kapsule({
|
|
|
395
396
|
// Avoid rotating more than 180deg longitude
|
|
396
397
|
while (curGeoCoords.lng - finalGeoCoords.lng > 180) curGeoCoords.lng -= 360;
|
|
397
398
|
while (curGeoCoords.lng - finalGeoCoords.lng < -180) curGeoCoords.lng += 360;
|
|
398
|
-
new
|
|
399
|
+
state.tweenGroup.add(new Tween(curGeoCoords).to(finalGeoCoords, transitionDuration).easing(Easing.Cubic.InOut).onUpdate(setCameraPos).start());
|
|
399
400
|
}
|
|
400
401
|
return this;
|
|
401
402
|
}
|
|
@@ -483,7 +484,8 @@ var globe = Kapsule({
|
|
|
483
484
|
waitForLoadComplete: waitForGlobeReady,
|
|
484
485
|
extraRenderers: [new THREE.CSS2DRenderer()] // Used in HTML elements layer
|
|
485
486
|
}).skyRadius(globe.getGlobeRadius() * 500).showNavInfo(false).objects([globe]) // Populate scene
|
|
486
|
-
.lights([new THREE.AmbientLight(0xcccccc, Math.PI), new THREE.DirectionalLight(0xffffff, 0.6 * Math.PI)])
|
|
487
|
+
.lights([new THREE.AmbientLight(0xcccccc, Math.PI), new THREE.DirectionalLight(0xffffff, 0.6 * Math.PI)]),
|
|
488
|
+
tweenGroup: new Group()
|
|
487
489
|
};
|
|
488
490
|
},
|
|
489
491
|
init: function init(domNode, state) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "globe.gl",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.0",
|
|
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,26 +48,26 @@
|
|
|
48
48
|
"example/**/*"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tweenjs/tween.js": "18 -
|
|
51
|
+
"@tweenjs/tween.js": "18 - 25",
|
|
52
52
|
"accessor-fn": "1",
|
|
53
53
|
"kapsule": "1",
|
|
54
|
-
"three": ">=0.
|
|
55
|
-
"three-globe": "^2.
|
|
54
|
+
"three": ">=0.154 <1",
|
|
55
|
+
"three-globe": "^2.32",
|
|
56
56
|
"three-render-objects": "^1.29"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "^7.
|
|
60
|
-
"@babel/preset-env": "^7.
|
|
59
|
+
"@babel/core": "^7.25.2",
|
|
60
|
+
"@babel/preset-env": "^7.25.4",
|
|
61
61
|
"@rollup/plugin-babel": "^6.0.4",
|
|
62
|
-
"@rollup/plugin-commonjs": "^
|
|
63
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
62
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
64
64
|
"@rollup/plugin-terser": "^0.4.4",
|
|
65
|
-
"postcss": "^8.4.
|
|
66
|
-
"rimraf": "^
|
|
67
|
-
"rollup": "^4.
|
|
65
|
+
"postcss": "^8.4.47",
|
|
66
|
+
"rimraf": "^6.0.1",
|
|
67
|
+
"rollup": "^4.22.5",
|
|
68
68
|
"rollup-plugin-dts": "^6.1.1",
|
|
69
69
|
"rollup-plugin-postcss": "^4.0.2",
|
|
70
|
-
"typescript": "^5.
|
|
70
|
+
"typescript": "^5.6.2"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=12"
|