@loaders.gl/3d-tiles 4.0.0-alpha.17 → 4.0.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dist.min.js CHANGED
@@ -566,37 +566,37 @@
566
566
  });
567
567
 
568
568
  // ../worker-utils/src/lib/library-utils/library-utils.ts
569
- async function loadLibrary(libraryUrl, moduleName = null, options = {}) {
569
+ async function loadLibrary(libraryUrl, moduleName = null, options = {}, libraryName = null) {
570
570
  if (moduleName) {
571
- libraryUrl = getLibraryUrl(libraryUrl, moduleName, options);
571
+ libraryUrl = getLibraryUrl(libraryUrl, moduleName, options, libraryName);
572
572
  }
573
573
  loadLibraryPromises[libraryUrl] = loadLibraryPromises[libraryUrl] || loadLibraryFromFile(libraryUrl);
574
574
  return await loadLibraryPromises[libraryUrl];
575
575
  }
576
- function getLibraryUrl(library, moduleName, options) {
577
- if (library.startsWith("http")) {
576
+ function getLibraryUrl(library, moduleName, options = {}, libraryName = null) {
577
+ if (!options.useLocalLibraries && library.startsWith("http")) {
578
578
  return library;
579
579
  }
580
+ libraryName = libraryName || library;
580
581
  const modules = options.modules || {};
581
- if (modules[library]) {
582
- return modules[library];
582
+ if (modules[libraryName]) {
583
+ return modules[libraryName];
583
584
  }
584
585
  if (!isBrowser2) {
585
- return `modules/${moduleName}/dist/libs/${library}`;
586
+ return `modules/${moduleName}/dist/libs/${libraryName}`;
586
587
  }
587
588
  if (options.CDN) {
588
589
  assert3(options.CDN.startsWith("http"));
589
- return `${options.CDN}/${moduleName}@${VERSION2}/dist/libs/${library}`;
590
+ return `${options.CDN}/${moduleName}@${VERSION2}/dist/libs/${libraryName}`;
590
591
  }
591
592
  if (isWorker) {
592
- return `../src/libs/${library}`;
593
+ return `../src/libs/${libraryName}`;
593
594
  }
594
- return `modules/${moduleName}/src/libs/${library}`;
595
+ return `modules/${moduleName}/src/libs/${libraryName}`;
595
596
  }
596
597
  async function loadLibraryFromFile(libraryUrl) {
597
598
  if (libraryUrl.endsWith("wasm")) {
598
- const response2 = await fetch(libraryUrl);
599
- return await response2.arrayBuffer();
599
+ return await loadAsArrayBuffer(libraryUrl);
600
600
  }
601
601
  if (!isBrowser2) {
602
602
  try {
@@ -608,8 +608,7 @@
608
608
  if (isWorker) {
609
609
  return importScripts(libraryUrl);
610
610
  }
611
- const response = await fetch(libraryUrl);
612
- const scriptSource = await response.text();
611
+ const scriptSource = await loadAsText(libraryUrl);
613
612
  return loadLibraryFromString(scriptSource, libraryUrl);
614
613
  }
615
614
  function loadLibraryFromString(scriptSource, id) {
@@ -630,6 +629,20 @@
630
629
  document.body.appendChild(script);
631
630
  return null;
632
631
  }
632
+ async function loadAsArrayBuffer(url) {
633
+ if (!node.readFileAsArrayBuffer || url.startsWith("http")) {
634
+ const response = await fetch(url);
635
+ return await response.arrayBuffer();
636
+ }
637
+ return await node.readFileAsArrayBuffer(url);
638
+ }
639
+ async function loadAsText(url) {
640
+ if (!node.readFileAsText || url.startsWith("http")) {
641
+ const response = await fetch(url);
642
+ return await response.text();
643
+ }
644
+ return await node.readFileAsText(url);
645
+ }
633
646
  var node, LATEST, VERSION2, loadLibraryPromises;
634
647
  var init_library_utils = __esm({
635
648
  "../worker-utils/src/lib/library-utils/library-utils.ts"() {
@@ -5497,18 +5510,38 @@
5497
5510
  }
5498
5511
  });
5499
5512
 
5513
+ // (disabled):../core/src/lib/fetch/fetch-file.node
5514
+ var require_fetch_file = __commonJS({
5515
+ "(disabled):../core/src/lib/fetch/fetch-file.node"() {
5516
+ }
5517
+ });
5518
+
5500
5519
  // ../core/src/lib/fetch/fetch-file.ts
5520
+ function isNodePath(url) {
5521
+ return !isRequestURL(url) && !isDataURL(url);
5522
+ }
5523
+ function isRequestURL(url) {
5524
+ return url.startsWith("http:") || url.startsWith("https:");
5525
+ }
5526
+ function isDataURL(url) {
5527
+ return url.startsWith("data:");
5528
+ }
5501
5529
  async function fetchFile(urlOrData, fetchOptions) {
5502
5530
  if (typeof urlOrData === "string") {
5503
5531
  const url = resolvePath(urlOrData);
5532
+ if (isNodePath(url) && node3?.fetchFileNode) {
5533
+ return node3.fetchFileNode(url, fetchOptions);
5534
+ }
5504
5535
  return await fetch(url, fetchOptions);
5505
5536
  }
5506
5537
  return await makeResponse(urlOrData);
5507
5538
  }
5539
+ var node3;
5508
5540
  var init_fetch_file = __esm({
5509
5541
  "../core/src/lib/fetch/fetch-file.ts"() {
5510
5542
  init_src2();
5511
5543
  init_response_utils();
5544
+ node3 = __toModule(require_fetch_file());
5512
5545
  }
5513
5546
  });
5514
5547
 
@@ -6172,6 +6205,7 @@
6172
6205
  mimeType: void 0,
6173
6206
  nothrow: false,
6174
6207
  log: new ConsoleLog(),
6208
+ useLocalLibraries: false,
6175
6209
  CDN: "https://unpkg.com/@loaders.gl",
6176
6210
  worker: true,
6177
6211
  maxConcurrency: 3,
@@ -7536,13 +7570,13 @@
7536
7570
  let wasmBinary;
7537
7571
  switch (options.draco && options.draco.decoderType) {
7538
7572
  case "js":
7539
- DracoDecoderModule = await loadLibrary(DRACO_JS_DECODER_URL, "draco", options);
7573
+ DracoDecoderModule = await loadLibrary(DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER], "draco", options, DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER);
7540
7574
  break;
7541
7575
  case "wasm":
7542
7576
  default:
7543
7577
  [DracoDecoderModule, wasmBinary] = await Promise.all([
7544
- await loadLibrary(DRACO_WASM_WRAPPER_URL, "draco", options),
7545
- await loadLibrary(DRACO_WASM_DECODER_URL, "draco", options)
7578
+ await loadLibrary(DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.DECODER], "draco", options, DRACO_EXTERNAL_LIBRARIES.DECODER),
7579
+ await loadLibrary(DRACO_EXTERNAL_LIBRARY_URLS[DRACO_EXTERNAL_LIBRARIES.DECODER_WASM], "draco", options, DRACO_EXTERNAL_LIBRARIES.DECODER_WASM)
7546
7580
  ]);
7547
7581
  }
7548
7582
  DracoDecoderModule = DracoDecoderModule || globalThis.DracoDecoderModule;
@@ -7560,17 +7594,25 @@
7560
7594
  });
7561
7595
  });
7562
7596
  }
7563
- var DRACO_DECODER_VERSION, DRACO_ENCODER_VERSION, STATIC_DECODER_URL, DRACO_JS_DECODER_URL, DRACO_WASM_WRAPPER_URL, DRACO_WASM_DECODER_URL, DRACO_ENCODER_URL, loadDecoderPromise;
7597
+ var DRACO_DECODER_VERSION, DRACO_ENCODER_VERSION, STATIC_DECODER_URL, DRACO_EXTERNAL_LIBRARIES, DRACO_EXTERNAL_LIBRARY_URLS, loadDecoderPromise;
7564
7598
  var init_draco_module_loader = __esm({
7565
7599
  "../draco/src/lib/draco-module-loader.ts"() {
7566
7600
  init_src();
7567
7601
  DRACO_DECODER_VERSION = "1.5.5";
7568
7602
  DRACO_ENCODER_VERSION = "1.4.1";
7569
7603
  STATIC_DECODER_URL = `https://www.gstatic.com/draco/versioned/decoders/${DRACO_DECODER_VERSION}`;
7570
- DRACO_JS_DECODER_URL = `${STATIC_DECODER_URL}/draco_decoder.js`;
7571
- DRACO_WASM_WRAPPER_URL = `${STATIC_DECODER_URL}/draco_wasm_wrapper.js`;
7572
- DRACO_WASM_DECODER_URL = `${STATIC_DECODER_URL}/draco_decoder.wasm`;
7573
- DRACO_ENCODER_URL = `https://raw.githubusercontent.com/google/draco/${DRACO_ENCODER_VERSION}/javascript/draco_encoder.js`;
7604
+ DRACO_EXTERNAL_LIBRARIES = {
7605
+ DECODER: "draco_wasm_wrapper.js",
7606
+ DECODER_WASM: "draco_decoder.wasm",
7607
+ FALLBACK_DECODER: "draco_decoder.js",
7608
+ ENCODER: "draco_encoder.js"
7609
+ };
7610
+ DRACO_EXTERNAL_LIBRARY_URLS = {
7611
+ [DRACO_EXTERNAL_LIBRARIES.DECODER]: `${STATIC_DECODER_URL}/${DRACO_EXTERNAL_LIBRARIES.DECODER}`,
7612
+ [DRACO_EXTERNAL_LIBRARIES.DECODER_WASM]: `${STATIC_DECODER_URL}/${DRACO_EXTERNAL_LIBRARIES.DECODER_WASM}`,
7613
+ [DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER]: `${STATIC_DECODER_URL}/${DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER}`,
7614
+ [DRACO_EXTERNAL_LIBRARIES.ENCODER]: `https://raw.githubusercontent.com/google/draco/${DRACO_ENCODER_VERSION}/javascript/${DRACO_EXTERNAL_LIBRARIES.ENCODER}`
7615
+ };
7574
7616
  }
7575
7617
  });
7576
7618
 
@@ -9359,25 +9401,25 @@
9359
9401
  });
9360
9402
 
9361
9403
  // ../textures/src/lib/parsers/basis-module-loader.ts
9362
- async function loadBasisTrascoderModule(options) {
9404
+ async function loadBasisTranscoderModule(options) {
9363
9405
  const modules = options.modules || {};
9364
9406
  if (modules.basis) {
9365
9407
  return modules.basis;
9366
9408
  }
9367
- loadBasisTranscoderPromise = loadBasisTranscoderPromise || loadBasisTrascoder(options);
9409
+ loadBasisTranscoderPromise = loadBasisTranscoderPromise || loadBasisTranscoder(options);
9368
9410
  return await loadBasisTranscoderPromise;
9369
9411
  }
9370
- async function loadBasisTrascoder(options) {
9412
+ async function loadBasisTranscoder(options) {
9371
9413
  let BASIS = null;
9372
9414
  let wasmBinary = null;
9373
9415
  [BASIS, wasmBinary] = await Promise.all([
9374
- await loadLibrary("basis_transcoder.js", "textures", options),
9375
- await loadLibrary("basis_transcoder.wasm", "textures", options)
9416
+ await loadLibrary(BASIS_EXTERNAL_LIBRARIES.TRANSCODER, "textures", options),
9417
+ await loadLibrary(BASIS_EXTERNAL_LIBRARIES.TRANSCODER_WASM, "textures", options)
9376
9418
  ]);
9377
9419
  BASIS = BASIS || globalThis.BASIS;
9378
- return await initializeBasisTrascoderModule(BASIS, wasmBinary);
9420
+ return await initializeBasisTranscoderModule(BASIS, wasmBinary);
9379
9421
  }
9380
- function initializeBasisTrascoderModule(BasisModule, wasmBinary) {
9422
+ function initializeBasisTranscoderModule(BasisModule, wasmBinary) {
9381
9423
  const options = {};
9382
9424
  if (wasmBinary) {
9383
9425
  options.wasmBinary = wasmBinary;
@@ -9402,8 +9444,8 @@
9402
9444
  let BASIS_ENCODER = null;
9403
9445
  let wasmBinary = null;
9404
9446
  [BASIS_ENCODER, wasmBinary] = await Promise.all([
9405
- await loadLibrary(BASIS_CDN_ENCODER_JS, "textures", options),
9406
- await loadLibrary(BASIS_CDN_ENCODER_WASM, "textures", options)
9447
+ await loadLibrary(BASIS_EXTERNAL_LIBRARIES.ENCODER, "textures", options),
9448
+ await loadLibrary(BASIS_EXTERNAL_LIBRARIES.ENCODER_WASM, "textures", options)
9407
9449
  ]);
9408
9450
  BASIS_ENCODER = BASIS_ENCODER || globalThis.BASIS;
9409
9451
  return await initializeBasisEncoderModule(BASIS_ENCODER, wasmBinary);
@@ -9421,13 +9463,16 @@
9421
9463
  });
9422
9464
  });
9423
9465
  }
9424
- var VERSION9, BASIS_CDN_ENCODER_WASM, BASIS_CDN_ENCODER_JS, loadBasisTranscoderPromise, loadBasisEncoderPromise;
9466
+ var BASIS_EXTERNAL_LIBRARIES, loadBasisTranscoderPromise, loadBasisEncoderPromise;
9425
9467
  var init_basis_module_loader = __esm({
9426
9468
  "../textures/src/lib/parsers/basis-module-loader.ts"() {
9427
9469
  init_src();
9428
- VERSION9 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "beta";
9429
- BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION9}/dist/libs/basis_encoder.wasm`;
9430
- BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION9}/dist/libs/basis_encoder.js`;
9470
+ BASIS_EXTERNAL_LIBRARIES = {
9471
+ TRANSCODER: "basis_transcoder.js",
9472
+ TRANSCODER_WASM: "basis_transcoder.wasm",
9473
+ ENCODER: "basis_encoder.js",
9474
+ ENCODER_WASM: "basis_encoder.wasm"
9475
+ };
9431
9476
  }
9432
9477
  });
9433
9478
 
@@ -9599,7 +9644,7 @@
9599
9644
  const fileConstructors = await loadBasisEncoderModule(options);
9600
9645
  return parseKTX2File(fileConstructors.KTX2File, data, options);
9601
9646
  }
9602
- const { BasisFile } = await loadBasisTrascoderModule(options);
9647
+ const { BasisFile } = await loadBasisTranscoderModule(options);
9603
9648
  return parseBasisFile(BasisFile, data, options);
9604
9649
  }
9605
9650
  switch (options.basis.module) {
@@ -9614,7 +9659,7 @@
9614
9659
  }
9615
9660
  case "transcoder":
9616
9661
  default:
9617
- const { BasisFile } = await loadBasisTrascoderModule(options);
9662
+ const { BasisFile } = await loadBasisTranscoderModule(options);
9618
9663
  return parseBasisFile(BasisFile, data, options);
9619
9664
  }
9620
9665
  }
@@ -10278,8 +10323,8 @@
10278
10323
  this.json.scenes.push({ nodes: nodeIndices });
10279
10324
  return this.json.scenes.length - 1;
10280
10325
  }
10281
- addNode(node3) {
10282
- const { meshIndex, matrix } = node3;
10326
+ addNode(node4) {
10327
+ const { meshIndex, matrix } = node4;
10283
10328
  this.json.nodes = this.json.nodes || [];
10284
10329
  const nodeData = { mesh: meshIndex };
10285
10330
  if (matrix) {
@@ -10676,7 +10721,7 @@
10676
10721
  });
10677
10722
  async function decode2(gltfData, options) {
10678
10723
  const scenegraph = new GLTFScenegraph(gltfData);
10679
- if (!options?.gltf?.decompressMeshes) {
10724
+ if (!options?.gltf?.decompressMeshes || !options.gltf?.loadBuffers) {
10680
10725
  return;
10681
10726
  }
10682
10727
  const promises = [];
@@ -10980,7 +11025,7 @@
10980
11025
  async function decode4(gltfData, options) {
10981
11026
  const gltfScenegraph = new GLTFScenegraph(gltfData);
10982
11027
  const hasExtension = gltfScenegraph.hasExtension(EXT_MESHOPT_TRANSFORM);
10983
- if (!hasExtension) {
11028
+ if (!hasExtension || !options.gltf?.loadBuffers) {
10984
11029
  return;
10985
11030
  }
10986
11031
  const materials = gltfData.json.materials || [];
@@ -11149,12 +11194,12 @@
11149
11194
  gltfScenegraph.json.lights = extension.lights;
11150
11195
  gltfScenegraph.removeExtension(KHR_LIGHTS_PUNCTUAL);
11151
11196
  }
11152
- for (const node3 of json.nodes || []) {
11153
- const nodeExtension = gltfScenegraph.getObjectExtension(node3, KHR_LIGHTS_PUNCTUAL);
11197
+ for (const node4 of json.nodes || []) {
11198
+ const nodeExtension = gltfScenegraph.getObjectExtension(node4, KHR_LIGHTS_PUNCTUAL);
11154
11199
  if (nodeExtension) {
11155
- node3.light = nodeExtension.light;
11200
+ node4.light = nodeExtension.light;
11156
11201
  }
11157
- gltfScenegraph.removeObjectExtension(node3, KHR_LIGHTS_PUNCTUAL);
11202
+ gltfScenegraph.removeObjectExtension(node4, KHR_LIGHTS_PUNCTUAL);
11158
11203
  }
11159
11204
  }
11160
11205
  async function encode2(gltfData) {
@@ -11168,8 +11213,8 @@
11168
11213
  }
11169
11214
  if (gltfScenegraph.json.lights) {
11170
11215
  for (const light of gltfScenegraph.json.lights) {
11171
- const node3 = light.node;
11172
- gltfScenegraph.addObjectExtension(node3, KHR_LIGHTS_PUNCTUAL, light);
11216
+ const node4 = light.node;
11217
+ gltfScenegraph.addObjectExtension(node4, KHR_LIGHTS_PUNCTUAL, light);
11173
11218
  }
11174
11219
  delete gltfScenegraph.json.lights;
11175
11220
  }
@@ -11688,11 +11733,11 @@
11688
11733
  for (const mesh of json.meshes) {
11689
11734
  this._convertMeshIds(mesh);
11690
11735
  }
11691
- for (const node3 of json.nodes) {
11692
- this._convertNodeIds(node3);
11736
+ for (const node4 of json.nodes) {
11737
+ this._convertNodeIds(node4);
11693
11738
  }
11694
- for (const node3 of json.scenes) {
11695
- this._convertSceneIds(node3);
11739
+ for (const node4 of json.scenes) {
11740
+ this._convertSceneIds(node4);
11696
11741
  }
11697
11742
  }
11698
11743
  _convertTextureIds(texture) {
@@ -11714,17 +11759,17 @@
11714
11759
  }
11715
11760
  }
11716
11761
  }
11717
- _convertNodeIds(node3) {
11718
- if (node3.children) {
11719
- node3.children = node3.children.map((child) => this._convertIdToIndex(child, "node"));
11762
+ _convertNodeIds(node4) {
11763
+ if (node4.children) {
11764
+ node4.children = node4.children.map((child) => this._convertIdToIndex(child, "node"));
11720
11765
  }
11721
- if (node3.meshes) {
11722
- node3.meshes = node3.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
11766
+ if (node4.meshes) {
11767
+ node4.meshes = node4.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
11723
11768
  }
11724
11769
  }
11725
11770
  _convertSceneIds(scene) {
11726
11771
  if (scene.nodes) {
11727
- scene.nodes = scene.nodes.map((node3) => this._convertIdToIndex(node3, "node"));
11772
+ scene.nodes = scene.nodes.map((node4) => this._convertIdToIndex(node4, "node"));
11728
11773
  }
11729
11774
  }
11730
11775
  _convertIdsToIndices(json, topLevelArrayName) {
@@ -11880,7 +11925,11 @@
11880
11925
  arrayBuffer = sliceArrayBuffer(array.buffer, array.byteOffset, array.byteLength);
11881
11926
  }
11882
11927
  assert7(arrayBuffer, "glTF image has no data");
11883
- let parsedImage = await parse5(arrayBuffer, [ImageLoader, BasisLoader], { mimeType: image.mimeType, basis: options.basis || { format: selectSupportedBasisFormat() } }, context);
11928
+ let parsedImage = await parse5(arrayBuffer, [ImageLoader, BasisLoader], {
11929
+ ...options,
11930
+ mimeType: image.mimeType,
11931
+ basis: options.basis || { format: selectSupportedBasisFormat() }
11932
+ }, context);
11884
11933
  if (parsedImage && parsedImage[0]) {
11885
11934
  parsedImage = {
11886
11935
  compressed: true,
@@ -12055,8 +12104,8 @@
12055
12104
  json.meshes = gltf.meshes.map((mesh, i2) => this._resolveMesh(mesh, i2));
12056
12105
  }
12057
12106
  if (gltf.nodes) {
12058
- json.nodes = gltf.nodes.map((node3, i2) => this._resolveNode(node3, i2));
12059
- json.nodes = json.nodes.map((node3, i2) => this._resolveNodeChildren(node3));
12107
+ json.nodes = gltf.nodes.map((node4, i2) => this._resolveNode(node4, i2));
12108
+ json.nodes = json.nodes.map((node4, i2) => this._resolveNodeChildren(node4));
12060
12109
  }
12061
12110
  if (gltf.skins) {
12062
12111
  json.skins = gltf.skins.map((skin, i2) => this._resolveSkin(skin, i2));
@@ -12119,38 +12168,38 @@
12119
12168
  return {
12120
12169
  ...scene,
12121
12170
  id: scene.id || `scene-${index}`,
12122
- nodes: (scene.nodes || []).map((node3) => this.getNode(node3))
12171
+ nodes: (scene.nodes || []).map((node4) => this.getNode(node4))
12123
12172
  };
12124
12173
  }
12125
12174
  _resolveNode(gltfNode, index) {
12126
- const node3 = {
12175
+ const node4 = {
12127
12176
  ...gltfNode,
12128
12177
  id: gltfNode?.id || `node-${index}`
12129
12178
  };
12130
12179
  if (gltfNode.mesh !== void 0) {
12131
- node3.mesh = this.getMesh(gltfNode.mesh);
12180
+ node4.mesh = this.getMesh(gltfNode.mesh);
12132
12181
  }
12133
12182
  if (gltfNode.camera !== void 0) {
12134
- node3.camera = this.getCamera(gltfNode.camera);
12183
+ node4.camera = this.getCamera(gltfNode.camera);
12135
12184
  }
12136
12185
  if (gltfNode.skin !== void 0) {
12137
- node3.skin = this.getSkin(gltfNode.skin);
12186
+ node4.skin = this.getSkin(gltfNode.skin);
12138
12187
  }
12139
12188
  if (gltfNode.meshes !== void 0 && gltfNode.meshes.length) {
12140
- node3.mesh = gltfNode.meshes.reduce((accum, meshIndex) => {
12189
+ node4.mesh = gltfNode.meshes.reduce((accum, meshIndex) => {
12141
12190
  const mesh = this.getMesh(meshIndex);
12142
12191
  accum.id = mesh.id;
12143
12192
  accum.primitives = accum.primitives.concat(mesh.primitives);
12144
12193
  return accum;
12145
12194
  }, { primitives: [] });
12146
12195
  }
12147
- return node3;
12196
+ return node4;
12148
12197
  }
12149
- _resolveNodeChildren(node3) {
12150
- if (node3.children) {
12151
- node3.children = node3.children.map((child) => this.getNode(child));
12198
+ _resolveNodeChildren(node4) {
12199
+ if (node4.children) {
12200
+ node4.children = node4.children.map((child) => this.getNode(child));
12152
12201
  }
12153
- return node3;
12202
+ return node4;
12154
12203
  }
12155
12204
  _resolveSkin(gltfSkin, index) {
12156
12205
  const inverseBindMatrices = typeof gltfSkin.inverseBindMatrices === "number" ? this.getAccessor(gltfSkin.inverseBindMatrices) : void 0;
@@ -12784,11 +12833,11 @@
12784
12833
  });
12785
12834
 
12786
12835
  // node_modules/@probe.gl/env/dist/utils/globals.js
12787
- var VERSION10, isBrowser6;
12836
+ var VERSION9, isBrowser6;
12788
12837
  var init_globals6 = __esm({
12789
12838
  "node_modules/@probe.gl/env/dist/utils/globals.js"() {
12790
12839
  init_is_browser2();
12791
- VERSION10 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
12840
+ VERSION9 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
12792
12841
  isBrowser6 = isBrowser5();
12793
12842
  }
12794
12843
  });
@@ -13123,7 +13172,7 @@
13123
13172
  id: ""
13124
13173
  };
13125
13174
  this.id = void 0;
13126
- this.VERSION = VERSION10;
13175
+ this.VERSION = VERSION9;
13127
13176
  this._startTs = getHiResTimestamp2();
13128
13177
  this._deltaTs = getHiResTimestamp2();
13129
13178
  this._storage = void 0;
@@ -13326,7 +13375,7 @@
13326
13375
  return noop2;
13327
13376
  }
13328
13377
  };
13329
- Log2.VERSION = VERSION10;
13378
+ Log2.VERSION = VERSION9;
13330
13379
  }
13331
13380
  });
13332
13381
 
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- var VERSION = typeof "4.0.0-alpha.17" !== 'undefined' ? "4.0.0-alpha.17" : 'latest';
7
+ var VERSION = typeof "4.0.0-alpha.19" !== 'undefined' ? "4.0.0-alpha.19" : 'latest';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = typeof "4.0.0-alpha.17" !== 'undefined' ? "4.0.0-alpha.17" : 'latest';
1
+ export const VERSION = typeof "4.0.0-alpha.19" !== 'undefined' ? "4.0.0-alpha.19" : 'latest';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/3d-tiles",
3
- "version": "4.0.0-alpha.17",
3
+ "version": "4.0.0-alpha.19",
4
4
  "description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -34,11 +34,11 @@
34
34
  "build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
35
35
  },
36
36
  "dependencies": {
37
- "@loaders.gl/draco": "4.0.0-alpha.17",
38
- "@loaders.gl/gltf": "4.0.0-alpha.17",
39
- "@loaders.gl/loader-utils": "4.0.0-alpha.17",
40
- "@loaders.gl/math": "4.0.0-alpha.17",
41
- "@loaders.gl/tiles": "4.0.0-alpha.17",
37
+ "@loaders.gl/draco": "4.0.0-alpha.19",
38
+ "@loaders.gl/gltf": "4.0.0-alpha.19",
39
+ "@loaders.gl/loader-utils": "4.0.0-alpha.19",
40
+ "@loaders.gl/math": "4.0.0-alpha.19",
41
+ "@loaders.gl/tiles": "4.0.0-alpha.19",
42
42
  "@math.gl/core": "^3.5.1",
43
43
  "@math.gl/geospatial": "^3.5.1",
44
44
  "@probe.gl/log": "^4.0.4",
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "@loaders.gl/core": "^4.0.0-alpha.8"
49
49
  },
50
- "gitHead": "68a743e2460cc89bf89edabfd08b395380d7d10c"
50
+ "gitHead": "2ca50ec4e1d312c124eb7c93c60ab6fd17ee833e"
51
51
  }