@loaders.gl/i3s 4.3.0-alpha.1 → 4.3.0-alpha.2

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.
@@ -118,7 +118,7 @@
118
118
  var navigator_ = globalThis.navigator || {};
119
119
 
120
120
  // ../../node_modules/@probe.gl/log/node_modules/@probe.gl/env/dist/utils/globals.js
121
- var VERSION = true ? "4.2.0" : "untranspiled source";
121
+ var VERSION = true ? "4.3.0-alpha.1" : "untranspiled source";
122
122
  var isBrowser3 = isBrowser2();
123
123
 
124
124
  // ../../node_modules/@probe.gl/log/dist/utils/local-storage.js
@@ -615,6 +615,20 @@
615
615
  id: "@probe.gl/log"
616
616
  });
617
617
 
618
+ // ../loader-utils/src/lib/log-utils/log.ts
619
+ var VERSION2 = true ? "4.3.0-alpha.1" : "latest";
620
+ var version = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
621
+ function createLog() {
622
+ const log2 = new Log({ id: "loaders.gl" });
623
+ globalThis.loaders = globalThis.loaders || {};
624
+ globalThis.loaders.log = log2;
625
+ globalThis.loaders.version = version;
626
+ globalThis.probe = globalThis.probe || {};
627
+ globalThis.probe.loaders = log2;
628
+ return log2;
629
+ }
630
+ var log = createLog();
631
+
618
632
  // ../loader-utils/src/lib/option-utils/merge-loader-options.ts
619
633
  function mergeLoaderOptions(baseOptions, newOptions) {
620
634
  return mergeOptionsRecursively(baseOptions || {}, newOptions);
@@ -660,12 +674,12 @@
660
674
  );
661
675
  globalThis._loadersgl_.version = NPM_TAG;
662
676
  } else {
663
- globalThis._loadersgl_.version = "4.2.0";
677
+ globalThis._loadersgl_.version = "4.3.0-alpha.1";
664
678
  }
665
679
  }
666
680
  return globalThis._loadersgl_.version;
667
681
  }
668
- var VERSION2 = getVersion();
682
+ var VERSION3 = getVersion();
669
683
 
670
684
  // ../worker-utils/src/lib/env-utils/assert.ts
671
685
  function assert3(condition, message) {
@@ -1256,11 +1270,11 @@
1256
1270
  }
1257
1271
  }
1258
1272
  if (!url) {
1259
- let version = worker.version;
1260
- if (version === "latest") {
1261
- version = NPM_TAG;
1273
+ let version2 = worker.version;
1274
+ if (version2 === "latest") {
1275
+ version2 = NPM_TAG;
1262
1276
  }
1263
- const versionTag = version ? `@${version}` : "";
1277
+ const versionTag = version2 ? `@${version2}` : "";
1264
1278
  url = `https://unpkg.com/@loaders.gl/${worker.module}${versionTag}/dist/${workerFile}`;
1265
1279
  }
1266
1280
  assert3(url);
@@ -1268,7 +1282,7 @@
1268
1282
  }
1269
1283
 
1270
1284
  // ../worker-utils/src/lib/worker-api/validate-worker-version.ts
1271
- function validateWorkerVersion(worker, coreVersion = VERSION2) {
1285
+ function validateWorkerVersion(worker, coreVersion = VERSION3) {
1272
1286
  assert3(worker, "no worker provided");
1273
1287
  const workerVersion = worker.version;
1274
1288
  if (!coreVersion || !workerVersion) {
@@ -1301,7 +1315,7 @@
1301
1315
  }
1302
1316
  if (options.CDN) {
1303
1317
  assert3(options.CDN.startsWith("http"));
1304
- return `${options.CDN}/${moduleName}@${VERSION2}/dist/libs/${libraryName}`;
1318
+ return `${options.CDN}/${moduleName}@${VERSION3}/dist/libs/${libraryName}`;
1305
1319
  }
1306
1320
  if (isWorker) {
1307
1321
  return `../src/libs/${libraryName}`;
@@ -2185,9 +2199,6 @@
2185
2199
  return getGlobalLoaderRegistry();
2186
2200
  }
2187
2201
 
2188
- // ../core/src/lib/utils/log.ts
2189
- var log = new Log({ id: "loaders.gl" });
2190
-
2191
2202
  // ../core/src/lib/api/select-loader.ts
2192
2203
  var EXT_PATTERN = /\.([^.]+)$/;
2193
2204
  async function selectLoader(data, loaders = [], options, context) {
@@ -5329,7 +5340,7 @@
5329
5340
  _defineProperty(Ellipsoid, "WGS84", new Ellipsoid(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z));
5330
5341
 
5331
5342
  // ../images/src/lib/utils/version.ts
5332
- var VERSION3 = true ? "4.2.0" : "latest";
5343
+ var VERSION4 = true ? "4.3.0-alpha.1" : "latest";
5333
5344
 
5334
5345
  // ../images/src/lib/category-api/image-type.ts
5335
5346
  var parseImageNode = globalThis.loaders?.parseImageNode;
@@ -5727,7 +5738,7 @@
5727
5738
  id: "image",
5728
5739
  module: "images",
5729
5740
  name: "Images",
5730
- version: VERSION3,
5741
+ version: VERSION4,
5731
5742
  mimeTypes: MIME_TYPES,
5732
5743
  extensions: EXTENSIONS,
5733
5744
  parse: parseImage,
@@ -5737,7 +5748,7 @@
5737
5748
  };
5738
5749
 
5739
5750
  // ../draco/src/lib/utils/version.ts
5740
- var VERSION4 = true ? "4.2.0" : "latest";
5751
+ var VERSION5 = true ? "4.3.0-alpha.1" : "latest";
5741
5752
 
5742
5753
  // ../draco/src/draco-loader.ts
5743
5754
  var DracoLoader = {
@@ -5747,7 +5758,7 @@
5747
5758
  id: "draco",
5748
5759
  module: "draco",
5749
5760
  // shapes: ['mesh'],
5750
- version: VERSION4,
5761
+ version: VERSION5,
5751
5762
  worker: true,
5752
5763
  extensions: ["drc"],
5753
5764
  mimeTypes: ["application/octet-stream"],
@@ -6353,7 +6364,7 @@
6353
6364
  }
6354
6365
 
6355
6366
  // ../textures/src/lib/utils/version.ts
6356
- var VERSION5 = true ? "4.2.0" : "latest";
6367
+ var VERSION6 = true ? "4.3.0-alpha.1" : "latest";
6357
6368
 
6358
6369
  // ../textures/src/lib/parsers/basis-module-loader.ts
6359
6370
  var BASIS_EXTERNAL_LIBRARIES = {
@@ -7044,7 +7055,7 @@
7044
7055
  name: "Basis",
7045
7056
  id: "basis",
7046
7057
  module: "textures",
7047
- version: VERSION5,
7058
+ version: VERSION6,
7048
7059
  worker: true,
7049
7060
  extensions: ["basis", "ktx2"],
7050
7061
  mimeTypes: ["application/octet-stream", "image/ktx2"],
@@ -7261,8 +7272,8 @@
7261
7272
  };
7262
7273
  function isPVR(data) {
7263
7274
  const header = new Uint32Array(data, 0, PVR_CONSTANTS.HEADER_LENGTH);
7264
- const version = header[PVR_CONSTANTS.MAGIC_NUMBER_INDEX];
7265
- return version === PVR_CONSTANTS.MAGIC_NUMBER || version === PVR_CONSTANTS.MAGIC_NUMBER_EXTRA;
7275
+ const version2 = header[PVR_CONSTANTS.MAGIC_NUMBER_INDEX];
7276
+ return version2 === PVR_CONSTANTS.MAGIC_NUMBER || version2 === PVR_CONSTANTS.MAGIC_NUMBER_EXTRA;
7266
7277
  }
7267
7278
  function parsePVR(data) {
7268
7279
  const header = new Uint32Array(data, 0, PVR_CONSTANTS.HEADER_LENGTH);
@@ -7361,7 +7372,7 @@
7361
7372
  name: "Texture Containers",
7362
7373
  id: "compressed-texture",
7363
7374
  module: "textures",
7364
- version: VERSION5,
7375
+ version: VERSION6,
7365
7376
  worker: true,
7366
7377
  extensions: [
7367
7378
  "ktx",
@@ -7884,7 +7895,7 @@
7884
7895
  }
7885
7896
 
7886
7897
  // src/i3s-content-loader.ts
7887
- var VERSION6 = true ? "4.2.0" : "latest";
7898
+ var VERSION7 = true ? "4.3.0-alpha.1" : "latest";
7888
7899
  var I3SContentLoader = {
7889
7900
  dataType: null,
7890
7901
  batchType: null,
@@ -7892,7 +7903,7 @@
7892
7903
  id: "i3s-content",
7893
7904
  module: "i3s",
7894
7905
  worker: true,
7895
- version: VERSION6,
7906
+ version: VERSION7,
7896
7907
  mimeTypes: ["application/octet-stream"],
7897
7908
  parse: parse3,
7898
7909
  extensions: ["bin"],
@@ -8,7 +8,7 @@ import { COORDINATE_SYSTEM } from "./lib/parsers/constants.js";
8
8
  import { getUrlWithoutParams } from "./lib/utils/url-utils.js";
9
9
  // __VERSION__ is injected by babel-plugin-version-inline
10
10
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
11
- const VERSION = typeof "4.2.0" !== 'undefined' ? "4.2.0" : 'latest';
11
+ const VERSION = typeof "4.3.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
12
12
  const TILESET_REGEX = /layers\/[0-9]+$/;
13
13
  const LOCAL_SLPK_REGEX = /\.slpk$/;
14
14
  const TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
@@ -3,7 +3,7 @@
3
3
  // Copyright vis.gl contributors
4
4
  // __VERSION__ is injected by babel-plugin-version-inline
5
5
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
6
- const VERSION = typeof "4.2.0" !== 'undefined' ? "4.2.0" : 'latest';
6
+ const VERSION = typeof "4.3.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
7
7
  /**
8
8
  * Loader for I3S node pages
9
9
  */
@@ -5,7 +5,7 @@ import { DataViewFile } from '@loaders.gl/loader-utils';
5
5
  import { parseSLPKArchive } from "./lib/parsers/parse-slpk/parse-slpk.js";
6
6
  // __VERSION__ is injected by babel-plugin-version-inline
7
7
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
8
- const VERSION = typeof "4.2.0" !== 'undefined' ? "4.2.0" : 'latest';
8
+ const VERSION = typeof "4.3.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
9
9
  /**
10
10
  * Loader for SLPK - Scene Layer Package (Archive I3S format)
11
11
  * @todo - this reloads the entire archive for every tile, should be optimized
package/dist/index.cjs CHANGED
@@ -517,7 +517,7 @@ function getFeatureIdsFromFeatureIndexMetadata(featureIndex) {
517
517
  }
518
518
 
519
519
  // dist/i3s-content-loader.js
520
- var VERSION = true ? "4.2.0" : "latest";
520
+ var VERSION = true ? "4.3.0-alpha.1" : "latest";
521
521
  var I3SContentLoader = {
522
522
  dataType: null,
523
523
  batchType: null,
@@ -554,7 +554,7 @@ var import_core3 = require("@loaders.gl/core");
554
554
  var import_textures2 = require("@loaders.gl/textures");
555
555
 
556
556
  // dist/i3s-node-page-loader.js
557
- var VERSION2 = true ? "4.2.0" : "latest";
557
+ var VERSION2 = true ? "4.3.0-alpha.1" : "latest";
558
558
  var I3SNodePageLoader = {
559
559
  dataType: null,
560
560
  batchType: null,
@@ -900,7 +900,7 @@ async function normalizeTilesetData(tileset, options, context) {
900
900
  }
901
901
 
902
902
  // dist/i3s-loader.js
903
- var VERSION3 = true ? "4.2.0" : "latest";
903
+ var VERSION3 = true ? "4.3.0-alpha.1" : "latest";
904
904
  var TILESET_REGEX = /layers\/[0-9]+$/;
905
905
  var LOCAL_SLPK_REGEX = /\.slpk$/;
906
906
  var TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
@@ -1149,7 +1149,7 @@ async function parseSLPKArchive(fileProvider, cb, fileName) {
1149
1149
  }
1150
1150
 
1151
1151
  // dist/i3s-slpk-loader.js
1152
- var VERSION4 = true ? "4.2.0" : "latest";
1152
+ var VERSION4 = true ? "4.3.0-alpha.1" : "latest";
1153
1153
  var SLPKLoader = {
1154
1154
  dataType: null,
1155
1155
  batchType: null,
@@ -1228,7 +1228,7 @@ function parseStringsAttribute(arrayBuffer) {
1228
1228
  }
1229
1229
 
1230
1230
  // dist/i3s-attribute-loader.js
1231
- var VERSION5 = true ? "4.2.0" : "latest";
1231
+ var VERSION5 = true ? "4.3.0-alpha.1" : "latest";
1232
1232
  var EMPTY_VALUE = "";
1233
1233
  var REJECTED_STATUS = "rejected";
1234
1234
  var I3SAttributeLoader = {
@@ -1368,7 +1368,7 @@ function parseSublayersTree(sublayers, url) {
1368
1368
  }
1369
1369
 
1370
1370
  // dist/i3s-building-scene-layer-loader.js
1371
- var VERSION6 = true ? "4.2.0" : "latest";
1371
+ var VERSION6 = true ? "4.3.0-alpha.1" : "latest";
1372
1372
  var I3SBuildingSceneLayerLoader = {
1373
1373
  dataType: null,
1374
1374
  batchType: null,
@@ -1462,7 +1462,7 @@ async function checkSupportedIndexCRS(layer) {
1462
1462
  }
1463
1463
 
1464
1464
  // dist/arcgis-webscene-loader.js
1465
- var VERSION7 = true ? "4.2.0" : "latest";
1465
+ var VERSION7 = true ? "4.3.0-alpha.1" : "latest";
1466
1466
  var ArcGISWebSceneLoader = {
1467
1467
  dataType: null,
1468
1468
  batchType: null,