@loaders.gl/tiles 3.4.13 → 3.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist.min.js +122 -338
- package/dist/es5/bundle.js +1 -1
- package/dist/es5/bundle.js.map +1 -1
- package/dist/es5/constants.js +6 -6
- package/dist/es5/constants.js.map +1 -1
- package/dist/es5/index.js +13 -13
- package/dist/es5/tileset/format-3d-tiles/tileset-3d-traverser.js +32 -53
- package/dist/es5/tileset/format-3d-tiles/tileset-3d-traverser.js.map +1 -1
- package/dist/es5/tileset/format-i3s/i3s-pending-tiles-register.js +21 -32
- package/dist/es5/tileset/format-i3s/i3s-pending-tiles-register.js.map +1 -1
- package/dist/es5/tileset/format-i3s/i3s-tile-manager.js +66 -63
- package/dist/es5/tileset/format-i3s/i3s-tile-manager.js.map +1 -1
- package/dist/es5/tileset/format-i3s/i3s-tileset-traverser.js +54 -121
- package/dist/es5/tileset/format-i3s/i3s-tileset-traverser.js.map +1 -1
- package/dist/es5/tileset/helpers/bounding-volume.js +48 -62
- package/dist/es5/tileset/helpers/bounding-volume.js.map +1 -1
- package/dist/es5/tileset/helpers/frame-state.js +67 -80
- package/dist/es5/tileset/helpers/frame-state.js.map +1 -1
- package/dist/es5/tileset/helpers/i3s-lod.js +27 -27
- package/dist/es5/tileset/helpers/i3s-lod.js.map +1 -1
- package/dist/es5/tileset/helpers/tiles-3d-lod.js +51 -45
- package/dist/es5/tileset/helpers/tiles-3d-lod.js.map +1 -1
- package/dist/es5/tileset/helpers/transform-utils.js +17 -11
- package/dist/es5/tileset/helpers/transform-utils.js.map +1 -1
- package/dist/es5/tileset/helpers/zoom.js +28 -28
- package/dist/es5/tileset/helpers/zoom.js.map +1 -1
- package/dist/es5/tileset/tile-3d.js +316 -430
- package/dist/es5/tileset/tile-3d.js.map +1 -1
- package/dist/es5/tileset/tileset-3d.js +460 -701
- package/dist/es5/tileset/tileset-3d.js.map +1 -1
- package/dist/es5/tileset/tileset-cache.js +41 -58
- package/dist/es5/tileset/tileset-cache.js.map +1 -1
- package/dist/es5/tileset/tileset-traverser.js +189 -264
- package/dist/es5/tileset/tileset-traverser.js.map +1 -1
- package/dist/es5/utils/doubly-linked-list-node.js +10 -11
- package/dist/es5/utils/doubly-linked-list-node.js.map +1 -1
- package/dist/es5/utils/doubly-linked-list.js +53 -68
- package/dist/es5/utils/doubly-linked-list.js.map +1 -1
- package/dist/es5/utils/managed-array.js +69 -100
- package/dist/es5/utils/managed-array.js.map +1 -1
- package/package.json +5 -5
package/dist/dist.min.js
CHANGED
|
@@ -3394,7 +3394,7 @@
|
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
|
|
3397
|
-
// node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js
|
|
3397
|
+
// ../../node_modules/@probe.gl/stats/dist/esm/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
|
-
"node_modules/@probe.gl/stats/dist/utils/hi-res-timestamp.js"() {
|
|
3411
|
+
"../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js"() {
|
|
3412
3412
|
}
|
|
3413
3413
|
});
|
|
3414
3414
|
|
|
3415
|
-
// node_modules/@probe.gl/stats/dist/lib/stat.js
|
|
3415
|
+
// ../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js
|
|
3416
3416
|
var Stat;
|
|
3417
3417
|
var init_stat = __esm({
|
|
3418
|
-
"node_modules/@probe.gl/stats/dist/lib/stat.js"() {
|
|
3418
|
+
"../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js"() {
|
|
3419
3419
|
init_defineProperty();
|
|
3420
3420
|
init_hi_res_timestamp();
|
|
3421
3421
|
Stat = class {
|
|
@@ -3423,12 +3423,12 @@
|
|
|
3423
3423
|
_defineProperty(this, "name", void 0);
|
|
3424
3424
|
_defineProperty(this, "type", void 0);
|
|
3425
3425
|
_defineProperty(this, "sampleSize", 1);
|
|
3426
|
-
_defineProperty(this, "time", 0);
|
|
3427
|
-
_defineProperty(this, "count", 0);
|
|
3428
|
-
_defineProperty(this, "samples", 0);
|
|
3429
|
-
_defineProperty(this, "lastTiming", 0);
|
|
3430
|
-
_defineProperty(this, "lastSampleTime", 0);
|
|
3431
|
-
_defineProperty(this, "lastSampleCount", 0);
|
|
3426
|
+
_defineProperty(this, "time", void 0);
|
|
3427
|
+
_defineProperty(this, "count", void 0);
|
|
3428
|
+
_defineProperty(this, "samples", void 0);
|
|
3429
|
+
_defineProperty(this, "lastTiming", void 0);
|
|
3430
|
+
_defineProperty(this, "lastSampleTime", void 0);
|
|
3431
|
+
_defineProperty(this, "lastSampleCount", void 0);
|
|
3432
3432
|
_defineProperty(this, "_count", 0);
|
|
3433
3433
|
_defineProperty(this, "_time", 0);
|
|
3434
3434
|
_defineProperty(this, "_samples", 0);
|
|
@@ -3438,20 +3438,6 @@
|
|
|
3438
3438
|
this.type = type;
|
|
3439
3439
|
this.reset();
|
|
3440
3440
|
}
|
|
3441
|
-
reset() {
|
|
3442
|
-
this.time = 0;
|
|
3443
|
-
this.count = 0;
|
|
3444
|
-
this.samples = 0;
|
|
3445
|
-
this.lastTiming = 0;
|
|
3446
|
-
this.lastSampleTime = 0;
|
|
3447
|
-
this.lastSampleCount = 0;
|
|
3448
|
-
this._count = 0;
|
|
3449
|
-
this._time = 0;
|
|
3450
|
-
this._samples = 0;
|
|
3451
|
-
this._startTime = 0;
|
|
3452
|
-
this._timerPending = false;
|
|
3453
|
-
return this;
|
|
3454
|
-
}
|
|
3455
3441
|
setSampleSize(samples) {
|
|
3456
3442
|
this.sampleSize = samples;
|
|
3457
3443
|
return this;
|
|
@@ -3515,6 +3501,20 @@
|
|
|
3515
3501
|
getHz() {
|
|
3516
3502
|
return this.time > 0 ? this.samples / (this.time / 1e3) : 0;
|
|
3517
3503
|
}
|
|
3504
|
+
reset() {
|
|
3505
|
+
this.time = 0;
|
|
3506
|
+
this.count = 0;
|
|
3507
|
+
this.samples = 0;
|
|
3508
|
+
this.lastTiming = 0;
|
|
3509
|
+
this.lastSampleTime = 0;
|
|
3510
|
+
this.lastSampleCount = 0;
|
|
3511
|
+
this._count = 0;
|
|
3512
|
+
this._time = 0;
|
|
3513
|
+
this._samples = 0;
|
|
3514
|
+
this._startTime = 0;
|
|
3515
|
+
this._timerPending = false;
|
|
3516
|
+
return this;
|
|
3517
|
+
}
|
|
3518
3518
|
_checkSampling() {
|
|
3519
3519
|
if (this._samples === this.sampleSize) {
|
|
3520
3520
|
this.lastSampleTime = this._time;
|
|
@@ -3531,10 +3531,10 @@
|
|
|
3531
3531
|
}
|
|
3532
3532
|
});
|
|
3533
3533
|
|
|
3534
|
-
// node_modules/@probe.gl/stats/dist/lib/stats.js
|
|
3534
|
+
// ../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js
|
|
3535
3535
|
var Stats;
|
|
3536
3536
|
var init_stats = __esm({
|
|
3537
|
-
"node_modules/@probe.gl/stats/dist/lib/stats.js"() {
|
|
3537
|
+
"../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js"() {
|
|
3538
3538
|
init_defineProperty();
|
|
3539
3539
|
init_stat();
|
|
3540
3540
|
Stats = class {
|
|
@@ -3557,14 +3557,14 @@
|
|
|
3557
3557
|
return Object.keys(this.stats).length;
|
|
3558
3558
|
}
|
|
3559
3559
|
reset() {
|
|
3560
|
-
for (const
|
|
3561
|
-
|
|
3560
|
+
for (const key in this.stats) {
|
|
3561
|
+
this.stats[key].reset();
|
|
3562
3562
|
}
|
|
3563
3563
|
return this;
|
|
3564
3564
|
}
|
|
3565
3565
|
forEach(fn) {
|
|
3566
|
-
for (const
|
|
3567
|
-
fn(
|
|
3566
|
+
for (const key in this.stats) {
|
|
3567
|
+
fn(this.stats[key]);
|
|
3568
3568
|
}
|
|
3569
3569
|
}
|
|
3570
3570
|
getTable() {
|
|
@@ -3584,28 +3584,29 @@
|
|
|
3584
3584
|
stats.forEach((stat) => this._getOrCreate(stat));
|
|
3585
3585
|
}
|
|
3586
3586
|
_getOrCreate(stat) {
|
|
3587
|
+
if (!stat || !stat.name) {
|
|
3588
|
+
return null;
|
|
3589
|
+
}
|
|
3587
3590
|
const {
|
|
3588
3591
|
name,
|
|
3589
3592
|
type
|
|
3590
3593
|
} = stat;
|
|
3591
|
-
|
|
3592
|
-
if (!result) {
|
|
3594
|
+
if (!this.stats[name]) {
|
|
3593
3595
|
if (stat instanceof Stat) {
|
|
3594
|
-
|
|
3596
|
+
this.stats[name] = stat;
|
|
3595
3597
|
} else {
|
|
3596
|
-
|
|
3598
|
+
this.stats[name] = new Stat(name, type);
|
|
3597
3599
|
}
|
|
3598
|
-
this.stats[name] = result;
|
|
3599
3600
|
}
|
|
3600
|
-
return
|
|
3601
|
+
return this.stats[name];
|
|
3601
3602
|
}
|
|
3602
3603
|
};
|
|
3603
3604
|
}
|
|
3604
3605
|
});
|
|
3605
3606
|
|
|
3606
|
-
// node_modules/@probe.gl/stats/dist/index.js
|
|
3607
|
-
var
|
|
3608
|
-
"node_modules/@probe.gl/stats/dist/index.js"() {
|
|
3607
|
+
// ../../node_modules/@probe.gl/stats/dist/esm/index.js
|
|
3608
|
+
var init_esm3 = __esm({
|
|
3609
|
+
"../../node_modules/@probe.gl/stats/dist/esm/index.js"() {
|
|
3609
3610
|
init_stats();
|
|
3610
3611
|
init_stat();
|
|
3611
3612
|
init_hi_res_timestamp();
|
|
@@ -4251,229 +4252,11 @@
|
|
|
4251
4252
|
}
|
|
4252
4253
|
});
|
|
4253
4254
|
|
|
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
|
-
|
|
4472
4255
|
// ../loader-utils/src/lib/request-utils/request-scheduler.ts
|
|
4473
4256
|
var STAT_QUEUED_REQUESTS, STAT_ACTIVE_REQUESTS, STAT_CANCELLED_REQUESTS, STAT_QUEUED_REQUESTS_EVER, STAT_ACTIVE_REQUESTS_EVER, DEFAULT_PROPS2, RequestScheduler;
|
|
4474
4257
|
var init_request_scheduler = __esm({
|
|
4475
4258
|
"../loader-utils/src/lib/request-utils/request-scheduler.ts"() {
|
|
4476
|
-
|
|
4259
|
+
init_esm3();
|
|
4477
4260
|
STAT_QUEUED_REQUESTS = "Queued Requests";
|
|
4478
4261
|
STAT_ACTIVE_REQUESTS = "Active Requests";
|
|
4479
4262
|
STAT_CANCELLED_REQUESTS = "Cancelled Requests";
|
|
@@ -4491,7 +4274,7 @@
|
|
|
4491
4274
|
this.requestMap = new Map();
|
|
4492
4275
|
this.deferredUpdate = null;
|
|
4493
4276
|
this.props = { ...DEFAULT_PROPS2, ...props };
|
|
4494
|
-
this.stats = new
|
|
4277
|
+
this.stats = new Stats({ id: this.props.id });
|
|
4495
4278
|
this.stats.get(STAT_QUEUED_REQUESTS);
|
|
4496
4279
|
this.stats.get(STAT_ACTIVE_REQUESTS);
|
|
4497
4280
|
this.stats.get(STAT_CANCELLED_REQUESTS);
|
|
@@ -5536,7 +5319,7 @@
|
|
|
5536
5319
|
});
|
|
5537
5320
|
|
|
5538
5321
|
// ../../node_modules/@math.gl/culling/dist/esm/index.js
|
|
5539
|
-
var
|
|
5322
|
+
var init_esm4 = __esm({
|
|
5540
5323
|
"../../node_modules/@math.gl/culling/dist/esm/index.js"() {
|
|
5541
5324
|
init_constants2();
|
|
5542
5325
|
init_axis_aligned_bounding_box();
|
|
@@ -5642,7 +5425,7 @@
|
|
|
5642
5425
|
var init_frame_state = __esm({
|
|
5643
5426
|
"src/tileset/helpers/frame-state.ts"() {
|
|
5644
5427
|
init_esm();
|
|
5645
|
-
|
|
5428
|
+
init_esm4();
|
|
5646
5429
|
init_esm2();
|
|
5647
5430
|
scratchVector7 = new Vector3();
|
|
5648
5431
|
scratchPosition3 = new Vector3();
|
|
@@ -5695,7 +5478,7 @@
|
|
|
5695
5478
|
var init_zoom = __esm({
|
|
5696
5479
|
"src/tileset/helpers/zoom.ts"() {
|
|
5697
5480
|
init_esm();
|
|
5698
|
-
|
|
5481
|
+
init_esm4();
|
|
5699
5482
|
init_esm2();
|
|
5700
5483
|
WGS84_RADIUS_X2 = 6378137;
|
|
5701
5484
|
WGS84_RADIUS_Y2 = 6378137;
|
|
@@ -5920,7 +5703,7 @@
|
|
|
5920
5703
|
}
|
|
5921
5704
|
});
|
|
5922
5705
|
|
|
5923
|
-
//
|
|
5706
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js
|
|
5924
5707
|
function isElectron(mockUserAgent) {
|
|
5925
5708
|
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
|
|
5926
5709
|
return true;
|
|
@@ -5936,54 +5719,59 @@
|
|
|
5936
5719
|
return false;
|
|
5937
5720
|
}
|
|
5938
5721
|
var init_is_electron = __esm({
|
|
5939
|
-
"
|
|
5722
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"() {
|
|
5940
5723
|
}
|
|
5941
5724
|
});
|
|
5942
5725
|
|
|
5943
|
-
//
|
|
5726
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js
|
|
5944
5727
|
function isBrowser3() {
|
|
5945
5728
|
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
|
|
5946
5729
|
return !isNode || isElectron();
|
|
5947
5730
|
}
|
|
5948
5731
|
var init_is_browser = __esm({
|
|
5949
|
-
"
|
|
5732
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"() {
|
|
5950
5733
|
init_is_electron();
|
|
5951
5734
|
}
|
|
5952
5735
|
});
|
|
5953
5736
|
|
|
5954
|
-
//
|
|
5955
|
-
var self_3, window_3, document_3, process_
|
|
5737
|
+
// ../../node_modules/@probe.gl/env/dist/esm/lib/globals.js
|
|
5738
|
+
var globals3, self_3, window_3, document_3, process_;
|
|
5956
5739
|
var init_globals3 = __esm({
|
|
5957
|
-
"
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5740
|
+
"../../node_modules/@probe.gl/env/dist/esm/lib/globals.js"() {
|
|
5741
|
+
globals3 = {
|
|
5742
|
+
self: typeof self !== "undefined" && self,
|
|
5743
|
+
window: typeof window !== "undefined" && window,
|
|
5744
|
+
global: typeof global !== "undefined" && global,
|
|
5745
|
+
document: typeof document !== "undefined" && document,
|
|
5746
|
+
process: typeof process === "object" && process
|
|
5747
|
+
};
|
|
5748
|
+
self_3 = globals3.self || globals3.window || globals3.global;
|
|
5749
|
+
window_3 = globals3.window || globals3.self || globals3.global;
|
|
5750
|
+
document_3 = globals3.document || {};
|
|
5751
|
+
process_ = globals3.process || {};
|
|
5964
5752
|
}
|
|
5965
5753
|
});
|
|
5966
5754
|
|
|
5967
|
-
//
|
|
5755
|
+
// ../../node_modules/@probe.gl/env/dist/esm/utils/globals.js
|
|
5968
5756
|
var VERSION2, isBrowser4;
|
|
5969
5757
|
var init_globals4 = __esm({
|
|
5970
|
-
"
|
|
5758
|
+
"../../node_modules/@probe.gl/env/dist/esm/utils/globals.js"() {
|
|
5971
5759
|
init_is_browser();
|
|
5972
5760
|
VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
|
|
5973
5761
|
isBrowser4 = isBrowser3();
|
|
5974
5762
|
}
|
|
5975
5763
|
});
|
|
5976
5764
|
|
|
5977
|
-
//
|
|
5978
|
-
var
|
|
5979
|
-
"
|
|
5765
|
+
// ../../node_modules/@probe.gl/env/dist/esm/index.js
|
|
5766
|
+
var init_esm5 = __esm({
|
|
5767
|
+
"../../node_modules/@probe.gl/env/dist/esm/index.js"() {
|
|
5980
5768
|
init_globals4();
|
|
5981
5769
|
init_globals3();
|
|
5982
5770
|
init_is_browser();
|
|
5983
5771
|
}
|
|
5984
5772
|
});
|
|
5985
5773
|
|
|
5986
|
-
//
|
|
5774
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js
|
|
5987
5775
|
function getStorage(type) {
|
|
5988
5776
|
try {
|
|
5989
5777
|
const storage = window[type];
|
|
@@ -5997,7 +5785,7 @@
|
|
|
5997
5785
|
}
|
|
5998
5786
|
var LocalStorage;
|
|
5999
5787
|
var init_local_storage = __esm({
|
|
6000
|
-
"
|
|
5788
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js"() {
|
|
6001
5789
|
init_defineProperty();
|
|
6002
5790
|
LocalStorage = class {
|
|
6003
5791
|
constructor(id, defaultConfig) {
|
|
@@ -6033,7 +5821,7 @@
|
|
|
6033
5821
|
}
|
|
6034
5822
|
});
|
|
6035
5823
|
|
|
6036
|
-
//
|
|
5824
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js
|
|
6037
5825
|
function formatTime(ms) {
|
|
6038
5826
|
let formatted;
|
|
6039
5827
|
if (ms < 10) {
|
|
@@ -6064,35 +5852,31 @@
|
|
|
6064
5852
|
return ["".concat(message, " %c+"), style];
|
|
6065
5853
|
}
|
|
6066
5854
|
var init_formatters = __esm({
|
|
6067
|
-
"
|
|
5855
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js"() {
|
|
6068
5856
|
}
|
|
6069
5857
|
});
|
|
6070
5858
|
|
|
6071
|
-
//
|
|
5859
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/color.js
|
|
6072
5860
|
function getColor(color) {
|
|
6073
|
-
|
|
6074
|
-
return color;
|
|
6075
|
-
}
|
|
6076
|
-
color = color.toUpperCase();
|
|
6077
|
-
return COLOR[color] || COLOR.WHITE;
|
|
5861
|
+
return typeof color === "string" ? COLOR[color.toUpperCase()] || COLOR.WHITE : color;
|
|
6078
5862
|
}
|
|
6079
5863
|
function addColor(string, color, background) {
|
|
6080
5864
|
if (!isBrowser3 && typeof string === "string") {
|
|
6081
5865
|
if (color) {
|
|
6082
|
-
|
|
6083
|
-
string = "[".concat(
|
|
5866
|
+
color = getColor(color);
|
|
5867
|
+
string = "[".concat(color, "m").concat(string, "[39m");
|
|
6084
5868
|
}
|
|
6085
5869
|
if (background) {
|
|
6086
|
-
|
|
6087
|
-
string = "[".concat(
|
|
5870
|
+
color = getColor(background);
|
|
5871
|
+
string = "[".concat(background + 10, "m").concat(string, "[49m");
|
|
6088
5872
|
}
|
|
6089
5873
|
}
|
|
6090
5874
|
return string;
|
|
6091
5875
|
}
|
|
6092
|
-
var COLOR
|
|
5876
|
+
var COLOR;
|
|
6093
5877
|
var init_color = __esm({
|
|
6094
|
-
"
|
|
6095
|
-
|
|
5878
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
|
|
5879
|
+
init_esm5();
|
|
6096
5880
|
(function(COLOR2) {
|
|
6097
5881
|
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
6098
5882
|
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
@@ -6111,45 +5895,42 @@
|
|
|
6111
5895
|
COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
|
|
6112
5896
|
COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
|
|
6113
5897
|
})(COLOR || (COLOR = {}));
|
|
6114
|
-
BACKGROUND_INCREMENT = 10;
|
|
6115
5898
|
}
|
|
6116
5899
|
});
|
|
6117
5900
|
|
|
6118
|
-
//
|
|
5901
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js
|
|
6119
5902
|
function autobind(obj) {
|
|
6120
5903
|
let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
|
|
6121
5904
|
const proto = Object.getPrototypeOf(obj);
|
|
6122
5905
|
const propNames = Object.getOwnPropertyNames(proto);
|
|
6123
|
-
const object = obj;
|
|
6124
5906
|
for (const key of propNames) {
|
|
6125
|
-
|
|
6126
|
-
if (typeof value === "function") {
|
|
5907
|
+
if (typeof obj[key] === "function") {
|
|
6127
5908
|
if (!predefined.find((name) => key === name)) {
|
|
6128
|
-
|
|
5909
|
+
obj[key] = obj[key].bind(obj);
|
|
6129
5910
|
}
|
|
6130
5911
|
}
|
|
6131
5912
|
}
|
|
6132
5913
|
}
|
|
6133
5914
|
var init_autobind = __esm({
|
|
6134
|
-
"
|
|
5915
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js"() {
|
|
6135
5916
|
}
|
|
6136
5917
|
});
|
|
6137
5918
|
|
|
6138
|
-
//
|
|
5919
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/assert.js
|
|
6139
5920
|
function assert4(condition, message) {
|
|
6140
5921
|
if (!condition) {
|
|
6141
5922
|
throw new Error(message || "Assertion failed");
|
|
6142
5923
|
}
|
|
6143
5924
|
}
|
|
6144
5925
|
var init_assert4 = __esm({
|
|
6145
|
-
"
|
|
5926
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/assert.js"() {
|
|
6146
5927
|
}
|
|
6147
5928
|
});
|
|
6148
5929
|
|
|
6149
|
-
//
|
|
6150
|
-
function
|
|
5930
|
+
// ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
|
|
5931
|
+
function getHiResTimestamp2() {
|
|
6151
5932
|
let timestamp;
|
|
6152
|
-
if (isBrowser3
|
|
5933
|
+
if (isBrowser3 && "performance" in window_3) {
|
|
6153
5934
|
var _window$performance, _window$performance$n;
|
|
6154
5935
|
timestamp = window_3 === null || window_3 === void 0 ? void 0 : (_window$performance = window_3.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
|
|
6155
5936
|
} else if ("hrtime" in process_) {
|
|
@@ -6161,13 +5942,13 @@
|
|
|
6161
5942
|
}
|
|
6162
5943
|
return timestamp;
|
|
6163
5944
|
}
|
|
6164
|
-
var
|
|
6165
|
-
"
|
|
6166
|
-
|
|
5945
|
+
var init_hi_res_timestamp2 = __esm({
|
|
5946
|
+
"../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
|
|
5947
|
+
init_esm5();
|
|
6167
5948
|
}
|
|
6168
5949
|
});
|
|
6169
5950
|
|
|
6170
|
-
//
|
|
5951
|
+
// ../../node_modules/@probe.gl/log/dist/esm/log.js
|
|
6171
5952
|
function noop() {
|
|
6172
5953
|
}
|
|
6173
5954
|
function normalizeLogLevel(logLevel) {
|
|
@@ -6272,25 +6053,25 @@
|
|
|
6272
6053
|
}
|
|
6273
6054
|
return "empty";
|
|
6274
6055
|
}
|
|
6275
|
-
var originalConsole,
|
|
6056
|
+
var originalConsole, DEFAULT_SETTINGS, cache, ONCE, Log;
|
|
6276
6057
|
var init_log = __esm({
|
|
6277
|
-
"
|
|
6058
|
+
"../../node_modules/@probe.gl/log/dist/esm/log.js"() {
|
|
6278
6059
|
init_defineProperty();
|
|
6279
|
-
|
|
6060
|
+
init_esm5();
|
|
6280
6061
|
init_local_storage();
|
|
6281
6062
|
init_formatters();
|
|
6282
6063
|
init_color();
|
|
6283
6064
|
init_autobind();
|
|
6284
6065
|
init_assert4();
|
|
6285
|
-
|
|
6066
|
+
init_hi_res_timestamp2();
|
|
6286
6067
|
originalConsole = {
|
|
6287
|
-
debug: isBrowser3
|
|
6068
|
+
debug: isBrowser3 ? console.debug || console.log : console.log,
|
|
6288
6069
|
log: console.log,
|
|
6289
6070
|
info: console.info,
|
|
6290
6071
|
warn: console.warn,
|
|
6291
6072
|
error: console.error
|
|
6292
6073
|
};
|
|
6293
|
-
|
|
6074
|
+
DEFAULT_SETTINGS = {
|
|
6294
6075
|
enabled: true,
|
|
6295
6076
|
level: 0
|
|
6296
6077
|
};
|
|
@@ -6307,14 +6088,14 @@
|
|
|
6307
6088
|
};
|
|
6308
6089
|
_defineProperty(this, "id", void 0);
|
|
6309
6090
|
_defineProperty(this, "VERSION", VERSION2);
|
|
6310
|
-
_defineProperty(this, "_startTs",
|
|
6311
|
-
_defineProperty(this, "_deltaTs",
|
|
6091
|
+
_defineProperty(this, "_startTs", getHiResTimestamp2());
|
|
6092
|
+
_defineProperty(this, "_deltaTs", getHiResTimestamp2());
|
|
6312
6093
|
_defineProperty(this, "_storage", void 0);
|
|
6313
6094
|
_defineProperty(this, "userData", {});
|
|
6314
6095
|
_defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
|
|
6315
6096
|
this.id = id;
|
|
6316
6097
|
this.userData = {};
|
|
6317
|
-
this._storage = new LocalStorage("__probe-".concat(this.id, "__"),
|
|
6098
|
+
this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
|
|
6318
6099
|
this.timeStamp("".concat(this.id, " started"));
|
|
6319
6100
|
autobind(this);
|
|
6320
6101
|
Object.seal(this);
|
|
@@ -6332,10 +6113,10 @@
|
|
|
6332
6113
|
return this._storage.config.level;
|
|
6333
6114
|
}
|
|
6334
6115
|
getTotal() {
|
|
6335
|
-
return Number((
|
|
6116
|
+
return Number((getHiResTimestamp2() - this._startTs).toPrecision(10));
|
|
6336
6117
|
}
|
|
6337
6118
|
getDelta() {
|
|
6338
|
-
return Number((
|
|
6119
|
+
return Number((getHiResTimestamp2() - this._deltaTs).toPrecision(10));
|
|
6339
6120
|
}
|
|
6340
6121
|
set priority(newPriority) {
|
|
6341
6122
|
this.level = newPriority;
|
|
@@ -6402,6 +6183,9 @@
|
|
|
6402
6183
|
return this._getLogFunction(logLevel, message, console.info, arguments);
|
|
6403
6184
|
}
|
|
6404
6185
|
once(logLevel, message) {
|
|
6186
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
6187
|
+
args[_key - 2] = arguments[_key];
|
|
6188
|
+
}
|
|
6405
6189
|
return this._getLogFunction(logLevel, message, originalConsole.debug || originalConsole.info, arguments, ONCE);
|
|
6406
6190
|
}
|
|
6407
6191
|
table(logLevel, table, columns) {
|
|
@@ -6423,7 +6207,7 @@
|
|
|
6423
6207
|
if (!this._shouldLog(logLevel || priority)) {
|
|
6424
6208
|
return noop;
|
|
6425
6209
|
}
|
|
6426
|
-
return isBrowser3
|
|
6210
|
+
return isBrowser3 ? logImageInBrowser({
|
|
6427
6211
|
image,
|
|
6428
6212
|
message,
|
|
6429
6213
|
scale: scale5
|
|
@@ -6494,11 +6278,11 @@
|
|
|
6494
6278
|
assert4(method);
|
|
6495
6279
|
opts.total = this.getTotal();
|
|
6496
6280
|
opts.delta = this.getDelta();
|
|
6497
|
-
this._deltaTs =
|
|
6281
|
+
this._deltaTs = getHiResTimestamp2();
|
|
6498
6282
|
const tag = opts.tag || opts.message;
|
|
6499
|
-
if (opts.once
|
|
6283
|
+
if (opts.once) {
|
|
6500
6284
|
if (!cache[tag]) {
|
|
6501
|
-
cache[tag] =
|
|
6285
|
+
cache[tag] = getHiResTimestamp2();
|
|
6502
6286
|
} else {
|
|
6503
6287
|
return noop;
|
|
6504
6288
|
}
|
|
@@ -6513,13 +6297,13 @@
|
|
|
6513
6297
|
}
|
|
6514
6298
|
});
|
|
6515
6299
|
|
|
6516
|
-
//
|
|
6517
|
-
var
|
|
6518
|
-
var
|
|
6519
|
-
"
|
|
6300
|
+
// ../../node_modules/@probe.gl/log/dist/esm/index.js
|
|
6301
|
+
var esm_default;
|
|
6302
|
+
var init_esm6 = __esm({
|
|
6303
|
+
"../../node_modules/@probe.gl/log/dist/esm/index.js"() {
|
|
6520
6304
|
init_log();
|
|
6521
6305
|
init_log();
|
|
6522
|
-
|
|
6306
|
+
esm_default = new Log({
|
|
6523
6307
|
id: "@probe.gl/log"
|
|
6524
6308
|
});
|
|
6525
6309
|
}
|
|
@@ -6529,7 +6313,7 @@
|
|
|
6529
6313
|
var probeLog, NullLog, ConsoleLog;
|
|
6530
6314
|
var init_loggers = __esm({
|
|
6531
6315
|
"../core/src/lib/loader-utils/loggers.ts"() {
|
|
6532
|
-
|
|
6316
|
+
init_esm6();
|
|
6533
6317
|
probeLog = new Log({ id: "loaders.gl" });
|
|
6534
6318
|
NullLog = class {
|
|
6535
6319
|
log() {
|
|
@@ -6772,7 +6556,7 @@
|
|
|
6772
6556
|
var log;
|
|
6773
6557
|
var init_log2 = __esm({
|
|
6774
6558
|
"../core/src/lib/utils/log.ts"() {
|
|
6775
|
-
|
|
6559
|
+
init_esm6();
|
|
6776
6560
|
log = new Log({ id: "loaders.gl" });
|
|
6777
6561
|
}
|
|
6778
6562
|
});
|
|
@@ -7516,7 +7300,7 @@
|
|
|
7516
7300
|
var init_bounding_volume = __esm({
|
|
7517
7301
|
"src/tileset/helpers/bounding-volume.ts"() {
|
|
7518
7302
|
init_esm();
|
|
7519
|
-
|
|
7303
|
+
init_esm4();
|
|
7520
7304
|
init_esm2();
|
|
7521
7305
|
init_src2();
|
|
7522
7306
|
scratchPoint = new Vector3();
|
|
@@ -7962,7 +7746,7 @@
|
|
|
7962
7746
|
var init_tile_3d = __esm({
|
|
7963
7747
|
"src/tileset/tile-3d.ts"() {
|
|
7964
7748
|
init_esm();
|
|
7965
|
-
|
|
7749
|
+
init_esm4();
|
|
7966
7750
|
init_src3();
|
|
7967
7751
|
init_constants3();
|
|
7968
7752
|
init_bounding_volume();
|
|
@@ -8565,7 +8349,7 @@
|
|
|
8565
8349
|
"src/tileset/tileset-3d.ts"() {
|
|
8566
8350
|
init_esm();
|
|
8567
8351
|
init_esm2();
|
|
8568
|
-
|
|
8352
|
+
init_esm3();
|
|
8569
8353
|
init_src2();
|
|
8570
8354
|
init_tileset_cache();
|
|
8571
8355
|
init_transform_utils();
|