@loaders.gl/tiles 3.4.1 → 3.4.3
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 +271 -54
- package/dist/es5/tileset/tileset-3d.js +1 -2
- package/dist/es5/tileset/tileset-3d.js.map +1 -1
- package/dist/esm/tileset/tileset-3d.js +1 -2
- package/dist/esm/tileset/tileset-3d.js.map +1 -1
- package/dist/tileset/tileset-3d.d.ts.map +1 -1
- package/dist/tileset/tileset-3d.js +1 -2
- package/package.json +7 -4
- package/src/tileset/tileset-3d.ts +1 -2
package/dist/dist.min.js
CHANGED
|
@@ -3394,7 +3394,7 @@
|
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
|
|
3397
|
-
//
|
|
3397
|
+
// node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
|
|
3398
3398
|
function getHiResTimestamp() {
|
|
3399
3399
|
let timestamp;
|
|
3400
3400
|
if (typeof window !== "undefined" && window.performance) {
|
|
@@ -3408,14 +3408,14 @@
|
|
|
3408
3408
|
return timestamp;
|
|
3409
3409
|
}
|
|
3410
3410
|
var init_hi_res_timestamp = __esm({
|
|
3411
|
-
"
|
|
3411
|
+
"node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
|
|
3412
3412
|
}
|
|
3413
3413
|
});
|
|
3414
3414
|
|
|
3415
|
-
//
|
|
3415
|
+
// node_modules/@probe.gl/stats/dist/lib/stat.js
|
|
3416
3416
|
var Stat;
|
|
3417
3417
|
var init_stat = __esm({
|
|
3418
|
-
"
|
|
3418
|
+
"node_modules/@probe.gl/stats/dist/lib/stat.js"() {
|
|
3419
3419
|
init_defineProperty();
|
|
3420
3420
|
init_hi_res_timestamp();
|
|
3421
3421
|
Stat = class {
|
|
@@ -3531,10 +3531,10 @@
|
|
|
3531
3531
|
}
|
|
3532
3532
|
});
|
|
3533
3533
|
|
|
3534
|
-
//
|
|
3534
|
+
// node_modules/@probe.gl/stats/dist/lib/stats.js
|
|
3535
3535
|
var Stats;
|
|
3536
3536
|
var init_stats = __esm({
|
|
3537
|
-
"
|
|
3537
|
+
"node_modules/@probe.gl/stats/dist/lib/stats.js"() {
|
|
3538
3538
|
init_defineProperty();
|
|
3539
3539
|
init_stat();
|
|
3540
3540
|
Stats = class {
|
|
@@ -3603,9 +3603,9 @@
|
|
|
3603
3603
|
}
|
|
3604
3604
|
});
|
|
3605
3605
|
|
|
3606
|
-
//
|
|
3606
|
+
// node_modules/@probe.gl/stats/dist/index.js
|
|
3607
3607
|
var init_dist = __esm({
|
|
3608
|
-
"
|
|
3608
|
+
"node_modules/@probe.gl/stats/dist/index.js"() {
|
|
3609
3609
|
init_stats();
|
|
3610
3610
|
init_stat();
|
|
3611
3611
|
init_hi_res_timestamp();
|
|
@@ -4251,11 +4251,229 @@
|
|
|
4251
4251
|
}
|
|
4252
4252
|
});
|
|
4253
4253
|
|
|
4254
|
+
// ../loader-utils/node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
|
|
4255
|
+
function getHiResTimestamp2() {
|
|
4256
|
+
let timestamp;
|
|
4257
|
+
if (typeof window !== "undefined" && window.performance) {
|
|
4258
|
+
timestamp = window.performance.now();
|
|
4259
|
+
} else if (typeof process !== "undefined" && process.hrtime) {
|
|
4260
|
+
const timeParts = process.hrtime();
|
|
4261
|
+
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
4262
|
+
} else {
|
|
4263
|
+
timestamp = Date.now();
|
|
4264
|
+
}
|
|
4265
|
+
return timestamp;
|
|
4266
|
+
}
|
|
4267
|
+
var init_hi_res_timestamp2 = __esm({
|
|
4268
|
+
"../loader-utils/node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
|
|
4269
|
+
}
|
|
4270
|
+
});
|
|
4271
|
+
|
|
4272
|
+
// ../loader-utils/node_modules/@probe.gl/stats/dist/lib/stat.js
|
|
4273
|
+
var Stat2;
|
|
4274
|
+
var init_stat2 = __esm({
|
|
4275
|
+
"../loader-utils/node_modules/@probe.gl/stats/dist/lib/stat.js"() {
|
|
4276
|
+
init_defineProperty();
|
|
4277
|
+
init_hi_res_timestamp2();
|
|
4278
|
+
Stat2 = class {
|
|
4279
|
+
constructor(name, type) {
|
|
4280
|
+
_defineProperty(this, "name", void 0);
|
|
4281
|
+
_defineProperty(this, "type", void 0);
|
|
4282
|
+
_defineProperty(this, "sampleSize", 1);
|
|
4283
|
+
_defineProperty(this, "time", 0);
|
|
4284
|
+
_defineProperty(this, "count", 0);
|
|
4285
|
+
_defineProperty(this, "samples", 0);
|
|
4286
|
+
_defineProperty(this, "lastTiming", 0);
|
|
4287
|
+
_defineProperty(this, "lastSampleTime", 0);
|
|
4288
|
+
_defineProperty(this, "lastSampleCount", 0);
|
|
4289
|
+
_defineProperty(this, "_count", 0);
|
|
4290
|
+
_defineProperty(this, "_time", 0);
|
|
4291
|
+
_defineProperty(this, "_samples", 0);
|
|
4292
|
+
_defineProperty(this, "_startTime", 0);
|
|
4293
|
+
_defineProperty(this, "_timerPending", false);
|
|
4294
|
+
this.name = name;
|
|
4295
|
+
this.type = type;
|
|
4296
|
+
this.reset();
|
|
4297
|
+
}
|
|
4298
|
+
reset() {
|
|
4299
|
+
this.time = 0;
|
|
4300
|
+
this.count = 0;
|
|
4301
|
+
this.samples = 0;
|
|
4302
|
+
this.lastTiming = 0;
|
|
4303
|
+
this.lastSampleTime = 0;
|
|
4304
|
+
this.lastSampleCount = 0;
|
|
4305
|
+
this._count = 0;
|
|
4306
|
+
this._time = 0;
|
|
4307
|
+
this._samples = 0;
|
|
4308
|
+
this._startTime = 0;
|
|
4309
|
+
this._timerPending = false;
|
|
4310
|
+
return this;
|
|
4311
|
+
}
|
|
4312
|
+
setSampleSize(samples) {
|
|
4313
|
+
this.sampleSize = samples;
|
|
4314
|
+
return this;
|
|
4315
|
+
}
|
|
4316
|
+
incrementCount() {
|
|
4317
|
+
this.addCount(1);
|
|
4318
|
+
return this;
|
|
4319
|
+
}
|
|
4320
|
+
decrementCount() {
|
|
4321
|
+
this.subtractCount(1);
|
|
4322
|
+
return this;
|
|
4323
|
+
}
|
|
4324
|
+
addCount(value) {
|
|
4325
|
+
this._count += value;
|
|
4326
|
+
this._samples++;
|
|
4327
|
+
this._checkSampling();
|
|
4328
|
+
return this;
|
|
4329
|
+
}
|
|
4330
|
+
subtractCount(value) {
|
|
4331
|
+
this._count -= value;
|
|
4332
|
+
this._samples++;
|
|
4333
|
+
this._checkSampling();
|
|
4334
|
+
return this;
|
|
4335
|
+
}
|
|
4336
|
+
addTime(time) {
|
|
4337
|
+
this._time += time;
|
|
4338
|
+
this.lastTiming = time;
|
|
4339
|
+
this._samples++;
|
|
4340
|
+
this._checkSampling();
|
|
4341
|
+
return this;
|
|
4342
|
+
}
|
|
4343
|
+
timeStart() {
|
|
4344
|
+
this._startTime = getHiResTimestamp2();
|
|
4345
|
+
this._timerPending = true;
|
|
4346
|
+
return this;
|
|
4347
|
+
}
|
|
4348
|
+
timeEnd() {
|
|
4349
|
+
if (!this._timerPending) {
|
|
4350
|
+
return this;
|
|
4351
|
+
}
|
|
4352
|
+
this.addTime(getHiResTimestamp2() - this._startTime);
|
|
4353
|
+
this._timerPending = false;
|
|
4354
|
+
this._checkSampling();
|
|
4355
|
+
return this;
|
|
4356
|
+
}
|
|
4357
|
+
getSampleAverageCount() {
|
|
4358
|
+
return this.sampleSize > 0 ? this.lastSampleCount / this.sampleSize : 0;
|
|
4359
|
+
}
|
|
4360
|
+
getSampleAverageTime() {
|
|
4361
|
+
return this.sampleSize > 0 ? this.lastSampleTime / this.sampleSize : 0;
|
|
4362
|
+
}
|
|
4363
|
+
getSampleHz() {
|
|
4364
|
+
return this.lastSampleTime > 0 ? this.sampleSize / (this.lastSampleTime / 1e3) : 0;
|
|
4365
|
+
}
|
|
4366
|
+
getAverageCount() {
|
|
4367
|
+
return this.samples > 0 ? this.count / this.samples : 0;
|
|
4368
|
+
}
|
|
4369
|
+
getAverageTime() {
|
|
4370
|
+
return this.samples > 0 ? this.time / this.samples : 0;
|
|
4371
|
+
}
|
|
4372
|
+
getHz() {
|
|
4373
|
+
return this.time > 0 ? this.samples / (this.time / 1e3) : 0;
|
|
4374
|
+
}
|
|
4375
|
+
_checkSampling() {
|
|
4376
|
+
if (this._samples === this.sampleSize) {
|
|
4377
|
+
this.lastSampleTime = this._time;
|
|
4378
|
+
this.lastSampleCount = this._count;
|
|
4379
|
+
this.count += this._count;
|
|
4380
|
+
this.time += this._time;
|
|
4381
|
+
this.samples += this._samples;
|
|
4382
|
+
this._time = 0;
|
|
4383
|
+
this._count = 0;
|
|
4384
|
+
this._samples = 0;
|
|
4385
|
+
}
|
|
4386
|
+
}
|
|
4387
|
+
};
|
|
4388
|
+
}
|
|
4389
|
+
});
|
|
4390
|
+
|
|
4391
|
+
// ../loader-utils/node_modules/@probe.gl/stats/dist/lib/stats.js
|
|
4392
|
+
var Stats2;
|
|
4393
|
+
var init_stats2 = __esm({
|
|
4394
|
+
"../loader-utils/node_modules/@probe.gl/stats/dist/lib/stats.js"() {
|
|
4395
|
+
init_defineProperty();
|
|
4396
|
+
init_stat2();
|
|
4397
|
+
Stats2 = class {
|
|
4398
|
+
constructor(options) {
|
|
4399
|
+
_defineProperty(this, "id", void 0);
|
|
4400
|
+
_defineProperty(this, "stats", {});
|
|
4401
|
+
this.id = options.id;
|
|
4402
|
+
this.stats = {};
|
|
4403
|
+
this._initializeStats(options.stats);
|
|
4404
|
+
Object.seal(this);
|
|
4405
|
+
}
|
|
4406
|
+
get(name) {
|
|
4407
|
+
let type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "count";
|
|
4408
|
+
return this._getOrCreate({
|
|
4409
|
+
name,
|
|
4410
|
+
type
|
|
4411
|
+
});
|
|
4412
|
+
}
|
|
4413
|
+
get size() {
|
|
4414
|
+
return Object.keys(this.stats).length;
|
|
4415
|
+
}
|
|
4416
|
+
reset() {
|
|
4417
|
+
for (const stat of Object.values(this.stats)) {
|
|
4418
|
+
stat.reset();
|
|
4419
|
+
}
|
|
4420
|
+
return this;
|
|
4421
|
+
}
|
|
4422
|
+
forEach(fn) {
|
|
4423
|
+
for (const stat of Object.values(this.stats)) {
|
|
4424
|
+
fn(stat);
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
getTable() {
|
|
4428
|
+
const table = {};
|
|
4429
|
+
this.forEach((stat) => {
|
|
4430
|
+
table[stat.name] = {
|
|
4431
|
+
time: stat.time || 0,
|
|
4432
|
+
count: stat.count || 0,
|
|
4433
|
+
average: stat.getAverageTime() || 0,
|
|
4434
|
+
hz: stat.getHz() || 0
|
|
4435
|
+
};
|
|
4436
|
+
});
|
|
4437
|
+
return table;
|
|
4438
|
+
}
|
|
4439
|
+
_initializeStats() {
|
|
4440
|
+
let stats = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
4441
|
+
stats.forEach((stat) => this._getOrCreate(stat));
|
|
4442
|
+
}
|
|
4443
|
+
_getOrCreate(stat) {
|
|
4444
|
+
const {
|
|
4445
|
+
name,
|
|
4446
|
+
type
|
|
4447
|
+
} = stat;
|
|
4448
|
+
let result = this.stats[name];
|
|
4449
|
+
if (!result) {
|
|
4450
|
+
if (stat instanceof Stat2) {
|
|
4451
|
+
result = stat;
|
|
4452
|
+
} else {
|
|
4453
|
+
result = new Stat2(name, type);
|
|
4454
|
+
}
|
|
4455
|
+
this.stats[name] = result;
|
|
4456
|
+
}
|
|
4457
|
+
return result;
|
|
4458
|
+
}
|
|
4459
|
+
};
|
|
4460
|
+
}
|
|
4461
|
+
});
|
|
4462
|
+
|
|
4463
|
+
// ../loader-utils/node_modules/@probe.gl/stats/dist/index.js
|
|
4464
|
+
var init_dist2 = __esm({
|
|
4465
|
+
"../loader-utils/node_modules/@probe.gl/stats/dist/index.js"() {
|
|
4466
|
+
init_stats2();
|
|
4467
|
+
init_stat2();
|
|
4468
|
+
init_hi_res_timestamp2();
|
|
4469
|
+
}
|
|
4470
|
+
});
|
|
4471
|
+
|
|
4254
4472
|
// ../loader-utils/src/lib/request-utils/request-scheduler.ts
|
|
4255
4473
|
var STAT_QUEUED_REQUESTS, STAT_ACTIVE_REQUESTS, STAT_CANCELLED_REQUESTS, STAT_QUEUED_REQUESTS_EVER, STAT_ACTIVE_REQUESTS_EVER, DEFAULT_PROPS2, RequestScheduler;
|
|
4256
4474
|
var init_request_scheduler = __esm({
|
|
4257
4475
|
"../loader-utils/src/lib/request-utils/request-scheduler.ts"() {
|
|
4258
|
-
|
|
4476
|
+
init_dist2();
|
|
4259
4477
|
STAT_QUEUED_REQUESTS = "Queued Requests";
|
|
4260
4478
|
STAT_ACTIVE_REQUESTS = "Active Requests";
|
|
4261
4479
|
STAT_CANCELLED_REQUESTS = "Cancelled Requests";
|
|
@@ -4273,7 +4491,7 @@
|
|
|
4273
4491
|
this.requestMap = new Map();
|
|
4274
4492
|
this.deferredUpdate = null;
|
|
4275
4493
|
this.props = { ...DEFAULT_PROPS2, ...props };
|
|
4276
|
-
this.stats = new
|
|
4494
|
+
this.stats = new Stats2({ id: this.props.id });
|
|
4277
4495
|
this.stats.get(STAT_QUEUED_REQUESTS);
|
|
4278
4496
|
this.stats.get(STAT_ACTIVE_REQUESTS);
|
|
4279
4497
|
this.stats.get(STAT_CANCELLED_REQUESTS);
|
|
@@ -5702,7 +5920,7 @@
|
|
|
5702
5920
|
}
|
|
5703
5921
|
});
|
|
5704
5922
|
|
|
5705
|
-
//
|
|
5923
|
+
// ../core/node_modules/@probe.gl/env/dist/lib/is-electron.js
|
|
5706
5924
|
function isElectron(mockUserAgent) {
|
|
5707
5925
|
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
|
|
5708
5926
|
return true;
|
|
@@ -5718,25 +5936,25 @@
|
|
|
5718
5936
|
return false;
|
|
5719
5937
|
}
|
|
5720
5938
|
var init_is_electron = __esm({
|
|
5721
|
-
"
|
|
5939
|
+
"../core/node_modules/@probe.gl/env/dist/lib/is-electron.js"() {
|
|
5722
5940
|
}
|
|
5723
5941
|
});
|
|
5724
5942
|
|
|
5725
|
-
//
|
|
5943
|
+
// ../core/node_modules/@probe.gl/env/dist/lib/is-browser.js
|
|
5726
5944
|
function isBrowser3() {
|
|
5727
5945
|
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
|
|
5728
5946
|
return !isNode || isElectron();
|
|
5729
5947
|
}
|
|
5730
5948
|
var init_is_browser = __esm({
|
|
5731
|
-
"
|
|
5949
|
+
"../core/node_modules/@probe.gl/env/dist/lib/is-browser.js"() {
|
|
5732
5950
|
init_is_electron();
|
|
5733
5951
|
}
|
|
5734
5952
|
});
|
|
5735
5953
|
|
|
5736
|
-
//
|
|
5954
|
+
// ../core/node_modules/@probe.gl/env/dist/lib/globals.js
|
|
5737
5955
|
var self_3, window_3, document_3, process_, console_, navigator_;
|
|
5738
5956
|
var init_globals3 = __esm({
|
|
5739
|
-
"
|
|
5957
|
+
"../core/node_modules/@probe.gl/env/dist/lib/globals.js"() {
|
|
5740
5958
|
self_3 = globalThis.self || globalThis.window || globalThis.global;
|
|
5741
5959
|
window_3 = globalThis.window || globalThis.self || globalThis.global;
|
|
5742
5960
|
document_3 = globalThis.document || {};
|
|
@@ -5746,26 +5964,26 @@
|
|
|
5746
5964
|
}
|
|
5747
5965
|
});
|
|
5748
5966
|
|
|
5749
|
-
//
|
|
5967
|
+
// ../core/node_modules/@probe.gl/env/dist/utils/globals.js
|
|
5750
5968
|
var VERSION2, isBrowser4;
|
|
5751
5969
|
var init_globals4 = __esm({
|
|
5752
|
-
"
|
|
5970
|
+
"../core/node_modules/@probe.gl/env/dist/utils/globals.js"() {
|
|
5753
5971
|
init_is_browser();
|
|
5754
5972
|
VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
|
|
5755
5973
|
isBrowser4 = isBrowser3();
|
|
5756
5974
|
}
|
|
5757
5975
|
});
|
|
5758
5976
|
|
|
5759
|
-
//
|
|
5760
|
-
var
|
|
5761
|
-
"
|
|
5977
|
+
// ../core/node_modules/@probe.gl/env/dist/index.js
|
|
5978
|
+
var init_dist3 = __esm({
|
|
5979
|
+
"../core/node_modules/@probe.gl/env/dist/index.js"() {
|
|
5762
5980
|
init_globals4();
|
|
5763
5981
|
init_globals3();
|
|
5764
5982
|
init_is_browser();
|
|
5765
5983
|
}
|
|
5766
5984
|
});
|
|
5767
5985
|
|
|
5768
|
-
//
|
|
5986
|
+
// ../core/node_modules/@probe.gl/log/dist/utils/local-storage.js
|
|
5769
5987
|
function getStorage(type) {
|
|
5770
5988
|
try {
|
|
5771
5989
|
const storage = window[type];
|
|
@@ -5779,7 +5997,7 @@
|
|
|
5779
5997
|
}
|
|
5780
5998
|
var LocalStorage;
|
|
5781
5999
|
var init_local_storage = __esm({
|
|
5782
|
-
"
|
|
6000
|
+
"../core/node_modules/@probe.gl/log/dist/utils/local-storage.js"() {
|
|
5783
6001
|
init_defineProperty();
|
|
5784
6002
|
LocalStorage = class {
|
|
5785
6003
|
constructor(id, defaultConfig) {
|
|
@@ -5815,7 +6033,7 @@
|
|
|
5815
6033
|
}
|
|
5816
6034
|
});
|
|
5817
6035
|
|
|
5818
|
-
//
|
|
6036
|
+
// ../core/node_modules/@probe.gl/log/dist/utils/formatters.js
|
|
5819
6037
|
function formatTime(ms) {
|
|
5820
6038
|
let formatted;
|
|
5821
6039
|
if (ms < 10) {
|
|
@@ -5846,11 +6064,11 @@
|
|
|
5846
6064
|
return ["".concat(message, " %c+"), style];
|
|
5847
6065
|
}
|
|
5848
6066
|
var init_formatters = __esm({
|
|
5849
|
-
"
|
|
6067
|
+
"../core/node_modules/@probe.gl/log/dist/utils/formatters.js"() {
|
|
5850
6068
|
}
|
|
5851
6069
|
});
|
|
5852
6070
|
|
|
5853
|
-
//
|
|
6071
|
+
// ../core/node_modules/@probe.gl/log/dist/utils/color.js
|
|
5854
6072
|
function getColor(color) {
|
|
5855
6073
|
if (typeof color !== "string") {
|
|
5856
6074
|
return color;
|
|
@@ -5873,8 +6091,8 @@
|
|
|
5873
6091
|
}
|
|
5874
6092
|
var COLOR, BACKGROUND_INCREMENT;
|
|
5875
6093
|
var init_color = __esm({
|
|
5876
|
-
"
|
|
5877
|
-
|
|
6094
|
+
"../core/node_modules/@probe.gl/log/dist/utils/color.js"() {
|
|
6095
|
+
init_dist3();
|
|
5878
6096
|
(function(COLOR2) {
|
|
5879
6097
|
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
5880
6098
|
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
@@ -5897,7 +6115,7 @@
|
|
|
5897
6115
|
}
|
|
5898
6116
|
});
|
|
5899
6117
|
|
|
5900
|
-
//
|
|
6118
|
+
// ../core/node_modules/@probe.gl/log/dist/utils/autobind.js
|
|
5901
6119
|
function autobind(obj) {
|
|
5902
6120
|
let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
|
|
5903
6121
|
const proto = Object.getPrototypeOf(obj);
|
|
@@ -5913,23 +6131,23 @@
|
|
|
5913
6131
|
}
|
|
5914
6132
|
}
|
|
5915
6133
|
var init_autobind = __esm({
|
|
5916
|
-
"
|
|
6134
|
+
"../core/node_modules/@probe.gl/log/dist/utils/autobind.js"() {
|
|
5917
6135
|
}
|
|
5918
6136
|
});
|
|
5919
6137
|
|
|
5920
|
-
//
|
|
6138
|
+
// ../core/node_modules/@probe.gl/log/dist/utils/assert.js
|
|
5921
6139
|
function assert4(condition, message) {
|
|
5922
6140
|
if (!condition) {
|
|
5923
6141
|
throw new Error(message || "Assertion failed");
|
|
5924
6142
|
}
|
|
5925
6143
|
}
|
|
5926
6144
|
var init_assert4 = __esm({
|
|
5927
|
-
"
|
|
6145
|
+
"../core/node_modules/@probe.gl/log/dist/utils/assert.js"() {
|
|
5928
6146
|
}
|
|
5929
6147
|
});
|
|
5930
6148
|
|
|
5931
|
-
//
|
|
5932
|
-
function
|
|
6149
|
+
// ../core/node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js
|
|
6150
|
+
function getHiResTimestamp3() {
|
|
5933
6151
|
let timestamp;
|
|
5934
6152
|
if (isBrowser3() && window_3.performance) {
|
|
5935
6153
|
var _window$performance, _window$performance$n;
|
|
@@ -5943,13 +6161,13 @@
|
|
|
5943
6161
|
}
|
|
5944
6162
|
return timestamp;
|
|
5945
6163
|
}
|
|
5946
|
-
var
|
|
5947
|
-
"
|
|
5948
|
-
|
|
6164
|
+
var init_hi_res_timestamp3 = __esm({
|
|
6165
|
+
"../core/node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js"() {
|
|
6166
|
+
init_dist3();
|
|
5949
6167
|
}
|
|
5950
6168
|
});
|
|
5951
6169
|
|
|
5952
|
-
//
|
|
6170
|
+
// ../core/node_modules/@probe.gl/log/dist/log.js
|
|
5953
6171
|
function noop() {
|
|
5954
6172
|
}
|
|
5955
6173
|
function normalizeLogLevel(logLevel) {
|
|
@@ -6056,15 +6274,15 @@
|
|
|
6056
6274
|
}
|
|
6057
6275
|
var originalConsole, DEFAULT_LOG_CONFIGURATION, cache, ONCE, Log;
|
|
6058
6276
|
var init_log = __esm({
|
|
6059
|
-
"
|
|
6277
|
+
"../core/node_modules/@probe.gl/log/dist/log.js"() {
|
|
6060
6278
|
init_defineProperty();
|
|
6061
|
-
|
|
6279
|
+
init_dist3();
|
|
6062
6280
|
init_local_storage();
|
|
6063
6281
|
init_formatters();
|
|
6064
6282
|
init_color();
|
|
6065
6283
|
init_autobind();
|
|
6066
6284
|
init_assert4();
|
|
6067
|
-
|
|
6285
|
+
init_hi_res_timestamp3();
|
|
6068
6286
|
originalConsole = {
|
|
6069
6287
|
debug: isBrowser3() ? console.debug || console.log : console.log,
|
|
6070
6288
|
log: console.log,
|
|
@@ -6089,8 +6307,8 @@
|
|
|
6089
6307
|
};
|
|
6090
6308
|
_defineProperty(this, "id", void 0);
|
|
6091
6309
|
_defineProperty(this, "VERSION", VERSION2);
|
|
6092
|
-
_defineProperty(this, "_startTs",
|
|
6093
|
-
_defineProperty(this, "_deltaTs",
|
|
6310
|
+
_defineProperty(this, "_startTs", getHiResTimestamp3());
|
|
6311
|
+
_defineProperty(this, "_deltaTs", getHiResTimestamp3());
|
|
6094
6312
|
_defineProperty(this, "_storage", void 0);
|
|
6095
6313
|
_defineProperty(this, "userData", {});
|
|
6096
6314
|
_defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
@@ -6114,10 +6332,10 @@
|
|
|
6114
6332
|
return this._storage.config.level;
|
|
6115
6333
|
}
|
|
6116
6334
|
getTotal() {
|
|
6117
|
-
return Number((
|
|
6335
|
+
return Number((getHiResTimestamp3() - this._startTs).toPrecision(10));
|
|
6118
6336
|
}
|
|
6119
6337
|
getDelta() {
|
|
6120
|
-
return Number((
|
|
6338
|
+
return Number((getHiResTimestamp3() - this._deltaTs).toPrecision(10));
|
|
6121
6339
|
}
|
|
6122
6340
|
set priority(newPriority) {
|
|
6123
6341
|
this.level = newPriority;
|
|
@@ -6276,11 +6494,11 @@
|
|
|
6276
6494
|
assert4(method);
|
|
6277
6495
|
opts.total = this.getTotal();
|
|
6278
6496
|
opts.delta = this.getDelta();
|
|
6279
|
-
this._deltaTs =
|
|
6497
|
+
this._deltaTs = getHiResTimestamp3();
|
|
6280
6498
|
const tag = opts.tag || opts.message;
|
|
6281
6499
|
if (opts.once && tag) {
|
|
6282
6500
|
if (!cache[tag]) {
|
|
6283
|
-
cache[tag] =
|
|
6501
|
+
cache[tag] = getHiResTimestamp3();
|
|
6284
6502
|
} else {
|
|
6285
6503
|
return noop;
|
|
6286
6504
|
}
|
|
@@ -6295,10 +6513,10 @@
|
|
|
6295
6513
|
}
|
|
6296
6514
|
});
|
|
6297
6515
|
|
|
6298
|
-
//
|
|
6516
|
+
// ../core/node_modules/@probe.gl/log/dist/index.js
|
|
6299
6517
|
var dist_default;
|
|
6300
|
-
var
|
|
6301
|
-
"
|
|
6518
|
+
var init_dist4 = __esm({
|
|
6519
|
+
"../core/node_modules/@probe.gl/log/dist/index.js"() {
|
|
6302
6520
|
init_log();
|
|
6303
6521
|
init_log();
|
|
6304
6522
|
dist_default = new Log({
|
|
@@ -6311,7 +6529,7 @@
|
|
|
6311
6529
|
var probeLog, NullLog, ConsoleLog;
|
|
6312
6530
|
var init_loggers = __esm({
|
|
6313
6531
|
"../core/src/lib/loader-utils/loggers.ts"() {
|
|
6314
|
-
|
|
6532
|
+
init_dist4();
|
|
6315
6533
|
probeLog = new Log({ id: "loaders.gl" });
|
|
6316
6534
|
NullLog = class {
|
|
6317
6535
|
log() {
|
|
@@ -6554,7 +6772,7 @@
|
|
|
6554
6772
|
var log;
|
|
6555
6773
|
var init_log2 = __esm({
|
|
6556
6774
|
"../core/src/lib/utils/log.ts"() {
|
|
6557
|
-
|
|
6775
|
+
init_dist4();
|
|
6558
6776
|
log = new Log({ id: "loaders.gl" });
|
|
6559
6777
|
}
|
|
6560
6778
|
});
|
|
@@ -8460,8 +8678,7 @@
|
|
|
8460
8678
|
return this._frameNumber;
|
|
8461
8679
|
}
|
|
8462
8680
|
get queryParams() {
|
|
8463
|
-
|
|
8464
|
-
return search ? `?${search}` : "";
|
|
8681
|
+
return new URLSearchParams(this._queryParams).toString();
|
|
8465
8682
|
}
|
|
8466
8683
|
setProps(props) {
|
|
8467
8684
|
this.options = { ...this.options, ...props };
|
|
@@ -167,8 +167,7 @@ var Tileset3D = function () {
|
|
|
167
167
|
}, {
|
|
168
168
|
key: "queryParams",
|
|
169
169
|
get: function get() {
|
|
170
|
-
|
|
171
|
-
return search ? "?".concat(search) : '';
|
|
170
|
+
return new URLSearchParams(this._queryParams).toString();
|
|
172
171
|
}
|
|
173
172
|
}, {
|
|
174
173
|
key: "setProps",
|