@loaders.gl/i3s 3.4.14 → 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.
- package/dist/dist.min.js +93 -92
- package/dist/es5/arcgis-webscene-loader.js +5 -22
- package/dist/es5/arcgis-webscene-loader.js.map +1 -1
- package/dist/es5/bundle.js +1 -1
- package/dist/es5/bundle.js.map +1 -1
- package/dist/es5/i3s-attribute-loader.js +58 -123
- package/dist/es5/i3s-attribute-loader.js.map +1 -1
- package/dist/es5/i3s-building-scene-layer-loader.js +8 -28
- package/dist/es5/i3s-building-scene-layer-loader.js.map +1 -1
- package/dist/es5/i3s-content-loader.js +16 -35
- package/dist/es5/i3s-content-loader.js.map +1 -1
- package/dist/es5/i3s-loader.js +49 -148
- package/dist/es5/i3s-loader.js.map +1 -1
- package/dist/es5/i3s-node-page-loader.js +8 -39
- package/dist/es5/i3s-node-page-loader.js.map +1 -1
- package/dist/es5/i3s-slpk-loader.js +2 -2
- package/dist/es5/i3s-slpk-loader.js.map +1 -1
- package/dist/es5/index.js +8 -8
- package/dist/es5/lib/helpers/i3s-nodepages-tiles.js +161 -267
- package/dist/es5/lib/helpers/i3s-nodepages-tiles.js.map +1 -1
- package/dist/es5/lib/parsers/constants.js +6 -6
- package/dist/es5/lib/parsers/constants.js.map +1 -1
- package/dist/es5/lib/parsers/parse-arcgis-webscene.js +64 -146
- package/dist/es5/lib/parsers/parse-arcgis-webscene.js.map +1 -1
- package/dist/es5/lib/parsers/parse-i3s-attribute.js +26 -55
- package/dist/es5/lib/parsers/parse-i3s-attribute.js.map +1 -1
- package/dist/es5/lib/parsers/parse-i3s-building-scene-layer.js +27 -47
- package/dist/es5/lib/parsers/parse-i3s-building-scene-layer.js.map +1 -1
- package/dist/es5/lib/parsers/parse-i3s-tile-content.js +278 -347
- package/dist/es5/lib/parsers/parse-i3s-tile-content.js.map +1 -1
- package/dist/es5/lib/parsers/parse-i3s.js +55 -79
- package/dist/es5/lib/parsers/parse-i3s.js.map +1 -1
- package/dist/es5/lib/parsers/parse-slpk/parse-slpk.js +30 -81
- package/dist/es5/lib/parsers/parse-slpk/parse-slpk.js.map +1 -1
- package/dist/es5/lib/parsers/parse-slpk/slpk-archieve.js +44 -90
- package/dist/es5/lib/parsers/parse-slpk/slpk-archieve.js.map +1 -1
- package/dist/es5/lib/parsers/parse-zip/cd-file-header.js +17 -17
- package/dist/es5/lib/parsers/parse-zip/cd-file-header.js.map +1 -1
- package/dist/es5/lib/parsers/parse-zip/local-file-header.js +10 -10
- package/dist/es5/lib/parsers/parse-zip/local-file-header.js.map +1 -1
- package/dist/es5/lib/utils/convert-i3s-obb-to-mbs.js +4 -6
- package/dist/es5/lib/utils/convert-i3s-obb-to-mbs.js.map +1 -1
- package/dist/es5/lib/utils/customizeColors.js +79 -140
- package/dist/es5/lib/utils/customizeColors.js.map +1 -1
- package/dist/es5/lib/utils/url-utils.js +14 -11
- package/dist/es5/lib/utils/url-utils.js.map +1 -1
- package/dist/es5/types.js +2 -2
- package/dist/esm/arcgis-webscene-loader.js +1 -1
- package/dist/esm/i3s-attribute-loader.js +1 -1
- package/dist/esm/i3s-building-scene-layer-loader.js +1 -1
- package/dist/esm/i3s-content-loader.js +1 -1
- package/dist/esm/i3s-loader.js +1 -1
- package/dist/esm/i3s-node-page-loader.js +1 -1
- package/dist/esm/i3s-slpk-loader.js +1 -1
- package/dist/i3s-content-nodejs-worker.js +61 -59
- package/dist/i3s-content-nodejs-worker.js.map +3 -3
- package/dist/i3s-content-worker.js +54 -53
- package/package.json +9 -9
package/dist/dist.min.js
CHANGED
|
@@ -1375,7 +1375,7 @@
|
|
|
1375
1375
|
}
|
|
1376
1376
|
});
|
|
1377
1377
|
|
|
1378
|
-
//
|
|
1378
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js
|
|
1379
1379
|
function isElectron(mockUserAgent) {
|
|
1380
1380
|
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
|
|
1381
1381
|
return true;
|
|
@@ -1391,54 +1391,59 @@
|
|
|
1391
1391
|
return false;
|
|
1392
1392
|
}
|
|
1393
1393
|
var init_is_electron = __esm({
|
|
1394
|
-
"
|
|
1394
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"() {
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
|
|
1398
|
-
//
|
|
1398
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js
|
|
1399
1399
|
function isBrowser3() {
|
|
1400
1400
|
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
|
|
1401
1401
|
return !isNode || isElectron();
|
|
1402
1402
|
}
|
|
1403
1403
|
var init_is_browser = __esm({
|
|
1404
|
-
"
|
|
1404
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"() {
|
|
1405
1405
|
init_is_electron();
|
|
1406
1406
|
}
|
|
1407
1407
|
});
|
|
1408
1408
|
|
|
1409
|
-
//
|
|
1410
|
-
var self_3, window_3, document_3, process_
|
|
1409
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/globals.js
|
|
1410
|
+
var globals3, self_3, window_3, document_3, process_;
|
|
1411
1411
|
var init_globals3 = __esm({
|
|
1412
|
-
"
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
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 || {};
|
|
1419
1424
|
}
|
|
1420
1425
|
});
|
|
1421
1426
|
|
|
1422
|
-
//
|
|
1427
|
+
// ../../node_modules/@probe.gl/env/dist/esm/utils/globals.js
|
|
1423
1428
|
var VERSION5, isBrowser4;
|
|
1424
1429
|
var init_globals4 = __esm({
|
|
1425
|
-
"
|
|
1430
|
+
"../../node_modules/@probe.gl/env/dist/esm/utils/globals.js"() {
|
|
1426
1431
|
init_is_browser();
|
|
1427
1432
|
VERSION5 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
|
|
1428
1433
|
isBrowser4 = isBrowser3();
|
|
1429
1434
|
}
|
|
1430
1435
|
});
|
|
1431
1436
|
|
|
1432
|
-
//
|
|
1433
|
-
var
|
|
1434
|
-
"
|
|
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"() {
|
|
1435
1440
|
init_globals4();
|
|
1436
1441
|
init_globals3();
|
|
1437
1442
|
init_is_browser();
|
|
1438
1443
|
}
|
|
1439
1444
|
});
|
|
1440
1445
|
|
|
1441
|
-
//
|
|
1446
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js
|
|
1442
1447
|
function getStorage(type) {
|
|
1443
1448
|
try {
|
|
1444
1449
|
const storage = window[type];
|
|
@@ -1452,7 +1457,7 @@
|
|
|
1452
1457
|
}
|
|
1453
1458
|
var LocalStorage;
|
|
1454
1459
|
var init_local_storage = __esm({
|
|
1455
|
-
"
|
|
1460
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js"() {
|
|
1456
1461
|
init_defineProperty();
|
|
1457
1462
|
LocalStorage = class {
|
|
1458
1463
|
constructor(id, defaultConfig) {
|
|
@@ -1488,7 +1493,7 @@
|
|
|
1488
1493
|
}
|
|
1489
1494
|
});
|
|
1490
1495
|
|
|
1491
|
-
//
|
|
1496
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js
|
|
1492
1497
|
function formatTime(ms) {
|
|
1493
1498
|
let formatted;
|
|
1494
1499
|
if (ms < 10) {
|
|
@@ -1519,35 +1524,31 @@
|
|
|
1519
1524
|
return ["".concat(message, " %c+"), style];
|
|
1520
1525
|
}
|
|
1521
1526
|
var init_formatters = __esm({
|
|
1522
|
-
"
|
|
1527
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js"() {
|
|
1523
1528
|
}
|
|
1524
1529
|
});
|
|
1525
1530
|
|
|
1526
|
-
//
|
|
1531
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/color.js
|
|
1527
1532
|
function getColor(color) {
|
|
1528
|
-
|
|
1529
|
-
return color;
|
|
1530
|
-
}
|
|
1531
|
-
color = color.toUpperCase();
|
|
1532
|
-
return COLOR[color] || COLOR.WHITE;
|
|
1533
|
+
return typeof color === "string" ? COLOR[color.toUpperCase()] || COLOR.WHITE : color;
|
|
1533
1534
|
}
|
|
1534
1535
|
function addColor(string, color, background) {
|
|
1535
1536
|
if (!isBrowser3 && typeof string === "string") {
|
|
1536
1537
|
if (color) {
|
|
1537
|
-
|
|
1538
|
-
string = "[".concat(
|
|
1538
|
+
color = getColor(color);
|
|
1539
|
+
string = "[".concat(color, "m").concat(string, "[39m");
|
|
1539
1540
|
}
|
|
1540
1541
|
if (background) {
|
|
1541
|
-
|
|
1542
|
-
string = "[".concat(
|
|
1542
|
+
color = getColor(background);
|
|
1543
|
+
string = "[".concat(background + 10, "m").concat(string, "[49m");
|
|
1543
1544
|
}
|
|
1544
1545
|
}
|
|
1545
1546
|
return string;
|
|
1546
1547
|
}
|
|
1547
|
-
var COLOR
|
|
1548
|
+
var COLOR;
|
|
1548
1549
|
var init_color = __esm({
|
|
1549
|
-
"
|
|
1550
|
-
|
|
1550
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
|
|
1551
|
+
init_esm();
|
|
1551
1552
|
(function(COLOR2) {
|
|
1552
1553
|
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
1553
1554
|
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
@@ -1566,45 +1567,42 @@
|
|
|
1566
1567
|
COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
|
|
1567
1568
|
COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
|
|
1568
1569
|
})(COLOR || (COLOR = {}));
|
|
1569
|
-
BACKGROUND_INCREMENT = 10;
|
|
1570
1570
|
}
|
|
1571
1571
|
});
|
|
1572
1572
|
|
|
1573
|
-
//
|
|
1573
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js
|
|
1574
1574
|
function autobind(obj) {
|
|
1575
1575
|
let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
|
|
1576
1576
|
const proto = Object.getPrototypeOf(obj);
|
|
1577
1577
|
const propNames = Object.getOwnPropertyNames(proto);
|
|
1578
|
-
const object = obj;
|
|
1579
1578
|
for (const key of propNames) {
|
|
1580
|
-
|
|
1581
|
-
if (typeof value === "function") {
|
|
1579
|
+
if (typeof obj[key] === "function") {
|
|
1582
1580
|
if (!predefined.find((name) => key === name)) {
|
|
1583
|
-
|
|
1581
|
+
obj[key] = obj[key].bind(obj);
|
|
1584
1582
|
}
|
|
1585
1583
|
}
|
|
1586
1584
|
}
|
|
1587
1585
|
}
|
|
1588
1586
|
var init_autobind = __esm({
|
|
1589
|
-
"
|
|
1587
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js"() {
|
|
1590
1588
|
}
|
|
1591
1589
|
});
|
|
1592
1590
|
|
|
1593
|
-
//
|
|
1591
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/assert.js
|
|
1594
1592
|
function assert3(condition, message) {
|
|
1595
1593
|
if (!condition) {
|
|
1596
1594
|
throw new Error(message || "Assertion failed");
|
|
1597
1595
|
}
|
|
1598
1596
|
}
|
|
1599
1597
|
var init_assert3 = __esm({
|
|
1600
|
-
"
|
|
1598
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/assert.js"() {
|
|
1601
1599
|
}
|
|
1602
1600
|
});
|
|
1603
1601
|
|
|
1604
|
-
//
|
|
1602
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
|
|
1605
1603
|
function getHiResTimestamp() {
|
|
1606
1604
|
let timestamp;
|
|
1607
|
-
if (isBrowser3
|
|
1605
|
+
if (isBrowser3 && "performance" in window_3) {
|
|
1608
1606
|
var _window$performance, _window$performance$n;
|
|
1609
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);
|
|
1610
1608
|
} else if ("hrtime" in process_) {
|
|
@@ -1617,12 +1615,12 @@
|
|
|
1617
1615
|
return timestamp;
|
|
1618
1616
|
}
|
|
1619
1617
|
var init_hi_res_timestamp = __esm({
|
|
1620
|
-
"
|
|
1621
|
-
|
|
1618
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
|
|
1619
|
+
init_esm();
|
|
1622
1620
|
}
|
|
1623
1621
|
});
|
|
1624
1622
|
|
|
1625
|
-
//
|
|
1623
|
+
// ../../node_modules/@probe.gl/log/dist/esm/log.js
|
|
1626
1624
|
function noop() {
|
|
1627
1625
|
}
|
|
1628
1626
|
function normalizeLogLevel(logLevel) {
|
|
@@ -1727,11 +1725,11 @@
|
|
|
1727
1725
|
}
|
|
1728
1726
|
return "empty";
|
|
1729
1727
|
}
|
|
1730
|
-
var originalConsole,
|
|
1728
|
+
var originalConsole, DEFAULT_SETTINGS, cache, ONCE, Log;
|
|
1731
1729
|
var init_log = __esm({
|
|
1732
|
-
"
|
|
1730
|
+
"../../node_modules/@probe.gl/log/dist/esm/log.js"() {
|
|
1733
1731
|
init_defineProperty();
|
|
1734
|
-
|
|
1732
|
+
init_esm();
|
|
1735
1733
|
init_local_storage();
|
|
1736
1734
|
init_formatters();
|
|
1737
1735
|
init_color();
|
|
@@ -1739,13 +1737,13 @@
|
|
|
1739
1737
|
init_assert3();
|
|
1740
1738
|
init_hi_res_timestamp();
|
|
1741
1739
|
originalConsole = {
|
|
1742
|
-
debug: isBrowser3
|
|
1740
|
+
debug: isBrowser3 ? console.debug || console.log : console.log,
|
|
1743
1741
|
log: console.log,
|
|
1744
1742
|
info: console.info,
|
|
1745
1743
|
warn: console.warn,
|
|
1746
1744
|
error: console.error
|
|
1747
1745
|
};
|
|
1748
|
-
|
|
1746
|
+
DEFAULT_SETTINGS = {
|
|
1749
1747
|
enabled: true,
|
|
1750
1748
|
level: 0
|
|
1751
1749
|
};
|
|
@@ -1769,7 +1767,7 @@
|
|
|
1769
1767
|
_defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
1770
1768
|
this.id = id;
|
|
1771
1769
|
this.userData = {};
|
|
1772
|
-
this._storage = new LocalStorage("__probe-".concat(this.id, "__"),
|
|
1770
|
+
this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
|
|
1773
1771
|
this.timeStamp("".concat(this.id, " started"));
|
|
1774
1772
|
autobind(this);
|
|
1775
1773
|
Object.seal(this);
|
|
@@ -1857,6 +1855,9 @@
|
|
|
1857
1855
|
return this._getLogFunction(logLevel, message, console.info, arguments);
|
|
1858
1856
|
}
|
|
1859
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
|
+
}
|
|
1860
1861
|
return this._getLogFunction(logLevel, message, originalConsole.debug || originalConsole.info, arguments, ONCE);
|
|
1861
1862
|
}
|
|
1862
1863
|
table(logLevel, table, columns) {
|
|
@@ -1878,7 +1879,7 @@
|
|
|
1878
1879
|
if (!this._shouldLog(logLevel || priority)) {
|
|
1879
1880
|
return noop;
|
|
1880
1881
|
}
|
|
1881
|
-
return isBrowser3
|
|
1882
|
+
return isBrowser3 ? logImageInBrowser({
|
|
1882
1883
|
image,
|
|
1883
1884
|
message,
|
|
1884
1885
|
scale: scale5
|
|
@@ -1951,7 +1952,7 @@
|
|
|
1951
1952
|
opts.delta = this.getDelta();
|
|
1952
1953
|
this._deltaTs = getHiResTimestamp();
|
|
1953
1954
|
const tag = opts.tag || opts.message;
|
|
1954
|
-
if (opts.once
|
|
1955
|
+
if (opts.once) {
|
|
1955
1956
|
if (!cache[tag]) {
|
|
1956
1957
|
cache[tag] = getHiResTimestamp();
|
|
1957
1958
|
} else {
|
|
@@ -1968,13 +1969,13 @@
|
|
|
1968
1969
|
}
|
|
1969
1970
|
});
|
|
1970
1971
|
|
|
1971
|
-
//
|
|
1972
|
-
var
|
|
1973
|
-
var
|
|
1974
|
-
"
|
|
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"() {
|
|
1975
1976
|
init_log();
|
|
1976
1977
|
init_log();
|
|
1977
|
-
|
|
1978
|
+
esm_default = new Log({
|
|
1978
1979
|
id: "@probe.gl/log"
|
|
1979
1980
|
});
|
|
1980
1981
|
}
|
|
@@ -1984,7 +1985,7 @@
|
|
|
1984
1985
|
var probeLog, NullLog, ConsoleLog;
|
|
1985
1986
|
var init_loggers = __esm({
|
|
1986
1987
|
"../core/src/lib/loader-utils/loggers.ts"() {
|
|
1987
|
-
|
|
1988
|
+
init_esm2();
|
|
1988
1989
|
probeLog = new Log({ id: "loaders.gl" });
|
|
1989
1990
|
NullLog = class {
|
|
1990
1991
|
log() {
|
|
@@ -2227,7 +2228,7 @@
|
|
|
2227
2228
|
var log;
|
|
2228
2229
|
var init_log2 = __esm({
|
|
2229
2230
|
"../core/src/lib/utils/log.ts"() {
|
|
2230
|
-
|
|
2231
|
+
init_esm2();
|
|
2231
2232
|
log = new Log({ id: "loaders.gl" });
|
|
2232
2233
|
}
|
|
2233
2234
|
});
|
|
@@ -5677,7 +5678,7 @@
|
|
|
5677
5678
|
});
|
|
5678
5679
|
|
|
5679
5680
|
// ../../node_modules/@math.gl/core/dist/esm/index.js
|
|
5680
|
-
var
|
|
5681
|
+
var init_esm3 = __esm({
|
|
5681
5682
|
"../../node_modules/@math.gl/core/dist/esm/index.js"() {
|
|
5682
5683
|
init_vector3();
|
|
5683
5684
|
init_matrix3();
|
|
@@ -5752,7 +5753,7 @@
|
|
|
5752
5753
|
var scratchVector;
|
|
5753
5754
|
var init_type_utils = __esm({
|
|
5754
5755
|
"../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js"() {
|
|
5755
|
-
|
|
5756
|
+
init_esm3();
|
|
5756
5757
|
init_constants();
|
|
5757
5758
|
scratchVector = new Vector3();
|
|
5758
5759
|
}
|
|
@@ -5817,7 +5818,7 @@
|
|
|
5817
5818
|
var scratchVector2, scaleToGeodeticSurfaceIntersection, scaleToGeodeticSurfaceGradient;
|
|
5818
5819
|
var init_scale_to_geodetic_surface = __esm({
|
|
5819
5820
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/scale-to-geodetic-surface.js"() {
|
|
5820
|
-
|
|
5821
|
+
init_esm3();
|
|
5821
5822
|
scratchVector2 = new Vector3();
|
|
5822
5823
|
scaleToGeodeticSurfaceIntersection = new Vector3();
|
|
5823
5824
|
scaleToGeodeticSurfaceGradient = new Vector3();
|
|
@@ -5889,7 +5890,7 @@
|
|
|
5889
5890
|
var EPSILON14, scratchOrigin, VECTOR_PRODUCT_LOCAL_FRAME, degeneratePositionLocalFrame, scratchAxisVectors, scratchVector1, scratchVector22, scratchVector3;
|
|
5890
5891
|
var init_ellipsoid_transform = __esm({
|
|
5891
5892
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js"() {
|
|
5892
|
-
|
|
5893
|
+
init_esm3();
|
|
5893
5894
|
EPSILON14 = 1e-14;
|
|
5894
5895
|
scratchOrigin = new Vector3();
|
|
5895
5896
|
VECTOR_PRODUCT_LOCAL_FRAME = {
|
|
@@ -5957,7 +5958,7 @@
|
|
|
5957
5958
|
var init_ellipsoid = __esm({
|
|
5958
5959
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/ellipsoid.js"() {
|
|
5959
5960
|
init_defineProperty();
|
|
5960
|
-
|
|
5961
|
+
init_esm3();
|
|
5961
5962
|
init_vec3();
|
|
5962
5963
|
init_constants();
|
|
5963
5964
|
init_type_utils();
|
|
@@ -6081,7 +6082,7 @@
|
|
|
6081
6082
|
});
|
|
6082
6083
|
|
|
6083
6084
|
// ../../node_modules/@math.gl/geospatial/dist/esm/index.js
|
|
6084
|
-
var
|
|
6085
|
+
var init_esm4 = __esm({
|
|
6085
6086
|
"../../node_modules/@math.gl/geospatial/dist/esm/index.js"() {
|
|
6086
6087
|
init_ellipsoid();
|
|
6087
6088
|
init_type_utils();
|
|
@@ -8727,10 +8728,10 @@
|
|
|
8727
8728
|
});
|
|
8728
8729
|
|
|
8729
8730
|
// ../../node_modules/@luma.gl/constants/dist/esm/index.js
|
|
8730
|
-
var
|
|
8731
|
-
var
|
|
8731
|
+
var esm_default2;
|
|
8732
|
+
var init_esm5 = __esm({
|
|
8732
8733
|
"../../node_modules/@luma.gl/constants/dist/esm/index.js"() {
|
|
8733
|
-
|
|
8734
|
+
esm_default2 = {
|
|
8734
8735
|
DEPTH_BUFFER_BIT: 256,
|
|
8735
8736
|
STENCIL_BUFFER_BIT: 1024,
|
|
8736
8737
|
COLOR_BUFFER_BIT: 16384,
|
|
@@ -9388,14 +9389,14 @@
|
|
|
9388
9389
|
var GL_TYPE_MAP, STRING_ATTRIBUTE_TYPE, OBJECT_ID_ATTRIBUTE_TYPE, FLOAT_64_TYPE, INT_16_ATTRIBUTE_TYPE, COORDINATE_SYSTEM;
|
|
9389
9390
|
var init_constants2 = __esm({
|
|
9390
9391
|
"src/lib/parsers/constants.ts"() {
|
|
9391
|
-
|
|
9392
|
+
init_esm5();
|
|
9392
9393
|
init_types();
|
|
9393
9394
|
GL_TYPE_MAP = {
|
|
9394
|
-
UInt8:
|
|
9395
|
-
UInt16:
|
|
9396
|
-
Float32:
|
|
9397
|
-
UInt32:
|
|
9398
|
-
UInt64:
|
|
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
|
|
9399
9400
|
};
|
|
9400
9401
|
STRING_ATTRIBUTE_TYPE = "String";
|
|
9401
9402
|
OBJECT_ID_ATTRIBUTE_TYPE = "Oid32";
|
|
@@ -10030,8 +10031,8 @@
|
|
|
10030
10031
|
var init_parse_i3s_tile_content = __esm({
|
|
10031
10032
|
"src/lib/parsers/parse-i3s-tile-content.ts"() {
|
|
10032
10033
|
init_src3();
|
|
10033
|
-
|
|
10034
|
-
|
|
10034
|
+
init_esm3();
|
|
10035
|
+
init_esm4();
|
|
10035
10036
|
init_src4();
|
|
10036
10037
|
init_src6();
|
|
10037
10038
|
init_src7();
|
|
@@ -10093,7 +10094,7 @@
|
|
|
10093
10094
|
var init_axis_aligned_bounding_box = __esm({
|
|
10094
10095
|
"../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/axis-aligned-bounding-box.js"() {
|
|
10095
10096
|
init_defineProperty();
|
|
10096
|
-
|
|
10097
|
+
init_esm3();
|
|
10097
10098
|
init_constants3();
|
|
10098
10099
|
scratchVector6 = new Vector3();
|
|
10099
10100
|
scratchNormal2 = new Vector3();
|
|
@@ -10105,7 +10106,7 @@
|
|
|
10105
10106
|
var init_bounding_sphere = __esm({
|
|
10106
10107
|
"../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/bounding-sphere.js"() {
|
|
10107
10108
|
init_defineProperty();
|
|
10108
|
-
|
|
10109
|
+
init_esm3();
|
|
10109
10110
|
init_mat4();
|
|
10110
10111
|
init_constants3();
|
|
10111
10112
|
scratchVector7 = new Vector3();
|
|
@@ -10199,7 +10200,7 @@
|
|
|
10199
10200
|
var init_oriented_bounding_box = __esm({
|
|
10200
10201
|
"../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/oriented-bounding-box.js"() {
|
|
10201
10202
|
init_defineProperty();
|
|
10202
|
-
|
|
10203
|
+
init_esm3();
|
|
10203
10204
|
init_bounding_sphere();
|
|
10204
10205
|
init_constants3();
|
|
10205
10206
|
scratchVector32 = new Vector3();
|
|
@@ -10396,7 +10397,7 @@
|
|
|
10396
10397
|
var init_plane = __esm({
|
|
10397
10398
|
"../../node_modules/@math.gl/culling/dist/esm/lib/plane.js"() {
|
|
10398
10399
|
init_defineProperty();
|
|
10399
|
-
|
|
10400
|
+
init_esm3();
|
|
10400
10401
|
scratchPosition2 = new Vector3();
|
|
10401
10402
|
scratchNormal3 = new Vector3();
|
|
10402
10403
|
Plane = class {
|
|
@@ -10455,7 +10456,7 @@
|
|
|
10455
10456
|
var init_culling_volume = __esm({
|
|
10456
10457
|
"../../node_modules/@math.gl/culling/dist/esm/lib/culling-volume.js"() {
|
|
10457
10458
|
init_defineProperty();
|
|
10458
|
-
|
|
10459
|
+
init_esm3();
|
|
10459
10460
|
init_constants3();
|
|
10460
10461
|
init_plane();
|
|
10461
10462
|
faces = [new Vector3([1, 0, 0]), new Vector3([0, 1, 0]), new Vector3([0, 0, 1])];
|
|
@@ -10541,7 +10542,7 @@
|
|
|
10541
10542
|
var init_perspective_off_center_frustum = __esm({
|
|
10542
10543
|
"../../node_modules/@math.gl/culling/dist/esm/lib/perspective-off-center-frustum.js"() {
|
|
10543
10544
|
init_defineProperty();
|
|
10544
|
-
|
|
10545
|
+
init_esm3();
|
|
10545
10546
|
init_culling_volume();
|
|
10546
10547
|
init_plane();
|
|
10547
10548
|
scratchPlaneUpVector = new Vector3();
|
|
@@ -10564,7 +10565,7 @@
|
|
|
10564
10565
|
var fromPointsXMin, fromPointsYMin, fromPointsZMin, fromPointsXMax, fromPointsYMax, fromPointsZMax, fromPointsCurrentPos, fromPointsScratch, fromPointsRitterCenter, fromPointsMinBoxPt, fromPointsMaxBoxPt, fromPointsNaiveCenterScratch, volumeConstant;
|
|
10565
10566
|
var init_bounding_sphere_from_points = __esm({
|
|
10566
10567
|
"../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-sphere-from-points.js"() {
|
|
10567
|
-
|
|
10568
|
+
init_esm3();
|
|
10568
10569
|
init_bounding_sphere();
|
|
10569
10570
|
fromPointsXMin = new Vector3();
|
|
10570
10571
|
fromPointsYMin = new Vector3();
|
|
@@ -10586,7 +10587,7 @@
|
|
|
10586
10587
|
var scratchMatrix, scratchUnitary, scratchDiagonal, jMatrix, jMatrixTranspose;
|
|
10587
10588
|
var init_compute_eigen_decomposition = __esm({
|
|
10588
10589
|
"../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/compute-eigen-decomposition.js"() {
|
|
10589
|
-
|
|
10590
|
+
init_esm3();
|
|
10590
10591
|
scratchMatrix = new Matrix3();
|
|
10591
10592
|
scratchUnitary = new Matrix3();
|
|
10592
10593
|
scratchDiagonal = new Matrix3();
|
|
@@ -10599,7 +10600,7 @@
|
|
|
10599
10600
|
var scratchVector24, scratchVector33, scratchVector42, scratchVector52, scratchVector62, scratchCovarianceResult, scratchEigenResult;
|
|
10600
10601
|
var init_bounding_box_from_points = __esm({
|
|
10601
10602
|
"../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-box-from-points.js"() {
|
|
10602
|
-
|
|
10603
|
+
init_esm3();
|
|
10603
10604
|
init_compute_eigen_decomposition();
|
|
10604
10605
|
init_oriented_bounding_box();
|
|
10605
10606
|
init_axis_aligned_bounding_box();
|
|
@@ -10617,7 +10618,7 @@
|
|
|
10617
10618
|
});
|
|
10618
10619
|
|
|
10619
10620
|
// ../../node_modules/@math.gl/culling/dist/esm/index.js
|
|
10620
|
-
var
|
|
10621
|
+
var init_esm6 = __esm({
|
|
10621
10622
|
"../../node_modules/@math.gl/culling/dist/esm/index.js"() {
|
|
10622
10623
|
init_constants3();
|
|
10623
10624
|
init_axis_aligned_bounding_box();
|
|
@@ -10941,8 +10942,8 @@
|
|
|
10941
10942
|
}
|
|
10942
10943
|
var init_parse_i3s = __esm({
|
|
10943
10944
|
"src/lib/parsers/parse-i3s.ts"() {
|
|
10945
|
+
init_esm6();
|
|
10944
10946
|
init_esm4();
|
|
10945
|
-
init_esm2();
|
|
10946
10947
|
init_src3();
|
|
10947
10948
|
init_src8();
|
|
10948
10949
|
init_i3s_nodepages_tiles();
|
|
@@ -1,40 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.ArcGisWebSceneLoader = void 0;
|
|
8
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
7
|
var _parseArcgisWebscene = require("./lib/parsers/parse-arcgis-webscene");
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const VERSION = typeof "3.4.15" !== 'undefined' ? "3.4.15" : 'latest';
|
|
9
|
+
const ArcGisWebSceneLoader = {
|
|
13
10
|
name: 'ArcGIS Web Scene Loader',
|
|
14
11
|
id: 'arcgis-web-scene',
|
|
15
12
|
module: 'i3s',
|
|
16
13
|
version: VERSION,
|
|
17
14
|
mimeTypes: ['application/json'],
|
|
18
|
-
parse
|
|
15
|
+
parse,
|
|
19
16
|
extensions: ['json'],
|
|
20
17
|
options: {}
|
|
21
18
|
};
|
|
22
19
|
exports.ArcGisWebSceneLoader = ArcGisWebSceneLoader;
|
|
23
|
-
function parse(
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
function _parse() {
|
|
27
|
-
_parse = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(data) {
|
|
28
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
29
|
-
while (1) switch (_context.prev = _context.next) {
|
|
30
|
-
case 0:
|
|
31
|
-
return _context.abrupt("return", (0, _parseArcgisWebscene.parseWebscene)(data));
|
|
32
|
-
case 1:
|
|
33
|
-
case "end":
|
|
34
|
-
return _context.stop();
|
|
35
|
-
}
|
|
36
|
-
}, _callee);
|
|
37
|
-
}));
|
|
38
|
-
return _parse.apply(this, arguments);
|
|
20
|
+
async function parse(data) {
|
|
21
|
+
return (0, _parseArcgisWebscene.parseWebscene)(data);
|
|
39
22
|
}
|
|
40
23
|
//# sourceMappingURL=arcgis-webscene-loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arcgis-webscene-loader.js","names":["_parseArcgisWebscene","require","VERSION","ArcGisWebSceneLoader","name","id","module","version","mimeTypes","parse","extensions","options","exports","
|
|
1
|
+
{"version":3,"file":"arcgis-webscene-loader.js","names":["_parseArcgisWebscene","require","VERSION","ArcGisWebSceneLoader","name","id","module","version","mimeTypes","parse","extensions","options","exports","data","parseWebscene"],"sources":["../../src/arcgis-webscene-loader.ts"],"sourcesContent":["import type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {ArcGisWebSceneData} from './types';\n\nimport {parseWebscene} from './lib/parsers/parse-arcgis-webscene';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/**\n * Loader for ArcGis WebScene\n * Spec - https://developers.arcgis.com/web-scene-specification/objects/webscene/\n */\nexport const ArcGisWebSceneLoader: LoaderWithParser = {\n name: 'ArcGIS Web Scene Loader',\n id: 'arcgis-web-scene',\n module: 'i3s',\n version: VERSION,\n mimeTypes: ['application/json'],\n parse,\n extensions: ['json'],\n options: {}\n};\n\n/**\n * Parse ArcGis webscene\n * @param data\n */\nasync function parse(data: ArrayBuffer): Promise<ArcGisWebSceneData> {\n return parseWebscene(data);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,oBAAA,GAAAC,OAAA;AAIA,MAAMC,OAAO,GAAG,eAAkB,KAAK,WAAW,cAAiB,QAAQ;AAMpE,MAAMC,oBAAsC,GAAG;EACpDC,IAAI,EAAE,yBAAyB;EAC/BC,EAAE,EAAE,kBAAkB;EACtBC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,SAAS,EAAE,CAAC,kBAAkB,CAAC;EAC/BC,KAAK;EACLC,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,OAAO,EAAE,CAAC;AACZ,CAAC;AAACC,OAAA,CAAAT,oBAAA,GAAAA,oBAAA;AAMF,eAAeM,KAAKA,CAACI,IAAiB,EAA+B;EACnE,OAAO,IAAAC,kCAAa,EAACD,IAAI,CAAC;AAC5B"}
|
package/dist/es5/bundle.js
CHANGED
package/dist/es5/bundle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.js","names":["moduleExports","require","globalThis","loaders","module","exports","Object","assign"],"sources":["../../src/bundle.ts"],"sourcesContent":["// @ts-nocheck\nconst moduleExports = require('./index');\nglobalThis.loaders = globalThis.loaders || {};\nmodule.exports = Object.assign(globalThis.loaders, moduleExports);\n"],"mappings":";;AACA,
|
|
1
|
+
{"version":3,"file":"bundle.js","names":["moduleExports","require","globalThis","loaders","module","exports","Object","assign"],"sources":["../../src/bundle.ts"],"sourcesContent":["// @ts-nocheck\nconst moduleExports = require('./index');\nglobalThis.loaders = globalThis.loaders || {};\nmodule.exports = Object.assign(globalThis.loaders, moduleExports);\n"],"mappings":";;AACA,MAAMA,aAAa,GAAGC,OAAO,CAAC,SAAS,CAAC;AACxCC,UAAU,CAACC,OAAO,GAAGD,UAAU,CAACC,OAAO,IAAI,CAAC,CAAC;AAC7CC,MAAM,CAACC,OAAO,GAAGC,MAAM,CAACC,MAAM,CAACL,UAAU,CAACC,OAAO,EAAEH,aAAa,CAAC"}
|