globe.gl 2.26.10 → 2.26.12
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.common.js +17 -6
- package/dist/globe.gl.js +2090 -1739
- package/dist/globe.gl.js.map +1 -1
- package/dist/globe.gl.min.js +5 -5
- package/dist/globe.gl.module.js +17 -6
- package/package.json +10 -10
package/dist/globe.gl.common.js
CHANGED
|
@@ -58,6 +58,7 @@ function _objectSpread2(target) {
|
|
|
58
58
|
return target;
|
|
59
59
|
}
|
|
60
60
|
function _defineProperty(obj, key, value) {
|
|
61
|
+
key = _toPropertyKey(key);
|
|
61
62
|
if (key in obj) {
|
|
62
63
|
Object.defineProperty(obj, key, {
|
|
63
64
|
value: value,
|
|
@@ -122,6 +123,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
122
123
|
function _nonIterableSpread() {
|
|
123
124
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
124
125
|
}
|
|
126
|
+
function _toPrimitive(input, hint) {
|
|
127
|
+
if (typeof input !== "object" || input === null) return input;
|
|
128
|
+
var prim = input[Symbol.toPrimitive];
|
|
129
|
+
if (prim !== undefined) {
|
|
130
|
+
var res = prim.call(input, hint || "default");
|
|
131
|
+
if (typeof res !== "object") return res;
|
|
132
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
133
|
+
}
|
|
134
|
+
return (hint === "string" ? String : Number)(input);
|
|
135
|
+
}
|
|
136
|
+
function _toPropertyKey(arg) {
|
|
137
|
+
var key = _toPrimitive(arg, "string");
|
|
138
|
+
return typeof key === "symbol" ? key : String(key);
|
|
139
|
+
}
|
|
125
140
|
|
|
126
141
|
function linkKapsule (kapsulePropName, kapsuleType) {
|
|
127
142
|
var dummyK = new kapsuleType(); // To extract defaults
|
|
@@ -380,12 +395,8 @@ var globe = Kapsule({
|
|
|
380
395
|
setCameraPos(finalGeoCoords);
|
|
381
396
|
} else {
|
|
382
397
|
// Avoid rotating more than 180deg longitude
|
|
383
|
-
while (curGeoCoords.lng - finalGeoCoords.lng > 180)
|
|
384
|
-
|
|
385
|
-
}
|
|
386
|
-
while (curGeoCoords.lng - finalGeoCoords.lng < -180) {
|
|
387
|
-
curGeoCoords.lng += 360;
|
|
388
|
-
}
|
|
398
|
+
while (curGeoCoords.lng - finalGeoCoords.lng > 180) curGeoCoords.lng -= 360;
|
|
399
|
+
while (curGeoCoords.lng - finalGeoCoords.lng < -180) curGeoCoords.lng += 360;
|
|
389
400
|
new TWEEN.Tween(curGeoCoords).to(finalGeoCoords, transitionDuration).easing(TWEEN.Easing.Cubic.InOut).onUpdate(setCameraPos).start();
|
|
390
401
|
}
|
|
391
402
|
return this;
|