@loaders.gl/i3s 3.4.13 → 3.4.15

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.
Files changed (58) hide show
  1. package/dist/dist.min.js +124 -111
  2. package/dist/es5/arcgis-webscene-loader.js +5 -22
  3. package/dist/es5/arcgis-webscene-loader.js.map +1 -1
  4. package/dist/es5/bundle.js +1 -1
  5. package/dist/es5/bundle.js.map +1 -1
  6. package/dist/es5/i3s-attribute-loader.js +58 -123
  7. package/dist/es5/i3s-attribute-loader.js.map +1 -1
  8. package/dist/es5/i3s-building-scene-layer-loader.js +8 -28
  9. package/dist/es5/i3s-building-scene-layer-loader.js.map +1 -1
  10. package/dist/es5/i3s-content-loader.js +16 -35
  11. package/dist/es5/i3s-content-loader.js.map +1 -1
  12. package/dist/es5/i3s-loader.js +49 -148
  13. package/dist/es5/i3s-loader.js.map +1 -1
  14. package/dist/es5/i3s-node-page-loader.js +8 -39
  15. package/dist/es5/i3s-node-page-loader.js.map +1 -1
  16. package/dist/es5/i3s-slpk-loader.js +2 -2
  17. package/dist/es5/i3s-slpk-loader.js.map +1 -1
  18. package/dist/es5/index.js +8 -8
  19. package/dist/es5/lib/helpers/i3s-nodepages-tiles.js +161 -267
  20. package/dist/es5/lib/helpers/i3s-nodepages-tiles.js.map +1 -1
  21. package/dist/es5/lib/parsers/constants.js +6 -6
  22. package/dist/es5/lib/parsers/constants.js.map +1 -1
  23. package/dist/es5/lib/parsers/parse-arcgis-webscene.js +64 -146
  24. package/dist/es5/lib/parsers/parse-arcgis-webscene.js.map +1 -1
  25. package/dist/es5/lib/parsers/parse-i3s-attribute.js +26 -55
  26. package/dist/es5/lib/parsers/parse-i3s-attribute.js.map +1 -1
  27. package/dist/es5/lib/parsers/parse-i3s-building-scene-layer.js +27 -47
  28. package/dist/es5/lib/parsers/parse-i3s-building-scene-layer.js.map +1 -1
  29. package/dist/es5/lib/parsers/parse-i3s-tile-content.js +278 -347
  30. package/dist/es5/lib/parsers/parse-i3s-tile-content.js.map +1 -1
  31. package/dist/es5/lib/parsers/parse-i3s.js +55 -79
  32. package/dist/es5/lib/parsers/parse-i3s.js.map +1 -1
  33. package/dist/es5/lib/parsers/parse-slpk/parse-slpk.js +30 -81
  34. package/dist/es5/lib/parsers/parse-slpk/parse-slpk.js.map +1 -1
  35. package/dist/es5/lib/parsers/parse-slpk/slpk-archieve.js +44 -90
  36. package/dist/es5/lib/parsers/parse-slpk/slpk-archieve.js.map +1 -1
  37. package/dist/es5/lib/parsers/parse-zip/cd-file-header.js +17 -17
  38. package/dist/es5/lib/parsers/parse-zip/cd-file-header.js.map +1 -1
  39. package/dist/es5/lib/parsers/parse-zip/local-file-header.js +10 -10
  40. package/dist/es5/lib/parsers/parse-zip/local-file-header.js.map +1 -1
  41. package/dist/es5/lib/utils/convert-i3s-obb-to-mbs.js +4 -6
  42. package/dist/es5/lib/utils/convert-i3s-obb-to-mbs.js.map +1 -1
  43. package/dist/es5/lib/utils/customizeColors.js +79 -140
  44. package/dist/es5/lib/utils/customizeColors.js.map +1 -1
  45. package/dist/es5/lib/utils/url-utils.js +14 -11
  46. package/dist/es5/lib/utils/url-utils.js.map +1 -1
  47. package/dist/es5/types.js +2 -2
  48. package/dist/esm/arcgis-webscene-loader.js +1 -1
  49. package/dist/esm/i3s-attribute-loader.js +1 -1
  50. package/dist/esm/i3s-building-scene-layer-loader.js +1 -1
  51. package/dist/esm/i3s-content-loader.js +1 -1
  52. package/dist/esm/i3s-loader.js +1 -1
  53. package/dist/esm/i3s-node-page-loader.js +1 -1
  54. package/dist/esm/i3s-slpk-loader.js +1 -1
  55. package/dist/i3s-content-nodejs-worker.js +61 -59
  56. package/dist/i3s-content-nodejs-worker.js.map +3 -3
  57. package/dist/i3s-content-worker.js +69 -81
  58. package/package.json +9 -9
package/dist/dist.min.js CHANGED
@@ -631,9 +631,21 @@
631
631
  }
632
632
  });
633
633
 
634
- // (disabled):../worker-utils/src/lib/node/require-utils.node
635
- var require_require_utils = __commonJS({
636
- "(disabled):../worker-utils/src/lib/node/require-utils.node"() {
634
+ // ../worker-utils/src/lib/node/require-utils.browser.ts
635
+ var require_utils_browser_exports = {};
636
+ __export(require_utils_browser_exports, {
637
+ readFileAsArrayBuffer: () => readFileAsArrayBuffer,
638
+ readFileAsText: () => readFileAsText,
639
+ requireFromFile: () => requireFromFile,
640
+ requireFromString: () => requireFromString
641
+ });
642
+ var readFileAsArrayBuffer, readFileAsText, requireFromFile, requireFromString;
643
+ var init_require_utils_browser = __esm({
644
+ "../worker-utils/src/lib/node/require-utils.browser.ts"() {
645
+ readFileAsArrayBuffer = null;
646
+ readFileAsText = null;
647
+ requireFromFile = null;
648
+ requireFromString = null;
637
649
  }
638
650
  });
639
651
 
@@ -672,7 +684,7 @@
672
684
  }
673
685
  if (!isBrowser2) {
674
686
  try {
675
- return node && node.requireFromFile && await node.requireFromFile(libraryUrl);
687
+ return require_utils_browser_exports && requireFromFile && await requireFromFile(libraryUrl);
676
688
  } catch {
677
689
  return null;
678
690
  }
@@ -686,7 +698,7 @@
686
698
  }
687
699
  function loadLibraryFromString(scriptSource, id) {
688
700
  if (!isBrowser2) {
689
- return node.requireFromString && node.requireFromString(scriptSource, id);
701
+ return requireFromString && requireFromString(scriptSource, id);
690
702
  }
691
703
  if (isWorker) {
692
704
  eval.call(global_2, scriptSource);
@@ -702,11 +714,11 @@
702
714
  document.body.appendChild(script);
703
715
  return null;
704
716
  }
705
- var node, LATEST, VERSION3, loadLibraryPromises;
717
+ var LATEST, VERSION3, loadLibraryPromises;
706
718
  var init_library_utils = __esm({
707
719
  "../worker-utils/src/lib/library-utils/library-utils.ts"() {
708
720
  init_globals2();
709
- node = __toModule(require_require_utils());
721
+ init_require_utils_browser();
710
722
  init_assert2();
711
723
  init_version();
712
724
  LATEST = "latest";
@@ -1363,7 +1375,7 @@
1363
1375
  }
1364
1376
  });
1365
1377
 
1366
- // ../core/node_modules/@probe.gl/env/dist/lib/is-electron.js
1378
+ // ../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js
1367
1379
  function isElectron(mockUserAgent) {
1368
1380
  if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
1369
1381
  return true;
@@ -1379,54 +1391,59 @@
1379
1391
  return false;
1380
1392
  }
1381
1393
  var init_is_electron = __esm({
1382
- "../core/node_modules/@probe.gl/env/dist/lib/is-electron.js"() {
1394
+ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"() {
1383
1395
  }
1384
1396
  });
1385
1397
 
1386
- // ../core/node_modules/@probe.gl/env/dist/lib/is-browser.js
1398
+ // ../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js
1387
1399
  function isBrowser3() {
1388
1400
  const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
1389
1401
  return !isNode || isElectron();
1390
1402
  }
1391
1403
  var init_is_browser = __esm({
1392
- "../core/node_modules/@probe.gl/env/dist/lib/is-browser.js"() {
1404
+ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"() {
1393
1405
  init_is_electron();
1394
1406
  }
1395
1407
  });
1396
1408
 
1397
- // ../core/node_modules/@probe.gl/env/dist/lib/globals.js
1398
- var self_3, window_3, document_3, process_, console_, navigator_;
1409
+ // ../../node_modules/@probe.gl/env/dist/esm/lib/globals.js
1410
+ var globals3, self_3, window_3, document_3, process_;
1399
1411
  var init_globals3 = __esm({
1400
- "../core/node_modules/@probe.gl/env/dist/lib/globals.js"() {
1401
- self_3 = globalThis.self || globalThis.window || globalThis.global;
1402
- window_3 = globalThis.window || globalThis.self || globalThis.global;
1403
- document_3 = globalThis.document || {};
1404
- process_ = globalThis.process || {};
1405
- console_ = globalThis.console;
1406
- navigator_ = globalThis.navigator || {};
1412
+ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js"() {
1413
+ globals3 = {
1414
+ self: typeof self !== "undefined" && self,
1415
+ window: typeof window !== "undefined" && window,
1416
+ global: typeof global !== "undefined" && global,
1417
+ document: typeof document !== "undefined" && document,
1418
+ process: typeof process === "object" && process
1419
+ };
1420
+ self_3 = globals3.self || globals3.window || globals3.global;
1421
+ window_3 = globals3.window || globals3.self || globals3.global;
1422
+ document_3 = globals3.document || {};
1423
+ process_ = globals3.process || {};
1407
1424
  }
1408
1425
  });
1409
1426
 
1410
- // ../core/node_modules/@probe.gl/env/dist/utils/globals.js
1427
+ // ../../node_modules/@probe.gl/env/dist/esm/utils/globals.js
1411
1428
  var VERSION5, isBrowser4;
1412
1429
  var init_globals4 = __esm({
1413
- "../core/node_modules/@probe.gl/env/dist/utils/globals.js"() {
1430
+ "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js"() {
1414
1431
  init_is_browser();
1415
1432
  VERSION5 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
1416
1433
  isBrowser4 = isBrowser3();
1417
1434
  }
1418
1435
  });
1419
1436
 
1420
- // ../core/node_modules/@probe.gl/env/dist/index.js
1421
- var init_dist = __esm({
1422
- "../core/node_modules/@probe.gl/env/dist/index.js"() {
1437
+ // ../../node_modules/@probe.gl/env/dist/esm/index.js
1438
+ var init_esm = __esm({
1439
+ "../../node_modules/@probe.gl/env/dist/esm/index.js"() {
1423
1440
  init_globals4();
1424
1441
  init_globals3();
1425
1442
  init_is_browser();
1426
1443
  }
1427
1444
  });
1428
1445
 
1429
- // ../core/node_modules/@probe.gl/log/dist/utils/local-storage.js
1446
+ // ../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js
1430
1447
  function getStorage(type) {
1431
1448
  try {
1432
1449
  const storage = window[type];
@@ -1440,7 +1457,7 @@
1440
1457
  }
1441
1458
  var LocalStorage;
1442
1459
  var init_local_storage = __esm({
1443
- "../core/node_modules/@probe.gl/log/dist/utils/local-storage.js"() {
1460
+ "../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js"() {
1444
1461
  init_defineProperty();
1445
1462
  LocalStorage = class {
1446
1463
  constructor(id, defaultConfig) {
@@ -1476,7 +1493,7 @@
1476
1493
  }
1477
1494
  });
1478
1495
 
1479
- // ../core/node_modules/@probe.gl/log/dist/utils/formatters.js
1496
+ // ../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js
1480
1497
  function formatTime(ms) {
1481
1498
  let formatted;
1482
1499
  if (ms < 10) {
@@ -1507,35 +1524,31 @@
1507
1524
  return ["".concat(message, " %c+"), style];
1508
1525
  }
1509
1526
  var init_formatters = __esm({
1510
- "../core/node_modules/@probe.gl/log/dist/utils/formatters.js"() {
1527
+ "../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js"() {
1511
1528
  }
1512
1529
  });
1513
1530
 
1514
- // ../core/node_modules/@probe.gl/log/dist/utils/color.js
1531
+ // ../../node_modules/@probe.gl/log/dist/esm/utils/color.js
1515
1532
  function getColor(color) {
1516
- if (typeof color !== "string") {
1517
- return color;
1518
- }
1519
- color = color.toUpperCase();
1520
- return COLOR[color] || COLOR.WHITE;
1533
+ return typeof color === "string" ? COLOR[color.toUpperCase()] || COLOR.WHITE : color;
1521
1534
  }
1522
1535
  function addColor(string, color, background) {
1523
1536
  if (!isBrowser3 && typeof string === "string") {
1524
1537
  if (color) {
1525
- const colorCode = getColor(color);
1526
- string = "[".concat(colorCode, "m").concat(string, "");
1538
+ color = getColor(color);
1539
+ string = "[".concat(color, "m").concat(string, "");
1527
1540
  }
1528
1541
  if (background) {
1529
- const colorCode = getColor(background);
1530
- string = "[".concat(colorCode + BACKGROUND_INCREMENT, "m").concat(string, "");
1542
+ color = getColor(background);
1543
+ string = "[".concat(background + 10, "m").concat(string, "");
1531
1544
  }
1532
1545
  }
1533
1546
  return string;
1534
1547
  }
1535
- var COLOR, BACKGROUND_INCREMENT;
1548
+ var COLOR;
1536
1549
  var init_color = __esm({
1537
- "../core/node_modules/@probe.gl/log/dist/utils/color.js"() {
1538
- init_dist();
1550
+ "../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
1551
+ init_esm();
1539
1552
  (function(COLOR2) {
1540
1553
  COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
1541
1554
  COLOR2[COLOR2["RED"] = 31] = "RED";
@@ -1554,45 +1567,42 @@
1554
1567
  COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
1555
1568
  COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
1556
1569
  })(COLOR || (COLOR = {}));
1557
- BACKGROUND_INCREMENT = 10;
1558
1570
  }
1559
1571
  });
1560
1572
 
1561
- // ../core/node_modules/@probe.gl/log/dist/utils/autobind.js
1573
+ // ../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js
1562
1574
  function autobind(obj) {
1563
1575
  let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
1564
1576
  const proto = Object.getPrototypeOf(obj);
1565
1577
  const propNames = Object.getOwnPropertyNames(proto);
1566
- const object = obj;
1567
1578
  for (const key of propNames) {
1568
- const value = object[key];
1569
- if (typeof value === "function") {
1579
+ if (typeof obj[key] === "function") {
1570
1580
  if (!predefined.find((name) => key === name)) {
1571
- object[key] = value.bind(obj);
1581
+ obj[key] = obj[key].bind(obj);
1572
1582
  }
1573
1583
  }
1574
1584
  }
1575
1585
  }
1576
1586
  var init_autobind = __esm({
1577
- "../core/node_modules/@probe.gl/log/dist/utils/autobind.js"() {
1587
+ "../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js"() {
1578
1588
  }
1579
1589
  });
1580
1590
 
1581
- // ../core/node_modules/@probe.gl/log/dist/utils/assert.js
1591
+ // ../../node_modules/@probe.gl/log/dist/esm/utils/assert.js
1582
1592
  function assert3(condition, message) {
1583
1593
  if (!condition) {
1584
1594
  throw new Error(message || "Assertion failed");
1585
1595
  }
1586
1596
  }
1587
1597
  var init_assert3 = __esm({
1588
- "../core/node_modules/@probe.gl/log/dist/utils/assert.js"() {
1598
+ "../../node_modules/@probe.gl/log/dist/esm/utils/assert.js"() {
1589
1599
  }
1590
1600
  });
1591
1601
 
1592
- // ../core/node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js
1602
+ // ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
1593
1603
  function getHiResTimestamp() {
1594
1604
  let timestamp;
1595
- if (isBrowser3() && window_3.performance) {
1605
+ if (isBrowser3 && "performance" in window_3) {
1596
1606
  var _window$performance, _window$performance$n;
1597
1607
  timestamp = window_3 === null || window_3 === void 0 ? void 0 : (_window$performance = window_3.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
1598
1608
  } else if ("hrtime" in process_) {
@@ -1605,12 +1615,12 @@
1605
1615
  return timestamp;
1606
1616
  }
1607
1617
  var init_hi_res_timestamp = __esm({
1608
- "../core/node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js"() {
1609
- init_dist();
1618
+ "../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
1619
+ init_esm();
1610
1620
  }
1611
1621
  });
1612
1622
 
1613
- // ../core/node_modules/@probe.gl/log/dist/log.js
1623
+ // ../../node_modules/@probe.gl/log/dist/esm/log.js
1614
1624
  function noop() {
1615
1625
  }
1616
1626
  function normalizeLogLevel(logLevel) {
@@ -1715,11 +1725,11 @@
1715
1725
  }
1716
1726
  return "empty";
1717
1727
  }
1718
- var originalConsole, DEFAULT_LOG_CONFIGURATION, cache, ONCE, Log;
1728
+ var originalConsole, DEFAULT_SETTINGS, cache, ONCE, Log;
1719
1729
  var init_log = __esm({
1720
- "../core/node_modules/@probe.gl/log/dist/log.js"() {
1730
+ "../../node_modules/@probe.gl/log/dist/esm/log.js"() {
1721
1731
  init_defineProperty();
1722
- init_dist();
1732
+ init_esm();
1723
1733
  init_local_storage();
1724
1734
  init_formatters();
1725
1735
  init_color();
@@ -1727,13 +1737,13 @@
1727
1737
  init_assert3();
1728
1738
  init_hi_res_timestamp();
1729
1739
  originalConsole = {
1730
- debug: isBrowser3() ? console.debug || console.log : console.log,
1740
+ debug: isBrowser3 ? console.debug || console.log : console.log,
1731
1741
  log: console.log,
1732
1742
  info: console.info,
1733
1743
  warn: console.warn,
1734
1744
  error: console.error
1735
1745
  };
1736
- DEFAULT_LOG_CONFIGURATION = {
1746
+ DEFAULT_SETTINGS = {
1737
1747
  enabled: true,
1738
1748
  level: 0
1739
1749
  };
@@ -1757,7 +1767,7 @@
1757
1767
  _defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
1758
1768
  this.id = id;
1759
1769
  this.userData = {};
1760
- this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_LOG_CONFIGURATION);
1770
+ this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
1761
1771
  this.timeStamp("".concat(this.id, " started"));
1762
1772
  autobind(this);
1763
1773
  Object.seal(this);
@@ -1845,6 +1855,9 @@
1845
1855
  return this._getLogFunction(logLevel, message, console.info, arguments);
1846
1856
  }
1847
1857
  once(logLevel, message) {
1858
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1859
+ args[_key - 2] = arguments[_key];
1860
+ }
1848
1861
  return this._getLogFunction(logLevel, message, originalConsole.debug || originalConsole.info, arguments, ONCE);
1849
1862
  }
1850
1863
  table(logLevel, table, columns) {
@@ -1866,7 +1879,7 @@
1866
1879
  if (!this._shouldLog(logLevel || priority)) {
1867
1880
  return noop;
1868
1881
  }
1869
- return isBrowser3() ? logImageInBrowser({
1882
+ return isBrowser3 ? logImageInBrowser({
1870
1883
  image,
1871
1884
  message,
1872
1885
  scale: scale5
@@ -1939,7 +1952,7 @@
1939
1952
  opts.delta = this.getDelta();
1940
1953
  this._deltaTs = getHiResTimestamp();
1941
1954
  const tag = opts.tag || opts.message;
1942
- if (opts.once && tag) {
1955
+ if (opts.once) {
1943
1956
  if (!cache[tag]) {
1944
1957
  cache[tag] = getHiResTimestamp();
1945
1958
  } else {
@@ -1956,13 +1969,13 @@
1956
1969
  }
1957
1970
  });
1958
1971
 
1959
- // ../core/node_modules/@probe.gl/log/dist/index.js
1960
- var dist_default;
1961
- var init_dist2 = __esm({
1962
- "../core/node_modules/@probe.gl/log/dist/index.js"() {
1972
+ // ../../node_modules/@probe.gl/log/dist/esm/index.js
1973
+ var esm_default;
1974
+ var init_esm2 = __esm({
1975
+ "../../node_modules/@probe.gl/log/dist/esm/index.js"() {
1963
1976
  init_log();
1964
1977
  init_log();
1965
- dist_default = new Log({
1978
+ esm_default = new Log({
1966
1979
  id: "@probe.gl/log"
1967
1980
  });
1968
1981
  }
@@ -1972,7 +1985,7 @@
1972
1985
  var probeLog, NullLog, ConsoleLog;
1973
1986
  var init_loggers = __esm({
1974
1987
  "../core/src/lib/loader-utils/loggers.ts"() {
1975
- init_dist2();
1988
+ init_esm2();
1976
1989
  probeLog = new Log({ id: "loaders.gl" });
1977
1990
  NullLog = class {
1978
1991
  log() {
@@ -2215,7 +2228,7 @@
2215
2228
  var log;
2216
2229
  var init_log2 = __esm({
2217
2230
  "../core/src/lib/utils/log.ts"() {
2218
- init_dist2();
2231
+ init_esm2();
2219
2232
  log = new Log({ id: "loaders.gl" });
2220
2233
  }
2221
2234
  });
@@ -5665,7 +5678,7 @@
5665
5678
  });
5666
5679
 
5667
5680
  // ../../node_modules/@math.gl/core/dist/esm/index.js
5668
- var init_esm = __esm({
5681
+ var init_esm3 = __esm({
5669
5682
  "../../node_modules/@math.gl/core/dist/esm/index.js"() {
5670
5683
  init_vector3();
5671
5684
  init_matrix3();
@@ -5740,7 +5753,7 @@
5740
5753
  var scratchVector;
5741
5754
  var init_type_utils = __esm({
5742
5755
  "../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js"() {
5743
- init_esm();
5756
+ init_esm3();
5744
5757
  init_constants();
5745
5758
  scratchVector = new Vector3();
5746
5759
  }
@@ -5805,7 +5818,7 @@
5805
5818
  var scratchVector2, scaleToGeodeticSurfaceIntersection, scaleToGeodeticSurfaceGradient;
5806
5819
  var init_scale_to_geodetic_surface = __esm({
5807
5820
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/scale-to-geodetic-surface.js"() {
5808
- init_esm();
5821
+ init_esm3();
5809
5822
  scratchVector2 = new Vector3();
5810
5823
  scaleToGeodeticSurfaceIntersection = new Vector3();
5811
5824
  scaleToGeodeticSurfaceGradient = new Vector3();
@@ -5877,7 +5890,7 @@
5877
5890
  var EPSILON14, scratchOrigin, VECTOR_PRODUCT_LOCAL_FRAME, degeneratePositionLocalFrame, scratchAxisVectors, scratchVector1, scratchVector22, scratchVector3;
5878
5891
  var init_ellipsoid_transform = __esm({
5879
5892
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js"() {
5880
- init_esm();
5893
+ init_esm3();
5881
5894
  EPSILON14 = 1e-14;
5882
5895
  scratchOrigin = new Vector3();
5883
5896
  VECTOR_PRODUCT_LOCAL_FRAME = {
@@ -5945,7 +5958,7 @@
5945
5958
  var init_ellipsoid = __esm({
5946
5959
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/ellipsoid.js"() {
5947
5960
  init_defineProperty();
5948
- init_esm();
5961
+ init_esm3();
5949
5962
  init_vec3();
5950
5963
  init_constants();
5951
5964
  init_type_utils();
@@ -6069,7 +6082,7 @@
6069
6082
  });
6070
6083
 
6071
6084
  // ../../node_modules/@math.gl/geospatial/dist/esm/index.js
6072
- var init_esm2 = __esm({
6085
+ var init_esm4 = __esm({
6073
6086
  "../../node_modules/@math.gl/geospatial/dist/esm/index.js"() {
6074
6087
  init_ellipsoid();
6075
6088
  init_type_utils();
@@ -8715,10 +8728,10 @@
8715
8728
  });
8716
8729
 
8717
8730
  // ../../node_modules/@luma.gl/constants/dist/esm/index.js
8718
- var esm_default;
8719
- var init_esm3 = __esm({
8731
+ var esm_default2;
8732
+ var init_esm5 = __esm({
8720
8733
  "../../node_modules/@luma.gl/constants/dist/esm/index.js"() {
8721
- esm_default = {
8734
+ esm_default2 = {
8722
8735
  DEPTH_BUFFER_BIT: 256,
8723
8736
  STENCIL_BUFFER_BIT: 1024,
8724
8737
  COLOR_BUFFER_BIT: 16384,
@@ -9376,14 +9389,14 @@
9376
9389
  var GL_TYPE_MAP, STRING_ATTRIBUTE_TYPE, OBJECT_ID_ATTRIBUTE_TYPE, FLOAT_64_TYPE, INT_16_ATTRIBUTE_TYPE, COORDINATE_SYSTEM;
9377
9390
  var init_constants2 = __esm({
9378
9391
  "src/lib/parsers/constants.ts"() {
9379
- init_esm3();
9392
+ init_esm5();
9380
9393
  init_types();
9381
9394
  GL_TYPE_MAP = {
9382
- UInt8: esm_default.UNSIGNED_BYTE,
9383
- UInt16: esm_default.UNSIGNED_SHORT,
9384
- Float32: esm_default.FLOAT,
9385
- UInt32: esm_default.UNSIGNED_INT,
9386
- UInt64: esm_default.DOUBLE
9395
+ UInt8: esm_default2.UNSIGNED_BYTE,
9396
+ UInt16: esm_default2.UNSIGNED_SHORT,
9397
+ Float32: esm_default2.FLOAT,
9398
+ UInt32: esm_default2.UNSIGNED_INT,
9399
+ UInt64: esm_default2.DOUBLE
9387
9400
  };
9388
9401
  STRING_ATTRIBUTE_TYPE = "String";
9389
9402
  OBJECT_ID_ATTRIBUTE_TYPE = "Oid32";
@@ -10018,8 +10031,8 @@
10018
10031
  var init_parse_i3s_tile_content = __esm({
10019
10032
  "src/lib/parsers/parse-i3s-tile-content.ts"() {
10020
10033
  init_src3();
10021
- init_esm();
10022
- init_esm2();
10034
+ init_esm3();
10035
+ init_esm4();
10023
10036
  init_src4();
10024
10037
  init_src6();
10025
10038
  init_src7();
@@ -10081,7 +10094,7 @@
10081
10094
  var init_axis_aligned_bounding_box = __esm({
10082
10095
  "../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/axis-aligned-bounding-box.js"() {
10083
10096
  init_defineProperty();
10084
- init_esm();
10097
+ init_esm3();
10085
10098
  init_constants3();
10086
10099
  scratchVector6 = new Vector3();
10087
10100
  scratchNormal2 = new Vector3();
@@ -10093,7 +10106,7 @@
10093
10106
  var init_bounding_sphere = __esm({
10094
10107
  "../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/bounding-sphere.js"() {
10095
10108
  init_defineProperty();
10096
- init_esm();
10109
+ init_esm3();
10097
10110
  init_mat4();
10098
10111
  init_constants3();
10099
10112
  scratchVector7 = new Vector3();
@@ -10187,7 +10200,7 @@
10187
10200
  var init_oriented_bounding_box = __esm({
10188
10201
  "../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/oriented-bounding-box.js"() {
10189
10202
  init_defineProperty();
10190
- init_esm();
10203
+ init_esm3();
10191
10204
  init_bounding_sphere();
10192
10205
  init_constants3();
10193
10206
  scratchVector32 = new Vector3();
@@ -10384,7 +10397,7 @@
10384
10397
  var init_plane = __esm({
10385
10398
  "../../node_modules/@math.gl/culling/dist/esm/lib/plane.js"() {
10386
10399
  init_defineProperty();
10387
- init_esm();
10400
+ init_esm3();
10388
10401
  scratchPosition2 = new Vector3();
10389
10402
  scratchNormal3 = new Vector3();
10390
10403
  Plane = class {
@@ -10443,7 +10456,7 @@
10443
10456
  var init_culling_volume = __esm({
10444
10457
  "../../node_modules/@math.gl/culling/dist/esm/lib/culling-volume.js"() {
10445
10458
  init_defineProperty();
10446
- init_esm();
10459
+ init_esm3();
10447
10460
  init_constants3();
10448
10461
  init_plane();
10449
10462
  faces = [new Vector3([1, 0, 0]), new Vector3([0, 1, 0]), new Vector3([0, 0, 1])];
@@ -10529,7 +10542,7 @@
10529
10542
  var init_perspective_off_center_frustum = __esm({
10530
10543
  "../../node_modules/@math.gl/culling/dist/esm/lib/perspective-off-center-frustum.js"() {
10531
10544
  init_defineProperty();
10532
- init_esm();
10545
+ init_esm3();
10533
10546
  init_culling_volume();
10534
10547
  init_plane();
10535
10548
  scratchPlaneUpVector = new Vector3();
@@ -10552,7 +10565,7 @@
10552
10565
  var fromPointsXMin, fromPointsYMin, fromPointsZMin, fromPointsXMax, fromPointsYMax, fromPointsZMax, fromPointsCurrentPos, fromPointsScratch, fromPointsRitterCenter, fromPointsMinBoxPt, fromPointsMaxBoxPt, fromPointsNaiveCenterScratch, volumeConstant;
10553
10566
  var init_bounding_sphere_from_points = __esm({
10554
10567
  "../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-sphere-from-points.js"() {
10555
- init_esm();
10568
+ init_esm3();
10556
10569
  init_bounding_sphere();
10557
10570
  fromPointsXMin = new Vector3();
10558
10571
  fromPointsYMin = new Vector3();
@@ -10574,7 +10587,7 @@
10574
10587
  var scratchMatrix, scratchUnitary, scratchDiagonal, jMatrix, jMatrixTranspose;
10575
10588
  var init_compute_eigen_decomposition = __esm({
10576
10589
  "../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/compute-eigen-decomposition.js"() {
10577
- init_esm();
10590
+ init_esm3();
10578
10591
  scratchMatrix = new Matrix3();
10579
10592
  scratchUnitary = new Matrix3();
10580
10593
  scratchDiagonal = new Matrix3();
@@ -10587,7 +10600,7 @@
10587
10600
  var scratchVector24, scratchVector33, scratchVector42, scratchVector52, scratchVector62, scratchCovarianceResult, scratchEigenResult;
10588
10601
  var init_bounding_box_from_points = __esm({
10589
10602
  "../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-box-from-points.js"() {
10590
- init_esm();
10603
+ init_esm3();
10591
10604
  init_compute_eigen_decomposition();
10592
10605
  init_oriented_bounding_box();
10593
10606
  init_axis_aligned_bounding_box();
@@ -10605,7 +10618,7 @@
10605
10618
  });
10606
10619
 
10607
10620
  // ../../node_modules/@math.gl/culling/dist/esm/index.js
10608
- var init_esm4 = __esm({
10621
+ var init_esm6 = __esm({
10609
10622
  "../../node_modules/@math.gl/culling/dist/esm/index.js"() {
10610
10623
  init_constants3();
10611
10624
  init_axis_aligned_bounding_box();
@@ -10715,10 +10728,10 @@
10715
10728
  return this.nodePages[pageIndex].nodes[nodeIndex];
10716
10729
  }
10717
10730
  async formTileFromNodePages(id) {
10718
- const node3 = await this.getNodeById(id);
10731
+ const node2 = await this.getNodeById(id);
10719
10732
  const children = [];
10720
10733
  const childNodesPromises = [];
10721
- for (const child of node3.children || []) {
10734
+ for (const child of node2.children || []) {
10722
10735
  childNodesPromises.push(this.getNodeById(child));
10723
10736
  }
10724
10737
  const childNodes = await Promise.all(childNodesPromises);
@@ -10734,25 +10747,25 @@
10734
10747
  let textureFormat = "jpg";
10735
10748
  let attributeUrls = [];
10736
10749
  let isDracoGeometry = false;
10737
- if (node3 && node3.mesh) {
10738
- const { url, isDracoGeometry: isDracoGeometryResult } = node3.mesh.geometry && this.getContentUrl(node3.mesh.geometry) || { isDracoGeometry: false };
10750
+ if (node2 && node2.mesh) {
10751
+ const { url, isDracoGeometry: isDracoGeometryResult } = node2.mesh.geometry && this.getContentUrl(node2.mesh.geometry) || { isDracoGeometry: false };
10739
10752
  contentUrl = url;
10740
10753
  isDracoGeometry = isDracoGeometryResult;
10741
- const { textureData, materialDefinition: nodeMaterialDefinition } = this.getInformationFromMaterial(node3.mesh.material);
10754
+ const { textureData, materialDefinition: nodeMaterialDefinition } = this.getInformationFromMaterial(node2.mesh.material);
10742
10755
  materialDefinition = nodeMaterialDefinition;
10743
10756
  textureFormat = textureData.format || textureFormat;
10744
10757
  if (textureData.name) {
10745
- textureUrl = `${this.tileset.url}/nodes/${node3.mesh.material.resource}/textures/${textureData.name}`;
10758
+ textureUrl = `${this.tileset.url}/nodes/${node2.mesh.material.resource}/textures/${textureData.name}`;
10746
10759
  }
10747
10760
  if (this.tileset.attributeStorageInfo) {
10748
- attributeUrls = generateTilesetAttributeUrls(this.tileset, node3.mesh.attribute.resource);
10761
+ attributeUrls = generateTilesetAttributeUrls(this.tileset, node2.mesh.attribute.resource);
10749
10762
  }
10750
10763
  }
10751
- const lodSelection = this.getLodSelection(node3);
10764
+ const lodSelection = this.getLodSelection(node2);
10752
10765
  return normalizeTileNonUrlData({
10753
10766
  id: id.toString(),
10754
10767
  lodSelection,
10755
- obb: node3.obb,
10768
+ obb: node2.obb,
10756
10769
  contentUrl,
10757
10770
  textureUrl,
10758
10771
  attributeUrls,
@@ -10782,17 +10795,17 @@
10782
10795
  }
10783
10796
  return result;
10784
10797
  }
10785
- getLodSelection(node3) {
10798
+ getLodSelection(node2) {
10786
10799
  const lodSelection = [];
10787
10800
  if (this.lodSelectionMetricType === "maxScreenThresholdSQ") {
10788
10801
  lodSelection.push({
10789
10802
  metricType: "maxScreenThreshold",
10790
- maxError: Math.sqrt(node3.lodThreshold / (Math.PI * 0.25))
10803
+ maxError: Math.sqrt(node2.lodThreshold / (Math.PI * 0.25))
10791
10804
  });
10792
10805
  }
10793
10806
  lodSelection.push({
10794
10807
  metricType: this.lodSelectionMetricType,
10795
- maxError: node3.lodThreshold
10808
+ maxError: node2.lodThreshold
10796
10809
  });
10797
10810
  return lodSelection;
10798
10811
  }
@@ -10929,8 +10942,8 @@
10929
10942
  }
10930
10943
  var init_parse_i3s = __esm({
10931
10944
  "src/lib/parsers/parse-i3s.ts"() {
10945
+ init_esm6();
10932
10946
  init_esm4();
10933
- init_esm2();
10934
10947
  init_src3();
10935
10948
  init_src8();
10936
10949
  init_i3s_nodepages_tiles();