@loaders.gl/i3s 3.1.6 → 3.1.7
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 +756 -95
- package/dist/es5/i3s-attribute-loader.js +1 -1
- package/dist/es5/i3s-building-scene-layer-loader.js +1 -1
- package/dist/es5/i3s-content-loader.js +1 -1
- package/dist/es5/i3s-loader.js +1 -1
- package/dist/es5/i3s-node-page-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/i3s-content-worker.js +617 -44
- package/package.json +9 -9
package/dist/dist.min.js
CHANGED
|
@@ -749,6 +749,25 @@
|
|
|
749
749
|
}
|
|
750
750
|
});
|
|
751
751
|
|
|
752
|
+
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
753
|
+
function _defineProperty(obj, key, value) {
|
|
754
|
+
if (key in obj) {
|
|
755
|
+
Object.defineProperty(obj, key, {
|
|
756
|
+
value,
|
|
757
|
+
enumerable: true,
|
|
758
|
+
configurable: true,
|
|
759
|
+
writable: true
|
|
760
|
+
});
|
|
761
|
+
} else {
|
|
762
|
+
obj[key] = value;
|
|
763
|
+
}
|
|
764
|
+
return obj;
|
|
765
|
+
}
|
|
766
|
+
var init_defineProperty = __esm({
|
|
767
|
+
"../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() {
|
|
768
|
+
}
|
|
769
|
+
});
|
|
770
|
+
|
|
752
771
|
// ../loader-utils/src/lib/path-utils/file-aliases.ts
|
|
753
772
|
function resolvePath(filename2) {
|
|
754
773
|
for (const alias in fileAliases) {
|
|
@@ -1890,6 +1909,638 @@
|
|
|
1890
1909
|
}
|
|
1891
1910
|
});
|
|
1892
1911
|
|
|
1912
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js
|
|
1913
|
+
function isElectron2(mockUserAgent) {
|
|
1914
|
+
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
|
|
1915
|
+
return true;
|
|
1916
|
+
}
|
|
1917
|
+
if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions.electron)) {
|
|
1918
|
+
return true;
|
|
1919
|
+
}
|
|
1920
|
+
const realUserAgent = typeof navigator === "object" && typeof navigator.userAgent === "string" && navigator.userAgent;
|
|
1921
|
+
const userAgent = mockUserAgent || realUserAgent;
|
|
1922
|
+
if (userAgent && userAgent.indexOf("Electron") >= 0) {
|
|
1923
|
+
return true;
|
|
1924
|
+
}
|
|
1925
|
+
return false;
|
|
1926
|
+
}
|
|
1927
|
+
var init_is_electron2 = __esm({
|
|
1928
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"() {
|
|
1929
|
+
}
|
|
1930
|
+
});
|
|
1931
|
+
|
|
1932
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js
|
|
1933
|
+
function isBrowser5() {
|
|
1934
|
+
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
|
|
1935
|
+
return !isNode || isElectron2();
|
|
1936
|
+
}
|
|
1937
|
+
var init_is_browser2 = __esm({
|
|
1938
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"() {
|
|
1939
|
+
init_is_electron2();
|
|
1940
|
+
}
|
|
1941
|
+
});
|
|
1942
|
+
|
|
1943
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/globals.js
|
|
1944
|
+
var globals4, self_4, window_4, document_4, process_2;
|
|
1945
|
+
var init_globals5 = __esm({
|
|
1946
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/globals.js"() {
|
|
1947
|
+
globals4 = {
|
|
1948
|
+
self: typeof self !== "undefined" && self,
|
|
1949
|
+
window: typeof window !== "undefined" && window,
|
|
1950
|
+
global: typeof global !== "undefined" && global,
|
|
1951
|
+
document: typeof document !== "undefined" && document,
|
|
1952
|
+
process: typeof process === "object" && process
|
|
1953
|
+
};
|
|
1954
|
+
self_4 = globals4.self || globals4.window || globals4.global;
|
|
1955
|
+
window_4 = globals4.window || globals4.self || globals4.global;
|
|
1956
|
+
document_4 = globals4.document || {};
|
|
1957
|
+
process_2 = globals4.process || {};
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
|
|
1961
|
+
// ../../node_modules/@probe.gl/env/dist/esm/utils/globals.js
|
|
1962
|
+
var VERSION4, isBrowser6;
|
|
1963
|
+
var init_globals6 = __esm({
|
|
1964
|
+
"../../node_modules/@probe.gl/env/dist/esm/utils/globals.js"() {
|
|
1965
|
+
init_is_browser2();
|
|
1966
|
+
VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
|
|
1967
|
+
isBrowser6 = isBrowser5();
|
|
1968
|
+
}
|
|
1969
|
+
});
|
|
1970
|
+
|
|
1971
|
+
// ../../node_modules/@probe.gl/env/dist/esm/index.js
|
|
1972
|
+
var init_esm3 = __esm({
|
|
1973
|
+
"../../node_modules/@probe.gl/env/dist/esm/index.js"() {
|
|
1974
|
+
init_globals6();
|
|
1975
|
+
init_globals5();
|
|
1976
|
+
init_is_browser2();
|
|
1977
|
+
}
|
|
1978
|
+
});
|
|
1979
|
+
|
|
1980
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js
|
|
1981
|
+
function getStorage2(type) {
|
|
1982
|
+
try {
|
|
1983
|
+
const storage = window[type];
|
|
1984
|
+
const x = "__storage_test__";
|
|
1985
|
+
storage.setItem(x, x);
|
|
1986
|
+
storage.removeItem(x);
|
|
1987
|
+
return storage;
|
|
1988
|
+
} catch (e2) {
|
|
1989
|
+
return null;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
var LocalStorage2;
|
|
1993
|
+
var init_local_storage2 = __esm({
|
|
1994
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js"() {
|
|
1995
|
+
init_defineProperty();
|
|
1996
|
+
LocalStorage2 = class {
|
|
1997
|
+
constructor(id) {
|
|
1998
|
+
let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1999
|
+
let type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
|
|
2000
|
+
_defineProperty(this, "storage", void 0);
|
|
2001
|
+
_defineProperty(this, "id", void 0);
|
|
2002
|
+
_defineProperty(this, "config", {});
|
|
2003
|
+
this.storage = getStorage2(type);
|
|
2004
|
+
this.id = id;
|
|
2005
|
+
this.config = {};
|
|
2006
|
+
Object.assign(this.config, defaultSettings);
|
|
2007
|
+
this._loadConfiguration();
|
|
2008
|
+
}
|
|
2009
|
+
getConfiguration() {
|
|
2010
|
+
return this.config;
|
|
2011
|
+
}
|
|
2012
|
+
setConfiguration(configuration) {
|
|
2013
|
+
this.config = {};
|
|
2014
|
+
return this.updateConfiguration(configuration);
|
|
2015
|
+
}
|
|
2016
|
+
updateConfiguration(configuration) {
|
|
2017
|
+
Object.assign(this.config, configuration);
|
|
2018
|
+
if (this.storage) {
|
|
2019
|
+
const serialized = JSON.stringify(this.config);
|
|
2020
|
+
this.storage.setItem(this.id, serialized);
|
|
2021
|
+
}
|
|
2022
|
+
return this;
|
|
2023
|
+
}
|
|
2024
|
+
_loadConfiguration() {
|
|
2025
|
+
let configuration = {};
|
|
2026
|
+
if (this.storage) {
|
|
2027
|
+
const serializedConfiguration = this.storage.getItem(this.id);
|
|
2028
|
+
configuration = serializedConfiguration ? JSON.parse(serializedConfiguration) : {};
|
|
2029
|
+
}
|
|
2030
|
+
Object.assign(this.config, configuration);
|
|
2031
|
+
return this;
|
|
2032
|
+
}
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
|
|
2037
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js
|
|
2038
|
+
function formatTime2(ms) {
|
|
2039
|
+
let formatted;
|
|
2040
|
+
if (ms < 10) {
|
|
2041
|
+
formatted = "".concat(ms.toFixed(2), "ms");
|
|
2042
|
+
} else if (ms < 100) {
|
|
2043
|
+
formatted = "".concat(ms.toFixed(1), "ms");
|
|
2044
|
+
} else if (ms < 1e3) {
|
|
2045
|
+
formatted = "".concat(ms.toFixed(0), "ms");
|
|
2046
|
+
} else {
|
|
2047
|
+
formatted = "".concat((ms / 1e3).toFixed(2), "s");
|
|
2048
|
+
}
|
|
2049
|
+
return formatted;
|
|
2050
|
+
}
|
|
2051
|
+
function leftPad2(string) {
|
|
2052
|
+
let length4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 8;
|
|
2053
|
+
const padLength = Math.max(length4 - string.length, 0);
|
|
2054
|
+
return "".concat(" ".repeat(padLength)).concat(string);
|
|
2055
|
+
}
|
|
2056
|
+
function formatImage2(image, message, scale5) {
|
|
2057
|
+
let maxWidth = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 600;
|
|
2058
|
+
const imageUrl = image.src.replace(/\(/g, "%28").replace(/\)/g, "%29");
|
|
2059
|
+
if (image.width > maxWidth) {
|
|
2060
|
+
scale5 = Math.min(scale5, maxWidth / image.width);
|
|
2061
|
+
}
|
|
2062
|
+
const width = image.width * scale5;
|
|
2063
|
+
const height = image.height * scale5;
|
|
2064
|
+
const style = ["font-size:1px;", "padding:".concat(Math.floor(height / 2), "px ").concat(Math.floor(width / 2), "px;"), "line-height:".concat(height, "px;"), "background:url(".concat(imageUrl, ");"), "background-size:".concat(width, "px ").concat(height, "px;"), "color:transparent;"].join("");
|
|
2065
|
+
return ["".concat(message, " %c+"), style];
|
|
2066
|
+
}
|
|
2067
|
+
var init_formatters2 = __esm({
|
|
2068
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js"() {
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
|
|
2072
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/color.js
|
|
2073
|
+
function getColor2(color) {
|
|
2074
|
+
return typeof color === "string" ? COLOR2[color.toUpperCase()] || COLOR2.WHITE : color;
|
|
2075
|
+
}
|
|
2076
|
+
function addColor2(string, color, background) {
|
|
2077
|
+
if (!isBrowser5 && typeof string === "string") {
|
|
2078
|
+
if (color) {
|
|
2079
|
+
color = getColor2(color);
|
|
2080
|
+
string = "[".concat(color, "m").concat(string, "[39m");
|
|
2081
|
+
}
|
|
2082
|
+
if (background) {
|
|
2083
|
+
color = getColor2(background);
|
|
2084
|
+
string = "[".concat(background + 10, "m").concat(string, "[49m");
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
return string;
|
|
2088
|
+
}
|
|
2089
|
+
var COLOR2;
|
|
2090
|
+
var init_color2 = __esm({
|
|
2091
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
|
|
2092
|
+
init_esm3();
|
|
2093
|
+
(function(COLOR3) {
|
|
2094
|
+
COLOR3[COLOR3["BLACK"] = 30] = "BLACK";
|
|
2095
|
+
COLOR3[COLOR3["RED"] = 31] = "RED";
|
|
2096
|
+
COLOR3[COLOR3["GREEN"] = 32] = "GREEN";
|
|
2097
|
+
COLOR3[COLOR3["YELLOW"] = 33] = "YELLOW";
|
|
2098
|
+
COLOR3[COLOR3["BLUE"] = 34] = "BLUE";
|
|
2099
|
+
COLOR3[COLOR3["MAGENTA"] = 35] = "MAGENTA";
|
|
2100
|
+
COLOR3[COLOR3["CYAN"] = 36] = "CYAN";
|
|
2101
|
+
COLOR3[COLOR3["WHITE"] = 37] = "WHITE";
|
|
2102
|
+
COLOR3[COLOR3["BRIGHT_BLACK"] = 90] = "BRIGHT_BLACK";
|
|
2103
|
+
COLOR3[COLOR3["BRIGHT_RED"] = 91] = "BRIGHT_RED";
|
|
2104
|
+
COLOR3[COLOR3["BRIGHT_GREEN"] = 92] = "BRIGHT_GREEN";
|
|
2105
|
+
COLOR3[COLOR3["BRIGHT_YELLOW"] = 93] = "BRIGHT_YELLOW";
|
|
2106
|
+
COLOR3[COLOR3["BRIGHT_BLUE"] = 94] = "BRIGHT_BLUE";
|
|
2107
|
+
COLOR3[COLOR3["BRIGHT_MAGENTA"] = 95] = "BRIGHT_MAGENTA";
|
|
2108
|
+
COLOR3[COLOR3["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
|
|
2109
|
+
COLOR3[COLOR3["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
|
|
2110
|
+
})(COLOR2 || (COLOR2 = {}));
|
|
2111
|
+
}
|
|
2112
|
+
});
|
|
2113
|
+
|
|
2114
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js
|
|
2115
|
+
function autobind2(obj) {
|
|
2116
|
+
let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
|
|
2117
|
+
const proto = Object.getPrototypeOf(obj);
|
|
2118
|
+
const propNames = Object.getOwnPropertyNames(proto);
|
|
2119
|
+
for (const key of propNames) {
|
|
2120
|
+
if (typeof obj[key] === "function") {
|
|
2121
|
+
if (!predefined.find((name) => key === name)) {
|
|
2122
|
+
obj[key] = obj[key].bind(obj);
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
var init_autobind2 = __esm({
|
|
2128
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js"() {
|
|
2129
|
+
}
|
|
2130
|
+
});
|
|
2131
|
+
|
|
2132
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/assert.js
|
|
2133
|
+
function assert4(condition, message) {
|
|
2134
|
+
if (!condition) {
|
|
2135
|
+
throw new Error(message || "Assertion failed");
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
var init_assert4 = __esm({
|
|
2139
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/assert.js"() {
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
|
|
2143
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
|
|
2144
|
+
function getHiResTimestamp3() {
|
|
2145
|
+
let timestamp;
|
|
2146
|
+
if (isBrowser5 && "performance" in window_4) {
|
|
2147
|
+
var _window$performance, _window$performance$n;
|
|
2148
|
+
timestamp = window_4 === null || window_4 === void 0 ? void 0 : (_window$performance = window_4.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);
|
|
2149
|
+
} else if ("hrtime" in process_2) {
|
|
2150
|
+
var _process$hrtime;
|
|
2151
|
+
const timeParts = process_2 === null || process_2 === void 0 ? void 0 : (_process$hrtime = process_2.hrtime) === null || _process$hrtime === void 0 ? void 0 : _process$hrtime.call(process_2);
|
|
2152
|
+
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
2153
|
+
} else {
|
|
2154
|
+
timestamp = Date.now();
|
|
2155
|
+
}
|
|
2156
|
+
return timestamp;
|
|
2157
|
+
}
|
|
2158
|
+
var init_hi_res_timestamp3 = __esm({
|
|
2159
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
|
|
2160
|
+
init_esm3();
|
|
2161
|
+
}
|
|
2162
|
+
});
|
|
2163
|
+
|
|
2164
|
+
// ../../node_modules/@probe.gl/log/dist/esm/log.js
|
|
2165
|
+
function noop2() {
|
|
2166
|
+
}
|
|
2167
|
+
function normalizeLogLevel2(logLevel) {
|
|
2168
|
+
if (!logLevel) {
|
|
2169
|
+
return 0;
|
|
2170
|
+
}
|
|
2171
|
+
let resolvedLevel;
|
|
2172
|
+
switch (typeof logLevel) {
|
|
2173
|
+
case "number":
|
|
2174
|
+
resolvedLevel = logLevel;
|
|
2175
|
+
break;
|
|
2176
|
+
case "object":
|
|
2177
|
+
resolvedLevel = logLevel.logLevel || logLevel.priority || 0;
|
|
2178
|
+
break;
|
|
2179
|
+
default:
|
|
2180
|
+
return 0;
|
|
2181
|
+
}
|
|
2182
|
+
assert4(Number.isFinite(resolvedLevel) && resolvedLevel >= 0);
|
|
2183
|
+
return resolvedLevel;
|
|
2184
|
+
}
|
|
2185
|
+
function normalizeArguments2(opts) {
|
|
2186
|
+
const {
|
|
2187
|
+
logLevel,
|
|
2188
|
+
message
|
|
2189
|
+
} = opts;
|
|
2190
|
+
opts.logLevel = normalizeLogLevel2(logLevel);
|
|
2191
|
+
const args = opts.args ? Array.from(opts.args) : [];
|
|
2192
|
+
while (args.length && args.shift() !== message) {
|
|
2193
|
+
}
|
|
2194
|
+
switch (typeof logLevel) {
|
|
2195
|
+
case "string":
|
|
2196
|
+
case "function":
|
|
2197
|
+
if (message !== void 0) {
|
|
2198
|
+
args.unshift(message);
|
|
2199
|
+
}
|
|
2200
|
+
opts.message = logLevel;
|
|
2201
|
+
break;
|
|
2202
|
+
case "object":
|
|
2203
|
+
Object.assign(opts, logLevel);
|
|
2204
|
+
break;
|
|
2205
|
+
default:
|
|
2206
|
+
}
|
|
2207
|
+
if (typeof opts.message === "function") {
|
|
2208
|
+
opts.message = opts.message();
|
|
2209
|
+
}
|
|
2210
|
+
const messageType = typeof opts.message;
|
|
2211
|
+
assert4(messageType === "string" || messageType === "object");
|
|
2212
|
+
return Object.assign(opts, {
|
|
2213
|
+
args
|
|
2214
|
+
}, opts.opts);
|
|
2215
|
+
}
|
|
2216
|
+
function decorateMessage2(id, message, opts) {
|
|
2217
|
+
if (typeof message === "string") {
|
|
2218
|
+
const time = opts.time ? leftPad2(formatTime2(opts.total)) : "";
|
|
2219
|
+
message = opts.time ? "".concat(id, ": ").concat(time, " ").concat(message) : "".concat(id, ": ").concat(message);
|
|
2220
|
+
message = addColor2(message, opts.color, opts.background);
|
|
2221
|
+
}
|
|
2222
|
+
return message;
|
|
2223
|
+
}
|
|
2224
|
+
function logImageInNode2(_ref2) {
|
|
2225
|
+
let {
|
|
2226
|
+
image,
|
|
2227
|
+
message = "",
|
|
2228
|
+
scale: scale5 = 1
|
|
2229
|
+
} = _ref2;
|
|
2230
|
+
let asciify = null;
|
|
2231
|
+
try {
|
|
2232
|
+
asciify = module.require("asciify-image");
|
|
2233
|
+
} catch (error) {
|
|
2234
|
+
}
|
|
2235
|
+
if (asciify) {
|
|
2236
|
+
return () => asciify(image, {
|
|
2237
|
+
fit: "box",
|
|
2238
|
+
width: "".concat(Math.round(80 * scale5), "%")
|
|
2239
|
+
}).then((data) => console.log(data));
|
|
2240
|
+
}
|
|
2241
|
+
return noop2;
|
|
2242
|
+
}
|
|
2243
|
+
function logImageInBrowser2(_ref3) {
|
|
2244
|
+
let {
|
|
2245
|
+
image,
|
|
2246
|
+
message = "",
|
|
2247
|
+
scale: scale5 = 1
|
|
2248
|
+
} = _ref3;
|
|
2249
|
+
if (typeof image === "string") {
|
|
2250
|
+
const img = new Image();
|
|
2251
|
+
img.onload = () => {
|
|
2252
|
+
const args = formatImage2(img, message, scale5);
|
|
2253
|
+
console.log(...args);
|
|
2254
|
+
};
|
|
2255
|
+
img.src = image;
|
|
2256
|
+
return noop2;
|
|
2257
|
+
}
|
|
2258
|
+
const element = image.nodeName || "";
|
|
2259
|
+
if (element.toLowerCase() === "img") {
|
|
2260
|
+
console.log(...formatImage2(image, message, scale5));
|
|
2261
|
+
return noop2;
|
|
2262
|
+
}
|
|
2263
|
+
if (element.toLowerCase() === "canvas") {
|
|
2264
|
+
const img = new Image();
|
|
2265
|
+
img.onload = () => console.log(...formatImage2(img, message, scale5));
|
|
2266
|
+
img.src = image.toDataURL();
|
|
2267
|
+
return noop2;
|
|
2268
|
+
}
|
|
2269
|
+
return noop2;
|
|
2270
|
+
}
|
|
2271
|
+
function getTableHeader2(table) {
|
|
2272
|
+
for (const key in table) {
|
|
2273
|
+
for (const title in table[key]) {
|
|
2274
|
+
return title || "untitled";
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
return "empty";
|
|
2278
|
+
}
|
|
2279
|
+
var originalConsole2, DEFAULT_SETTINGS2, cache2, ONCE2, Log2;
|
|
2280
|
+
var init_log2 = __esm({
|
|
2281
|
+
"../../node_modules/@probe.gl/log/dist/esm/log.js"() {
|
|
2282
|
+
init_defineProperty();
|
|
2283
|
+
init_esm3();
|
|
2284
|
+
init_local_storage2();
|
|
2285
|
+
init_formatters2();
|
|
2286
|
+
init_color2();
|
|
2287
|
+
init_autobind2();
|
|
2288
|
+
init_assert4();
|
|
2289
|
+
init_hi_res_timestamp3();
|
|
2290
|
+
originalConsole2 = {
|
|
2291
|
+
debug: isBrowser5 ? console.debug || console.log : console.log,
|
|
2292
|
+
log: console.log,
|
|
2293
|
+
info: console.info,
|
|
2294
|
+
warn: console.warn,
|
|
2295
|
+
error: console.error
|
|
2296
|
+
};
|
|
2297
|
+
DEFAULT_SETTINGS2 = {
|
|
2298
|
+
enabled: true,
|
|
2299
|
+
level: 0
|
|
2300
|
+
};
|
|
2301
|
+
cache2 = {};
|
|
2302
|
+
ONCE2 = {
|
|
2303
|
+
once: true
|
|
2304
|
+
};
|
|
2305
|
+
Log2 = class {
|
|
2306
|
+
constructor() {
|
|
2307
|
+
let {
|
|
2308
|
+
id
|
|
2309
|
+
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
2310
|
+
id: ""
|
|
2311
|
+
};
|
|
2312
|
+
_defineProperty(this, "id", void 0);
|
|
2313
|
+
_defineProperty(this, "VERSION", VERSION4);
|
|
2314
|
+
_defineProperty(this, "_startTs", getHiResTimestamp3());
|
|
2315
|
+
_defineProperty(this, "_deltaTs", getHiResTimestamp3());
|
|
2316
|
+
_defineProperty(this, "_storage", void 0);
|
|
2317
|
+
_defineProperty(this, "userData", {});
|
|
2318
|
+
_defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
2319
|
+
this.id = id;
|
|
2320
|
+
this._storage = new LocalStorage2("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS2);
|
|
2321
|
+
this.userData = {};
|
|
2322
|
+
this.timeStamp("".concat(this.id, " started"));
|
|
2323
|
+
autobind2(this);
|
|
2324
|
+
Object.seal(this);
|
|
2325
|
+
}
|
|
2326
|
+
set level(newLevel) {
|
|
2327
|
+
this.setLevel(newLevel);
|
|
2328
|
+
}
|
|
2329
|
+
get level() {
|
|
2330
|
+
return this.getLevel();
|
|
2331
|
+
}
|
|
2332
|
+
isEnabled() {
|
|
2333
|
+
return this._storage.config.enabled;
|
|
2334
|
+
}
|
|
2335
|
+
getLevel() {
|
|
2336
|
+
return this._storage.config.level;
|
|
2337
|
+
}
|
|
2338
|
+
getTotal() {
|
|
2339
|
+
return Number((getHiResTimestamp3() - this._startTs).toPrecision(10));
|
|
2340
|
+
}
|
|
2341
|
+
getDelta() {
|
|
2342
|
+
return Number((getHiResTimestamp3() - this._deltaTs).toPrecision(10));
|
|
2343
|
+
}
|
|
2344
|
+
set priority(newPriority) {
|
|
2345
|
+
this.level = newPriority;
|
|
2346
|
+
}
|
|
2347
|
+
get priority() {
|
|
2348
|
+
return this.level;
|
|
2349
|
+
}
|
|
2350
|
+
getPriority() {
|
|
2351
|
+
return this.level;
|
|
2352
|
+
}
|
|
2353
|
+
enable() {
|
|
2354
|
+
let enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
2355
|
+
this._storage.updateConfiguration({
|
|
2356
|
+
enabled
|
|
2357
|
+
});
|
|
2358
|
+
return this;
|
|
2359
|
+
}
|
|
2360
|
+
setLevel(level) {
|
|
2361
|
+
this._storage.updateConfiguration({
|
|
2362
|
+
level
|
|
2363
|
+
});
|
|
2364
|
+
return this;
|
|
2365
|
+
}
|
|
2366
|
+
get(setting) {
|
|
2367
|
+
return this._storage.config[setting];
|
|
2368
|
+
}
|
|
2369
|
+
set(setting, value) {
|
|
2370
|
+
this._storage.updateConfiguration({
|
|
2371
|
+
[setting]: value
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2374
|
+
settings() {
|
|
2375
|
+
if (console.table) {
|
|
2376
|
+
console.table(this._storage.config);
|
|
2377
|
+
} else {
|
|
2378
|
+
console.log(this._storage.config);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
assert(condition, message) {
|
|
2382
|
+
assert4(condition, message);
|
|
2383
|
+
}
|
|
2384
|
+
warn(message) {
|
|
2385
|
+
return this._getLogFunction(0, message, originalConsole2.warn, arguments, ONCE2);
|
|
2386
|
+
}
|
|
2387
|
+
error(message) {
|
|
2388
|
+
return this._getLogFunction(0, message, originalConsole2.error, arguments);
|
|
2389
|
+
}
|
|
2390
|
+
deprecated(oldUsage, newUsage) {
|
|
2391
|
+
return this.warn("`".concat(oldUsage, "` is deprecated and will be removed in a later version. Use `").concat(newUsage, "` instead"));
|
|
2392
|
+
}
|
|
2393
|
+
removed(oldUsage, newUsage) {
|
|
2394
|
+
return this.error("`".concat(oldUsage, "` has been removed. Use `").concat(newUsage, "` instead"));
|
|
2395
|
+
}
|
|
2396
|
+
probe(logLevel, message) {
|
|
2397
|
+
return this._getLogFunction(logLevel, message, originalConsole2.log, arguments, {
|
|
2398
|
+
time: true,
|
|
2399
|
+
once: true
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
log(logLevel, message) {
|
|
2403
|
+
return this._getLogFunction(logLevel, message, originalConsole2.debug, arguments);
|
|
2404
|
+
}
|
|
2405
|
+
info(logLevel, message) {
|
|
2406
|
+
return this._getLogFunction(logLevel, message, console.info, arguments);
|
|
2407
|
+
}
|
|
2408
|
+
once(logLevel, message) {
|
|
2409
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
2410
|
+
args[_key - 2] = arguments[_key];
|
|
2411
|
+
}
|
|
2412
|
+
return this._getLogFunction(logLevel, message, originalConsole2.debug || originalConsole2.info, arguments, ONCE2);
|
|
2413
|
+
}
|
|
2414
|
+
table(logLevel, table, columns) {
|
|
2415
|
+
if (table) {
|
|
2416
|
+
return this._getLogFunction(logLevel, table, console.table || noop2, columns && [columns], {
|
|
2417
|
+
tag: getTableHeader2(table)
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
return noop2;
|
|
2421
|
+
}
|
|
2422
|
+
image(_ref) {
|
|
2423
|
+
let {
|
|
2424
|
+
logLevel,
|
|
2425
|
+
priority,
|
|
2426
|
+
image,
|
|
2427
|
+
message = "",
|
|
2428
|
+
scale: scale5 = 1
|
|
2429
|
+
} = _ref;
|
|
2430
|
+
if (!this._shouldLog(logLevel || priority)) {
|
|
2431
|
+
return noop2;
|
|
2432
|
+
}
|
|
2433
|
+
return isBrowser5 ? logImageInBrowser2({
|
|
2434
|
+
image,
|
|
2435
|
+
message,
|
|
2436
|
+
scale: scale5
|
|
2437
|
+
}) : logImageInNode2({
|
|
2438
|
+
image,
|
|
2439
|
+
message,
|
|
2440
|
+
scale: scale5
|
|
2441
|
+
});
|
|
2442
|
+
}
|
|
2443
|
+
time(logLevel, message) {
|
|
2444
|
+
return this._getLogFunction(logLevel, message, console.time ? console.time : console.info);
|
|
2445
|
+
}
|
|
2446
|
+
timeEnd(logLevel, message) {
|
|
2447
|
+
return this._getLogFunction(logLevel, message, console.timeEnd ? console.timeEnd : console.info);
|
|
2448
|
+
}
|
|
2449
|
+
timeStamp(logLevel, message) {
|
|
2450
|
+
return this._getLogFunction(logLevel, message, console.timeStamp || noop2);
|
|
2451
|
+
}
|
|
2452
|
+
group(logLevel, message) {
|
|
2453
|
+
let opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
2454
|
+
collapsed: false
|
|
2455
|
+
};
|
|
2456
|
+
const options = normalizeArguments2({
|
|
2457
|
+
logLevel,
|
|
2458
|
+
message,
|
|
2459
|
+
opts
|
|
2460
|
+
});
|
|
2461
|
+
const {
|
|
2462
|
+
collapsed
|
|
2463
|
+
} = opts;
|
|
2464
|
+
options.method = (collapsed ? console.groupCollapsed : console.group) || console.info;
|
|
2465
|
+
return this._getLogFunction(options);
|
|
2466
|
+
}
|
|
2467
|
+
groupCollapsed(logLevel, message) {
|
|
2468
|
+
let opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2469
|
+
return this.group(logLevel, message, Object.assign({}, opts, {
|
|
2470
|
+
collapsed: true
|
|
2471
|
+
}));
|
|
2472
|
+
}
|
|
2473
|
+
groupEnd(logLevel) {
|
|
2474
|
+
return this._getLogFunction(logLevel, "", console.groupEnd || noop2);
|
|
2475
|
+
}
|
|
2476
|
+
withGroup(logLevel, message, func) {
|
|
2477
|
+
this.group(logLevel, message)();
|
|
2478
|
+
try {
|
|
2479
|
+
func();
|
|
2480
|
+
} finally {
|
|
2481
|
+
this.groupEnd(logLevel)();
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
trace() {
|
|
2485
|
+
if (console.trace) {
|
|
2486
|
+
console.trace();
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
_shouldLog(logLevel) {
|
|
2490
|
+
return this.isEnabled() && this.getLevel() >= normalizeLogLevel2(logLevel);
|
|
2491
|
+
}
|
|
2492
|
+
_getLogFunction(logLevel, message, method, args, opts) {
|
|
2493
|
+
if (this._shouldLog(logLevel)) {
|
|
2494
|
+
opts = normalizeArguments2({
|
|
2495
|
+
logLevel,
|
|
2496
|
+
message,
|
|
2497
|
+
args,
|
|
2498
|
+
opts
|
|
2499
|
+
});
|
|
2500
|
+
method = method || opts.method;
|
|
2501
|
+
assert4(method);
|
|
2502
|
+
opts.total = this.getTotal();
|
|
2503
|
+
opts.delta = this.getDelta();
|
|
2504
|
+
this._deltaTs = getHiResTimestamp3();
|
|
2505
|
+
const tag = opts.tag || opts.message;
|
|
2506
|
+
if (opts.once) {
|
|
2507
|
+
if (!cache2[tag]) {
|
|
2508
|
+
cache2[tag] = getHiResTimestamp3();
|
|
2509
|
+
} else {
|
|
2510
|
+
return noop2;
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
message = decorateMessage2(this.id, opts.message, opts);
|
|
2514
|
+
return method.bind(console, message, ...opts.args);
|
|
2515
|
+
}
|
|
2516
|
+
return noop2;
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
_defineProperty(Log2, "VERSION", VERSION4);
|
|
2520
|
+
}
|
|
2521
|
+
});
|
|
2522
|
+
|
|
2523
|
+
// ../../node_modules/@probe.gl/log/dist/esm/index.js
|
|
2524
|
+
var esm_default2;
|
|
2525
|
+
var init_esm4 = __esm({
|
|
2526
|
+
"../../node_modules/@probe.gl/log/dist/esm/index.js"() {
|
|
2527
|
+
init_log2();
|
|
2528
|
+
init_log2();
|
|
2529
|
+
esm_default2 = new Log2({
|
|
2530
|
+
id: "@probe.gl/log"
|
|
2531
|
+
});
|
|
2532
|
+
}
|
|
2533
|
+
});
|
|
2534
|
+
|
|
2535
|
+
// ../core/src/lib/utils/log.ts
|
|
2536
|
+
var log;
|
|
2537
|
+
var init_log3 = __esm({
|
|
2538
|
+
"../core/src/lib/utils/log.ts"() {
|
|
2539
|
+
init_esm4();
|
|
2540
|
+
log = new Log2({ id: "loaders.gl" });
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
|
|
1893
2544
|
// ../core/src/lib/api/select-loader.ts
|
|
1894
2545
|
async function selectLoader(data, loaders = [], options, context) {
|
|
1895
2546
|
if (!validHTTPResponse(data)) {
|
|
@@ -1933,13 +2584,22 @@
|
|
|
1933
2584
|
const { url, type } = getResourceUrlAndType(data);
|
|
1934
2585
|
const testUrl = url || context?.url;
|
|
1935
2586
|
let loader = null;
|
|
2587
|
+
let reason = "";
|
|
1936
2588
|
if (options?.mimeType) {
|
|
1937
2589
|
loader = findLoaderByMIMEType(loaders, options?.mimeType);
|
|
2590
|
+
reason = `match forced by supplied MIME type ${options?.mimeType}`;
|
|
1938
2591
|
}
|
|
1939
2592
|
loader = loader || findLoaderByUrl(loaders, testUrl);
|
|
2593
|
+
reason = reason || (loader ? `matched url ${testUrl}` : "");
|
|
1940
2594
|
loader = loader || findLoaderByMIMEType(loaders, type);
|
|
2595
|
+
reason = reason || (loader ? `matched MIME type ${type}` : "");
|
|
1941
2596
|
loader = loader || findLoaderByInitialBytes(loaders, data);
|
|
2597
|
+
reason = reason || (loader ? `matched initial data ${getFirstCharacters(data)}` : "");
|
|
1942
2598
|
loader = loader || findLoaderByMIMEType(loaders, options?.fallbackMimeType);
|
|
2599
|
+
reason = reason || (loader ? `matched fallback MIME type ${type}` : "");
|
|
2600
|
+
if (reason) {
|
|
2601
|
+
log.log(1, `selectLoader selected ${loader?.name}: ${reason}.`);
|
|
2602
|
+
}
|
|
1943
2603
|
return loader;
|
|
1944
2604
|
}
|
|
1945
2605
|
function validHTTPResponse(data) {
|
|
@@ -2066,6 +2726,7 @@
|
|
|
2066
2726
|
"../core/src/lib/api/select-loader.ts"() {
|
|
2067
2727
|
init_src2();
|
|
2068
2728
|
init_normalize_loader();
|
|
2729
|
+
init_log3();
|
|
2069
2730
|
init_resource_utils();
|
|
2070
2731
|
init_register_loaders();
|
|
2071
2732
|
init_is_type();
|
|
@@ -2379,12 +3040,12 @@
|
|
|
2379
3040
|
});
|
|
2380
3041
|
|
|
2381
3042
|
// ../../node_modules/@math.gl/core/dist/esm/lib/assert.js
|
|
2382
|
-
function
|
|
3043
|
+
function assert5(condition, message) {
|
|
2383
3044
|
if (!condition) {
|
|
2384
3045
|
throw new Error("math.gl assertion ".concat(message));
|
|
2385
3046
|
}
|
|
2386
3047
|
}
|
|
2387
|
-
var
|
|
3048
|
+
var init_assert5 = __esm({
|
|
2388
3049
|
"../../node_modules/@math.gl/core/dist/esm/lib/assert.js"() {
|
|
2389
3050
|
}
|
|
2390
3051
|
});
|
|
@@ -2502,10 +3163,10 @@
|
|
|
2502
3163
|
var init_math_array = __esm({
|
|
2503
3164
|
"../../node_modules/@math.gl/core/dist/esm/classes/base/math-array.js"() {
|
|
2504
3165
|
init_common();
|
|
2505
|
-
|
|
3166
|
+
init_assert5();
|
|
2506
3167
|
MathArray = class extends _extendableBuiltin(Array) {
|
|
2507
3168
|
get ELEMENTS() {
|
|
2508
|
-
|
|
3169
|
+
assert5(false);
|
|
2509
3170
|
return 0;
|
|
2510
3171
|
}
|
|
2511
3172
|
clone() {
|
|
@@ -2731,14 +3392,14 @@
|
|
|
2731
3392
|
"../../node_modules/@math.gl/core/dist/esm/classes/base/vector.js"() {
|
|
2732
3393
|
init_math_array();
|
|
2733
3394
|
init_validators();
|
|
2734
|
-
|
|
3395
|
+
init_assert5();
|
|
2735
3396
|
Vector = class extends MathArray {
|
|
2736
3397
|
get ELEMENTS() {
|
|
2737
|
-
|
|
3398
|
+
assert5(false);
|
|
2738
3399
|
return 0;
|
|
2739
3400
|
}
|
|
2740
3401
|
copy(vector) {
|
|
2741
|
-
|
|
3402
|
+
assert5(false);
|
|
2742
3403
|
return this;
|
|
2743
3404
|
}
|
|
2744
3405
|
get x() {
|
|
@@ -2822,11 +3483,11 @@
|
|
|
2822
3483
|
return this.distanceSquared(vector);
|
|
2823
3484
|
}
|
|
2824
3485
|
getComponent(i2) {
|
|
2825
|
-
|
|
3486
|
+
assert5(i2 >= 0 && i2 < this.ELEMENTS, "index is out of range");
|
|
2826
3487
|
return checkNumber(this[i2]);
|
|
2827
3488
|
}
|
|
2828
3489
|
setComponent(i2, value) {
|
|
2829
|
-
|
|
3490
|
+
assert5(i2 >= 0 && i2 < this.ELEMENTS, "index is out of range");
|
|
2830
3491
|
this[i2] = value;
|
|
2831
3492
|
return this.check();
|
|
2832
3493
|
}
|
|
@@ -3248,14 +3909,14 @@
|
|
|
3248
3909
|
init_math_array();
|
|
3249
3910
|
init_validators();
|
|
3250
3911
|
init_common();
|
|
3251
|
-
|
|
3912
|
+
init_assert5();
|
|
3252
3913
|
Matrix = class extends MathArray {
|
|
3253
3914
|
get ELEMENTS() {
|
|
3254
|
-
|
|
3915
|
+
assert5(false);
|
|
3255
3916
|
return 0;
|
|
3256
3917
|
}
|
|
3257
3918
|
get RANK() {
|
|
3258
|
-
|
|
3919
|
+
assert5(false);
|
|
3259
3920
|
return 0;
|
|
3260
3921
|
}
|
|
3261
3922
|
toString() {
|
|
@@ -4929,7 +5590,7 @@
|
|
|
4929
5590
|
"../../node_modules/@math.gl/core/dist/esm/classes/quaternion.js"() {
|
|
4930
5591
|
init_math_array();
|
|
4931
5592
|
init_validators();
|
|
4932
|
-
|
|
5593
|
+
init_assert5();
|
|
4933
5594
|
init_quat();
|
|
4934
5595
|
init_vec4();
|
|
4935
5596
|
IDENTITY_QUATERNION = [0, 0, 0, 1];
|
|
@@ -5038,12 +5699,12 @@
|
|
|
5038
5699
|
return this.check();
|
|
5039
5700
|
}
|
|
5040
5701
|
multiplyRight(a2, b) {
|
|
5041
|
-
|
|
5702
|
+
assert5(!b);
|
|
5042
5703
|
multiply3(this, this, a2);
|
|
5043
5704
|
return this.check();
|
|
5044
5705
|
}
|
|
5045
5706
|
multiplyLeft(a2, b) {
|
|
5046
|
-
|
|
5707
|
+
assert5(!b);
|
|
5047
5708
|
multiply3(this, a2, this);
|
|
5048
5709
|
return this.check();
|
|
5049
5710
|
}
|
|
@@ -5147,8 +5808,8 @@
|
|
|
5147
5808
|
});
|
|
5148
5809
|
|
|
5149
5810
|
// ../../node_modules/@math.gl/core/dist/esm/index.js
|
|
5150
|
-
var
|
|
5151
|
-
var
|
|
5811
|
+
var globals5, global_5;
|
|
5812
|
+
var init_esm5 = __esm({
|
|
5152
5813
|
"../../node_modules/@math.gl/core/dist/esm/index.js"() {
|
|
5153
5814
|
init_common();
|
|
5154
5815
|
init_vector3();
|
|
@@ -5157,14 +5818,14 @@
|
|
|
5157
5818
|
init_quaternion();
|
|
5158
5819
|
init_common();
|
|
5159
5820
|
init_math_utils();
|
|
5160
|
-
|
|
5161
|
-
|
|
5821
|
+
init_assert5();
|
|
5822
|
+
globals5 = {
|
|
5162
5823
|
self: typeof self !== "undefined" && self,
|
|
5163
5824
|
window: typeof window !== "undefined" && window,
|
|
5164
5825
|
global: typeof global !== "undefined" && global
|
|
5165
5826
|
};
|
|
5166
|
-
|
|
5167
|
-
|
|
5827
|
+
global_5 = globals5.global || globals5.self || globals5.window;
|
|
5828
|
+
global_5.mathgl = {
|
|
5168
5829
|
config
|
|
5169
5830
|
};
|
|
5170
5831
|
}
|
|
@@ -5189,7 +5850,7 @@
|
|
|
5189
5850
|
});
|
|
5190
5851
|
|
|
5191
5852
|
// ../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js
|
|
5192
|
-
function fromCartographic(cartographic, result, map3 =
|
|
5853
|
+
function fromCartographic(cartographic, result, map3 = noop3) {
|
|
5193
5854
|
if (isArray(cartographic)) {
|
|
5194
5855
|
result[0] = map3(cartographic[0]);
|
|
5195
5856
|
result[1] = map3(cartographic[1]);
|
|
@@ -5206,9 +5867,9 @@
|
|
|
5206
5867
|
return result;
|
|
5207
5868
|
}
|
|
5208
5869
|
function fromCartographicToRadians(cartographic, vector = scratchVector) {
|
|
5209
|
-
return fromCartographic(cartographic, vector, config._cartographicRadians ?
|
|
5870
|
+
return fromCartographic(cartographic, vector, config._cartographicRadians ? noop3 : toRadians);
|
|
5210
5871
|
}
|
|
5211
|
-
function toCartographic(vector, cartographic, map3 =
|
|
5872
|
+
function toCartographic(vector, cartographic, map3 = noop3) {
|
|
5212
5873
|
if (isArray(cartographic)) {
|
|
5213
5874
|
cartographic[0] = map3(vector[0]);
|
|
5214
5875
|
cartographic[1] = map3(vector[1]);
|
|
@@ -5225,14 +5886,14 @@
|
|
|
5225
5886
|
return cartographic;
|
|
5226
5887
|
}
|
|
5227
5888
|
function toCartographicFromRadians(vector, cartographic) {
|
|
5228
|
-
return toCartographic(vector, cartographic, config._cartographicRadians ?
|
|
5889
|
+
return toCartographic(vector, cartographic, config._cartographicRadians ? noop3 : toDegrees);
|
|
5229
5890
|
}
|
|
5230
|
-
var
|
|
5891
|
+
var noop3, scratchVector;
|
|
5231
5892
|
var init_type_utils = __esm({
|
|
5232
5893
|
"../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js"() {
|
|
5233
|
-
|
|
5894
|
+
init_esm5();
|
|
5234
5895
|
init_constants();
|
|
5235
|
-
|
|
5896
|
+
noop3 = (x) => x;
|
|
5236
5897
|
scratchVector = new Vector3();
|
|
5237
5898
|
}
|
|
5238
5899
|
});
|
|
@@ -5296,7 +5957,7 @@
|
|
|
5296
5957
|
var scratchVector2, scaleToGeodeticSurfaceIntersection, scaleToGeodeticSurfaceGradient;
|
|
5297
5958
|
var init_scale_to_geodetic_surface = __esm({
|
|
5298
5959
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/scale-to-geodetic-surface.js"() {
|
|
5299
|
-
|
|
5960
|
+
init_esm5();
|
|
5300
5961
|
scratchVector2 = new Vector3();
|
|
5301
5962
|
scaleToGeodeticSurfaceIntersection = new Vector3();
|
|
5302
5963
|
scaleToGeodeticSurfaceGradient = new Vector3();
|
|
@@ -5306,7 +5967,7 @@
|
|
|
5306
5967
|
// ../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js
|
|
5307
5968
|
function localFrameToFixedFrame(ellipsoid, firstAxis, secondAxis, thirdAxis, cartesianOrigin, result) {
|
|
5308
5969
|
const thirdAxisInferred = VECTOR_PRODUCT_LOCAL_FRAME[firstAxis] && VECTOR_PRODUCT_LOCAL_FRAME[firstAxis][secondAxis];
|
|
5309
|
-
|
|
5970
|
+
assert5(thirdAxisInferred && (!thirdAxis || thirdAxis === thirdAxisInferred));
|
|
5310
5971
|
let firstAxisVector;
|
|
5311
5972
|
let secondAxisVector;
|
|
5312
5973
|
let thirdAxisVector;
|
|
@@ -5368,7 +6029,7 @@
|
|
|
5368
6029
|
var EPSILON14, scratchOrigin, VECTOR_PRODUCT_LOCAL_FRAME, degeneratePositionLocalFrame, scratchAxisVectors, scratchVector1, scratchVector22, scratchVector3;
|
|
5369
6030
|
var init_ellipsoid_transform = __esm({
|
|
5370
6031
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js"() {
|
|
5371
|
-
|
|
6032
|
+
init_esm5();
|
|
5372
6033
|
EPSILON14 = 1e-14;
|
|
5373
6034
|
scratchOrigin = new Vector3();
|
|
5374
6035
|
VECTOR_PRODUCT_LOCAL_FRAME = {
|
|
@@ -5435,7 +6096,7 @@
|
|
|
5435
6096
|
var scratchVector4, scratchNormal, scratchK, scratchPosition, scratchHeight, scratchCartesian, wgs84, Ellipsoid;
|
|
5436
6097
|
var init_ellipsoid = __esm({
|
|
5437
6098
|
"../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/ellipsoid.js"() {
|
|
5438
|
-
|
|
6099
|
+
init_esm5();
|
|
5439
6100
|
init_vec3();
|
|
5440
6101
|
init_constants();
|
|
5441
6102
|
init_type_utils();
|
|
@@ -5453,9 +6114,9 @@
|
|
|
5453
6114
|
return wgs84;
|
|
5454
6115
|
}
|
|
5455
6116
|
constructor(x = 0, y = 0, z = 0) {
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
6117
|
+
assert5(x >= 0);
|
|
6118
|
+
assert5(y >= 0);
|
|
6119
|
+
assert5(z >= 0);
|
|
5459
6120
|
this.radii = new Vector3(x, y, z);
|
|
5460
6121
|
this.radiiSquared = new Vector3(x * x, y * y, z * z);
|
|
5461
6122
|
this.radiiToTheFourth = new Vector3(x * x * x * x, y * y * y * y, z * z * z * z);
|
|
@@ -5540,8 +6201,8 @@
|
|
|
5540
6201
|
return scratchPosition.from(position).scale(this.radii).to(result);
|
|
5541
6202
|
}
|
|
5542
6203
|
getSurfaceNormalIntersectionWithZAxis(position, buffer = 0, result = [0, 0, 0]) {
|
|
5543
|
-
|
|
5544
|
-
|
|
6204
|
+
assert5(equals(this.radii.x, this.radii.y, math_utils_default.EPSILON15));
|
|
6205
|
+
assert5(this.radii.z > 0);
|
|
5545
6206
|
scratchPosition.from(position);
|
|
5546
6207
|
const z = scratchPosition.z * (1 - this.squaredXOverSquaredZ);
|
|
5547
6208
|
if (Math.abs(z) >= this.radii.z - buffer) {
|
|
@@ -5554,7 +6215,7 @@
|
|
|
5554
6215
|
});
|
|
5555
6216
|
|
|
5556
6217
|
// ../../node_modules/@math.gl/geospatial/dist/esm/index.js
|
|
5557
|
-
var
|
|
6218
|
+
var init_esm6 = __esm({
|
|
5558
6219
|
"../../node_modules/@math.gl/geospatial/dist/esm/index.js"() {
|
|
5559
6220
|
init_ellipsoid();
|
|
5560
6221
|
init_type_utils();
|
|
@@ -5562,10 +6223,10 @@
|
|
|
5562
6223
|
});
|
|
5563
6224
|
|
|
5564
6225
|
// ../images/src/lib/utils/version.ts
|
|
5565
|
-
var
|
|
6226
|
+
var VERSION5;
|
|
5566
6227
|
var init_version2 = __esm({
|
|
5567
6228
|
"../images/src/lib/utils/version.ts"() {
|
|
5568
|
-
|
|
6229
|
+
VERSION5 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
5569
6230
|
}
|
|
5570
6231
|
});
|
|
5571
6232
|
|
|
@@ -5960,7 +6621,7 @@
|
|
|
5960
6621
|
id: "image",
|
|
5961
6622
|
module: "images",
|
|
5962
6623
|
name: "Images",
|
|
5963
|
-
version:
|
|
6624
|
+
version: VERSION5,
|
|
5964
6625
|
mimeTypes: MIME_TYPES,
|
|
5965
6626
|
extensions: EXTENSIONS,
|
|
5966
6627
|
parse: parseImage,
|
|
@@ -5978,10 +6639,10 @@
|
|
|
5978
6639
|
});
|
|
5979
6640
|
|
|
5980
6641
|
// ../draco/src/lib/utils/version.ts
|
|
5981
|
-
var
|
|
6642
|
+
var VERSION6;
|
|
5982
6643
|
var init_version3 = __esm({
|
|
5983
6644
|
"../draco/src/lib/utils/version.ts"() {
|
|
5984
|
-
|
|
6645
|
+
VERSION6 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
5985
6646
|
}
|
|
5986
6647
|
});
|
|
5987
6648
|
|
|
@@ -6003,7 +6664,7 @@
|
|
|
6003
6664
|
id: "draco",
|
|
6004
6665
|
module: "draco",
|
|
6005
6666
|
shapes: ["mesh"],
|
|
6006
|
-
version:
|
|
6667
|
+
version: VERSION6,
|
|
6007
6668
|
worker: true,
|
|
6008
6669
|
extensions: ["drc"],
|
|
6009
6670
|
mimeTypes: ["application/octet-stream"],
|
|
@@ -6046,12 +6707,12 @@
|
|
|
6046
6707
|
});
|
|
6047
6708
|
|
|
6048
6709
|
// ../schema/src/lib/utils/assert.ts
|
|
6049
|
-
function
|
|
6710
|
+
function assert6(condition, message) {
|
|
6050
6711
|
if (!condition) {
|
|
6051
6712
|
throw new Error(message || "loader assertion failed.");
|
|
6052
6713
|
}
|
|
6053
6714
|
}
|
|
6054
|
-
var
|
|
6715
|
+
var init_assert6 = __esm({
|
|
6055
6716
|
"../schema/src/lib/utils/assert.ts"() {
|
|
6056
6717
|
}
|
|
6057
6718
|
});
|
|
@@ -6072,10 +6733,10 @@
|
|
|
6072
6733
|
var Schema;
|
|
6073
6734
|
var init_schema = __esm({
|
|
6074
6735
|
"../schema/src/lib/schema/impl/schema.ts"() {
|
|
6075
|
-
|
|
6736
|
+
init_assert6();
|
|
6076
6737
|
Schema = class {
|
|
6077
6738
|
constructor(fields, metadata) {
|
|
6078
|
-
|
|
6739
|
+
assert6(Array.isArray(fields));
|
|
6079
6740
|
checkNames(fields);
|
|
6080
6741
|
this.fields = fields;
|
|
6081
6742
|
this.metadata = metadata || new Map();
|
|
@@ -7057,10 +7718,10 @@
|
|
|
7057
7718
|
});
|
|
7058
7719
|
|
|
7059
7720
|
// ../textures/src/lib/utils/version.ts
|
|
7060
|
-
var
|
|
7721
|
+
var VERSION7;
|
|
7061
7722
|
var init_version4 = __esm({
|
|
7062
7723
|
"../textures/src/lib/utils/version.ts"() {
|
|
7063
|
-
|
|
7724
|
+
VERSION7 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
7064
7725
|
}
|
|
7065
7726
|
});
|
|
7066
7727
|
|
|
@@ -7127,13 +7788,13 @@
|
|
|
7127
7788
|
});
|
|
7128
7789
|
});
|
|
7129
7790
|
}
|
|
7130
|
-
var
|
|
7791
|
+
var VERSION8, BASIS_CDN_ENCODER_WASM, BASIS_CDN_ENCODER_JS, loadBasisTranscoderPromise, loadBasisEncoderPromise;
|
|
7131
7792
|
var init_basis_module_loader = __esm({
|
|
7132
7793
|
"../textures/src/lib/parsers/basis-module-loader.ts"() {
|
|
7133
7794
|
init_src();
|
|
7134
|
-
|
|
7135
|
-
BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${
|
|
7136
|
-
BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${
|
|
7795
|
+
VERSION8 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
7796
|
+
BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION8}/dist/libs/basis_encoder.wasm`;
|
|
7797
|
+
BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION8}/dist/libs/basis_encoder.js`;
|
|
7137
7798
|
}
|
|
7138
7799
|
});
|
|
7139
7800
|
|
|
@@ -7699,7 +8360,7 @@
|
|
|
7699
8360
|
name: "Basis",
|
|
7700
8361
|
id: "basis",
|
|
7701
8362
|
module: "textures",
|
|
7702
|
-
version:
|
|
8363
|
+
version: VERSION7,
|
|
7703
8364
|
worker: true,
|
|
7704
8365
|
extensions: ["basis", "ktx2"],
|
|
7705
8366
|
mimeTypes: ["application/octet-stream", "image/ktx2"],
|
|
@@ -8042,7 +8703,7 @@
|
|
|
8042
8703
|
name: "Texture Containers",
|
|
8043
8704
|
id: "compressed-texture",
|
|
8044
8705
|
module: "textures",
|
|
8045
|
-
version:
|
|
8706
|
+
version: VERSION7,
|
|
8046
8707
|
worker: true,
|
|
8047
8708
|
extensions: [
|
|
8048
8709
|
"ktx",
|
|
@@ -8141,10 +8802,10 @@
|
|
|
8141
8802
|
});
|
|
8142
8803
|
|
|
8143
8804
|
// ../../node_modules/@luma.gl/constants/dist/esm/index.js
|
|
8144
|
-
var
|
|
8145
|
-
var
|
|
8805
|
+
var esm_default3;
|
|
8806
|
+
var init_esm7 = __esm({
|
|
8146
8807
|
"../../node_modules/@luma.gl/constants/dist/esm/index.js"() {
|
|
8147
|
-
|
|
8808
|
+
esm_default3 = {
|
|
8148
8809
|
DEPTH_BUFFER_BIT: 256,
|
|
8149
8810
|
STENCIL_BUFFER_BIT: 1024,
|
|
8150
8811
|
COLOR_BUFFER_BIT: 16384,
|
|
@@ -8802,14 +9463,14 @@
|
|
|
8802
9463
|
var GL_TYPE_MAP, STRING_ATTRIBUTE_TYPE, OBJECT_ID_ATTRIBUTE_TYPE, FLOAT_64_TYPE, INT_16_ATTRIBUTE_TYPE, COORDINATE_SYSTEM;
|
|
8803
9464
|
var init_constants2 = __esm({
|
|
8804
9465
|
"src/lib/parsers/constants.ts"() {
|
|
8805
|
-
|
|
9466
|
+
init_esm7();
|
|
8806
9467
|
init_types();
|
|
8807
9468
|
GL_TYPE_MAP = {
|
|
8808
|
-
UInt8:
|
|
8809
|
-
UInt16:
|
|
8810
|
-
Float32:
|
|
8811
|
-
UInt32:
|
|
8812
|
-
UInt64:
|
|
9469
|
+
UInt8: esm_default3.UNSIGNED_BYTE,
|
|
9470
|
+
UInt16: esm_default3.UNSIGNED_INT,
|
|
9471
|
+
Float32: esm_default3.FLOAT,
|
|
9472
|
+
UInt32: esm_default3.UNSIGNED_INT,
|
|
9473
|
+
UInt64: esm_default3.DOUBLE
|
|
8813
9474
|
};
|
|
8814
9475
|
STRING_ATTRIBUTE_TYPE = "String";
|
|
8815
9476
|
OBJECT_ID_ATTRIBUTE_TYPE = "Oid32";
|
|
@@ -9193,8 +9854,8 @@
|
|
|
9193
9854
|
var init_parse_i3s_tile_content = __esm({
|
|
9194
9855
|
"src/lib/parsers/parse-i3s-tile-content.ts"() {
|
|
9195
9856
|
init_src3();
|
|
9196
|
-
|
|
9197
|
-
|
|
9857
|
+
init_esm5();
|
|
9858
|
+
init_esm6();
|
|
9198
9859
|
init_src4();
|
|
9199
9860
|
init_src6();
|
|
9200
9861
|
init_src7();
|
|
@@ -9212,17 +9873,17 @@
|
|
|
9212
9873
|
await parseI3STileContent(data, tile, tileset, options, context);
|
|
9213
9874
|
return tile.content;
|
|
9214
9875
|
}
|
|
9215
|
-
var
|
|
9876
|
+
var VERSION9, I3SContentLoader;
|
|
9216
9877
|
var init_i3s_content_loader = __esm({
|
|
9217
9878
|
"src/i3s-content-loader.ts"() {
|
|
9218
9879
|
init_parse_i3s_tile_content();
|
|
9219
|
-
|
|
9880
|
+
VERSION9 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
9220
9881
|
I3SContentLoader = {
|
|
9221
9882
|
name: "I3S Content (Indexed Scene Layers)",
|
|
9222
9883
|
id: "i3s-content",
|
|
9223
9884
|
module: "i3s",
|
|
9224
9885
|
worker: true,
|
|
9225
|
-
version:
|
|
9886
|
+
version: VERSION9,
|
|
9226
9887
|
mimeTypes: ["application/octet-stream"],
|
|
9227
9888
|
parse: parse3,
|
|
9228
9889
|
extensions: ["bin"],
|
|
@@ -9249,7 +9910,7 @@
|
|
|
9249
9910
|
var scratchVector6, scratchNormal2;
|
|
9250
9911
|
var init_axis_aligned_bounding_box = __esm({
|
|
9251
9912
|
"../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/axis-aligned-bounding-box.js"() {
|
|
9252
|
-
|
|
9913
|
+
init_esm5();
|
|
9253
9914
|
init_constants3();
|
|
9254
9915
|
scratchVector6 = new Vector3();
|
|
9255
9916
|
scratchNormal2 = new Vector3();
|
|
@@ -9260,7 +9921,7 @@
|
|
|
9260
9921
|
var scratchVector7, scratchVector23, BoundingSphere;
|
|
9261
9922
|
var init_bounding_sphere = __esm({
|
|
9262
9923
|
"../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/bounding-sphere.js"() {
|
|
9263
|
-
|
|
9924
|
+
init_esm5();
|
|
9264
9925
|
init_mat4();
|
|
9265
9926
|
init_constants3();
|
|
9266
9927
|
scratchVector7 = new Vector3();
|
|
@@ -9350,7 +10011,7 @@
|
|
|
9350
10011
|
var scratchVector32, scratchOffset, scratchVectorU, scratchVectorV, scratchVectorW, scratchCorner, scratchToCenter, MATRIX3, OrientedBoundingBox;
|
|
9351
10012
|
var init_oriented_bounding_box = __esm({
|
|
9352
10013
|
"../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/oriented-bounding-box.js"() {
|
|
9353
|
-
|
|
10014
|
+
init_esm5();
|
|
9354
10015
|
init_bounding_sphere();
|
|
9355
10016
|
init_constants3();
|
|
9356
10017
|
scratchVector32 = new Vector3();
|
|
@@ -9544,7 +10205,7 @@
|
|
|
9544
10205
|
var scratchPosition2, scratchNormal3, Plane;
|
|
9545
10206
|
var init_plane = __esm({
|
|
9546
10207
|
"../../node_modules/@math.gl/culling/dist/esm/lib/plane.js"() {
|
|
9547
|
-
|
|
10208
|
+
init_esm5();
|
|
9548
10209
|
scratchPosition2 = new Vector3();
|
|
9549
10210
|
scratchNormal3 = new Vector3();
|
|
9550
10211
|
Plane = class {
|
|
@@ -9554,7 +10215,7 @@
|
|
|
9554
10215
|
this.fromNormalDistance(normal, distance);
|
|
9555
10216
|
}
|
|
9556
10217
|
fromNormalDistance(normal, distance) {
|
|
9557
|
-
|
|
10218
|
+
assert5(Number.isFinite(distance));
|
|
9558
10219
|
this.normal.from(normal).normalize();
|
|
9559
10220
|
this.distance = distance;
|
|
9560
10221
|
return this;
|
|
@@ -9568,7 +10229,7 @@
|
|
|
9568
10229
|
}
|
|
9569
10230
|
fromCoefficients(a2, b, c2, d) {
|
|
9570
10231
|
this.normal.set(a2, b, c2);
|
|
9571
|
-
|
|
10232
|
+
assert5(equals(this.normal.len(), 1));
|
|
9572
10233
|
this.distance = d;
|
|
9573
10234
|
return this;
|
|
9574
10235
|
}
|
|
@@ -9600,7 +10261,7 @@
|
|
|
9600
10261
|
var faces, scratchPlaneCenter, scratchPlaneNormal, scratchPlane;
|
|
9601
10262
|
var init_culling_volume = __esm({
|
|
9602
10263
|
"../../node_modules/@math.gl/culling/dist/esm/lib/culling-volume.js"() {
|
|
9603
|
-
|
|
10264
|
+
init_esm5();
|
|
9604
10265
|
init_constants3();
|
|
9605
10266
|
init_plane();
|
|
9606
10267
|
faces = [new Vector3([1, 0, 0]), new Vector3([0, 1, 0]), new Vector3([0, 0, 1])];
|
|
@@ -9614,7 +10275,7 @@
|
|
|
9614
10275
|
var scratchPlaneUpVector, scratchPlaneRightVector, scratchPlaneNearCenter, scratchPlaneFarCenter, scratchPlaneNormal2;
|
|
9615
10276
|
var init_perspective_off_center_frustum = __esm({
|
|
9616
10277
|
"../../node_modules/@math.gl/culling/dist/esm/lib/perspective-off-center-frustum.js"() {
|
|
9617
|
-
|
|
10278
|
+
init_esm5();
|
|
9618
10279
|
init_culling_volume();
|
|
9619
10280
|
init_plane();
|
|
9620
10281
|
scratchPlaneUpVector = new Vector3();
|
|
@@ -9636,7 +10297,7 @@
|
|
|
9636
10297
|
var fromPointsXMin, fromPointsYMin, fromPointsZMin, fromPointsXMax, fromPointsYMax, fromPointsZMax, fromPointsCurrentPos, fromPointsScratch, fromPointsRitterCenter, fromPointsMinBoxPt, fromPointsMaxBoxPt, fromPointsNaiveCenterScratch, volumeConstant;
|
|
9637
10298
|
var init_bounding_sphere_from_points = __esm({
|
|
9638
10299
|
"../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-sphere-from-points.js"() {
|
|
9639
|
-
|
|
10300
|
+
init_esm5();
|
|
9640
10301
|
init_bounding_sphere();
|
|
9641
10302
|
fromPointsXMin = new Vector3();
|
|
9642
10303
|
fromPointsYMin = new Vector3();
|
|
@@ -9658,7 +10319,7 @@
|
|
|
9658
10319
|
var scratchMatrix, scratchUnitary, scratchDiagonal, jMatrix, jMatrixTranspose;
|
|
9659
10320
|
var init_compute_eigen_decomposition = __esm({
|
|
9660
10321
|
"../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/compute-eigen-decomposition.js"() {
|
|
9661
|
-
|
|
10322
|
+
init_esm5();
|
|
9662
10323
|
scratchMatrix = new Matrix3();
|
|
9663
10324
|
scratchUnitary = new Matrix3();
|
|
9664
10325
|
scratchDiagonal = new Matrix3();
|
|
@@ -9671,7 +10332,7 @@
|
|
|
9671
10332
|
var scratchVector24, scratchVector33, scratchVector42, scratchVector52, scratchVector62, scratchCovarianceResult, scratchEigenResult;
|
|
9672
10333
|
var init_bounding_box_from_points = __esm({
|
|
9673
10334
|
"../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-box-from-points.js"() {
|
|
9674
|
-
|
|
10335
|
+
init_esm5();
|
|
9675
10336
|
init_compute_eigen_decomposition();
|
|
9676
10337
|
init_oriented_bounding_box();
|
|
9677
10338
|
init_axis_aligned_bounding_box();
|
|
@@ -9689,7 +10350,7 @@
|
|
|
9689
10350
|
});
|
|
9690
10351
|
|
|
9691
10352
|
// ../../node_modules/@math.gl/culling/dist/esm/index.js
|
|
9692
|
-
var
|
|
10353
|
+
var init_esm8 = __esm({
|
|
9693
10354
|
"../../node_modules/@math.gl/culling/dist/esm/index.js"() {
|
|
9694
10355
|
init_constants3();
|
|
9695
10356
|
init_axis_aligned_bounding_box();
|
|
@@ -9743,15 +10404,15 @@
|
|
|
9743
10404
|
data = parseNodePage(data);
|
|
9744
10405
|
return data;
|
|
9745
10406
|
}
|
|
9746
|
-
var
|
|
10407
|
+
var VERSION10, I3SNodePageLoader;
|
|
9747
10408
|
var init_i3s_node_page_loader = __esm({
|
|
9748
10409
|
"src/i3s-node-page-loader.ts"() {
|
|
9749
|
-
|
|
10410
|
+
VERSION10 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
9750
10411
|
I3SNodePageLoader = {
|
|
9751
10412
|
name: "I3S Node Page",
|
|
9752
10413
|
id: "i3s-node-page",
|
|
9753
10414
|
module: "i3s",
|
|
9754
|
-
version:
|
|
10415
|
+
version: VERSION10,
|
|
9755
10416
|
mimeTypes: ["application/json"],
|
|
9756
10417
|
parse: parse4,
|
|
9757
10418
|
extensions: ["json"],
|
|
@@ -10009,8 +10670,8 @@
|
|
|
10009
10670
|
}
|
|
10010
10671
|
var init_parse_i3s = __esm({
|
|
10011
10672
|
"src/lib/parsers/parse-i3s.ts"() {
|
|
10673
|
+
init_esm8();
|
|
10012
10674
|
init_esm6();
|
|
10013
|
-
init_esm4();
|
|
10014
10675
|
init_src3();
|
|
10015
10676
|
init_src8();
|
|
10016
10677
|
init_i3s_nodepages_tiles();
|
|
@@ -10070,14 +10731,14 @@
|
|
|
10070
10731
|
}
|
|
10071
10732
|
return null;
|
|
10072
10733
|
}
|
|
10073
|
-
var
|
|
10734
|
+
var VERSION11, TILESET_REGEX, TILE_HEADER_REGEX, SLPK_HEX, I3SLoader;
|
|
10074
10735
|
var init_i3s_loader = __esm({
|
|
10075
10736
|
"src/i3s-loader.ts"() {
|
|
10076
10737
|
init_src3();
|
|
10077
10738
|
init_i3s_content_loader();
|
|
10078
10739
|
init_parse_i3s();
|
|
10079
10740
|
init_constants2();
|
|
10080
|
-
|
|
10741
|
+
VERSION11 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
10081
10742
|
TILESET_REGEX = /layers\/[0-9]+$/;
|
|
10082
10743
|
TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
|
|
10083
10744
|
SLPK_HEX = "504b0304";
|
|
@@ -10085,7 +10746,7 @@
|
|
|
10085
10746
|
name: "I3S (Indexed Scene Layers)",
|
|
10086
10747
|
id: "i3s",
|
|
10087
10748
|
module: "i3s",
|
|
10088
|
-
version:
|
|
10749
|
+
version: VERSION11,
|
|
10089
10750
|
mimeTypes: ["application/octet-stream"],
|
|
10090
10751
|
parse: parseI3S,
|
|
10091
10752
|
extensions: ["bin"],
|
|
@@ -10260,20 +10921,20 @@
|
|
|
10260
10921
|
}
|
|
10261
10922
|
return value;
|
|
10262
10923
|
}
|
|
10263
|
-
var
|
|
10924
|
+
var VERSION12, EMPTY_VALUE, REJECTED_STATUS, I3SAttributeLoader;
|
|
10264
10925
|
var init_i3s_attribute_loader = __esm({
|
|
10265
10926
|
"src/i3s-attribute-loader.ts"() {
|
|
10266
10927
|
init_src3();
|
|
10267
10928
|
init_parse_i3s_attribute();
|
|
10268
10929
|
init_url_utils();
|
|
10269
|
-
|
|
10930
|
+
VERSION12 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
10270
10931
|
EMPTY_VALUE = "";
|
|
10271
10932
|
REJECTED_STATUS = "rejected";
|
|
10272
10933
|
I3SAttributeLoader = {
|
|
10273
10934
|
name: "I3S Attribute",
|
|
10274
10935
|
id: "i3s-attribute",
|
|
10275
10936
|
module: "i3s",
|
|
10276
|
-
version:
|
|
10937
|
+
version: VERSION12,
|
|
10277
10938
|
mimeTypes: ["application/binary"],
|
|
10278
10939
|
parse: parse5,
|
|
10279
10940
|
extensions: ["bin"],
|
|
@@ -10327,16 +10988,16 @@
|
|
|
10327
10988
|
}
|
|
10328
10989
|
return parseBuildingSceneLayer(data, context.url);
|
|
10329
10990
|
}
|
|
10330
|
-
var
|
|
10991
|
+
var VERSION13, I3SBuildingSceneLayerLoader;
|
|
10331
10992
|
var init_i3s_building_scene_layer_loader = __esm({
|
|
10332
10993
|
"src/i3s-building-scene-layer-loader.ts"() {
|
|
10333
10994
|
init_parse_i3s_building_scene_layer();
|
|
10334
|
-
|
|
10995
|
+
VERSION13 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
10335
10996
|
I3SBuildingSceneLayerLoader = {
|
|
10336
10997
|
name: "I3S Building Scene Layer",
|
|
10337
10998
|
id: "i3s-building-scene-layer",
|
|
10338
10999
|
module: "i3s",
|
|
10339
|
-
version:
|
|
11000
|
+
version: VERSION13,
|
|
10340
11001
|
mimeTypes: ["application/json"],
|
|
10341
11002
|
parse: parse6,
|
|
10342
11003
|
extensions: ["json"],
|