react-globe.gl 2.24.3 → 2.24.4

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.
@@ -1,4 +1,4 @@
1
- // Version 2.24.3 react-globe.gl - https://github.com/vasturiano/react-globe.gl
1
+ // Version 2.24.4 react-globe.gl - https://github.com/vasturiano/react-globe.gl
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['react'], factory) :
@@ -314,7 +314,7 @@
314
314
  * Copyright 2010-2023 Three.js Authors
315
315
  * SPDX-License-Identifier: MIT
316
316
  */
317
- const REVISION = '155';
317
+ const REVISION = '156';
318
318
 
319
319
  const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
320
320
  const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
@@ -431,6 +431,8 @@
431
431
  const RGBA_ASTC_12x10_Format = 37820;
432
432
  const RGBA_ASTC_12x12_Format = 37821;
433
433
  const RGBA_BPTC_Format = 36492;
434
+ const RGB_BPTC_SIGNED_Format = 36494;
435
+ const RGB_BPTC_UNSIGNED_Format = 36495;
434
436
  const RED_RGTC1_Format = 36283;
435
437
  const SIGNED_RED_RGTC1_Format = 36284;
436
438
  const RED_GREEN_RGTC2_Format = 36285;
@@ -1186,8 +1188,8 @@
1186
1188
 
1187
1189
  roundToZero() {
1188
1190
 
1189
- this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
1190
- this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
1191
+ this.x = Math.trunc( this.x );
1192
+ this.y = Math.trunc( this.y );
1191
1193
 
1192
1194
  return this;
1193
1195
 
@@ -1777,6 +1779,14 @@
1777
1779
 
1778
1780
  }
1779
1781
 
1782
+ function createCanvasElement() {
1783
+
1784
+ const canvas = createElementNS( 'canvas' );
1785
+ canvas.style.display = 'block';
1786
+ return canvas;
1787
+
1788
+ }
1789
+
1780
1790
  const _cache = {};
1781
1791
 
1782
1792
  function warnOnce( message ) {
@@ -2168,7 +2178,7 @@
2168
2178
 
2169
2179
  }
2170
2180
 
2171
- let textureId = 0;
2181
+ let _textureId = 0;
2172
2182
 
2173
2183
  class Texture extends EventDispatcher {
2174
2184
 
@@ -2178,7 +2188,7 @@
2178
2188
 
2179
2189
  this.isTexture = true;
2180
2190
 
2181
- Object.defineProperty( this, 'id', { value: textureId ++ } );
2191
+ Object.defineProperty( this, 'id', { value: _textureId ++ } );
2182
2192
 
2183
2193
  this.uuid = generateUUID();
2184
2194
 
@@ -2988,10 +2998,10 @@
2988
2998
 
2989
2999
  roundToZero() {
2990
3000
 
2991
- this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
2992
- this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
2993
- this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z );
2994
- this.w = ( this.w < 0 ) ? Math.ceil( this.w ) : Math.floor( this.w );
3001
+ this.x = Math.trunc( this.x );
3002
+ this.y = Math.trunc( this.y );
3003
+ this.z = Math.trunc( this.z );
3004
+ this.w = Math.trunc( this.w );
2995
3005
 
2996
3006
  return this;
2997
3007
 
@@ -4384,9 +4394,9 @@
4384
4394
 
4385
4395
  roundToZero() {
4386
4396
 
4387
- this.x = ( this.x < 0 ) ? Math.ceil( this.x ) : Math.floor( this.x );
4388
- this.y = ( this.y < 0 ) ? Math.ceil( this.y ) : Math.floor( this.y );
4389
- this.z = ( this.z < 0 ) ? Math.ceil( this.z ) : Math.floor( this.z );
4397
+ this.x = Math.trunc( this.x );
4398
+ this.y = Math.trunc( this.y );
4399
+ this.z = Math.trunc( this.z );
4390
4400
 
4391
4401
  return this;
4392
4402
 
@@ -7616,20 +7626,7 @@
7616
7626
 
7617
7627
  clear() {
7618
7628
 
7619
- for ( let i = 0; i < this.children.length; i ++ ) {
7620
-
7621
- const object = this.children[ i ];
7622
-
7623
- object.parent = null;
7624
-
7625
- object.dispatchEvent( _removedEvent );
7626
-
7627
- }
7628
-
7629
- this.children.length = 0;
7630
-
7631
- return this;
7632
-
7629
+ return this.remove( ... this.children );
7633
7630
 
7634
7631
  }
7635
7632
 
@@ -8520,7 +8517,7 @@
8520
8517
 
8521
8518
  }
8522
8519
 
8523
- let materialId = 0;
8520
+ let _materialId = 0;
8524
8521
 
8525
8522
  class Material extends EventDispatcher {
8526
8523
 
@@ -8530,7 +8527,7 @@
8530
8527
 
8531
8528
  this.isMaterial = true;
8532
8529
 
8533
- Object.defineProperty( this, 'id', { value: materialId ++ } );
8530
+ Object.defineProperty( this, 'id', { value: _materialId ++ } );
8534
8531
 
8535
8532
  this.uuid = generateUUID();
8536
8533
 
@@ -10116,7 +10113,7 @@
10116
10113
 
10117
10114
  }
10118
10115
 
10119
- let _id$1 = 0;
10116
+ let _id$2 = 0;
10120
10117
 
10121
10118
  const _m1 = /*@__PURE__*/ new Matrix4();
10122
10119
  const _obj = /*@__PURE__*/ new Object3D();
@@ -10133,7 +10130,7 @@
10133
10130
 
10134
10131
  this.isBufferGeometry = true;
10135
10132
 
10136
- Object.defineProperty( this, 'id', { value: _id$1 ++ } );
10133
+ Object.defineProperty( this, 'id', { value: _id$2 ++ } );
10137
10134
 
10138
10135
  this.uuid = generateUUID();
10139
10136
 
@@ -11238,7 +11235,7 @@
11238
11235
 
11239
11236
  }
11240
11237
 
11241
- this.material = source.material;
11238
+ this.material = Array.isArray( source.material ) ? source.material.slice() : source.material;
11242
11239
  this.geometry = source.geometry;
11243
11240
 
11244
11241
  return this;
@@ -13528,7 +13525,7 @@
13528
13525
 
13529
13526
  var logdepthbuf_vertex = "#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif";
13530
13527
 
13531
- var map_fragment = "#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, vMapUv );\n#endif";
13528
+ var map_fragment = "#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif";
13532
13529
 
13533
13530
  var map_pars_fragment = "#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif";
13534
13531
 
@@ -13622,7 +13619,7 @@
13622
13619
 
13623
13620
  const vertex$h = "varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}";
13624
13621
 
13625
- const fragment$h = "uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}";
13622
+ const fragment$h = "uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}";
13626
13623
 
13627
13624
  const vertex$g = "varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}";
13628
13625
 
@@ -14442,24 +14439,15 @@
14442
14439
 
14443
14440
  }
14444
14441
 
14445
- const xr = renderer.xr;
14446
- const environmentBlendMode = xr.getEnvironmentBlendMode();
14442
+ const environmentBlendMode = renderer.xr.getEnvironmentBlendMode();
14447
14443
 
14448
- switch ( environmentBlendMode ) {
14444
+ if ( environmentBlendMode === 'additive' ) {
14449
14445
 
14450
- case 'opaque':
14451
- forceClear = true;
14452
- break;
14446
+ state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
14453
14447
 
14454
- case 'additive':
14455
- state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
14456
- forceClear = true;
14457
- break;
14448
+ } else if ( environmentBlendMode === 'alpha-blend' ) {
14458
14449
 
14459
- case 'alpha-blend':
14460
- state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
14461
- forceClear = true;
14462
- break;
14450
+ state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
14463
14451
 
14464
14452
  }
14465
14453
 
@@ -19574,6 +19562,8 @@
19574
19562
 
19575
19563
  parameters.useLegacyLights ? '#define LEGACY_LIGHTS' : '',
19576
19564
 
19565
+ parameters.decodeVideoTexture ? '#define DECODE_VIDEO_TEXTURE' : '',
19566
+
19577
19567
  parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '',
19578
19568
  ( parameters.logarithmicDepthBuffer && parameters.rendererExtensionFragDepth ) ? '#define USE_LOGDEPTHBUF_EXT' : '',
19579
19569
 
@@ -19808,7 +19798,7 @@
19808
19798
 
19809
19799
  }
19810
19800
 
19811
- let _id = 0;
19801
+ let _id$1 = 0;
19812
19802
 
19813
19803
  class WebGLShaderCache {
19814
19804
 
@@ -19922,7 +19912,7 @@
19922
19912
 
19923
19913
  constructor( code ) {
19924
19914
 
19925
- this.id = _id ++;
19915
+ this.id = _id$1 ++;
19926
19916
 
19927
19917
  this.code = code;
19928
19918
  this.usedTimes = 0;
@@ -20261,6 +20251,8 @@
20261
20251
  toneMapping: toneMapping,
20262
20252
  useLegacyLights: renderer._useLegacyLights,
20263
20253
 
20254
+ decodeVideoTexture: HAS_MAP && ( material.map.isVideoTexture === true ) && ( material.map.colorSpace === SRGBColorSpace ),
20255
+
20264
20256
  premultipliedAlpha: material.premultipliedAlpha,
20265
20257
 
20266
20258
  doubleSided: material.side === DoubleSide,
@@ -20462,6 +20454,8 @@
20462
20454
  _programLayers.enable( 17 );
20463
20455
  if ( parameters.pointsUvs )
20464
20456
  _programLayers.enable( 18 );
20457
+ if ( parameters.decodeVideoTexture )
20458
+ _programLayers.enable( 19 );
20465
20459
 
20466
20460
  array.push( _programLayers.mask );
20467
20461
 
@@ -24022,7 +24016,7 @@
24022
24016
  glFormat = utils.convert( texture.format, texture.colorSpace );
24023
24017
 
24024
24018
  let glType = utils.convert( texture.type ),
24025
- glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.colorSpace );
24019
+ glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.colorSpace, texture.isVideoTexture );
24026
24020
 
24027
24021
  setTextureParameters( textureType, texture, supportsMips );
24028
24022
 
@@ -25301,13 +25295,13 @@
25301
25295
  const format = texture.format;
25302
25296
  const type = texture.type;
25303
25297
 
25304
- if ( texture.isCompressedTexture === true || texture.format === _SRGBAFormat ) return image;
25298
+ if ( texture.isCompressedTexture === true || texture.isVideoTexture === true || texture.format === _SRGBAFormat ) return image;
25305
25299
 
25306
25300
  if ( colorSpace !== LinearSRGBColorSpace && colorSpace !== NoColorSpace ) {
25307
25301
 
25308
25302
  // sRGB
25309
25303
 
25310
- if ( colorSpace === SRGBColorSpace ) {
25304
+ if ( colorSpace === SRGBColorSpace || colorSpace === DisplayP3ColorSpace ) {
25311
25305
 
25312
25306
  if ( isWebGL2 === false ) {
25313
25307
 
@@ -25373,6 +25367,9 @@
25373
25367
 
25374
25368
  }
25375
25369
 
25370
+ const LinearTransferFunction = 0;
25371
+ const SRGBTransferFunction = 1;
25372
+
25376
25373
  function WebGLUtils( gl, extensions, capabilities ) {
25377
25374
 
25378
25375
  const isWebGL2 = capabilities.isWebGL2;
@@ -25381,6 +25378,8 @@
25381
25378
 
25382
25379
  let extension;
25383
25380
 
25381
+ const transferFunction = ( colorSpace === SRGBColorSpace || colorSpace === DisplayP3ColorSpace ) ? SRGBTransferFunction : LinearTransferFunction;
25382
+
25384
25383
  if ( p === UnsignedByteType ) return gl.UNSIGNED_BYTE;
25385
25384
  if ( p === UnsignedShort4444Type ) return gl.UNSIGNED_SHORT_4_4_4_4;
25386
25385
  if ( p === UnsignedShort5551Type ) return gl.UNSIGNED_SHORT_5_5_5_1;
@@ -25447,7 +25446,7 @@
25447
25446
 
25448
25447
  if ( p === RGB_S3TC_DXT1_Format || p === RGBA_S3TC_DXT1_Format || p === RGBA_S3TC_DXT3_Format || p === RGBA_S3TC_DXT5_Format ) {
25449
25448
 
25450
- if ( colorSpace === SRGBColorSpace ) {
25449
+ if ( transferFunction === SRGBTransferFunction ) {
25451
25450
 
25452
25451
  extension = extensions.get( 'WEBGL_compressed_texture_s3tc_srgb' );
25453
25452
 
@@ -25532,8 +25531,8 @@
25532
25531
 
25533
25532
  if ( extension !== null ) {
25534
25533
 
25535
- if ( p === RGB_ETC2_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ETC2 : extension.COMPRESSED_RGB8_ETC2;
25536
- if ( p === RGBA_ETC2_EAC_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : extension.COMPRESSED_RGBA8_ETC2_EAC;
25534
+ if ( p === RGB_ETC2_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ETC2 : extension.COMPRESSED_RGB8_ETC2;
25535
+ if ( p === RGBA_ETC2_EAC_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : extension.COMPRESSED_RGBA8_ETC2_EAC;
25537
25536
 
25538
25537
  } else {
25539
25538
 
@@ -25555,20 +25554,20 @@
25555
25554
 
25556
25555
  if ( extension !== null ) {
25557
25556
 
25558
- if ( p === RGBA_ASTC_4x4_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : extension.COMPRESSED_RGBA_ASTC_4x4_KHR;
25559
- if ( p === RGBA_ASTC_5x4_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : extension.COMPRESSED_RGBA_ASTC_5x4_KHR;
25560
- if ( p === RGBA_ASTC_5x5_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : extension.COMPRESSED_RGBA_ASTC_5x5_KHR;
25561
- if ( p === RGBA_ASTC_6x5_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : extension.COMPRESSED_RGBA_ASTC_6x5_KHR;
25562
- if ( p === RGBA_ASTC_6x6_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : extension.COMPRESSED_RGBA_ASTC_6x6_KHR;
25563
- if ( p === RGBA_ASTC_8x5_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : extension.COMPRESSED_RGBA_ASTC_8x5_KHR;
25564
- if ( p === RGBA_ASTC_8x6_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : extension.COMPRESSED_RGBA_ASTC_8x6_KHR;
25565
- if ( p === RGBA_ASTC_8x8_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : extension.COMPRESSED_RGBA_ASTC_8x8_KHR;
25566
- if ( p === RGBA_ASTC_10x5_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : extension.COMPRESSED_RGBA_ASTC_10x5_KHR;
25567
- if ( p === RGBA_ASTC_10x6_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : extension.COMPRESSED_RGBA_ASTC_10x6_KHR;
25568
- if ( p === RGBA_ASTC_10x8_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : extension.COMPRESSED_RGBA_ASTC_10x8_KHR;
25569
- if ( p === RGBA_ASTC_10x10_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : extension.COMPRESSED_RGBA_ASTC_10x10_KHR;
25570
- if ( p === RGBA_ASTC_12x10_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : extension.COMPRESSED_RGBA_ASTC_12x10_KHR;
25571
- if ( p === RGBA_ASTC_12x12_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : extension.COMPRESSED_RGBA_ASTC_12x12_KHR;
25557
+ if ( p === RGBA_ASTC_4x4_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : extension.COMPRESSED_RGBA_ASTC_4x4_KHR;
25558
+ if ( p === RGBA_ASTC_5x4_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : extension.COMPRESSED_RGBA_ASTC_5x4_KHR;
25559
+ if ( p === RGBA_ASTC_5x5_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : extension.COMPRESSED_RGBA_ASTC_5x5_KHR;
25560
+ if ( p === RGBA_ASTC_6x5_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : extension.COMPRESSED_RGBA_ASTC_6x5_KHR;
25561
+ if ( p === RGBA_ASTC_6x6_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : extension.COMPRESSED_RGBA_ASTC_6x6_KHR;
25562
+ if ( p === RGBA_ASTC_8x5_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : extension.COMPRESSED_RGBA_ASTC_8x5_KHR;
25563
+ if ( p === RGBA_ASTC_8x6_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : extension.COMPRESSED_RGBA_ASTC_8x6_KHR;
25564
+ if ( p === RGBA_ASTC_8x8_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : extension.COMPRESSED_RGBA_ASTC_8x8_KHR;
25565
+ if ( p === RGBA_ASTC_10x5_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : extension.COMPRESSED_RGBA_ASTC_10x5_KHR;
25566
+ if ( p === RGBA_ASTC_10x6_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : extension.COMPRESSED_RGBA_ASTC_10x6_KHR;
25567
+ if ( p === RGBA_ASTC_10x8_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : extension.COMPRESSED_RGBA_ASTC_10x8_KHR;
25568
+ if ( p === RGBA_ASTC_10x10_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : extension.COMPRESSED_RGBA_ASTC_10x10_KHR;
25569
+ if ( p === RGBA_ASTC_12x10_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : extension.COMPRESSED_RGBA_ASTC_12x10_KHR;
25570
+ if ( p === RGBA_ASTC_12x12_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : extension.COMPRESSED_RGBA_ASTC_12x12_KHR;
25572
25571
 
25573
25572
  } else {
25574
25573
 
@@ -25580,13 +25579,15 @@
25580
25579
 
25581
25580
  // BPTC
25582
25581
 
25583
- if ( p === RGBA_BPTC_Format ) {
25582
+ if ( p === RGBA_BPTC_Format || p === RGB_BPTC_SIGNED_Format || p === RGB_BPTC_UNSIGNED_Format ) {
25584
25583
 
25585
25584
  extension = extensions.get( 'EXT_texture_compression_bptc' );
25586
25585
 
25587
25586
  if ( extension !== null ) {
25588
25587
 
25589
- if ( p === RGBA_BPTC_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
25588
+ if ( p === RGBA_BPTC_Format ) return ( transferFunction === SRGBTransferFunction ) ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
25589
+ if ( p === RGB_BPTC_SIGNED_Format ) return extension.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
25590
+ if ( p === RGB_BPTC_UNSIGNED_Format ) return extension.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
25590
25591
 
25591
25592
  } else {
25592
25593
 
@@ -26628,14 +26629,6 @@
26628
26629
  camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );
26629
26630
  camera.updateMatrixWorld( true );
26630
26631
 
26631
- const children = camera.children;
26632
-
26633
- for ( let i = 0, l = children.length; i < l; i ++ ) {
26634
-
26635
- children[ i ].updateMatrixWorld( true );
26636
-
26637
- }
26638
-
26639
26632
  camera.projectionMatrix.copy( cameraXR.projectionMatrix );
26640
26633
  camera.projectionMatrixInverse.copy( cameraXR.projectionMatrixInverse );
26641
26634
 
@@ -27798,14 +27791,6 @@
27798
27791
 
27799
27792
  }
27800
27793
 
27801
- function createCanvasElement() {
27802
-
27803
- const canvas = createElementNS( 'canvas' );
27804
- canvas.style.display = 'block';
27805
- return canvas;
27806
-
27807
- }
27808
-
27809
27794
  class WebGLRenderer {
27810
27795
 
27811
27796
  constructor( parameters = {} ) {
@@ -29531,48 +29516,28 @@
29531
29516
 
29532
29517
  if ( refreshProgram || _currentCamera !== camera ) {
29533
29518
 
29534
- p_uniforms.setValue( _gl, 'projectionMatrix', camera.projectionMatrix );
29519
+ // common camera uniforms
29535
29520
 
29536
- if ( capabilities.logarithmicDepthBuffer ) {
29537
-
29538
- p_uniforms.setValue( _gl, 'logDepthBufFC',
29539
- 2.0 / ( Math.log( camera.far + 1.0 ) / Math.LN2 ) );
29540
-
29541
- }
29542
-
29543
- if ( _currentCamera !== camera ) {
29521
+ p_uniforms.setValue( _gl, 'projectionMatrix', camera.projectionMatrix );
29522
+ p_uniforms.setValue( _gl, 'viewMatrix', camera.matrixWorldInverse );
29544
29523
 
29545
- _currentCamera = camera;
29524
+ const uCamPos = p_uniforms.map.cameraPosition;
29546
29525
 
29547
- // lighting uniforms depend on the camera so enforce an update
29548
- // now, in case this material supports lights - or later, when
29549
- // the next material that does gets activated:
29526
+ if ( uCamPos !== undefined ) {
29550
29527
 
29551
- refreshMaterial = true; // set to true on material change
29552
- refreshLights = true; // remains set until update done
29528
+ uCamPos.setValue( _gl, _vector3.setFromMatrixPosition( camera.matrixWorld ) );
29553
29529
 
29554
29530
  }
29555
29531
 
29556
- // load material specific uniforms
29557
- // (shader material also gets them for the sake of genericity)
29558
-
29559
- if ( material.isShaderMaterial ||
29560
- material.isMeshPhongMaterial ||
29561
- material.isMeshToonMaterial ||
29562
- material.isMeshStandardMaterial ||
29563
- material.envMap ) {
29564
-
29565
- const uCamPos = p_uniforms.map.cameraPosition;
29566
-
29567
- if ( uCamPos !== undefined ) {
29568
-
29569
- uCamPos.setValue( _gl,
29570
- _vector3.setFromMatrixPosition( camera.matrixWorld ) );
29532
+ if ( capabilities.logarithmicDepthBuffer ) {
29571
29533
 
29572
- }
29534
+ p_uniforms.setValue( _gl, 'logDepthBufFC',
29535
+ 2.0 / ( Math.log( camera.far + 1.0 ) / Math.LN2 ) );
29573
29536
 
29574
29537
  }
29575
29538
 
29539
+ // consider moving isOrthographic to UniformLib and WebGLMaterials, see https://github.com/mrdoob/three.js/pull/26467#issuecomment-1645185067
29540
+
29576
29541
  if ( material.isMeshPhongMaterial ||
29577
29542
  material.isMeshToonMaterial ||
29578
29543
  material.isMeshLambertMaterial ||
@@ -29584,16 +29549,16 @@
29584
29549
 
29585
29550
  }
29586
29551
 
29587
- if ( material.isMeshPhongMaterial ||
29588
- material.isMeshToonMaterial ||
29589
- material.isMeshLambertMaterial ||
29590
- material.isMeshBasicMaterial ||
29591
- material.isMeshStandardMaterial ||
29592
- material.isShaderMaterial ||
29593
- material.isShadowMaterial ||
29594
- object.isSkinnedMesh ) {
29552
+ if ( _currentCamera !== camera ) {
29553
+
29554
+ _currentCamera = camera;
29595
29555
 
29596
- p_uniforms.setValue( _gl, 'viewMatrix', camera.matrixWorldInverse );
29556
+ // lighting uniforms depend on the camera so enforce an update
29557
+ // now, in case this material supports lights - or later, when
29558
+ // the next material that does gets activated:
29559
+
29560
+ refreshMaterial = true; // set to true on material change
29561
+ refreshLights = true; // remains set until update done
29597
29562
 
29598
29563
  }
29599
29564
 
@@ -30865,7 +30830,7 @@
30865
30830
 
30866
30831
  super.copy( source, recursive );
30867
30832
 
30868
- this.material = source.material;
30833
+ this.material = Array.isArray( source.material ) ? source.material.slice() : source.material;
30869
30834
  this.geometry = source.geometry;
30870
30835
 
30871
30836
  return this;
@@ -65915,8 +65880,7 @@
65915
65880
  // create globe
65916
65881
  var globeGeometry = new THREE$e.SphereGeometry(GLOBE_RADIUS, 75, 75);
65917
65882
  var defaultGlobeMaterial = new THREE$e.MeshPhongMaterial({
65918
- color: 0x000000,
65919
- transparent: true
65883
+ color: 0x000000
65920
65884
  });
65921
65885
  var globeObj = new THREE$e.Mesh(globeGeometry, defaultGlobeMaterial);
65922
65886
  globeObj.rotation.y = -Math.PI / 2; // face prime meridian along Z axis
@@ -69713,7 +69677,7 @@
69713
69677
 
69714
69678
  const twoPI = 2 * Math.PI;
69715
69679
 
69716
- return function update() {
69680
+ return function update( deltaTime = null ) {
69717
69681
 
69718
69682
  const position = scope.object.position;
69719
69683
 
@@ -69727,7 +69691,7 @@
69727
69691
 
69728
69692
  if ( scope.autoRotate && state === STATE.NONE ) {
69729
69693
 
69730
- rotateLeft( getAutoRotationAngle() );
69694
+ rotateLeft( getAutoRotationAngle( deltaTime ) );
69731
69695
 
69732
69696
  }
69733
69697
 
@@ -70006,9 +69970,17 @@
70006
69970
  const pointers = [];
70007
69971
  const pointerPositions = {};
70008
69972
 
70009
- function getAutoRotationAngle() {
69973
+ function getAutoRotationAngle( deltaTime ) {
70010
69974
 
70011
- return 2 * Math.PI / 60 / 60 * scope.autoRotateSpeed;
69975
+ if ( deltaTime !== null ) {
69976
+
69977
+ return ( 2 * Math.PI / 60 * scope.autoRotateSpeed ) * deltaTime;
69978
+
69979
+ } else {
69980
+
69981
+ return 2 * Math.PI / 60 / 60 * scope.autoRotateSpeed;
69982
+
69983
+ }
70012
69984
 
70013
69985
  }
70014
69986
 
@@ -70160,7 +70132,7 @@
70160
70132
  mouse.x = ( x / w ) * 2 - 1;
70161
70133
  mouse.y = - ( y / h ) * 2 + 1;
70162
70134
 
70163
- dollyDirection.set( mouse.x, mouse.y, 1 ).unproject( object ).sub( object.position ).normalize();
70135
+ dollyDirection.set( mouse.x, mouse.y, 1 ).unproject( scope.object ).sub( scope.object.position ).normalize();
70164
70136
 
70165
70137
  }
70166
70138
 
@@ -71726,7 +71698,7 @@
71726
71698
 
71727
71699
  class RenderPass extends Pass {
71728
71700
 
71729
- constructor( scene, camera, overrideMaterial, clearColor, clearAlpha ) {
71701
+ constructor( scene, camera, overrideMaterial = null, clearColor = null, clearAlpha = null ) {
71730
71702
 
71731
71703
  super();
71732
71704
 
@@ -71736,7 +71708,7 @@
71736
71708
  this.overrideMaterial = overrideMaterial;
71737
71709
 
71738
71710
  this.clearColor = clearColor;
71739
- this.clearAlpha = ( clearAlpha !== undefined ) ? clearAlpha : 0;
71711
+ this.clearAlpha = clearAlpha;
71740
71712
 
71741
71713
  this.clear = true;
71742
71714
  this.clearDepth = false;
@@ -71752,7 +71724,7 @@
71752
71724
 
71753
71725
  let oldClearAlpha, oldOverrideMaterial;
71754
71726
 
71755
- if ( this.overrideMaterial !== undefined ) {
71727
+ if ( this.overrideMaterial !== null ) {
71756
71728
 
71757
71729
  oldOverrideMaterial = this.scene.overrideMaterial;
71758
71730
 
@@ -71760,16 +71732,21 @@
71760
71732
 
71761
71733
  }
71762
71734
 
71763
- if ( this.clearColor ) {
71735
+ if ( this.clearColor !== null ) {
71764
71736
 
71765
71737
  renderer.getClearColor( this._oldClearColor );
71766
- oldClearAlpha = renderer.getClearAlpha();
71738
+ renderer.setClearColor( this.clearColor );
71739
+
71740
+ }
71767
71741
 
71768
- renderer.setClearColor( this.clearColor, this.clearAlpha );
71742
+ if ( this.clearAlpha !== null ) {
71743
+
71744
+ oldClearAlpha = renderer.getClearAlpha();
71745
+ renderer.setClearAlpha( this.clearAlpha );
71769
71746
 
71770
71747
  }
71771
71748
 
71772
- if ( this.clearDepth ) {
71749
+ if ( this.clearDepth == true ) {
71773
71750
 
71774
71751
  renderer.clearDepth();
71775
71752
 
@@ -71777,17 +71754,30 @@
71777
71754
 
71778
71755
  renderer.setRenderTarget( this.renderToScreen ? null : readBuffer );
71779
71756
 
71780
- // TODO: Avoid using autoClear properties, see https://github.com/mrdoob/three.js/pull/15571#issuecomment-465669600
71781
- if ( this.clear ) renderer.clear( renderer.autoClearColor, renderer.autoClearDepth, renderer.autoClearStencil );
71757
+ if ( this.clear === true ) {
71758
+
71759
+ // TODO: Avoid using autoClear properties, see https://github.com/mrdoob/three.js/pull/15571#issuecomment-465669600
71760
+ renderer.clear( renderer.autoClearColor, renderer.autoClearDepth, renderer.autoClearStencil );
71761
+
71762
+ }
71763
+
71782
71764
  renderer.render( this.scene, this.camera );
71783
71765
 
71784
- if ( this.clearColor ) {
71766
+ // restore
71785
71767
 
71786
- renderer.setClearColor( this._oldClearColor, oldClearAlpha );
71768
+ if ( this.clearColor !== null ) {
71769
+
71770
+ renderer.setClearColor( this._oldClearColor );
71787
71771
 
71788
71772
  }
71789
71773
 
71790
- if ( this.overrideMaterial !== undefined ) {
71774
+ if ( this.clearAlpha !== null ) {
71775
+
71776
+ renderer.setClearAlpha( oldClearAlpha );
71777
+
71778
+ }
71779
+
71780
+ if ( this.overrideMaterial !== null ) {
71791
71781
 
71792
71782
  this.scene.overrideMaterial = oldOverrideMaterial;
71793
71783
 
@@ -73224,26 +73214,26 @@
73224
73214
  var css_248z = ".scene-container .clickable {\n cursor: pointer;\n}";
73225
73215
  styleInject(css_248z);
73226
73216
 
73227
- function ownKeys(object, enumerableOnly) {
73228
- var keys = Object.keys(object);
73217
+ function ownKeys(e, r) {
73218
+ var t = Object.keys(e);
73229
73219
  if (Object.getOwnPropertySymbols) {
73230
- var symbols = Object.getOwnPropertySymbols(object);
73231
- enumerableOnly && (symbols = symbols.filter(function (sym) {
73232
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
73233
- })), keys.push.apply(keys, symbols);
73220
+ var o = Object.getOwnPropertySymbols(e);
73221
+ r && (o = o.filter(function (r) {
73222
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
73223
+ })), t.push.apply(t, o);
73234
73224
  }
73235
- return keys;
73236
- }
73237
- function _objectSpread2(target) {
73238
- for (var i = 1; i < arguments.length; i++) {
73239
- var source = null != arguments[i] ? arguments[i] : {};
73240
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
73241
- _defineProperty(target, key, source[key]);
73242
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
73243
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
73225
+ return t;
73226
+ }
73227
+ function _objectSpread2(e) {
73228
+ for (var r = 1; r < arguments.length; r++) {
73229
+ var t = null != arguments[r] ? arguments[r] : {};
73230
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
73231
+ _defineProperty(e, r, t[r]);
73232
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
73233
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
73244
73234
  });
73245
73235
  }
73246
- return target;
73236
+ return e;
73247
73237
  }
73248
73238
  function _defineProperty(obj, key, value) {
73249
73239
  key = _toPropertyKey(key);
@@ -73328,7 +73318,7 @@
73328
73318
 
73329
73319
  function linkKapsule (kapsulePropName, kapsuleType) {
73330
73320
  var dummyK = new kapsuleType(); // To extract defaults
73331
-
73321
+ dummyK._destructor && dummyK._destructor();
73332
73322
  return {
73333
73323
  linkProp: function linkProp(prop) {
73334
73324
  // link property config
@@ -73369,10 +73359,10 @@
73369
73359
 
73370
73360
  // Expose config from ThreeGlobe
73371
73361
  var bindGlobe = linkKapsule('globe', threeGlobe);
73372
- var linkedGlobeProps = Object.assign.apply(Object, _toConsumableArray(['globeImageUrl', 'bumpImageUrl', 'showGlobe', 'showGraticules', 'showAtmosphere', 'atmosphereColor', 'atmosphereAltitude', 'globeMaterial', '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) {
73362
+ 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) {
73373
73363
  return _defineProperty({}, p, bindGlobe.linkProp(p));
73374
73364
  })));
73375
- var linkedGlobeMethods = Object.assign.apply(Object, _toConsumableArray(['getGlobeRadius', 'getCoords', 'toGeoCoords'].map(function (p) {
73365
+ var linkedGlobeMethods = Object.assign.apply(Object, _toConsumableArray(['globeMaterial', 'getGlobeRadius', 'getCoords', 'toGeoCoords'].map(function (p) {
73376
73366
  return _defineProperty({}, p, bindGlobe.linkMethod(p));
73377
73367
  })));
73378
73368
 
@@ -73551,7 +73541,7 @@
73551
73541
  cancelAnimationFrame(state.animationFrameRequestId);
73552
73542
  state.animationFrameRequestId = null;
73553
73543
  }
73554
- (_state$globe = state.globe) === null || _state$globe === void 0 ? void 0 : _state$globe.pauseAnimation();
73544
+ (_state$globe = state.globe) === null || _state$globe === void 0 || _state$globe.pauseAnimation();
73555
73545
  return this;
73556
73546
  },
73557
73547
  resumeAnimation: function resumeAnimation(state) {
@@ -73559,7 +73549,7 @@
73559
73549
  if (state.animationFrameRequestId === null) {
73560
73550
  this._animationCycle();
73561
73551
  }
73562
- (_state$globe2 = state.globe) === null || _state$globe2 === void 0 ? void 0 : _state$globe2.resumeAnimation();
73552
+ (_state$globe2 = state.globe) === null || _state$globe2 === void 0 || _state$globe2.resumeAnimation();
73563
73553
  return this;
73564
73554
  },
73565
73555
  _animationCycle: function _animationCycle(state) {