globe.gl 2.29.1 → 2.29.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.js +158 -167
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +5 -5
- package/dist/globe.gl.mjs +20 -20
- package/package.json +1 -1
package/dist/globe.gl.mjs
CHANGED
|
@@ -34,26 +34,26 @@ function styleInject(css, ref) {
|
|
|
34
34
|
var css_248z = ".scene-container .clickable {\n cursor: pointer;\n}";
|
|
35
35
|
styleInject(css_248z);
|
|
36
36
|
|
|
37
|
-
function ownKeys(
|
|
38
|
-
var
|
|
37
|
+
function ownKeys(e, r) {
|
|
38
|
+
var t = Object.keys(e);
|
|
39
39
|
if (Object.getOwnPropertySymbols) {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
return Object.getOwnPropertyDescriptor(
|
|
43
|
-
})),
|
|
40
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
41
|
+
r && (o = o.filter(function (r) {
|
|
42
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
43
|
+
})), t.push.apply(t, o);
|
|
44
44
|
}
|
|
45
|
-
return
|
|
45
|
+
return t;
|
|
46
46
|
}
|
|
47
|
-
function _objectSpread2(
|
|
48
|
-
for (var
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
_defineProperty(
|
|
52
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
53
|
-
Object.defineProperty(
|
|
47
|
+
function _objectSpread2(e) {
|
|
48
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
49
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
50
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
51
|
+
_defineProperty(e, r, t[r]);
|
|
52
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
53
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
return
|
|
56
|
+
return e;
|
|
57
57
|
}
|
|
58
58
|
function _defineProperty(obj, key, value) {
|
|
59
59
|
key = _toPropertyKey(key);
|
|
@@ -138,7 +138,7 @@ function _toPropertyKey(arg) {
|
|
|
138
138
|
|
|
139
139
|
function linkKapsule (kapsulePropName, kapsuleType) {
|
|
140
140
|
var dummyK = new kapsuleType(); // To extract defaults
|
|
141
|
-
|
|
141
|
+
dummyK._destructor && dummyK._destructor();
|
|
142
142
|
return {
|
|
143
143
|
linkProp: function linkProp(prop) {
|
|
144
144
|
// link property config
|
|
@@ -179,10 +179,10 @@ var THREE = _objectSpread2(_objectSpread2({}, window.THREE ? window.THREE // Pre
|
|
|
179
179
|
|
|
180
180
|
// Expose config from ThreeGlobe
|
|
181
181
|
var bindGlobe = linkKapsule('globe', ThreeGlobe);
|
|
182
|
-
var linkedGlobeProps = Object.assign.apply(Object, _toConsumableArray(['globeImageUrl', 'bumpImageUrl', 'showGlobe', 'showGraticules', 'showAtmosphere', 'atmosphereColor', 'atmosphereAltitude', '
|
|
182
|
+
var linkedGlobeProps = Object.assign.apply(Object, _toConsumableArray(['globeImageUrl', 'bumpImageUrl', 'showGlobe', 'showGraticules', 'showAtmosphere', 'atmosphereColor', 'atmosphereAltitude', 'onGlobeReady', 'pointsData', 'pointLat', 'pointLng', 'pointColor', 'pointAltitude', 'pointRadius', 'pointResolution', 'pointsMerge', 'pointsTransitionDuration', 'arcsData', 'arcStartLat', 'arcStartLng', 'arcEndLat', 'arcEndLng', 'arcColor', 'arcAltitude', 'arcAltitudeAutoScale', 'arcStroke', 'arcCurveResolution', 'arcCircularResolution', 'arcDashLength', 'arcDashGap', 'arcDashInitialGap', 'arcDashAnimateTime', 'arcsTransitionDuration', 'polygonsData', 'polygonGeoJsonGeometry', 'polygonCapColor', 'polygonCapMaterial', 'polygonSideColor', 'polygonSideMaterial', 'polygonStrokeColor', 'polygonAltitude', 'polygonCapCurvatureResolution', 'polygonsTransitionDuration', 'pathsData', 'pathPoints', 'pathPointLat', 'pathPointLng', 'pathPointAlt', 'pathResolution', 'pathColor', 'pathStroke', 'pathDashLength', 'pathDashGap', 'pathDashInitialGap', 'pathDashAnimateTime', 'pathTransitionDuration', 'hexBinPointsData', 'hexBinPointLat', 'hexBinPointLng', 'hexBinPointWeight', 'hexBinResolution', 'hexMargin', 'hexTopCurvatureResolution', 'hexTopColor', 'hexSideColor', 'hexAltitude', 'hexBinMerge', 'hexTransitionDuration', 'hexPolygonsData', 'hexPolygonGeoJsonGeometry', 'hexPolygonColor', 'hexPolygonAltitude', 'hexPolygonResolution', 'hexPolygonMargin', 'hexPolygonCurvatureResolution', 'hexPolygonsTransitionDuration', 'tilesData', 'tileLat', 'tileLng', 'tileAltitude', 'tileWidth', 'tileHeight', 'tileUseGlobeProjection', 'tileMaterial', 'tileCurvatureResolution', 'tilesTransitionDuration', 'ringsData', 'ringLat', 'ringLng', 'ringAltitude', 'ringColor', 'ringResolution', 'ringMaxRadius', 'ringPropagationSpeed', 'ringRepeatPeriod', 'labelsData', 'labelLat', 'labelLng', 'labelAltitude', 'labelRotation', 'labelText', 'labelSize', 'labelTypeFace', 'labelColor', 'labelResolution', 'labelIncludeDot', 'labelDotRadius', 'labelDotOrientation', 'labelsTransitionDuration', 'htmlElementsData', 'htmlLat', 'htmlLng', 'htmlAltitude', 'htmlElement', 'htmlTransitionDuration', 'objectsData', 'objectLat', 'objectLng', 'objectAltitude', 'objectRotation', 'objectFacesSurface', 'objectThreeObject', 'customLayerData', 'customThreeObject', 'customThreeObjectUpdate'].map(function (p) {
|
|
183
183
|
return _defineProperty({}, p, bindGlobe.linkProp(p));
|
|
184
184
|
})));
|
|
185
|
-
var linkedGlobeMethods = Object.assign.apply(Object, _toConsumableArray(['getGlobeRadius', 'getCoords', 'toGeoCoords'].map(function (p) {
|
|
185
|
+
var linkedGlobeMethods = Object.assign.apply(Object, _toConsumableArray(['globeMaterial', 'getGlobeRadius', 'getCoords', 'toGeoCoords'].map(function (p) {
|
|
186
186
|
return _defineProperty({}, p, bindGlobe.linkMethod(p));
|
|
187
187
|
})));
|
|
188
188
|
|
|
@@ -361,7 +361,7 @@ var globe = Kapsule({
|
|
|
361
361
|
cancelAnimationFrame(state.animationFrameRequestId);
|
|
362
362
|
state.animationFrameRequestId = null;
|
|
363
363
|
}
|
|
364
|
-
(_state$globe = state.globe) === null || _state$globe === void 0
|
|
364
|
+
(_state$globe = state.globe) === null || _state$globe === void 0 || _state$globe.pauseAnimation();
|
|
365
365
|
return this;
|
|
366
366
|
},
|
|
367
367
|
resumeAnimation: function resumeAnimation(state) {
|
|
@@ -369,7 +369,7 @@ var globe = Kapsule({
|
|
|
369
369
|
if (state.animationFrameRequestId === null) {
|
|
370
370
|
this._animationCycle();
|
|
371
371
|
}
|
|
372
|
-
(_state$globe2 = state.globe) === null || _state$globe2 === void 0
|
|
372
|
+
(_state$globe2 = state.globe) === null || _state$globe2 === void 0 || _state$globe2.resumeAnimation();
|
|
373
373
|
return this;
|
|
374
374
|
},
|
|
375
375
|
_animationCycle: function _animationCycle(state) {
|