globe.gl 2.39.7 → 2.40.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/README.md CHANGED
@@ -113,6 +113,7 @@ new Globe(<domElement>, { configOptions })
113
113
  | --- | --- | :--: |
114
114
  | <b>width</b>([<i>px</i>]) | Getter/setter for the canvas width. | *&lt;window width&gt;* |
115
115
  | <b>height</b>([<i>px</i>]) | Getter/setter for the canvas height. | *&lt;window height&gt;* |
116
+ | <b>globeOffset</b>([<i>[px, px]</i>]) | Getter/setter for the position offset of the globe relative to the canvas center. | `[0, 0]` |
116
117
  | <b>backgroundColor</b>([<i>str</i>]) | Getter/setter for the background color. | `#000011` |
117
118
  | <b>backgroundImageUrl</b>([<i>url</i>]) | Getter/setter for the URL of the equirectangular projection image to be used as background to the globe. If no image is provided, the background color is shown instead. | `null` |
118
119
 
@@ -40,6 +40,8 @@ interface GlobeGenericInstance<ChainableInstance>
40
40
  width(width: number): ChainableInstance;
41
41
  height(): number;
42
42
  height(height: number): ChainableInstance;
43
+ globeOffset(): [number, number];
44
+ globeOffset(offset: [number, number]): ChainableInstance;
43
45
  backgroundColor(): string;
44
46
  backgroundColor(color: string): ChainableInstance;
45
47
  backgroundImageUrl(): string | null;
package/dist/globe.gl.js CHANGED
@@ -1,4 +1,4 @@
1
- // Version 2.39.7 globe.gl - https://github.com/vasturiano/globe.gl
1
+ // Version 2.40.0 globe.gl - https://github.com/vasturiano/globe.gl
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -6,7 +6,7 @@
6
6
  })(this, (function () { 'use strict';
7
7
 
8
8
  function styleInject$2(css, ref) {
9
- if ( ref === undefined ) ref = {};
9
+ if ( ref === void 0 ) ref = {};
10
10
  var insertAt = ref.insertAt;
11
11
 
12
12
  if (typeof document === 'undefined') { return; }
@@ -104,7 +104,7 @@
104
104
  function _toPrimitive$6(t, r) {
105
105
  if ("object" != typeof t || !t) return t;
106
106
  var e = t[Symbol.toPrimitive];
107
- if (undefined !== e) {
107
+ if (void 0 !== e) {
108
108
  var i = e.call(t, r);
109
109
  if ("object" != typeof i) return i;
110
110
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -119,7 +119,7 @@
119
119
  if (r) {
120
120
  if ("string" == typeof r) return _arrayLikeToArray$9(r, a);
121
121
  var t = {}.toString.call(r).slice(8, -1);
122
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : undefined;
122
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0;
123
123
  }
124
124
  }
125
125
 
@@ -41299,17 +41299,17 @@ void main() {
41299
41299
  if (r) {
41300
41300
  if ("string" == typeof r) return _arrayLikeToArray$8(r, a);
41301
41301
  var t = {}.toString.call(r).slice(8, -1);
41302
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : undefined;
41302
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0;
41303
41303
  }
41304
41304
  }
41305
41305
 
41306
41306
  var Prop = /*#__PURE__*/_createClass$5(function Prop(name, _ref) {
41307
41307
  var _ref$default = _ref["default"],
41308
- defaultVal = _ref$default === undefined ? null : _ref$default,
41308
+ defaultVal = _ref$default === void 0 ? null : _ref$default,
41309
41309
  _ref$triggerUpdate = _ref.triggerUpdate,
41310
- triggerUpdate = _ref$triggerUpdate === undefined ? true : _ref$triggerUpdate,
41310
+ triggerUpdate = _ref$triggerUpdate === void 0 ? true : _ref$triggerUpdate,
41311
41311
  _ref$onChange = _ref.onChange,
41312
- onChange = _ref$onChange === undefined ? function (newVal, state) {} : _ref$onChange;
41312
+ onChange = _ref$onChange === void 0 ? function (newVal, state) {} : _ref$onChange;
41313
41313
  _classCallCheck$5(this, Prop);
41314
41314
  this.name = name;
41315
41315
  this.defaultVal = defaultVal;
@@ -41318,19 +41318,19 @@ void main() {
41318
41318
  });
41319
41319
  function index$3 (_ref2) {
41320
41320
  var _ref2$stateInit = _ref2.stateInit,
41321
- stateInit = _ref2$stateInit === undefined ? function () {
41321
+ stateInit = _ref2$stateInit === void 0 ? function () {
41322
41322
  return {};
41323
41323
  } : _ref2$stateInit,
41324
41324
  _ref2$props = _ref2.props,
41325
- rawProps = _ref2$props === undefined ? {} : _ref2$props,
41325
+ rawProps = _ref2$props === void 0 ? {} : _ref2$props,
41326
41326
  _ref2$methods = _ref2.methods,
41327
- methods = _ref2$methods === undefined ? {} : _ref2$methods,
41327
+ methods = _ref2$methods === void 0 ? {} : _ref2$methods,
41328
41328
  _ref2$aliases = _ref2.aliases,
41329
- aliases = _ref2$aliases === undefined ? {} : _ref2$aliases,
41329
+ aliases = _ref2$aliases === void 0 ? {} : _ref2$aliases,
41330
41330
  _ref2$init = _ref2.init,
41331
- initFn = _ref2$init === undefined ? function () {} : _ref2$init,
41331
+ initFn = _ref2$init === void 0 ? function () {} : _ref2$init,
41332
41332
  _ref2$update = _ref2.update,
41333
- updateFn = _ref2$update === undefined ? function () {} : _ref2$update;
41333
+ updateFn = _ref2$update === void 0 ? function () {} : _ref2$update;
41334
41334
  // Parse props into Prop instances
41335
41335
  var props = Object.keys(rawProps).map(function (propName) {
41336
41336
  return new Prop(propName, rawProps[propName]);
@@ -41339,10 +41339,10 @@ void main() {
41339
41339
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
41340
41340
  args[_key] = arguments[_key];
41341
41341
  }
41342
- var classMode = !!(this instanceof KapsuleComp ? this.constructor : undefined);
41342
+ var classMode = !!(this instanceof KapsuleComp ? this.constructor : void 0);
41343
41343
  var nodeElement = classMode ? args.shift() : undefined;
41344
41344
  var _args$ = args[0],
41345
- options = _args$ === undefined ? {} : _args$;
41345
+ options = _args$ === void 0 ? {} : _args$;
41346
41346
 
41347
41347
  // Holds component state
41348
41348
  var state = Object.assign({}, stateInit instanceof Function ? stateInit(options) : stateInit,
@@ -41378,11 +41378,11 @@ void main() {
41378
41378
  function getSetProp(_ref3) {
41379
41379
  var prop = _ref3.name,
41380
41380
  _ref3$triggerUpdate = _ref3.triggerUpdate,
41381
- redigest = _ref3$triggerUpdate === undefined ? false : _ref3$triggerUpdate,
41381
+ redigest = _ref3$triggerUpdate === void 0 ? false : _ref3$triggerUpdate,
41382
41382
  _ref3$onChange = _ref3.onChange,
41383
- onChange = _ref3$onChange === undefined ? function (newVal, state) {} : _ref3$onChange,
41383
+ onChange = _ref3$onChange === void 0 ? function (newVal, state) {} : _ref3$onChange,
41384
41384
  _ref3$defaultVal = _ref3.defaultVal,
41385
- defaultVal = _ref3$defaultVal === undefined ? null : _ref3$defaultVal;
41385
+ defaultVal = _ref3$defaultVal === void 0 ? null : _ref3$defaultVal;
41386
41386
  return function (_) {
41387
41387
  var curVal = state[prop];
41388
41388
  if (!arguments.length) {
@@ -41635,7 +41635,7 @@ void main() {
41635
41635
  },
41636
41636
  }),
41637
41637
  generatePow: function (power) {
41638
- if (power === undefined) { power = 4; }
41638
+ if (power === void 0) { power = 4; }
41639
41639
  power = power < Number.EPSILON ? Number.EPSILON : power;
41640
41640
  power = power > 10000 ? 10000 : power;
41641
41641
  return {
@@ -41690,7 +41690,7 @@ void main() {
41690
41690
  var tween = tweens_1[_b];
41691
41691
  // Remove from any other group first, a tween can only be in one group at a time.
41692
41692
  // @ts-expect-error library internal access
41693
- (_a = tween._group) === null || _a === undefined ? undefined : _a.remove(tween);
41693
+ (_a = tween._group) === null || _a === void 0 ? void 0 : _a.remove(tween);
41694
41694
  // @ts-expect-error library internal access
41695
41695
  tween._group = this;
41696
41696
  this._tweens[tween.getId()] = tween;
@@ -41715,8 +41715,8 @@ void main() {
41715
41715
  return this.getAll().every(function (tween) { return !tween.isPlaying(); });
41716
41716
  };
41717
41717
  Group.prototype.update = function (time, preserve) {
41718
- if (time === undefined) { time = now(); }
41719
- if (preserve === undefined) { preserve = true; }
41718
+ if (time === void 0) { time = now(); }
41719
+ if (preserve === void 0) { preserve = true; }
41720
41720
  var tweenIds = Object.keys(this._tweens);
41721
41721
  if (tweenIds.length === 0)
41722
41722
  return;
@@ -41835,7 +41835,7 @@ void main() {
41835
41835
  return this._duration;
41836
41836
  };
41837
41837
  Tween.prototype.to = function (target, duration) {
41838
- if (duration === undefined) { duration = 1000; }
41838
+ if (duration === void 0) { duration = 1000; }
41839
41839
  if (this._isPlaying)
41840
41840
  throw new Error('Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.');
41841
41841
  this._valuesEnd = target;
@@ -41844,18 +41844,18 @@ void main() {
41844
41844
  return this;
41845
41845
  };
41846
41846
  Tween.prototype.duration = function (duration) {
41847
- if (duration === undefined) { duration = 1000; }
41847
+ if (duration === void 0) { duration = 1000; }
41848
41848
  this._duration = duration < 0 ? 0 : duration;
41849
41849
  return this;
41850
41850
  };
41851
41851
  Tween.prototype.dynamic = function (dynamic) {
41852
- if (dynamic === undefined) { dynamic = false; }
41852
+ if (dynamic === void 0) { dynamic = false; }
41853
41853
  this._isDynamic = dynamic;
41854
41854
  return this;
41855
41855
  };
41856
41856
  Tween.prototype.start = function (time, overrideStartingValues) {
41857
- if (time === undefined) { time = now(); }
41858
- if (overrideStartingValues === undefined) { overrideStartingValues = false; }
41857
+ if (time === void 0) { time = now(); }
41858
+ if (overrideStartingValues === void 0) { overrideStartingValues = false; }
41859
41859
  if (this._isPlaying) {
41860
41860
  return this;
41861
41861
  }
@@ -41988,7 +41988,7 @@ void main() {
41988
41988
  return this;
41989
41989
  };
41990
41990
  Tween.prototype.pause = function (time) {
41991
- if (time === undefined) { time = now(); }
41991
+ if (time === void 0) { time = now(); }
41992
41992
  if (this._isPaused || !this._isPlaying) {
41993
41993
  return this;
41994
41994
  }
@@ -41997,7 +41997,7 @@ void main() {
41997
41997
  return this;
41998
41998
  };
41999
41999
  Tween.prototype.resume = function (time) {
42000
- if (time === undefined) { time = now(); }
42000
+ if (time === void 0) { time = now(); }
42001
42001
  if (!this._isPaused || !this._isPlaying) {
42002
42002
  return this;
42003
42003
  }
@@ -42025,16 +42025,16 @@ void main() {
42025
42025
  */
42026
42026
  Tween.prototype.remove = function () {
42027
42027
  var _a;
42028
- (_a = this._group) === null || _a === undefined ? undefined : _a.remove(this);
42028
+ (_a = this._group) === null || _a === void 0 ? void 0 : _a.remove(this);
42029
42029
  return this;
42030
42030
  };
42031
42031
  Tween.prototype.delay = function (amount) {
42032
- if (amount === undefined) { amount = 0; }
42032
+ if (amount === void 0) { amount = 0; }
42033
42033
  this._delayTime = amount;
42034
42034
  return this;
42035
42035
  };
42036
42036
  Tween.prototype.repeat = function (times) {
42037
- if (times === undefined) { times = 0; }
42037
+ if (times === void 0) { times = 0; }
42038
42038
  this._initialRepeat = times;
42039
42039
  this._repeat = times;
42040
42040
  return this;
@@ -42044,17 +42044,17 @@ void main() {
42044
42044
  return this;
42045
42045
  };
42046
42046
  Tween.prototype.yoyo = function (yoyo) {
42047
- if (yoyo === undefined) { yoyo = false; }
42047
+ if (yoyo === void 0) { yoyo = false; }
42048
42048
  this._yoyo = yoyo;
42049
42049
  return this;
42050
42050
  };
42051
42051
  Tween.prototype.easing = function (easingFunction) {
42052
- if (easingFunction === undefined) { easingFunction = Easing.Linear.None; }
42052
+ if (easingFunction === void 0) { easingFunction = Easing.Linear.None; }
42053
42053
  this._easingFunction = easingFunction;
42054
42054
  return this;
42055
42055
  };
42056
42056
  Tween.prototype.interpolation = function (interpolationFunction) {
42057
- if (interpolationFunction === undefined) { interpolationFunction = Interpolation.Linear; }
42057
+ if (interpolationFunction === void 0) { interpolationFunction = Interpolation.Linear; }
42058
42058
  this._interpolationFunction = interpolationFunction;
42059
42059
  return this;
42060
42060
  };
@@ -42103,8 +42103,8 @@ void main() {
42103
42103
  Tween.prototype.update = function (time, autoStart) {
42104
42104
  var _this = this;
42105
42105
  var _a;
42106
- if (time === undefined) { time = now(); }
42107
- if (autoStart === undefined) { autoStart = Tween.autoStartOnUpdate; }
42106
+ if (time === void 0) { time = now(); }
42107
+ if (autoStart === void 0) { autoStart = Tween.autoStartOnUpdate; }
42108
42108
  if (this._isPaused)
42109
42109
  return true;
42110
42110
  var property;
@@ -42131,7 +42131,7 @@ void main() {
42131
42131
  this._onEveryStartCallbackFired = true;
42132
42132
  }
42133
42133
  var elapsedTime = time - this._startTime;
42134
- var durationAndDelay = this._duration + ((_a = this._repeatDelayTime) !== null && _a !== undefined ? _a : this._delayTime);
42134
+ var durationAndDelay = this._duration + ((_a = this._repeatDelayTime) !== null && _a !== void 0 ? _a : this._delayTime);
42135
42135
  var totalTime = this._duration + this._repeat * durationAndDelay;
42136
42136
  var calculateElapsedPortion = function () {
42137
42137
  if (_this._duration === 0)
@@ -47894,7 +47894,7 @@ void main() {
47894
47894
  if (Array.isArray(r)) return _arrayLikeToArray$6(r);
47895
47895
  }
47896
47896
  function _assertThisInitialized$3(e) {
47897
- if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47897
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47898
47898
  return e;
47899
47899
  }
47900
47900
  function _callSuper$2(t, o, e) {
@@ -48019,7 +48019,7 @@ void main() {
48019
48019
  }
48020
48020
  function _possibleConstructorReturn$2(t, e) {
48021
48021
  if (e && ("object" == typeof e || "function" == typeof e)) return e;
48022
- if (undefined !== e) throw new TypeError("Derived constructors may only return object or undefined");
48022
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
48023
48023
  return _assertThisInitialized$3(t);
48024
48024
  }
48025
48025
  function _setPrototypeOf$3(t, e) {
@@ -48037,7 +48037,7 @@ void main() {
48037
48037
  if (r) {
48038
48038
  if ("string" == typeof r) return _arrayLikeToArray$6(r, a);
48039
48039
  var t = {}.toString.call(r).slice(8, -1);
48040
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : undefined;
48040
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$6(r, a) : void 0;
48041
48041
  }
48042
48042
  }
48043
48043
 
@@ -48149,7 +48149,7 @@ void main() {
48149
48149
  lng = _ref4[0],
48150
48150
  lat = _ref4[1],
48151
48151
  _ref4$ = _ref4[2],
48152
- alt = _ref4$ === undefined ? 0 : _ref4$;
48152
+ alt = _ref4$ === void 0 ? 0 : _ref4$;
48153
48153
  return polar2Cartesian$2(lat, lng, r + alt);
48154
48154
  });
48155
48155
  var _earcutFlatten = flatten([coords3d]),
@@ -48185,7 +48185,7 @@ void main() {
48185
48185
  lng = _ref8[0],
48186
48186
  lat = _ref8[1],
48187
48187
  _ref8$ = _ref8[2],
48188
- alt = _ref8$ === undefined ? 0 : _ref8$;
48188
+ alt = _ref8$ === void 0 ? 0 : _ref8$;
48189
48189
  return polar2Cartesian$2(lat, lng, r + alt);
48190
48190
  });
48191
48191
  });
@@ -50919,7 +50919,7 @@ void main() {
50919
50919
  function _toPrimitive$4(t, r) {
50920
50920
  if ("object" != typeof t || !t) return t;
50921
50921
  var e = t[Symbol.toPrimitive];
50922
- if (undefined !== e) {
50922
+ if (void 0 !== e) {
50923
50923
  var i = e.call(t, r);
50924
50924
  if ("object" != typeof i) return i;
50925
50925
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -50934,7 +50934,7 @@ void main() {
50934
50934
  if (r) {
50935
50935
  if ("string" == typeof r) return _arrayLikeToArray$5(r, a);
50936
50936
  var t = {}.toString.call(r).slice(8, -1);
50937
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : undefined;
50937
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$5(r, a) : void 0;
50938
50938
  }
50939
50939
  }
50940
50940
 
@@ -51050,7 +51050,7 @@ void main() {
51050
51050
  if (hasRequiredFrameTicker) return FrameTicker$4.exports;
51051
51051
  hasRequiredFrameTicker = 1;
51052
51052
  (function (module, exports) {
51053
- !function(e,t){module.exports=t();}(FrameTicker$3,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:false};return e[n].call(r.exports,r,r.exports,t),r.loaded=true,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){var n=i(1),r=function(){function e(e,t,i){ undefined===e&&(e=NaN),undefined===t&&(t=NaN),undefined===i&&(i=false),this._minFPS=t,this._maxFPS=e,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=false,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new n.default,this._onPause=new n.default,this._onTick=new n.default,this._onTickOncePerFrame=new n.default,i||this.resume();}return e.prototype.updateOnce=function(e){e(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick);},e.prototype.resume=function(){this._isRunning||(this._isRunning=true,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce());},e.prototype.pause=function(){this._isRunning&&(this._isRunning=false,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle));},e.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll();},Object.defineProperty(e.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"timeScale",{get:function(){return this._timeScale},set:function(e){this._timeScale!==e&&(this._timeScale=e);},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onResume",{get:function(){return this._onResume},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onPause",{get:function(){return this._onPause},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onTick",{get:function(){return this._onTick},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:true,configurable:true}),e.prototype.animateOnce=function(){var e=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return e.onFrame()});},e.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval)if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,true),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval;this._isRunning&&this.animateOnce();},e.prototype.update=function(e,t){ undefined===t&&(t=true),this._currentTick++,this._currentTime+=e,this._tickDeltaTime=e,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),t&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick);},e.prototype.getTimer=function(){return Date.now()},e}();Object.defineProperty(t,"__esModule",{value:true}),t.default=r;},function(e,t,i){!function(t,i){e.exports=i();}(this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:false};return e[n].call(r.exports,r,r.exports,t),r.loaded=true,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t){var i=function(){function e(){this.functions=[];}return e.prototype.add=function(e){return this.functions.indexOf(e)===-1&&(this.functions.push(e),true)},e.prototype.remove=function(e){var t=this.functions.indexOf(e);return t>-1&&(this.functions.splice(t,1),true)},e.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,true)},e.prototype.dispatch=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=this.functions.concat();i.forEach(function(t){t.apply(undefined,e);});},Object.defineProperty(e.prototype,"numItems",{get:function(){return this.functions.length},enumerable:true,configurable:true}),e}();Object.defineProperty(t,"__esModule",{value:true}),t.default=i;}])});}])});
51053
+ !function(e,t){module.exports=t();}(FrameTicker$3,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:false};return e[n].call(r.exports,r,r.exports,t),r.loaded=true,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){var n=i(1),r=function(){function e(e,t,i){ void 0===e&&(e=NaN),void 0===t&&(t=NaN),void 0===i&&(i=false),this._minFPS=t,this._maxFPS=e,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=false,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new n.default,this._onPause=new n.default,this._onTick=new n.default,this._onTickOncePerFrame=new n.default,i||this.resume();}return e.prototype.updateOnce=function(e){e(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick);},e.prototype.resume=function(){this._isRunning||(this._isRunning=true,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce());},e.prototype.pause=function(){this._isRunning&&(this._isRunning=false,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle));},e.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll();},Object.defineProperty(e.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"timeScale",{get:function(){return this._timeScale},set:function(e){this._timeScale!==e&&(this._timeScale=e);},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onResume",{get:function(){return this._onResume},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onPause",{get:function(){return this._onPause},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onTick",{get:function(){return this._onTick},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:true,configurable:true}),e.prototype.animateOnce=function(){var e=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return e.onFrame()});},e.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval)if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,true),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval;this._isRunning&&this.animateOnce();},e.prototype.update=function(e,t){ void 0===t&&(t=true),this._currentTick++,this._currentTime+=e,this._tickDeltaTime=e,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),t&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick);},e.prototype.getTimer=function(){return Date.now()},e}();Object.defineProperty(t,"__esModule",{value:true}),t.default=r;},function(e,t,i){!function(t,i){e.exports=i();}(this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:false};return e[n].call(r.exports,r,r.exports,t),r.loaded=true,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t){var i=function(){function e(){this.functions=[];}return e.prototype.add=function(e){return this.functions.indexOf(e)===-1&&(this.functions.push(e),true)},e.prototype.remove=function(e){var t=this.functions.indexOf(e);return t>-1&&(this.functions.splice(t,1),true)},e.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,true)},e.prototype.dispatch=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=this.functions.concat();i.forEach(function(t){t.apply(void 0,e);});},Object.defineProperty(e.prototype,"numItems",{get:function(){return this.functions.length},enumerable:true,configurable:true}),e}();Object.defineProperty(t,"__esModule",{value:true}),t.default=i;}])});}])});
51054
51054
  } (FrameTicker$4));
51055
51055
  return FrameTicker$4.exports;
51056
51056
  }
@@ -53703,7 +53703,7 @@ void main() {
53703
53703
  function _toPrimitive$3(t, r) {
53704
53704
  if ("object" != typeof t || !t) return t;
53705
53705
  var e = t[Symbol.toPrimitive];
53706
- if (undefined !== e) {
53706
+ if (void 0 !== e) {
53707
53707
  var i = e.call(t, r );
53708
53708
  if ("object" != typeof i) return i;
53709
53709
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -53718,7 +53718,7 @@ void main() {
53718
53718
  if (r) {
53719
53719
  if ("string" == typeof r) return _arrayLikeToArray$3(r, a);
53720
53720
  var t = {}.toString.call(r).slice(8, -1);
53721
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : undefined;
53721
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0;
53722
53722
  }
53723
53723
  }
53724
53724
 
@@ -68464,7 +68464,7 @@ void main() {
68464
68464
 
68465
68465
 
68466
68466
  function readH3IndexFromPointer(cAddress, offset) {
68467
- if ( offset === undefined ) offset = 0;
68467
+ if ( offset === void 0 ) offset = 0;
68468
68468
 
68469
68469
  var lower = libh3.getValue(cAddress + SZ_H3INDEX * offset, 'i32');
68470
68470
  var upper = libh3.getValue(cAddress + SZ_H3INDEX * offset + SZ_INT, 'i32'); // The lower bits are allowed to be 0s, but if the upper bits are 0
@@ -145981,7 +145981,7 @@ var<${access}> ${ name } : ${ structName };`;
145981
145981
  }
145982
145982
 
145983
145983
  function _assertThisInitialized(e) {
145984
- if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
145984
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
145985
145985
  return e;
145986
145986
  }
145987
145987
 
@@ -146027,11 +146027,11 @@ var<${access}> ${ name } : ${ structName };`;
146027
146027
  }
146028
146028
 
146029
146029
  function _wrapNativeSuper(t) {
146030
- var r = "function" == typeof Map ? new Map() : undefined;
146030
+ var r = "function" == typeof Map ? new Map() : void 0;
146031
146031
  return _wrapNativeSuper = function _wrapNativeSuper(t) {
146032
146032
  if (null === t || !_isNativeFunction(t)) return t;
146033
146033
  if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
146034
- if (undefined !== r) {
146034
+ if (void 0 !== r) {
146035
146035
  if (r.has(t)) return r.get(t);
146036
146036
  r.set(t, Wrapper);
146037
146037
  }
@@ -146170,7 +146170,7 @@ var<${access}> ${ name } : ${ structName };`;
146170
146170
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
146171
146171
  args[_key2 - 1] = arguments[_key2];
146172
146172
  }
146173
- _this = _Error.call(this, format.apply(undefined, [ERRORS[code]].concat(args))) || this;
146173
+ _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
146174
146174
  }
146175
146175
  return _assertThisInitialized(_this);
146176
146176
  }
@@ -146184,7 +146184,7 @@ var<${access}> ${ name } : ${ structName };`;
146184
146184
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
146185
146185
  }
146186
146186
  function hslToRgb(hue, saturation, lightness, convert) {
146187
- if (convert === undefined) {
146187
+ if (convert === void 0) {
146188
146188
  convert = convertToInt;
146189
146189
  }
146190
146190
  if (saturation === 0) {
@@ -148228,7 +148228,7 @@ var<${access}> ${ name } : ${ structName };`;
148228
148228
  return [event.pageX, event.pageY];
148229
148229
  }
148230
148230
 
148231
- var n,l,u,t,i,r,o,e,f,c,s,a,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function g(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) undefined===e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:undefined,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function k(n){return n.children}function x(n,l){this.props=n,this.context=l;}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?C(n):null}function S(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=true)&&i.push(n)&&!P.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)(P);}function P(){var n,u,t,r,o,f,c,s;for(i.sort(e);n=i.shift();)n.__d&&(u=i.length,r=undefined,f=(o=(t=n).__v).__e,c=[],s=[],t.__P&&((r=w({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),j(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[f]:null,c,null==f?C(o):f,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,z(c,r,s),r.__e!=f&&S(r)),i.length>u&&i.sort(e));P.__r=0;}function $(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,_,g=t&&t.__k||v,m=l.length;for(f=I(u,l,g,f,m),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=j(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=A(y,f,n):"function"==typeof y.type&&undefined!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function I(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):undefined===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&h--,"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=C(e)),q(e,e));return t}function A(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=C(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--;}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++;}}return -1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px";}function F(n,l,u,t,i){var r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function j(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,A,H,L,T,F=u.type;if(undefined!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof F)try{if(b=u.props,C="prototype"in F&&F.prototype.render,S=(a=F.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new F(b,M):(u.__c=h=new x(b,M),h.constructor=F,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,F.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)C&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(C&&null==F.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,A=0,C){for(h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(L=null!=a&&a.type===k&&null==a.key?a.props.children:a)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else for(T=o.length;T--;)_(o[T]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,r,o,e,c,s);return (a=l.diffed)&&a(u),128&u.__u?undefined:f}function z(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function N(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,g,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=false),e=null;}if(null===x)b===k||c&&u.data===k||(u.data=k);else {if(e=e&&n.call(u.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;F(u,a,null,w,o);}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,b[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),$(u,d(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"==x&&null==g?u.removeAttribute("value"):undefined!==g&&(g!==u[a]||"progress"==x&&!g||"option"==x&&g!==b[a])&&F(u,a,g,b[a],o),a="checked",undefined!==m&&m!==u[a]&&F(u,a,m,b[a],o));}return u}function V(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l.__e(n,t);}}function q(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&q(i[r],u,t||"function"!=typeof n.type);t||_(n.__e),n.__c=n.__=n.__e=undefined;}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],j(t,u=(t).__k=g(k,null,[u]),o||p,p,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),z(e,u,f);}function G(l,u,t){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=undefined===u[o]&&undefined!==e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),M(this));},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=O(false),a=O(true);
148231
+ var n,l,u,t,i,r,o,e,f,c,s,a,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return m(l,e,i,r,null)}function m(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function k(n){return n.children}function x(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?S(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=true)&&i.push(n)&&!$.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)($);}function $(){for(var n,u,t,r,o,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(t),j(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,z(f,t,c),t.__e!=o&&C(t)));$.__r=0;}function I(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,g,_=t&&t.__k||v,m=l.length;for(f=P(u,l,_,f,m),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=j(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=A(y,f,n):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function P(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&h--,"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),q(e,e));return t}function A(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=S(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--;}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++;}}return -1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px";}function F(n,l,u,t,i){var r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"==l||"onFocusIn"==l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function j(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,F,O=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof O)try{if(b=u.props,S="prototype"in O&&O.prototype.render,C=(a=O.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new O(b,M):(u.__c=h=new x(b,M),h.constructor=O,h.render=B),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,O.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(S&&null==O.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),T=(L=null!=a&&a.type===k&&null==a.key)?a.props.children:a,L&&(a.props.children=null),f=I(n,d(T)?T:[T],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else for(F=o.length;F--;)g(o[F]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,r,o,e,c,s);return (a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l.__e(n,u.__v);}});}function N(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=false),e=null;}if(null===x)b===k||c&&u.data===k||(u.data=k);else {if(e=e&&n.call(u.childNodes),b=i.props||p,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;F(u,a,null,w,o);}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,b[a],o);if(h)c||v&&(h.__html===v.__html||h.__html===u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"===t.type?u.content:u,d(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):void 0!==_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!==b[a])&&F(u,a,_,b[a],o),a="checked",void 0!==m&&m!==u[a]&&F(u,a,m,b[a],o));}return u}function V(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l.__e(n,t);}}function q(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&q(i[r],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0;}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],j(t,u=(t).__k=_(k,null,[u]),o||p,p,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),z(e,u,f);}function G(l,u,t){var i,r,o,e,f=w({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&void 0!==e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}n=v.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),M(this));},x.prototype.render=k,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=O(false),a=O(true);
148232
148232
 
148233
148233
  function _arrayLikeToArray$1(r, a) {
148234
148234
  (null == a || a > r.length) && (a = r.length);
@@ -148455,7 +148455,7 @@ var<${access}> ${ name } : ${ structName };`;
148455
148455
  });
148456
148456
 
148457
148457
  function styleInject(css, ref) {
148458
- if (ref === undefined) ref = {};
148458
+ if (ref === void 0) ref = {};
148459
148459
  var insertAt = ref.insertAt;
148460
148460
  if (typeof document === 'undefined') {
148461
148461
  return;
@@ -148543,7 +148543,7 @@ var<${access}> ${ name } : ${ structName };`;
148543
148543
  function _toPrimitive(t, r) {
148544
148544
  if ("object" != typeof t || !t) return t;
148545
148545
  var e = t[Symbol.toPrimitive];
148546
- if (undefined !== e) {
148546
+ if (void 0 !== e) {
148547
148547
  var i = e.call(t, r);
148548
148548
  if ("object" != typeof i) return i;
148549
148549
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -148558,7 +148558,7 @@ var<${access}> ${ name } : ${ structName };`;
148558
148558
  if (r) {
148559
148559
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
148560
148560
  var t = {}.toString.call(r).slice(8, -1);
148561
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
148561
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
148562
148562
  }
148563
148563
  }
148564
148564
 
@@ -148594,6 +148594,9 @@ var<${access}> ${ name } : ${ structName };`;
148594
148594
  isNaN(height) && (state.height = prevHeight);
148595
148595
  }
148596
148596
  },
148597
+ viewOffset: {
148598
+ "default": [0, 0]
148599
+ },
148597
148600
  backgroundColor: {
148598
148601
  "default": '#000011'
148599
148602
  },
@@ -148865,15 +148868,15 @@ var<${access}> ${ name } : ${ structName };`;
148865
148868
  init: function init(domNode, state) {
148866
148869
  var _ref4 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
148867
148870
  _ref4$controlType = _ref4.controlType,
148868
- controlType = _ref4$controlType === undefined ? 'trackball' : _ref4$controlType,
148871
+ controlType = _ref4$controlType === void 0 ? 'trackball' : _ref4$controlType,
148869
148872
  _ref4$useWebGPU = _ref4.useWebGPU,
148870
- useWebGPU = _ref4$useWebGPU === undefined ? false : _ref4$useWebGPU,
148873
+ useWebGPU = _ref4$useWebGPU === void 0 ? false : _ref4$useWebGPU,
148871
148874
  _ref4$rendererConfig = _ref4.rendererConfig,
148872
- rendererConfig = _ref4$rendererConfig === undefined ? {} : _ref4$rendererConfig,
148875
+ rendererConfig = _ref4$rendererConfig === void 0 ? {} : _ref4$rendererConfig,
148873
148876
  _ref4$extraRenderers = _ref4.extraRenderers,
148874
- extraRenderers = _ref4$extraRenderers === undefined ? [] : _ref4$extraRenderers,
148877
+ extraRenderers = _ref4$extraRenderers === void 0 ? [] : _ref4$extraRenderers,
148875
148878
  _ref4$waitForLoadComp = _ref4.waitForLoadComplete,
148876
- waitForLoadComplete = _ref4$waitForLoadComp === undefined ? true : _ref4$waitForLoadComp;
148879
+ waitForLoadComplete = _ref4$waitForLoadComp === void 0 ? true : _ref4$waitForLoadComp;
148877
148880
  // Wipe DOM
148878
148881
  domNode.innerHTML = '';
148879
148882
 
@@ -149022,14 +149025,30 @@ var<${access}> ${ name } : ${ structName };`;
149022
149025
  update: function update(state, changedProps) {
149023
149026
  // resize canvas
149024
149027
  if (state.width && state.height && (changedProps.hasOwnProperty('width') || changedProps.hasOwnProperty('height'))) {
149025
- state.container.style.width = "".concat(state.width, "px");
149026
- state.container.style.height = "".concat(state.height, "px");
149028
+ var _state$camera;
149029
+ var w = state.width;
149030
+ var h = state.height;
149031
+ state.container.style.width = "".concat(w, "px");
149032
+ state.container.style.height = "".concat(h, "px");
149027
149033
  [state.renderer, state.postProcessingComposer].concat(_toConsumableArray(state.extraRenderers)).forEach(function (r) {
149028
- return r.setSize(state.width, state.height);
149034
+ return r.setSize(w, h);
149029
149035
  });
149030
- state.camera.aspect = state.width / state.height;
149036
+ state.camera.aspect = w / h;
149037
+ var o = state.viewOffset.slice(0, 2);
149038
+ o.some(function (n) {
149039
+ return n;
149040
+ }) && (_state$camera = state.camera).setViewOffset.apply(_state$camera, [w, h].concat(_toConsumableArray(o), [w, h]));
149031
149041
  state.camera.updateProjectionMatrix();
149032
149042
  }
149043
+ if (changedProps.hasOwnProperty('viewOffset')) {
149044
+ var _state$camera2;
149045
+ var _w = state.width;
149046
+ var _h = state.height;
149047
+ var _o = state.viewOffset.slice(0, 2);
149048
+ _o.some(function (n) {
149049
+ return n;
149050
+ }) ? (_state$camera2 = state.camera).setViewOffset.apply(_state$camera2, [_w, _h].concat(_toConsumableArray(_o), [_w, _h])) : state.camera.clearViewOffset();
149051
+ }
149033
149052
  if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
149034
149053
  state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
149035
149054
  state.camera.far = state.skyRadius * 2.5;
@@ -149322,6 +149341,15 @@ var<${access}> ${ name } : ${ structName };`;
149322
149341
  state.renderObjs.lineHoverPrecision(val);
149323
149342
  state.renderObjs.pointsHoverPrecision(val);
149324
149343
  }
149344
+ },
149345
+ globeOffset: {
149346
+ "default": [0, 0],
149347
+ triggerUpdate: false,
149348
+ onChange: function onChange(o, state) {
149349
+ return Array.isArray(o) && o.length === 2 && state.renderObjs.viewOffset(o.map(function (v) {
149350
+ return -v;
149351
+ }));
149352
+ }
149325
149353
  }
149326
149354
  }, linkedGlobeProps), linkedRenderObjsProps),
149327
149355
  methods: _objectSpread2$2(_objectSpread2$2({
@@ -149331,7 +149359,7 @@ var<${access}> ${ name } : ${ structName };`;
149331
149359
  cancelAnimationFrame(state.animationFrameRequestId);
149332
149360
  state.animationFrameRequestId = null;
149333
149361
  }
149334
- (_state$globe = state.globe) === null || _state$globe === undefined || _state$globe.pauseAnimation();
149362
+ (_state$globe = state.globe) === null || _state$globe === void 0 || _state$globe.pauseAnimation();
149335
149363
  return this;
149336
149364
  },
149337
149365
  resumeAnimation: function resumeAnimation(state) {
@@ -149339,7 +149367,7 @@ var<${access}> ${ name } : ${ structName };`;
149339
149367
  if (state.animationFrameRequestId === null) {
149340
149368
  this._animationCycle();
149341
149369
  }
149342
- (_state$globe2 = state.globe) === null || _state$globe2 === undefined || _state$globe2.resumeAnimation();
149370
+ (_state$globe2 = state.globe) === null || _state$globe2 === void 0 || _state$globe2.resumeAnimation();
149343
149371
  return this;
149344
149372
  },
149345
149373
  _animationCycle: function _animationCycle(state) {
@@ -149447,7 +149475,7 @@ var<${access}> ${ name } : ${ structName };`;
149447
149475
  stateInit: function stateInit(_ref6) {
149448
149476
  var rendererConfig = _ref6.rendererConfig,
149449
149477
  _ref6$waitForGlobeRea = _ref6.waitForGlobeReady,
149450
- waitForGlobeReady = _ref6$waitForGlobeRea === undefined ? true : _ref6$waitForGlobeRea,
149478
+ waitForGlobeReady = _ref6$waitForGlobeRea === void 0 ? true : _ref6$waitForGlobeRea,
149451
149479
  globeInitConfig = _objectWithoutProperties$2(_ref6, _excluded);
149452
149480
  var globe = new threeGlobe(_objectSpread2$2({
149453
149481
  waitForGlobeReady: waitForGlobeReady
@@ -149669,7 +149697,7 @@ var<${access}> ${ name } : ${ structName };`;
149669
149697
  var args = [ev];
149670
149698
 
149671
149699
  // include click coords
149672
- var point = intersection !== null && intersection !== undefined && intersection.isVector3 ? intersection : intersection === null || intersection === undefined ? undefined : intersection.point;
149700
+ var point = intersection !== null && intersection !== void 0 && intersection.isVector3 ? intersection : intersection === null || intersection === void 0 ? void 0 : intersection.point;
149673
149701
  if (objType === 'globe') {
149674
149702
  var _this$toGeoCoords = _this.toGeoCoords(point),
149675
149703
  lat = _this$toGeoCoords.lat,
@@ -149709,7 +149737,7 @@ var<${access}> ${ name } : ${ structName };`;
149709
149737
  var args = [ev];
149710
149738
 
149711
149739
  // include click coords
149712
- var point = intersection !== null && intersection !== undefined && intersection.isVector3 ? intersection : intersection === null || intersection === undefined ? undefined : intersection.point;
149740
+ var point = intersection !== null && intersection !== void 0 && intersection.isVector3 ? intersection : intersection === null || intersection === void 0 ? void 0 : intersection.point;
149713
149741
  if (objType === 'globe') {
149714
149742
  var _this$toGeoCoords2 = _this.toGeoCoords(point),
149715
149743
  lat = _this$toGeoCoords2.lat,