@loaders.gl/raster 5.0.0-beta.6 → 5.0.0-beta.8
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/README.md +2 -2
- package/dist/geotiff/advanced.cjs +12 -9
- package/dist/geotiff/advanced.cjs.map +4 -4
- package/dist/geotiff/geotiff-loader-types.js +1 -1
- package/dist/geotiff/geotiff-raster-loader-types.js +1 -1
- package/dist/geotiff/geotiff-source-loader-types.d.ts +2 -2
- package/dist/geotiff/geotiff-source-loader-types.d.ts.map +1 -1
- package/dist/geotiff/geotiff-source-loader-types.js +2 -2
- package/dist/geotiff/geotiff-source-loader-types.js.map +1 -1
- package/dist/geotiff/geotiff-source-loader.d.ts +1 -1
- package/dist/geotiff/geotiff-source-loader.d.ts.map +1 -1
- package/dist/geotiff/geotiff-source-loader.js +2 -2
- package/dist/geotiff/geotiff-source-loader.js.map +1 -1
- package/dist/geotiff/lib/tiff-pixel-source.d.ts.map +1 -1
- package/dist/geotiff/lib/tiff-pixel-source.js +2 -1
- package/dist/geotiff/lib/tiff-pixel-source.js.map +1 -1
- package/dist/geotiff/loaders.js +1 -1
- package/dist/geotiff/ometiff-source-loader-types.d.ts +2 -2
- package/dist/geotiff/ometiff-source-loader-types.d.ts.map +1 -1
- package/dist/geotiff/ometiff-source-loader-types.js +2 -2
- package/dist/geotiff/ometiff-source-loader-types.js.map +1 -1
- package/dist/geotiff/ometiff-source-loader.d.ts +1 -1
- package/dist/geotiff/ometiff-source-loader.d.ts.map +1 -1
- package/dist/geotiff/ometiff-source-loader.js +2 -2
- package/dist/geotiff/ometiff-source-loader.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +2 -2
- package/dist/lerc/lerc-loader-types.js +1 -1
- package/dist/quantized-mesh-worker.js +37 -1
- package/dist/terrain/index.cjs +1 -1
- package/dist/terrain/lib/utils/version.js +1 -1
- package/dist/terrain-worker.js +800 -30
- package/package.json +5 -5
- package/src/geotiff/geotiff-source-loader-types.ts +2 -2
- package/src/geotiff/geotiff-source-loader.ts +1 -1
- package/src/geotiff/lib/tiff-pixel-source.ts +2 -1
- package/src/geotiff/ometiff-source-loader-types.ts +5 -2
- package/src/geotiff/ometiff-source-loader.ts +1 -1
package/dist/terrain-worker.js
CHANGED
|
@@ -59,6 +59,738 @@
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
+
// ../../node_modules/probe.gl/dist/env/lib/globals.js
|
|
63
|
+
var window_2, document_2, process_, console_, navigator_;
|
|
64
|
+
var init_globals2 = __esm({
|
|
65
|
+
"../../node_modules/probe.gl/dist/env/lib/globals.js"() {
|
|
66
|
+
window_2 = globalThis;
|
|
67
|
+
document_2 = globalThis.document || {};
|
|
68
|
+
process_ = globalThis.process || {};
|
|
69
|
+
console_ = globalThis.console;
|
|
70
|
+
navigator_ = globalThis.navigator || {};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// ../../node_modules/probe.gl/dist/env/lib/is-electron.js
|
|
75
|
+
function isElectron(mockUserAgent) {
|
|
76
|
+
if (typeof window !== "undefined" && window.process?.type === "renderer") {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
if (typeof process !== "undefined" && Boolean(process.versions?.["electron"])) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
const realUserAgent = typeof navigator !== "undefined" && navigator.userAgent;
|
|
83
|
+
const userAgent = mockUserAgent || realUserAgent;
|
|
84
|
+
return Boolean(userAgent && userAgent.indexOf("Electron") >= 0);
|
|
85
|
+
}
|
|
86
|
+
var init_is_electron = __esm({
|
|
87
|
+
"../../node_modules/probe.gl/dist/env/lib/is-electron.js"() {
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// ../../node_modules/probe.gl/dist/env/lib/is-browser.js
|
|
92
|
+
function isBrowser2() {
|
|
93
|
+
const isNode = (
|
|
94
|
+
// @ts-expect-error
|
|
95
|
+
typeof process === "object" && String(process) === "[object process]" && !process?.browser
|
|
96
|
+
);
|
|
97
|
+
return !isNode || isElectron();
|
|
98
|
+
}
|
|
99
|
+
var init_is_browser = __esm({
|
|
100
|
+
"../../node_modules/probe.gl/dist/env/lib/is-browser.js"() {
|
|
101
|
+
init_is_electron();
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// ../../node_modules/probe.gl/dist/env/lib/get-browser.js
|
|
106
|
+
var init_get_browser = __esm({
|
|
107
|
+
"../../node_modules/probe.gl/dist/env/lib/get-browser.js"() {
|
|
108
|
+
init_is_browser();
|
|
109
|
+
init_is_electron();
|
|
110
|
+
init_globals2();
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// ../../node_modules/probe.gl/dist/env/utils/assert.js
|
|
115
|
+
var init_assert2 = __esm({
|
|
116
|
+
"../../node_modules/probe.gl/dist/env/utils/assert.js"() {
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// ../../node_modules/probe.gl/dist/env/index.js
|
|
121
|
+
var VERSION;
|
|
122
|
+
var init_env = __esm({
|
|
123
|
+
"../../node_modules/probe.gl/dist/env/index.js"() {
|
|
124
|
+
init_globals2();
|
|
125
|
+
init_is_browser();
|
|
126
|
+
init_get_browser();
|
|
127
|
+
init_is_electron();
|
|
128
|
+
init_assert2();
|
|
129
|
+
VERSION = true ? "5.0.0" : "untranspiled source";
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
// ../../node_modules/probe.gl/dist/log/utils/assert.js
|
|
134
|
+
function assert3(condition, message) {
|
|
135
|
+
if (!condition) {
|
|
136
|
+
throw new Error(message || "Assertion failed");
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
var init_assert3 = __esm({
|
|
140
|
+
"../../node_modules/probe.gl/dist/log/utils/assert.js"() {
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
// ../../node_modules/probe.gl/dist/log/loggers/log-utils.js
|
|
145
|
+
function normalizeLogLevel(logLevel) {
|
|
146
|
+
if (!logLevel) {
|
|
147
|
+
return 0;
|
|
148
|
+
}
|
|
149
|
+
let resolvedLevel;
|
|
150
|
+
switch (typeof logLevel) {
|
|
151
|
+
case "number":
|
|
152
|
+
resolvedLevel = logLevel;
|
|
153
|
+
break;
|
|
154
|
+
case "object":
|
|
155
|
+
resolvedLevel = logLevel.logLevel || logLevel.priority || 0;
|
|
156
|
+
break;
|
|
157
|
+
default:
|
|
158
|
+
return 0;
|
|
159
|
+
}
|
|
160
|
+
assert3(Number.isFinite(resolvedLevel) && resolvedLevel >= 0);
|
|
161
|
+
return resolvedLevel;
|
|
162
|
+
}
|
|
163
|
+
function normalizeArguments(opts) {
|
|
164
|
+
const { logLevel, message } = opts;
|
|
165
|
+
opts.logLevel = normalizeLogLevel(logLevel);
|
|
166
|
+
const args = opts.args ? Array.from(opts.args) : [];
|
|
167
|
+
while (args.length && args.shift() !== message) {
|
|
168
|
+
}
|
|
169
|
+
switch (typeof logLevel) {
|
|
170
|
+
case "string":
|
|
171
|
+
case "function":
|
|
172
|
+
if (message !== void 0) {
|
|
173
|
+
args.unshift(message);
|
|
174
|
+
}
|
|
175
|
+
opts.message = logLevel;
|
|
176
|
+
break;
|
|
177
|
+
case "object":
|
|
178
|
+
Object.assign(opts, logLevel);
|
|
179
|
+
break;
|
|
180
|
+
default:
|
|
181
|
+
}
|
|
182
|
+
if (typeof opts.message === "function") {
|
|
183
|
+
opts.message = opts.message();
|
|
184
|
+
}
|
|
185
|
+
const messageType = typeof opts.message;
|
|
186
|
+
assert3(messageType === "string" || messageType === "object");
|
|
187
|
+
return Object.assign(opts, { args }, opts.opts);
|
|
188
|
+
}
|
|
189
|
+
var init_log_utils = __esm({
|
|
190
|
+
"../../node_modules/probe.gl/dist/log/loggers/log-utils.js"() {
|
|
191
|
+
init_assert3();
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
// ../../node_modules/probe.gl/dist/log/loggers/base-log.js
|
|
196
|
+
var noop, BaseLog;
|
|
197
|
+
var init_base_log = __esm({
|
|
198
|
+
"../../node_modules/probe.gl/dist/log/loggers/base-log.js"() {
|
|
199
|
+
init_log_utils();
|
|
200
|
+
noop = () => {
|
|
201
|
+
};
|
|
202
|
+
BaseLog = class {
|
|
203
|
+
constructor({ level = 0 } = {}) {
|
|
204
|
+
this.userData = {};
|
|
205
|
+
this._onceCache = /* @__PURE__ */ new Set();
|
|
206
|
+
this._level = level;
|
|
207
|
+
}
|
|
208
|
+
set level(newLevel) {
|
|
209
|
+
this.setLevel(newLevel);
|
|
210
|
+
}
|
|
211
|
+
get level() {
|
|
212
|
+
return this.getLevel();
|
|
213
|
+
}
|
|
214
|
+
setLevel(level) {
|
|
215
|
+
this._level = level;
|
|
216
|
+
return this;
|
|
217
|
+
}
|
|
218
|
+
getLevel() {
|
|
219
|
+
return this._level;
|
|
220
|
+
}
|
|
221
|
+
// Unconditional logging
|
|
222
|
+
warn(message, ...args) {
|
|
223
|
+
return this._log("warn", 0, message, args, { once: true });
|
|
224
|
+
}
|
|
225
|
+
error(message, ...args) {
|
|
226
|
+
return this._log("error", 0, message, args);
|
|
227
|
+
}
|
|
228
|
+
// Conditional logging
|
|
229
|
+
log(logLevel, message, ...args) {
|
|
230
|
+
return this._log("log", logLevel, message, args);
|
|
231
|
+
}
|
|
232
|
+
info(logLevel, message, ...args) {
|
|
233
|
+
return this._log("info", logLevel, message, args);
|
|
234
|
+
}
|
|
235
|
+
once(logLevel, message, ...args) {
|
|
236
|
+
return this._log("once", logLevel, message, args, { once: true });
|
|
237
|
+
}
|
|
238
|
+
_log(type, logLevel, message, args, options = {}) {
|
|
239
|
+
const normalized = normalizeArguments({
|
|
240
|
+
logLevel,
|
|
241
|
+
message,
|
|
242
|
+
args: this._buildArgs(logLevel, message, args),
|
|
243
|
+
opts: options
|
|
244
|
+
});
|
|
245
|
+
return this._createLogFunction(type, normalized, options);
|
|
246
|
+
}
|
|
247
|
+
_buildArgs(logLevel, message, args) {
|
|
248
|
+
return [logLevel, message, ...args];
|
|
249
|
+
}
|
|
250
|
+
_createLogFunction(type, normalized, options) {
|
|
251
|
+
if (!this._shouldLog(normalized.logLevel)) {
|
|
252
|
+
return noop;
|
|
253
|
+
}
|
|
254
|
+
const tag = this._getOnceTag(options.tag ?? normalized.tag ?? normalized.message);
|
|
255
|
+
if ((options.once || normalized.once) && tag !== void 0) {
|
|
256
|
+
if (this._onceCache.has(tag)) {
|
|
257
|
+
return noop;
|
|
258
|
+
}
|
|
259
|
+
this._onceCache.add(tag);
|
|
260
|
+
}
|
|
261
|
+
return this._emit(type, normalized);
|
|
262
|
+
}
|
|
263
|
+
_shouldLog(logLevel) {
|
|
264
|
+
return this.getLevel() >= normalizeLogLevel(logLevel);
|
|
265
|
+
}
|
|
266
|
+
_getOnceTag(tag) {
|
|
267
|
+
if (tag === void 0) {
|
|
268
|
+
return void 0;
|
|
269
|
+
}
|
|
270
|
+
try {
|
|
271
|
+
return typeof tag === "string" ? tag : String(tag);
|
|
272
|
+
} catch {
|
|
273
|
+
return void 0;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
// ../../node_modules/probe.gl/dist/log/utils/local-storage.js
|
|
281
|
+
function getStorage(type) {
|
|
282
|
+
try {
|
|
283
|
+
const storage = window[type];
|
|
284
|
+
const x = "__storage_test__";
|
|
285
|
+
storage.setItem(x, x);
|
|
286
|
+
storage.removeItem(x);
|
|
287
|
+
return storage;
|
|
288
|
+
} catch (e) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
var LocalStorage;
|
|
293
|
+
var init_local_storage = __esm({
|
|
294
|
+
"../../node_modules/probe.gl/dist/log/utils/local-storage.js"() {
|
|
295
|
+
LocalStorage = class {
|
|
296
|
+
constructor(id, defaultConfig, type = "sessionStorage") {
|
|
297
|
+
this.storage = getStorage(type);
|
|
298
|
+
this.id = id;
|
|
299
|
+
this.config = defaultConfig;
|
|
300
|
+
this._loadConfiguration();
|
|
301
|
+
}
|
|
302
|
+
getConfiguration() {
|
|
303
|
+
return this.config;
|
|
304
|
+
}
|
|
305
|
+
setConfiguration(configuration) {
|
|
306
|
+
Object.assign(this.config, configuration);
|
|
307
|
+
if (this.storage) {
|
|
308
|
+
const serialized = JSON.stringify(this.config);
|
|
309
|
+
this.storage.setItem(this.id, serialized);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
// Get config from persistent store, if available
|
|
313
|
+
_loadConfiguration() {
|
|
314
|
+
let configuration = {};
|
|
315
|
+
if (this.storage) {
|
|
316
|
+
const serializedConfiguration = this.storage.getItem(this.id);
|
|
317
|
+
configuration = serializedConfiguration ? JSON.parse(serializedConfiguration) : {};
|
|
318
|
+
}
|
|
319
|
+
Object.assign(this.config, configuration);
|
|
320
|
+
return this;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
// ../../node_modules/probe.gl/dist/log/utils/formatters.js
|
|
327
|
+
function formatTime(ms) {
|
|
328
|
+
let formatted;
|
|
329
|
+
if (ms < 10) {
|
|
330
|
+
formatted = `${ms.toFixed(2)}ms`;
|
|
331
|
+
} else if (ms < 100) {
|
|
332
|
+
formatted = `${ms.toFixed(1)}ms`;
|
|
333
|
+
} else if (ms < 1e3) {
|
|
334
|
+
formatted = `${ms.toFixed(0)}ms`;
|
|
335
|
+
} else {
|
|
336
|
+
formatted = `${(ms / 1e3).toFixed(2)}s`;
|
|
337
|
+
}
|
|
338
|
+
return formatted;
|
|
339
|
+
}
|
|
340
|
+
function leftPad(string, length = 8) {
|
|
341
|
+
const padLength = Math.max(length - string.length, 0);
|
|
342
|
+
return `${" ".repeat(padLength)}${string}`;
|
|
343
|
+
}
|
|
344
|
+
var init_formatters = __esm({
|
|
345
|
+
"../../node_modules/probe.gl/dist/log/utils/formatters.js"() {
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
// ../../node_modules/probe.gl/dist/log/utils/color.js
|
|
350
|
+
function getColor(color) {
|
|
351
|
+
if (typeof color !== "string") {
|
|
352
|
+
return color;
|
|
353
|
+
}
|
|
354
|
+
color = color.toUpperCase();
|
|
355
|
+
return COLOR[color] || COLOR.WHITE;
|
|
356
|
+
}
|
|
357
|
+
function addColor(string, color, background) {
|
|
358
|
+
if (!isBrowser2 && typeof string === "string") {
|
|
359
|
+
if (color) {
|
|
360
|
+
const colorCode = getColor(color);
|
|
361
|
+
string = `\x1B[${colorCode}m${string}\x1B[39m`;
|
|
362
|
+
}
|
|
363
|
+
if (background) {
|
|
364
|
+
const colorCode = getColor(background);
|
|
365
|
+
string = `\x1B[${colorCode + BACKGROUND_INCREMENT}m${string}\x1B[49m`;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return string;
|
|
369
|
+
}
|
|
370
|
+
var COLOR, BACKGROUND_INCREMENT;
|
|
371
|
+
var init_color = __esm({
|
|
372
|
+
"../../node_modules/probe.gl/dist/log/utils/color.js"() {
|
|
373
|
+
init_env();
|
|
374
|
+
(function(COLOR2) {
|
|
375
|
+
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
376
|
+
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
377
|
+
COLOR2[COLOR2["GREEN"] = 32] = "GREEN";
|
|
378
|
+
COLOR2[COLOR2["YELLOW"] = 33] = "YELLOW";
|
|
379
|
+
COLOR2[COLOR2["BLUE"] = 34] = "BLUE";
|
|
380
|
+
COLOR2[COLOR2["MAGENTA"] = 35] = "MAGENTA";
|
|
381
|
+
COLOR2[COLOR2["CYAN"] = 36] = "CYAN";
|
|
382
|
+
COLOR2[COLOR2["WHITE"] = 37] = "WHITE";
|
|
383
|
+
COLOR2[COLOR2["BRIGHT_BLACK"] = 90] = "BRIGHT_BLACK";
|
|
384
|
+
COLOR2[COLOR2["BRIGHT_RED"] = 91] = "BRIGHT_RED";
|
|
385
|
+
COLOR2[COLOR2["BRIGHT_GREEN"] = 92] = "BRIGHT_GREEN";
|
|
386
|
+
COLOR2[COLOR2["BRIGHT_YELLOW"] = 93] = "BRIGHT_YELLOW";
|
|
387
|
+
COLOR2[COLOR2["BRIGHT_BLUE"] = 94] = "BRIGHT_BLUE";
|
|
388
|
+
COLOR2[COLOR2["BRIGHT_MAGENTA"] = 95] = "BRIGHT_MAGENTA";
|
|
389
|
+
COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
|
|
390
|
+
COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
|
|
391
|
+
})(COLOR || (COLOR = {}));
|
|
392
|
+
BACKGROUND_INCREMENT = 10;
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
// ../../node_modules/probe.gl/dist/log/utils/autobind.js
|
|
397
|
+
function autobind(obj, predefined = ["constructor"]) {
|
|
398
|
+
const proto = Object.getPrototypeOf(obj);
|
|
399
|
+
const propNames = Object.getOwnPropertyNames(proto);
|
|
400
|
+
const object = obj;
|
|
401
|
+
for (const key of propNames) {
|
|
402
|
+
const value = object[key];
|
|
403
|
+
if (typeof value === "function") {
|
|
404
|
+
if (!predefined.find((name) => key === name)) {
|
|
405
|
+
object[key] = value.bind(obj);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
var init_autobind = __esm({
|
|
411
|
+
"../../node_modules/probe.gl/dist/log/utils/autobind.js"() {
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
// ../../node_modules/probe.gl/dist/log/probe.js
|
|
416
|
+
var Probe, probe;
|
|
417
|
+
var init_probe = __esm({
|
|
418
|
+
"../../node_modules/probe.gl/dist/log/probe.js"() {
|
|
419
|
+
init_env();
|
|
420
|
+
Probe = class {
|
|
421
|
+
getHighResolutionTimer() {
|
|
422
|
+
let timestamp;
|
|
423
|
+
if (isBrowser2() && window_2.performance) {
|
|
424
|
+
timestamp = window_2?.performance?.now?.();
|
|
425
|
+
} else if ("hrtime" in process_) {
|
|
426
|
+
const timeParts = process_?.hrtime?.();
|
|
427
|
+
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
428
|
+
} else {
|
|
429
|
+
timestamp = Date.now();
|
|
430
|
+
}
|
|
431
|
+
return timestamp;
|
|
432
|
+
}
|
|
433
|
+
getMemoryUsageMB() {
|
|
434
|
+
const performance2 = window_2?.performance;
|
|
435
|
+
const usedJSHeapSize = performance2?.memory?.usedJSHeapSize;
|
|
436
|
+
if (usedJSHeapSize === void 0 || usedJSHeapSize === null) {
|
|
437
|
+
return null;
|
|
438
|
+
}
|
|
439
|
+
return Math.trunc(usedJSHeapSize / 1024 / 1024);
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
probe = new Probe();
|
|
443
|
+
globalThis.Probe = Probe;
|
|
444
|
+
globalThis.probe = probe;
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
// ../../node_modules/probe.gl/dist/log/loggers/probe-log.js
|
|
449
|
+
function decorateMessage(id, message, opts) {
|
|
450
|
+
if (typeof message === "string") {
|
|
451
|
+
const time = opts.time ? leftPad(formatTime(opts.total)) : "";
|
|
452
|
+
message = opts.time ? `${id}: ${time} ${message}` : `${id}: ${message}`;
|
|
453
|
+
message = addColor(message, opts.color, opts.background);
|
|
454
|
+
}
|
|
455
|
+
return message;
|
|
456
|
+
}
|
|
457
|
+
function getTableHeader(table) {
|
|
458
|
+
for (const key in table) {
|
|
459
|
+
for (const title in table[key]) {
|
|
460
|
+
return title || "untitled";
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return "empty";
|
|
464
|
+
}
|
|
465
|
+
var originalConsole, DEFAULT_LOG_CONFIGURATION, ProbeLog;
|
|
466
|
+
var init_probe_log = __esm({
|
|
467
|
+
"../../node_modules/probe.gl/dist/log/loggers/probe-log.js"() {
|
|
468
|
+
init_env();
|
|
469
|
+
init_base_log();
|
|
470
|
+
init_local_storage();
|
|
471
|
+
init_formatters();
|
|
472
|
+
init_color();
|
|
473
|
+
init_autobind();
|
|
474
|
+
init_assert3();
|
|
475
|
+
init_probe();
|
|
476
|
+
init_log_utils();
|
|
477
|
+
init_log_utils();
|
|
478
|
+
originalConsole = {
|
|
479
|
+
debug: isBrowser2() ? console.debug || console.log : console.log,
|
|
480
|
+
log: console.log,
|
|
481
|
+
info: console.info,
|
|
482
|
+
warn: console.warn,
|
|
483
|
+
error: console.error
|
|
484
|
+
};
|
|
485
|
+
DEFAULT_LOG_CONFIGURATION = {
|
|
486
|
+
enabled: true,
|
|
487
|
+
level: 0
|
|
488
|
+
};
|
|
489
|
+
ProbeLog = class extends BaseLog {
|
|
490
|
+
constructor({ id } = { id: "" }) {
|
|
491
|
+
super({ level: 0 });
|
|
492
|
+
this.VERSION = VERSION;
|
|
493
|
+
this._startTs = probe.getHighResolutionTimer();
|
|
494
|
+
this._deltaTs = probe.getHighResolutionTimer();
|
|
495
|
+
this.userData = {};
|
|
496
|
+
this.LOG_THROTTLE_TIMEOUT = 0;
|
|
497
|
+
this.id = id;
|
|
498
|
+
this.userData = {};
|
|
499
|
+
this._storage = new LocalStorage(`__probe-${this.id}__`, { [this.id]: DEFAULT_LOG_CONFIGURATION });
|
|
500
|
+
this.timeStamp(`${this.id} started`);
|
|
501
|
+
autobind(this);
|
|
502
|
+
Object.seal(this);
|
|
503
|
+
}
|
|
504
|
+
isEnabled() {
|
|
505
|
+
return this._getConfiguration().enabled;
|
|
506
|
+
}
|
|
507
|
+
getLevel() {
|
|
508
|
+
return this._getConfiguration().level;
|
|
509
|
+
}
|
|
510
|
+
/** @return milliseconds, with fractions */
|
|
511
|
+
getTotal() {
|
|
512
|
+
return Number((probe.getHighResolutionTimer() - this._startTs).toPrecision(10));
|
|
513
|
+
}
|
|
514
|
+
/** @return milliseconds, with fractions */
|
|
515
|
+
getDelta() {
|
|
516
|
+
return Number((probe.getHighResolutionTimer() - this._deltaTs).toPrecision(10));
|
|
517
|
+
}
|
|
518
|
+
/** @deprecated use logLevel */
|
|
519
|
+
set priority(newPriority) {
|
|
520
|
+
this.level = newPriority;
|
|
521
|
+
}
|
|
522
|
+
/** @deprecated use logLevel */
|
|
523
|
+
get priority() {
|
|
524
|
+
return this.level;
|
|
525
|
+
}
|
|
526
|
+
/** @deprecated use logLevel */
|
|
527
|
+
getPriority() {
|
|
528
|
+
return this.level;
|
|
529
|
+
}
|
|
530
|
+
// Configure
|
|
531
|
+
enable(enabled = true) {
|
|
532
|
+
this._updateConfiguration({ enabled });
|
|
533
|
+
return this;
|
|
534
|
+
}
|
|
535
|
+
setLevel(level) {
|
|
536
|
+
this._updateConfiguration({ level });
|
|
537
|
+
return this;
|
|
538
|
+
}
|
|
539
|
+
/** return the current status of the setting */
|
|
540
|
+
get(setting) {
|
|
541
|
+
return this._getConfiguration()[setting];
|
|
542
|
+
}
|
|
543
|
+
// update the status of the setting
|
|
544
|
+
set(setting, value) {
|
|
545
|
+
this._updateConfiguration({ [setting]: value });
|
|
546
|
+
}
|
|
547
|
+
/** Logs the current settings as a table */
|
|
548
|
+
settings() {
|
|
549
|
+
if (console.table) {
|
|
550
|
+
console.table(this._storage.config);
|
|
551
|
+
} else {
|
|
552
|
+
console.log(this._storage.config);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
// Unconditional logging
|
|
556
|
+
assert(condition, message) {
|
|
557
|
+
if (!condition) {
|
|
558
|
+
throw new Error(message || "Assertion failed");
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
warn(message, ...args) {
|
|
562
|
+
return this._log("warn", 0, message, args, {
|
|
563
|
+
method: originalConsole.warn,
|
|
564
|
+
once: true
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
error(message, ...args) {
|
|
568
|
+
return this._log("error", 0, message, args, {
|
|
569
|
+
method: originalConsole.error
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
/** Print a deprecation warning */
|
|
573
|
+
deprecated(oldUsage, newUsage) {
|
|
574
|
+
return this.warn(`\`${oldUsage}\` is deprecated and will be removed in a later version. Use \`${newUsage}\` instead`);
|
|
575
|
+
}
|
|
576
|
+
/** Print a removal warning */
|
|
577
|
+
removed(oldUsage, newUsage) {
|
|
578
|
+
return this.error(`\`${oldUsage}\` has been removed. Use \`${newUsage}\` instead`);
|
|
579
|
+
}
|
|
580
|
+
probe(logLevel, message, ...args) {
|
|
581
|
+
const memoryUsageMB = probe.getMemoryUsageMB();
|
|
582
|
+
if (memoryUsageMB !== null) {
|
|
583
|
+
const memoryUsagePrefix = `${memoryUsageMB}MB `;
|
|
584
|
+
if (typeof message === "function") {
|
|
585
|
+
message = () => `${memoryUsagePrefix}${message()}`;
|
|
586
|
+
} else if (typeof message === "string") {
|
|
587
|
+
message = `${memoryUsagePrefix}${message}`;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
return this._log("log", logLevel, message, args, {
|
|
591
|
+
method: originalConsole.log,
|
|
592
|
+
time: true,
|
|
593
|
+
once: true
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
log(logLevel, message, ...args) {
|
|
597
|
+
return this._log("log", logLevel, message, args, {
|
|
598
|
+
method: originalConsole.debug
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
info(logLevel, message, ...args) {
|
|
602
|
+
return this._log("info", logLevel, message, args, { method: console.info });
|
|
603
|
+
}
|
|
604
|
+
once(logLevel, message, ...args) {
|
|
605
|
+
return this._log("once", logLevel, message, args, {
|
|
606
|
+
method: originalConsole.debug || originalConsole.info,
|
|
607
|
+
once: true
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
/** Logs an object as a table */
|
|
611
|
+
table(logLevel, table, columns) {
|
|
612
|
+
if (table) {
|
|
613
|
+
return this._log("table", logLevel, table, columns && [columns] || [], {
|
|
614
|
+
method: console.table || noop,
|
|
615
|
+
tag: getTableHeader(table)
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
return noop;
|
|
619
|
+
}
|
|
620
|
+
time(logLevel, message) {
|
|
621
|
+
return this._log("time", logLevel, message, [], {
|
|
622
|
+
method: console.time ? console.time : console.info
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
timeEnd(logLevel, message) {
|
|
626
|
+
return this._log("time", logLevel, message, [], {
|
|
627
|
+
method: console.timeEnd ? console.timeEnd : console.info
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
timeStamp(logLevel, message) {
|
|
631
|
+
return this._log("time", logLevel, message, [], {
|
|
632
|
+
method: console.timeStamp || noop
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
group(logLevel, message, opts = { collapsed: false }) {
|
|
636
|
+
const method = (opts.collapsed ? console.groupCollapsed : console.group) || console.info;
|
|
637
|
+
return this._log("group", logLevel, message, [], { method });
|
|
638
|
+
}
|
|
639
|
+
groupCollapsed(logLevel, message, opts = {}) {
|
|
640
|
+
return this.group(logLevel, message, Object.assign({}, opts, { collapsed: true }));
|
|
641
|
+
}
|
|
642
|
+
groupEnd(logLevel) {
|
|
643
|
+
return this._log("groupEnd", logLevel, "", [], {
|
|
644
|
+
method: console.groupEnd || noop
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
// EXPERIMENTAL
|
|
648
|
+
withGroup(logLevel, message, func) {
|
|
649
|
+
this.group(logLevel, message)();
|
|
650
|
+
try {
|
|
651
|
+
func();
|
|
652
|
+
} finally {
|
|
653
|
+
this.groupEnd(logLevel)();
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
trace() {
|
|
657
|
+
if (console.trace) {
|
|
658
|
+
console.trace();
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
_shouldLog(logLevel) {
|
|
662
|
+
return this.isEnabled() && super._shouldLog(logLevel);
|
|
663
|
+
}
|
|
664
|
+
_emit(_type, normalized) {
|
|
665
|
+
const method = normalized.method;
|
|
666
|
+
assert3(method);
|
|
667
|
+
normalized.total = this.getTotal();
|
|
668
|
+
normalized.delta = this.getDelta();
|
|
669
|
+
this._deltaTs = probe.getHighResolutionTimer();
|
|
670
|
+
const message = decorateMessage(this.id, normalized.message, normalized);
|
|
671
|
+
return method.bind(console, message, ...normalized.args);
|
|
672
|
+
}
|
|
673
|
+
_getConfiguration() {
|
|
674
|
+
if (!this._storage.config[this.id]) {
|
|
675
|
+
this._updateConfiguration(DEFAULT_LOG_CONFIGURATION);
|
|
676
|
+
}
|
|
677
|
+
return this._storage.config[this.id];
|
|
678
|
+
}
|
|
679
|
+
_updateConfiguration(configuration) {
|
|
680
|
+
const currentConfiguration = this._storage.config[this.id] || {
|
|
681
|
+
...DEFAULT_LOG_CONFIGURATION
|
|
682
|
+
};
|
|
683
|
+
this._storage.setConfiguration({
|
|
684
|
+
[this.id]: { ...currentConfiguration, ...configuration }
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
ProbeLog.VERSION = VERSION;
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
// ../../node_modules/probe.gl/dist/log/loggers/console-log.js
|
|
693
|
+
var init_console_log = __esm({
|
|
694
|
+
"../../node_modules/probe.gl/dist/log/loggers/console-log.js"() {
|
|
695
|
+
init_base_log();
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
// ../../node_modules/probe.gl/dist/log/loggers/memory-log.js
|
|
700
|
+
var init_memory_log = __esm({
|
|
701
|
+
"../../node_modules/probe.gl/dist/log/loggers/memory-log.js"() {
|
|
702
|
+
init_base_log();
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
// ../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js
|
|
707
|
+
var init_hi_res_timestamp = __esm({
|
|
708
|
+
"../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js"() {
|
|
709
|
+
init_probe();
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
// ../../node_modules/probe.gl/dist/log/init.js
|
|
714
|
+
var init_init = __esm({
|
|
715
|
+
"../../node_modules/probe.gl/dist/log/init.js"() {
|
|
716
|
+
init_probe();
|
|
717
|
+
if (!globalThis.probe) {
|
|
718
|
+
globalThis.probe = probe;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
// ../../node_modules/probe.gl/dist/log/index.js
|
|
724
|
+
var log;
|
|
725
|
+
var init_log = __esm({
|
|
726
|
+
"../../node_modules/probe.gl/dist/log/index.js"() {
|
|
727
|
+
init_probe_log();
|
|
728
|
+
init_probe();
|
|
729
|
+
init_probe_log();
|
|
730
|
+
init_console_log();
|
|
731
|
+
init_base_log();
|
|
732
|
+
init_memory_log();
|
|
733
|
+
init_color();
|
|
734
|
+
init_color();
|
|
735
|
+
init_formatters();
|
|
736
|
+
init_autobind();
|
|
737
|
+
init_local_storage();
|
|
738
|
+
init_hi_res_timestamp();
|
|
739
|
+
init_init();
|
|
740
|
+
log = new ProbeLog({ id: "@probe.gl/log" });
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
// ../core/src/loader-utils/lib/log-utils/log.ts
|
|
745
|
+
function createLog() {
|
|
746
|
+
const log3 = new ProbeLog({ id: "loaders.gl" });
|
|
747
|
+
globalThis.loaders ||= {};
|
|
748
|
+
globalThis.loaders.log = log3;
|
|
749
|
+
globalThis.loaders.version = version;
|
|
750
|
+
globalThis.probe ||= {};
|
|
751
|
+
globalThis.probe.loaders = log3;
|
|
752
|
+
return log3;
|
|
753
|
+
}
|
|
754
|
+
function ignoreMessage() {
|
|
755
|
+
}
|
|
756
|
+
function getLoaderLog(options) {
|
|
757
|
+
const logger = options?.core?.log !== void 0 ? options.core.log : options?.log;
|
|
758
|
+
return logger === null ? nullLog : logger || log2;
|
|
759
|
+
}
|
|
760
|
+
var VERSION2, version, log2, NullLog, nullLog;
|
|
761
|
+
var init_log2 = __esm({
|
|
762
|
+
"../core/src/loader-utils/lib/log-utils/log.ts"() {
|
|
763
|
+
"use strict";
|
|
764
|
+
init_log();
|
|
765
|
+
VERSION2 = true ? "5.0.0-beta.8" : "latest";
|
|
766
|
+
version = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
|
|
767
|
+
log2 = createLog();
|
|
768
|
+
NullLog = class {
|
|
769
|
+
/** Discards debug messages. */
|
|
770
|
+
log() {
|
|
771
|
+
return ignoreMessage;
|
|
772
|
+
}
|
|
773
|
+
/** Discards informational messages. */
|
|
774
|
+
info() {
|
|
775
|
+
return ignoreMessage;
|
|
776
|
+
}
|
|
777
|
+
/** Discards messages marked to be emitted once. */
|
|
778
|
+
once() {
|
|
779
|
+
return ignoreMessage;
|
|
780
|
+
}
|
|
781
|
+
/** Discards warnings. */
|
|
782
|
+
warn() {
|
|
783
|
+
return ignoreMessage;
|
|
784
|
+
}
|
|
785
|
+
/** Discards errors. */
|
|
786
|
+
error() {
|
|
787
|
+
return ignoreMessage;
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
nullLog = new NullLog();
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
|
|
62
794
|
// ../../node_modules/@math.gl/tasks/dist/worker-utils/lib/node/worker_threads-browser.js
|
|
63
795
|
var parentPort;
|
|
64
796
|
var init_worker_threads_browser = __esm({
|
|
@@ -2675,10 +3407,17 @@
|
|
|
2675
3407
|
init_loader_types();
|
|
2676
3408
|
init_assert();
|
|
2677
3409
|
init_globals();
|
|
3410
|
+
init_log2();
|
|
2678
3411
|
init_create_loader_worker();
|
|
2679
3412
|
}
|
|
2680
3413
|
});
|
|
2681
3414
|
|
|
3415
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-helpers.js
|
|
3416
|
+
var init_indexed_arrow_helpers = __esm({
|
|
3417
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-helpers.js"() {
|
|
3418
|
+
}
|
|
3419
|
+
});
|
|
3420
|
+
|
|
2682
3421
|
// ../../node_modules/tslib/tslib.es6.mjs
|
|
2683
3422
|
function __rest(s, e) {
|
|
2684
3423
|
var t = {};
|
|
@@ -10481,8 +11220,8 @@ return true;`);
|
|
|
10481
11220
|
static startFooter(builder) {
|
|
10482
11221
|
builder.startObject(5);
|
|
10483
11222
|
}
|
|
10484
|
-
static addVersion(builder,
|
|
10485
|
-
builder.addFieldInt16(0,
|
|
11223
|
+
static addVersion(builder, version2) {
|
|
11224
|
+
builder.addFieldInt16(0, version2, MetadataVersion.V1);
|
|
10486
11225
|
}
|
|
10487
11226
|
static addSchema(builder, schemaOffset) {
|
|
10488
11227
|
builder.addFieldOffset(1, schemaOffset, 0);
|
|
@@ -10728,9 +11467,9 @@ return true;`);
|
|
|
10728
11467
|
get numDictionaries() {
|
|
10729
11468
|
return this._dictionaryBatches.length;
|
|
10730
11469
|
}
|
|
10731
|
-
constructor(schema,
|
|
11470
|
+
constructor(schema, version2 = MetadataVersion.V5, recordBatches, dictionaryBatches) {
|
|
10732
11471
|
this.schema = schema;
|
|
10733
|
-
this.version =
|
|
11472
|
+
this.version = version2;
|
|
10734
11473
|
recordBatches && (this._recordBatches = recordBatches);
|
|
10735
11474
|
dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
|
|
10736
11475
|
}
|
|
@@ -10858,8 +11597,8 @@ return true;`);
|
|
|
10858
11597
|
static startMessage(builder) {
|
|
10859
11598
|
builder.startObject(5);
|
|
10860
11599
|
}
|
|
10861
|
-
static addVersion(builder,
|
|
10862
|
-
builder.addFieldInt16(0,
|
|
11600
|
+
static addVersion(builder, version2) {
|
|
11601
|
+
builder.addFieldInt16(0, version2, MetadataVersion.V1);
|
|
10863
11602
|
}
|
|
10864
11603
|
static addHeaderType(builder, headerType) {
|
|
10865
11604
|
builder.addFieldInt8(1, headerType, MessageHeader.NONE);
|
|
@@ -10893,9 +11632,9 @@ return true;`);
|
|
|
10893
11632
|
static finishSizePrefixedMessageBuffer(builder, offset) {
|
|
10894
11633
|
builder.finish(offset, void 0, true);
|
|
10895
11634
|
}
|
|
10896
|
-
static createMessage(builder,
|
|
11635
|
+
static createMessage(builder, version2, headerType, headerOffset, bodyLength, customMetadataOffset) {
|
|
10897
11636
|
_Message.startMessage(builder);
|
|
10898
|
-
_Message.addVersion(builder,
|
|
11637
|
+
_Message.addVersion(builder, version2);
|
|
10899
11638
|
_Message.addHeaderType(builder, headerType);
|
|
10900
11639
|
_Message.addHeader(builder, headerOffset);
|
|
10901
11640
|
_Message.addBodyLength(builder, bodyLength);
|
|
@@ -11267,16 +12006,16 @@ return true;`);
|
|
|
11267
12006
|
throw new Error(`Unrecognized Message type: { name: ${MessageHeader[type]}, type: ${type} }`);
|
|
11268
12007
|
});
|
|
11269
12008
|
}
|
|
11270
|
-
function decodeSchema(_schema, dictionaries = /* @__PURE__ */ new Map(),
|
|
12009
|
+
function decodeSchema(_schema, dictionaries = /* @__PURE__ */ new Map(), version2 = MetadataVersion.V5) {
|
|
11271
12010
|
const fields = decodeSchemaFields(_schema, dictionaries);
|
|
11272
|
-
return new Schema2(fields, decodeCustomMetadata(_schema), dictionaries,
|
|
12011
|
+
return new Schema2(fields, decodeCustomMetadata(_schema), dictionaries, version2);
|
|
11273
12012
|
}
|
|
11274
|
-
function decodeRecordBatch(batch,
|
|
11275
|
-
const recordBatch = new RecordBatch2(batch.length(), decodeFieldNodes(batch), decodeBuffers(batch,
|
|
12013
|
+
function decodeRecordBatch(batch, version2 = MetadataVersion.V5) {
|
|
12014
|
+
const recordBatch = new RecordBatch2(batch.length(), decodeFieldNodes(batch), decodeBuffers(batch, version2), decodeBodyCompression(batch.compression()), decodeVariadicBufferCounts(batch));
|
|
11276
12015
|
return recordBatch;
|
|
11277
12016
|
}
|
|
11278
|
-
function decodeDictionaryBatch(batch,
|
|
11279
|
-
return new DictionaryBatch2(RecordBatch2.decode(batch.data(),
|
|
12017
|
+
function decodeDictionaryBatch(batch, version2 = MetadataVersion.V5) {
|
|
12018
|
+
return new DictionaryBatch2(RecordBatch2.decode(batch.data(), version2), batch.id(), batch.isDelta());
|
|
11280
12019
|
}
|
|
11281
12020
|
function decodeBufferRegion(b) {
|
|
11282
12021
|
return new BufferRegion(b.offset(), b.length());
|
|
@@ -11293,11 +12032,11 @@ return true;`);
|
|
|
11293
12032
|
}
|
|
11294
12033
|
return nodes;
|
|
11295
12034
|
}
|
|
11296
|
-
function decodeBuffers(batch,
|
|
12035
|
+
function decodeBuffers(batch, version2) {
|
|
11297
12036
|
const bufferRegions = [];
|
|
11298
12037
|
for (let b, i = -1, j = -1, n = batch.buffersLength(); ++i < n; ) {
|
|
11299
12038
|
if (b = batch.buffers(i)) {
|
|
11300
|
-
if (
|
|
12039
|
+
if (version2 < MetadataVersion.V4) {
|
|
11301
12040
|
b.bb_pos += 8 * (i + 1);
|
|
11302
12041
|
}
|
|
11303
12042
|
bufferRegions[++j] = BufferRegion.decode(b);
|
|
@@ -11622,10 +12361,10 @@ return true;`);
|
|
|
11622
12361
|
buf = new ByteBuffer3(toUint8Array(buf));
|
|
11623
12362
|
const _message = Message.getRootAsMessage(buf);
|
|
11624
12363
|
const bodyLength = _message.bodyLength();
|
|
11625
|
-
const
|
|
12364
|
+
const version2 = _message.version();
|
|
11626
12365
|
const headerType = _message.headerType();
|
|
11627
12366
|
const metadata = decodeMessageCustomMetadata(_message);
|
|
11628
|
-
const message = new _Message(bodyLength,
|
|
12367
|
+
const message = new _Message(bodyLength, version2, headerType, void 0, metadata);
|
|
11629
12368
|
message._createHeader = decodeMessageHeader(_message, headerType);
|
|
11630
12369
|
return message;
|
|
11631
12370
|
}
|
|
@@ -11702,8 +12441,8 @@ return true;`);
|
|
|
11702
12441
|
isDictionaryBatch() {
|
|
11703
12442
|
return this.headerType === MessageHeader.DictionaryBatch;
|
|
11704
12443
|
}
|
|
11705
|
-
constructor(bodyLength,
|
|
11706
|
-
this._version =
|
|
12444
|
+
constructor(bodyLength, version2, headerType, header, metadata) {
|
|
12445
|
+
this._version = version2;
|
|
11707
12446
|
this._headerType = headerType;
|
|
11708
12447
|
this.body = new Uint8Array(0);
|
|
11709
12448
|
this._compression = header === null || header === void 0 ? void 0 : header.compression;
|
|
@@ -17579,6 +18318,12 @@ return true;`);
|
|
|
17579
18318
|
}
|
|
17580
18319
|
});
|
|
17581
18320
|
|
|
18321
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-schema-utils.js
|
|
18322
|
+
var init_arrow_schema_utils = __esm({
|
|
18323
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/arrow-schema-utils.js"() {
|
|
18324
|
+
}
|
|
18325
|
+
});
|
|
18326
|
+
|
|
17582
18327
|
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js
|
|
17583
18328
|
function getArrowVariadicBuffers(data) {
|
|
17584
18329
|
return data.variadicBuffers ?? [];
|
|
@@ -17682,27 +18427,43 @@ return true;`);
|
|
|
17682
18427
|
}
|
|
17683
18428
|
});
|
|
17684
18429
|
|
|
18430
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/take-arrow-rows.js
|
|
18431
|
+
var init_take_arrow_rows = __esm({
|
|
18432
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/take-arrow-rows.js"() {
|
|
18433
|
+
init_arrow_data();
|
|
18434
|
+
init_split_arrow_buffers();
|
|
18435
|
+
}
|
|
18436
|
+
});
|
|
18437
|
+
|
|
17685
18438
|
// ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js
|
|
17686
18439
|
var init_indexed_arrow_vector = __esm({
|
|
17687
18440
|
"../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js"() {
|
|
18441
|
+
init_indexed_arrow_helpers();
|
|
17688
18442
|
}
|
|
17689
18443
|
});
|
|
17690
18444
|
|
|
17691
18445
|
// ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js
|
|
17692
18446
|
var init_indexed_arrow_table = __esm({
|
|
17693
18447
|
"../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js"() {
|
|
18448
|
+
init_indexed_arrow_helpers();
|
|
18449
|
+
init_arrow_schema_utils();
|
|
18450
|
+
init_take_arrow_rows();
|
|
18451
|
+
init_indexed_arrow_vector();
|
|
17694
18452
|
}
|
|
17695
18453
|
});
|
|
17696
18454
|
|
|
17697
18455
|
// ../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js
|
|
17698
18456
|
var init_mapped_arrow_table = __esm({
|
|
17699
18457
|
"../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js"() {
|
|
18458
|
+
init_indexed_arrow_helpers();
|
|
18459
|
+
init_indexed_arrow_table();
|
|
17700
18460
|
}
|
|
17701
18461
|
});
|
|
17702
18462
|
|
|
17703
18463
|
// ../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js
|
|
17704
18464
|
var init_rename_arrow_columns = __esm({
|
|
17705
18465
|
"../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js"() {
|
|
18466
|
+
init_arrow_schema_utils();
|
|
17706
18467
|
}
|
|
17707
18468
|
});
|
|
17708
18469
|
|
|
@@ -17756,15 +18517,23 @@ return true;`);
|
|
|
17756
18517
|
}
|
|
17757
18518
|
});
|
|
17758
18519
|
|
|
18520
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js
|
|
18521
|
+
var init_arrow_column_utils = __esm({
|
|
18522
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js"() {
|
|
18523
|
+
}
|
|
18524
|
+
});
|
|
18525
|
+
|
|
17759
18526
|
// ../../node_modules/@math.gl/arrow/dist/arrow/index.js
|
|
17760
18527
|
var init_arrow = __esm({
|
|
17761
18528
|
"../../node_modules/@math.gl/arrow/dist/arrow/index.js"() {
|
|
17762
18529
|
init_indexed_arrow_table();
|
|
17763
18530
|
init_indexed_arrow_vector();
|
|
17764
18531
|
init_mapped_arrow_table();
|
|
18532
|
+
init_arrow_schema_utils();
|
|
17765
18533
|
init_rename_arrow_columns();
|
|
17766
18534
|
init_split_arrow_buffers();
|
|
17767
18535
|
init_arrow_table_transport();
|
|
18536
|
+
init_arrow_column_utils();
|
|
17768
18537
|
}
|
|
17769
18538
|
});
|
|
17770
18539
|
|
|
@@ -19112,11 +19881,11 @@ return true;`);
|
|
|
19112
19881
|
});
|
|
19113
19882
|
|
|
19114
19883
|
// ../images/src/lib/utils/version.ts
|
|
19115
|
-
var
|
|
19884
|
+
var VERSION3;
|
|
19116
19885
|
var init_version = __esm({
|
|
19117
19886
|
"../images/src/lib/utils/version.ts"() {
|
|
19118
19887
|
"use strict";
|
|
19119
|
-
|
|
19888
|
+
VERSION3 = true ? "5.0.0-beta.8" : "latest";
|
|
19120
19889
|
}
|
|
19121
19890
|
});
|
|
19122
19891
|
|
|
@@ -19210,13 +19979,13 @@ return true;`);
|
|
|
19210
19979
|
imageBitmapSource = getBlob(arrayBuffer, url);
|
|
19211
19980
|
}
|
|
19212
19981
|
const imageBitmapOptions = options && options.imagebitmap;
|
|
19213
|
-
return await safeCreateImageBitmap(imageBitmapSource, imageBitmapOptions);
|
|
19982
|
+
return await safeCreateImageBitmap(imageBitmapSource, imageBitmapOptions, getLoaderLog(options));
|
|
19214
19983
|
}
|
|
19215
19984
|
async function parseBlobToImageBitmap(blob, options) {
|
|
19216
19985
|
const imageBitmapOptions = options && options.imagebitmap;
|
|
19217
|
-
return await safeCreateImageBitmap(blob, imageBitmapOptions);
|
|
19986
|
+
return await safeCreateImageBitmap(blob, imageBitmapOptions, getLoaderLog(options));
|
|
19218
19987
|
}
|
|
19219
|
-
async function safeCreateImageBitmap(imageBitmapSource, imageBitmapOptions = null) {
|
|
19988
|
+
async function safeCreateImageBitmap(imageBitmapSource, imageBitmapOptions = null, loaderLog = getLoaderLog()) {
|
|
19220
19989
|
if (isEmptyObject(imageBitmapOptions) || !imagebitmapOptionsSupported) {
|
|
19221
19990
|
imageBitmapOptions = null;
|
|
19222
19991
|
}
|
|
@@ -19224,7 +19993,7 @@ return true;`);
|
|
|
19224
19993
|
try {
|
|
19225
19994
|
return await createImageBitmap(imageBitmapSource, imageBitmapOptions);
|
|
19226
19995
|
} catch (error) {
|
|
19227
|
-
|
|
19996
|
+
loaderLog.warn(String(error))();
|
|
19228
19997
|
imagebitmapOptionsSupported = false;
|
|
19229
19998
|
}
|
|
19230
19999
|
}
|
|
@@ -19245,6 +20014,7 @@ return true;`);
|
|
|
19245
20014
|
var init_parse_to_image_bitmap = __esm({
|
|
19246
20015
|
"../images/src/lib/parsers/parse-to-image-bitmap.ts"() {
|
|
19247
20016
|
"use strict";
|
|
20017
|
+
init_loader_utils();
|
|
19248
20018
|
init_svg_utils();
|
|
19249
20019
|
init_parse_to_image();
|
|
19250
20020
|
imagebitmapOptionsSupported = true;
|
|
@@ -19354,7 +20124,7 @@ return true;`);
|
|
|
19354
20124
|
dataType: null,
|
|
19355
20125
|
batchType: null,
|
|
19356
20126
|
...ImageBitmapFormat,
|
|
19357
|
-
version:
|
|
20127
|
+
version: VERSION3,
|
|
19358
20128
|
options: DEFAULT_IMAGE_BITMAP_LOADER_OPTIONS,
|
|
19359
20129
|
preload
|
|
19360
20130
|
};
|
|
@@ -19649,11 +20419,11 @@ return true;`);
|
|
|
19649
20419
|
});
|
|
19650
20420
|
|
|
19651
20421
|
// src/terrain/lib/utils/version.ts
|
|
19652
|
-
var
|
|
20422
|
+
var VERSION4;
|
|
19653
20423
|
var init_version2 = __esm({
|
|
19654
20424
|
"src/terrain/lib/utils/version.ts"() {
|
|
19655
20425
|
"use strict";
|
|
19656
|
-
|
|
20426
|
+
VERSION4 = true ? "5.0.0-beta.8" : "latest";
|
|
19657
20427
|
}
|
|
19658
20428
|
});
|
|
19659
20429
|
|
|
@@ -19698,7 +20468,7 @@ return true;`);
|
|
|
19698
20468
|
dataType: null,
|
|
19699
20469
|
batchType: null,
|
|
19700
20470
|
...TerrainFormat,
|
|
19701
|
-
version:
|
|
20471
|
+
version: VERSION4,
|
|
19702
20472
|
worker: true,
|
|
19703
20473
|
/** Loads the parser-bearing terrain loader implementation. */
|
|
19704
20474
|
preload: async () => (await Promise.resolve().then(() => (init_terrain_loader(), terrain_loader_exports))).TerrainLoaderWithParser,
|