@loaders.gl/pointclouds 5.0.0-beta.7 → 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/dist/dist.dev.js +837 -71
- package/dist/dist.min.js +20 -20
- package/dist/las/las-loader-shared.cjs +1 -1
- package/dist/las/las-loader-shared.js +1 -1
- package/dist/las/las-writer.cjs +1 -1
- package/dist/las/las-writer.js +1 -1
- package/dist/las/lib/laz-perf/parse-las.cjs +8 -7
- package/dist/las/lib/laz-perf/parse-las.cjs.map +3 -3
- package/dist/las/lib/laz-perf/parse-las.js +8 -7
- package/dist/las/lib/laz-perf/parse-las.js.map +1 -1
- package/dist/las/lib/laz-rs-wasm/parse-las.cjs +8 -7
- package/dist/las/lib/laz-rs-wasm/parse-las.cjs.map +3 -3
- package/dist/las/lib/laz-rs-wasm/parse-las.js +8 -7
- package/dist/las/lib/laz-rs-wasm/parse-las.js.map +1 -1
- package/dist/las-worker.js +1 -1
- package/dist/las-writer.cjs +1 -1
- package/dist/pcd/pcd-loader-types.cjs +1 -1
- package/dist/pcd/pcd-loader-types.js +1 -1
- package/dist/pcd/pcd-writer.cjs +1 -1
- package/dist/pcd/pcd-writer.js +1 -1
- package/dist/pcd-loader-types.cjs +1 -1
- package/dist/pcd-worker.js +37 -1
- package/dist/pcd-writer.cjs +1 -1
- package/dist/ply/lib/parse-ply-in-batches.cjs +7 -6
- package/dist/ply/lib/parse-ply-in-batches.cjs.map +3 -3
- package/dist/ply/lib/parse-ply-in-batches.d.ts.map +1 -1
- package/dist/ply/lib/parse-ply-in-batches.js +2 -2
- package/dist/ply/lib/parse-ply-in-batches.js.map +1 -1
- package/dist/ply/ply-loader-types.cjs +1 -1
- package/dist/ply/ply-loader-types.js +1 -1
- package/dist/ply/ply-writer.cjs +1 -1
- package/dist/ply/ply-writer.js +1 -1
- package/dist/ply-loader-types.cjs +1 -1
- package/dist/ply-worker.js +790 -24
- package/dist/ply-writer.cjs +1 -1
- package/package.json +3 -3
- package/src/las/lib/laz-perf/parse-las.ts +7 -8
- package/src/las/lib/laz-rs-wasm/parse-las.ts +7 -8
- package/src/ply/lib/parse-ply-in-batches.ts +2 -2
package/dist/dist.dev.js
CHANGED
|
@@ -8041,8 +8041,8 @@ return true;`);
|
|
|
8041
8041
|
static startFooter(builder) {
|
|
8042
8042
|
builder.startObject(5);
|
|
8043
8043
|
}
|
|
8044
|
-
static addVersion(builder,
|
|
8045
|
-
builder.addFieldInt16(0,
|
|
8044
|
+
static addVersion(builder, version2) {
|
|
8045
|
+
builder.addFieldInt16(0, version2, MetadataVersion.V1);
|
|
8046
8046
|
}
|
|
8047
8047
|
static addSchema(builder, schemaOffset) {
|
|
8048
8048
|
builder.addFieldOffset(1, schemaOffset, 0);
|
|
@@ -8288,9 +8288,9 @@ return true;`);
|
|
|
8288
8288
|
get numDictionaries() {
|
|
8289
8289
|
return this._dictionaryBatches.length;
|
|
8290
8290
|
}
|
|
8291
|
-
constructor(schema,
|
|
8291
|
+
constructor(schema, version2 = MetadataVersion.V5, recordBatches, dictionaryBatches) {
|
|
8292
8292
|
this.schema = schema;
|
|
8293
|
-
this.version =
|
|
8293
|
+
this.version = version2;
|
|
8294
8294
|
recordBatches && (this._recordBatches = recordBatches);
|
|
8295
8295
|
dictionaryBatches && (this._dictionaryBatches = dictionaryBatches);
|
|
8296
8296
|
}
|
|
@@ -8418,8 +8418,8 @@ return true;`);
|
|
|
8418
8418
|
static startMessage(builder) {
|
|
8419
8419
|
builder.startObject(5);
|
|
8420
8420
|
}
|
|
8421
|
-
static addVersion(builder,
|
|
8422
|
-
builder.addFieldInt16(0,
|
|
8421
|
+
static addVersion(builder, version2) {
|
|
8422
|
+
builder.addFieldInt16(0, version2, MetadataVersion.V1);
|
|
8423
8423
|
}
|
|
8424
8424
|
static addHeaderType(builder, headerType) {
|
|
8425
8425
|
builder.addFieldInt8(1, headerType, MessageHeader.NONE);
|
|
@@ -8453,9 +8453,9 @@ return true;`);
|
|
|
8453
8453
|
static finishSizePrefixedMessageBuffer(builder, offset) {
|
|
8454
8454
|
builder.finish(offset, void 0, true);
|
|
8455
8455
|
}
|
|
8456
|
-
static createMessage(builder,
|
|
8456
|
+
static createMessage(builder, version2, headerType, headerOffset, bodyLength, customMetadataOffset) {
|
|
8457
8457
|
_Message.startMessage(builder);
|
|
8458
|
-
_Message.addVersion(builder,
|
|
8458
|
+
_Message.addVersion(builder, version2);
|
|
8459
8459
|
_Message.addHeaderType(builder, headerType);
|
|
8460
8460
|
_Message.addHeader(builder, headerOffset);
|
|
8461
8461
|
_Message.addBodyLength(builder, bodyLength);
|
|
@@ -8827,16 +8827,16 @@ return true;`);
|
|
|
8827
8827
|
throw new Error(`Unrecognized Message type: { name: ${MessageHeader[type]}, type: ${type} }`);
|
|
8828
8828
|
});
|
|
8829
8829
|
}
|
|
8830
|
-
function decodeSchema(_schema, dictionaries = /* @__PURE__ */ new Map(),
|
|
8830
|
+
function decodeSchema(_schema, dictionaries = /* @__PURE__ */ new Map(), version2 = MetadataVersion.V5) {
|
|
8831
8831
|
const fields = decodeSchemaFields(_schema, dictionaries);
|
|
8832
|
-
return new Schema2(fields, decodeCustomMetadata(_schema), dictionaries,
|
|
8832
|
+
return new Schema2(fields, decodeCustomMetadata(_schema), dictionaries, version2);
|
|
8833
8833
|
}
|
|
8834
|
-
function decodeRecordBatch(batch,
|
|
8835
|
-
const recordBatch = new RecordBatch2(batch.length(), decodeFieldNodes(batch), decodeBuffers(batch,
|
|
8834
|
+
function decodeRecordBatch(batch, version2 = MetadataVersion.V5) {
|
|
8835
|
+
const recordBatch = new RecordBatch2(batch.length(), decodeFieldNodes(batch), decodeBuffers(batch, version2), decodeBodyCompression(batch.compression()), decodeVariadicBufferCounts(batch));
|
|
8836
8836
|
return recordBatch;
|
|
8837
8837
|
}
|
|
8838
|
-
function decodeDictionaryBatch(batch,
|
|
8839
|
-
return new DictionaryBatch2(RecordBatch2.decode(batch.data(),
|
|
8838
|
+
function decodeDictionaryBatch(batch, version2 = MetadataVersion.V5) {
|
|
8839
|
+
return new DictionaryBatch2(RecordBatch2.decode(batch.data(), version2), batch.id(), batch.isDelta());
|
|
8840
8840
|
}
|
|
8841
8841
|
function decodeBufferRegion(b) {
|
|
8842
8842
|
return new BufferRegion(b.offset(), b.length());
|
|
@@ -8853,11 +8853,11 @@ return true;`);
|
|
|
8853
8853
|
}
|
|
8854
8854
|
return nodes;
|
|
8855
8855
|
}
|
|
8856
|
-
function decodeBuffers(batch,
|
|
8856
|
+
function decodeBuffers(batch, version2) {
|
|
8857
8857
|
const bufferRegions = [];
|
|
8858
8858
|
for (let b, i = -1, j = -1, n = batch.buffersLength(); ++i < n; ) {
|
|
8859
8859
|
if (b = batch.buffers(i)) {
|
|
8860
|
-
if (
|
|
8860
|
+
if (version2 < MetadataVersion.V4) {
|
|
8861
8861
|
b.bb_pos += 8 * (i + 1);
|
|
8862
8862
|
}
|
|
8863
8863
|
bufferRegions[++j] = BufferRegion.decode(b);
|
|
@@ -9182,10 +9182,10 @@ return true;`);
|
|
|
9182
9182
|
buf = new ByteBuffer3(toUint8Array(buf));
|
|
9183
9183
|
const _message = Message.getRootAsMessage(buf);
|
|
9184
9184
|
const bodyLength = _message.bodyLength();
|
|
9185
|
-
const
|
|
9185
|
+
const version2 = _message.version();
|
|
9186
9186
|
const headerType = _message.headerType();
|
|
9187
9187
|
const metadata = decodeMessageCustomMetadata(_message);
|
|
9188
|
-
const message = new _Message(bodyLength,
|
|
9188
|
+
const message = new _Message(bodyLength, version2, headerType, void 0, metadata);
|
|
9189
9189
|
message._createHeader = decodeMessageHeader(_message, headerType);
|
|
9190
9190
|
return message;
|
|
9191
9191
|
}
|
|
@@ -9262,8 +9262,8 @@ return true;`);
|
|
|
9262
9262
|
isDictionaryBatch() {
|
|
9263
9263
|
return this.headerType === MessageHeader.DictionaryBatch;
|
|
9264
9264
|
}
|
|
9265
|
-
constructor(bodyLength,
|
|
9266
|
-
this._version =
|
|
9265
|
+
constructor(bodyLength, version2, headerType, header, metadata) {
|
|
9266
|
+
this._version = version2;
|
|
9267
9267
|
this._headerType = headerType;
|
|
9268
9268
|
this.body = new Uint8Array(0);
|
|
9269
9269
|
this._compression = header === null || header === void 0 ? void 0 : header.compression;
|
|
@@ -16242,6 +16242,18 @@ return true;`);
|
|
|
16242
16242
|
}
|
|
16243
16243
|
});
|
|
16244
16244
|
|
|
16245
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-helpers.js
|
|
16246
|
+
var init_indexed_arrow_helpers = __esm({
|
|
16247
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-helpers.js"() {
|
|
16248
|
+
}
|
|
16249
|
+
});
|
|
16250
|
+
|
|
16251
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-schema-utils.js
|
|
16252
|
+
var init_arrow_schema_utils = __esm({
|
|
16253
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/arrow-schema-utils.js"() {
|
|
16254
|
+
}
|
|
16255
|
+
});
|
|
16256
|
+
|
|
16245
16257
|
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js
|
|
16246
16258
|
function getArrowVariadicBuffers(data) {
|
|
16247
16259
|
return data.variadicBuffers ?? [];
|
|
@@ -16345,27 +16357,43 @@ return true;`);
|
|
|
16345
16357
|
}
|
|
16346
16358
|
});
|
|
16347
16359
|
|
|
16360
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/take-arrow-rows.js
|
|
16361
|
+
var init_take_arrow_rows = __esm({
|
|
16362
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/take-arrow-rows.js"() {
|
|
16363
|
+
init_arrow_data();
|
|
16364
|
+
init_split_arrow_buffers();
|
|
16365
|
+
}
|
|
16366
|
+
});
|
|
16367
|
+
|
|
16348
16368
|
// ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js
|
|
16349
16369
|
var init_indexed_arrow_vector = __esm({
|
|
16350
16370
|
"../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js"() {
|
|
16371
|
+
init_indexed_arrow_helpers();
|
|
16351
16372
|
}
|
|
16352
16373
|
});
|
|
16353
16374
|
|
|
16354
16375
|
// ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js
|
|
16355
16376
|
var init_indexed_arrow_table = __esm({
|
|
16356
16377
|
"../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js"() {
|
|
16378
|
+
init_indexed_arrow_helpers();
|
|
16379
|
+
init_arrow_schema_utils();
|
|
16380
|
+
init_take_arrow_rows();
|
|
16381
|
+
init_indexed_arrow_vector();
|
|
16357
16382
|
}
|
|
16358
16383
|
});
|
|
16359
16384
|
|
|
16360
16385
|
// ../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js
|
|
16361
16386
|
var init_mapped_arrow_table = __esm({
|
|
16362
16387
|
"../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js"() {
|
|
16388
|
+
init_indexed_arrow_helpers();
|
|
16389
|
+
init_indexed_arrow_table();
|
|
16363
16390
|
}
|
|
16364
16391
|
});
|
|
16365
16392
|
|
|
16366
16393
|
// ../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js
|
|
16367
16394
|
var init_rename_arrow_columns = __esm({
|
|
16368
16395
|
"../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js"() {
|
|
16396
|
+
init_arrow_schema_utils();
|
|
16369
16397
|
}
|
|
16370
16398
|
});
|
|
16371
16399
|
|
|
@@ -16419,15 +16447,23 @@ return true;`);
|
|
|
16419
16447
|
}
|
|
16420
16448
|
});
|
|
16421
16449
|
|
|
16450
|
+
// ../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js
|
|
16451
|
+
var init_arrow_column_utils = __esm({
|
|
16452
|
+
"../../node_modules/@math.gl/arrow/dist/arrow/arrow-column-utils.js"() {
|
|
16453
|
+
}
|
|
16454
|
+
});
|
|
16455
|
+
|
|
16422
16456
|
// ../../node_modules/@math.gl/arrow/dist/arrow/index.js
|
|
16423
16457
|
var init_arrow = __esm({
|
|
16424
16458
|
"../../node_modules/@math.gl/arrow/dist/arrow/index.js"() {
|
|
16425
16459
|
init_indexed_arrow_table();
|
|
16426
16460
|
init_indexed_arrow_vector();
|
|
16427
16461
|
init_mapped_arrow_table();
|
|
16462
|
+
init_arrow_schema_utils();
|
|
16428
16463
|
init_rename_arrow_columns();
|
|
16429
16464
|
init_split_arrow_buffers();
|
|
16430
16465
|
init_arrow_table_transport();
|
|
16466
|
+
init_arrow_column_utils();
|
|
16431
16467
|
}
|
|
16432
16468
|
});
|
|
16433
16469
|
|
|
@@ -16474,6 +16510,734 @@ return true;`);
|
|
|
16474
16510
|
}
|
|
16475
16511
|
});
|
|
16476
16512
|
|
|
16513
|
+
// ../../node_modules/probe.gl/dist/env/lib/globals.js
|
|
16514
|
+
var window_, document_, process_, console_, navigator_;
|
|
16515
|
+
var init_globals = __esm({
|
|
16516
|
+
"../../node_modules/probe.gl/dist/env/lib/globals.js"() {
|
|
16517
|
+
window_ = globalThis;
|
|
16518
|
+
document_ = globalThis.document || {};
|
|
16519
|
+
process_ = globalThis.process || {};
|
|
16520
|
+
console_ = globalThis.console;
|
|
16521
|
+
navigator_ = globalThis.navigator || {};
|
|
16522
|
+
}
|
|
16523
|
+
});
|
|
16524
|
+
|
|
16525
|
+
// ../../node_modules/probe.gl/dist/env/lib/is-electron.js
|
|
16526
|
+
function isElectron(mockUserAgent) {
|
|
16527
|
+
if (typeof window !== "undefined" && window.process?.type === "renderer") {
|
|
16528
|
+
return true;
|
|
16529
|
+
}
|
|
16530
|
+
if (typeof process !== "undefined" && Boolean(process.versions?.["electron"])) {
|
|
16531
|
+
return true;
|
|
16532
|
+
}
|
|
16533
|
+
const realUserAgent = typeof navigator !== "undefined" && navigator.userAgent;
|
|
16534
|
+
const userAgent = mockUserAgent || realUserAgent;
|
|
16535
|
+
return Boolean(userAgent && userAgent.indexOf("Electron") >= 0);
|
|
16536
|
+
}
|
|
16537
|
+
var init_is_electron = __esm({
|
|
16538
|
+
"../../node_modules/probe.gl/dist/env/lib/is-electron.js"() {
|
|
16539
|
+
}
|
|
16540
|
+
});
|
|
16541
|
+
|
|
16542
|
+
// ../../node_modules/probe.gl/dist/env/lib/is-browser.js
|
|
16543
|
+
function isBrowser() {
|
|
16544
|
+
const isNode = (
|
|
16545
|
+
// @ts-expect-error
|
|
16546
|
+
typeof process === "object" && String(process) === "[object process]" && !process?.browser
|
|
16547
|
+
);
|
|
16548
|
+
return !isNode || isElectron();
|
|
16549
|
+
}
|
|
16550
|
+
var init_is_browser = __esm({
|
|
16551
|
+
"../../node_modules/probe.gl/dist/env/lib/is-browser.js"() {
|
|
16552
|
+
init_is_electron();
|
|
16553
|
+
}
|
|
16554
|
+
});
|
|
16555
|
+
|
|
16556
|
+
// ../../node_modules/probe.gl/dist/env/lib/get-browser.js
|
|
16557
|
+
var init_get_browser = __esm({
|
|
16558
|
+
"../../node_modules/probe.gl/dist/env/lib/get-browser.js"() {
|
|
16559
|
+
init_is_browser();
|
|
16560
|
+
init_is_electron();
|
|
16561
|
+
init_globals();
|
|
16562
|
+
}
|
|
16563
|
+
});
|
|
16564
|
+
|
|
16565
|
+
// ../../node_modules/probe.gl/dist/env/utils/assert.js
|
|
16566
|
+
var init_assert = __esm({
|
|
16567
|
+
"../../node_modules/probe.gl/dist/env/utils/assert.js"() {
|
|
16568
|
+
}
|
|
16569
|
+
});
|
|
16570
|
+
|
|
16571
|
+
// ../../node_modules/probe.gl/dist/env/index.js
|
|
16572
|
+
var VERSION2;
|
|
16573
|
+
var init_env = __esm({
|
|
16574
|
+
"../../node_modules/probe.gl/dist/env/index.js"() {
|
|
16575
|
+
init_globals();
|
|
16576
|
+
init_is_browser();
|
|
16577
|
+
init_get_browser();
|
|
16578
|
+
init_is_electron();
|
|
16579
|
+
init_assert();
|
|
16580
|
+
VERSION2 = true ? "5.0.0" : "untranspiled source";
|
|
16581
|
+
}
|
|
16582
|
+
});
|
|
16583
|
+
|
|
16584
|
+
// ../../node_modules/probe.gl/dist/log/utils/assert.js
|
|
16585
|
+
function assert2(condition, message) {
|
|
16586
|
+
if (!condition) {
|
|
16587
|
+
throw new Error(message || "Assertion failed");
|
|
16588
|
+
}
|
|
16589
|
+
}
|
|
16590
|
+
var init_assert2 = __esm({
|
|
16591
|
+
"../../node_modules/probe.gl/dist/log/utils/assert.js"() {
|
|
16592
|
+
}
|
|
16593
|
+
});
|
|
16594
|
+
|
|
16595
|
+
// ../../node_modules/probe.gl/dist/log/loggers/log-utils.js
|
|
16596
|
+
function normalizeLogLevel(logLevel) {
|
|
16597
|
+
if (!logLevel) {
|
|
16598
|
+
return 0;
|
|
16599
|
+
}
|
|
16600
|
+
let resolvedLevel;
|
|
16601
|
+
switch (typeof logLevel) {
|
|
16602
|
+
case "number":
|
|
16603
|
+
resolvedLevel = logLevel;
|
|
16604
|
+
break;
|
|
16605
|
+
case "object":
|
|
16606
|
+
resolvedLevel = logLevel.logLevel || logLevel.priority || 0;
|
|
16607
|
+
break;
|
|
16608
|
+
default:
|
|
16609
|
+
return 0;
|
|
16610
|
+
}
|
|
16611
|
+
assert2(Number.isFinite(resolvedLevel) && resolvedLevel >= 0);
|
|
16612
|
+
return resolvedLevel;
|
|
16613
|
+
}
|
|
16614
|
+
function normalizeArguments(opts) {
|
|
16615
|
+
const { logLevel, message } = opts;
|
|
16616
|
+
opts.logLevel = normalizeLogLevel(logLevel);
|
|
16617
|
+
const args = opts.args ? Array.from(opts.args) : [];
|
|
16618
|
+
while (args.length && args.shift() !== message) {
|
|
16619
|
+
}
|
|
16620
|
+
switch (typeof logLevel) {
|
|
16621
|
+
case "string":
|
|
16622
|
+
case "function":
|
|
16623
|
+
if (message !== void 0) {
|
|
16624
|
+
args.unshift(message);
|
|
16625
|
+
}
|
|
16626
|
+
opts.message = logLevel;
|
|
16627
|
+
break;
|
|
16628
|
+
case "object":
|
|
16629
|
+
Object.assign(opts, logLevel);
|
|
16630
|
+
break;
|
|
16631
|
+
default:
|
|
16632
|
+
}
|
|
16633
|
+
if (typeof opts.message === "function") {
|
|
16634
|
+
opts.message = opts.message();
|
|
16635
|
+
}
|
|
16636
|
+
const messageType = typeof opts.message;
|
|
16637
|
+
assert2(messageType === "string" || messageType === "object");
|
|
16638
|
+
return Object.assign(opts, { args }, opts.opts);
|
|
16639
|
+
}
|
|
16640
|
+
var init_log_utils = __esm({
|
|
16641
|
+
"../../node_modules/probe.gl/dist/log/loggers/log-utils.js"() {
|
|
16642
|
+
init_assert2();
|
|
16643
|
+
}
|
|
16644
|
+
});
|
|
16645
|
+
|
|
16646
|
+
// ../../node_modules/probe.gl/dist/log/loggers/base-log.js
|
|
16647
|
+
var noop, BaseLog;
|
|
16648
|
+
var init_base_log = __esm({
|
|
16649
|
+
"../../node_modules/probe.gl/dist/log/loggers/base-log.js"() {
|
|
16650
|
+
init_log_utils();
|
|
16651
|
+
noop = () => {
|
|
16652
|
+
};
|
|
16653
|
+
BaseLog = class {
|
|
16654
|
+
constructor({ level = 0 } = {}) {
|
|
16655
|
+
this.userData = {};
|
|
16656
|
+
this._onceCache = /* @__PURE__ */ new Set();
|
|
16657
|
+
this._level = level;
|
|
16658
|
+
}
|
|
16659
|
+
set level(newLevel) {
|
|
16660
|
+
this.setLevel(newLevel);
|
|
16661
|
+
}
|
|
16662
|
+
get level() {
|
|
16663
|
+
return this.getLevel();
|
|
16664
|
+
}
|
|
16665
|
+
setLevel(level) {
|
|
16666
|
+
this._level = level;
|
|
16667
|
+
return this;
|
|
16668
|
+
}
|
|
16669
|
+
getLevel() {
|
|
16670
|
+
return this._level;
|
|
16671
|
+
}
|
|
16672
|
+
// Unconditional logging
|
|
16673
|
+
warn(message, ...args) {
|
|
16674
|
+
return this._log("warn", 0, message, args, { once: true });
|
|
16675
|
+
}
|
|
16676
|
+
error(message, ...args) {
|
|
16677
|
+
return this._log("error", 0, message, args);
|
|
16678
|
+
}
|
|
16679
|
+
// Conditional logging
|
|
16680
|
+
log(logLevel, message, ...args) {
|
|
16681
|
+
return this._log("log", logLevel, message, args);
|
|
16682
|
+
}
|
|
16683
|
+
info(logLevel, message, ...args) {
|
|
16684
|
+
return this._log("info", logLevel, message, args);
|
|
16685
|
+
}
|
|
16686
|
+
once(logLevel, message, ...args) {
|
|
16687
|
+
return this._log("once", logLevel, message, args, { once: true });
|
|
16688
|
+
}
|
|
16689
|
+
_log(type, logLevel, message, args, options = {}) {
|
|
16690
|
+
const normalized = normalizeArguments({
|
|
16691
|
+
logLevel,
|
|
16692
|
+
message,
|
|
16693
|
+
args: this._buildArgs(logLevel, message, args),
|
|
16694
|
+
opts: options
|
|
16695
|
+
});
|
|
16696
|
+
return this._createLogFunction(type, normalized, options);
|
|
16697
|
+
}
|
|
16698
|
+
_buildArgs(logLevel, message, args) {
|
|
16699
|
+
return [logLevel, message, ...args];
|
|
16700
|
+
}
|
|
16701
|
+
_createLogFunction(type, normalized, options) {
|
|
16702
|
+
if (!this._shouldLog(normalized.logLevel)) {
|
|
16703
|
+
return noop;
|
|
16704
|
+
}
|
|
16705
|
+
const tag = this._getOnceTag(options.tag ?? normalized.tag ?? normalized.message);
|
|
16706
|
+
if ((options.once || normalized.once) && tag !== void 0) {
|
|
16707
|
+
if (this._onceCache.has(tag)) {
|
|
16708
|
+
return noop;
|
|
16709
|
+
}
|
|
16710
|
+
this._onceCache.add(tag);
|
|
16711
|
+
}
|
|
16712
|
+
return this._emit(type, normalized);
|
|
16713
|
+
}
|
|
16714
|
+
_shouldLog(logLevel) {
|
|
16715
|
+
return this.getLevel() >= normalizeLogLevel(logLevel);
|
|
16716
|
+
}
|
|
16717
|
+
_getOnceTag(tag) {
|
|
16718
|
+
if (tag === void 0) {
|
|
16719
|
+
return void 0;
|
|
16720
|
+
}
|
|
16721
|
+
try {
|
|
16722
|
+
return typeof tag === "string" ? tag : String(tag);
|
|
16723
|
+
} catch {
|
|
16724
|
+
return void 0;
|
|
16725
|
+
}
|
|
16726
|
+
}
|
|
16727
|
+
};
|
|
16728
|
+
}
|
|
16729
|
+
});
|
|
16730
|
+
|
|
16731
|
+
// ../../node_modules/probe.gl/dist/log/utils/local-storage.js
|
|
16732
|
+
function getStorage(type) {
|
|
16733
|
+
try {
|
|
16734
|
+
const storage = window[type];
|
|
16735
|
+
const x = "__storage_test__";
|
|
16736
|
+
storage.setItem(x, x);
|
|
16737
|
+
storage.removeItem(x);
|
|
16738
|
+
return storage;
|
|
16739
|
+
} catch (e) {
|
|
16740
|
+
return null;
|
|
16741
|
+
}
|
|
16742
|
+
}
|
|
16743
|
+
var LocalStorage;
|
|
16744
|
+
var init_local_storage = __esm({
|
|
16745
|
+
"../../node_modules/probe.gl/dist/log/utils/local-storage.js"() {
|
|
16746
|
+
LocalStorage = class {
|
|
16747
|
+
constructor(id, defaultConfig, type = "sessionStorage") {
|
|
16748
|
+
this.storage = getStorage(type);
|
|
16749
|
+
this.id = id;
|
|
16750
|
+
this.config = defaultConfig;
|
|
16751
|
+
this._loadConfiguration();
|
|
16752
|
+
}
|
|
16753
|
+
getConfiguration() {
|
|
16754
|
+
return this.config;
|
|
16755
|
+
}
|
|
16756
|
+
setConfiguration(configuration) {
|
|
16757
|
+
Object.assign(this.config, configuration);
|
|
16758
|
+
if (this.storage) {
|
|
16759
|
+
const serialized = JSON.stringify(this.config);
|
|
16760
|
+
this.storage.setItem(this.id, serialized);
|
|
16761
|
+
}
|
|
16762
|
+
}
|
|
16763
|
+
// Get config from persistent store, if available
|
|
16764
|
+
_loadConfiguration() {
|
|
16765
|
+
let configuration = {};
|
|
16766
|
+
if (this.storage) {
|
|
16767
|
+
const serializedConfiguration = this.storage.getItem(this.id);
|
|
16768
|
+
configuration = serializedConfiguration ? JSON.parse(serializedConfiguration) : {};
|
|
16769
|
+
}
|
|
16770
|
+
Object.assign(this.config, configuration);
|
|
16771
|
+
return this;
|
|
16772
|
+
}
|
|
16773
|
+
};
|
|
16774
|
+
}
|
|
16775
|
+
});
|
|
16776
|
+
|
|
16777
|
+
// ../../node_modules/probe.gl/dist/log/utils/formatters.js
|
|
16778
|
+
function formatTime(ms) {
|
|
16779
|
+
let formatted;
|
|
16780
|
+
if (ms < 10) {
|
|
16781
|
+
formatted = `${ms.toFixed(2)}ms`;
|
|
16782
|
+
} else if (ms < 100) {
|
|
16783
|
+
formatted = `${ms.toFixed(1)}ms`;
|
|
16784
|
+
} else if (ms < 1e3) {
|
|
16785
|
+
formatted = `${ms.toFixed(0)}ms`;
|
|
16786
|
+
} else {
|
|
16787
|
+
formatted = `${(ms / 1e3).toFixed(2)}s`;
|
|
16788
|
+
}
|
|
16789
|
+
return formatted;
|
|
16790
|
+
}
|
|
16791
|
+
function leftPad(string, length = 8) {
|
|
16792
|
+
const padLength = Math.max(length - string.length, 0);
|
|
16793
|
+
return `${" ".repeat(padLength)}${string}`;
|
|
16794
|
+
}
|
|
16795
|
+
var init_formatters = __esm({
|
|
16796
|
+
"../../node_modules/probe.gl/dist/log/utils/formatters.js"() {
|
|
16797
|
+
}
|
|
16798
|
+
});
|
|
16799
|
+
|
|
16800
|
+
// ../../node_modules/probe.gl/dist/log/utils/color.js
|
|
16801
|
+
function getColor(color) {
|
|
16802
|
+
if (typeof color !== "string") {
|
|
16803
|
+
return color;
|
|
16804
|
+
}
|
|
16805
|
+
color = color.toUpperCase();
|
|
16806
|
+
return COLOR[color] || COLOR.WHITE;
|
|
16807
|
+
}
|
|
16808
|
+
function addColor(string, color, background) {
|
|
16809
|
+
if (!isBrowser && typeof string === "string") {
|
|
16810
|
+
if (color) {
|
|
16811
|
+
const colorCode = getColor(color);
|
|
16812
|
+
string = `\x1B[${colorCode}m${string}\x1B[39m`;
|
|
16813
|
+
}
|
|
16814
|
+
if (background) {
|
|
16815
|
+
const colorCode = getColor(background);
|
|
16816
|
+
string = `\x1B[${colorCode + BACKGROUND_INCREMENT}m${string}\x1B[49m`;
|
|
16817
|
+
}
|
|
16818
|
+
}
|
|
16819
|
+
return string;
|
|
16820
|
+
}
|
|
16821
|
+
var COLOR, BACKGROUND_INCREMENT;
|
|
16822
|
+
var init_color = __esm({
|
|
16823
|
+
"../../node_modules/probe.gl/dist/log/utils/color.js"() {
|
|
16824
|
+
init_env();
|
|
16825
|
+
(function(COLOR2) {
|
|
16826
|
+
COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
|
|
16827
|
+
COLOR2[COLOR2["RED"] = 31] = "RED";
|
|
16828
|
+
COLOR2[COLOR2["GREEN"] = 32] = "GREEN";
|
|
16829
|
+
COLOR2[COLOR2["YELLOW"] = 33] = "YELLOW";
|
|
16830
|
+
COLOR2[COLOR2["BLUE"] = 34] = "BLUE";
|
|
16831
|
+
COLOR2[COLOR2["MAGENTA"] = 35] = "MAGENTA";
|
|
16832
|
+
COLOR2[COLOR2["CYAN"] = 36] = "CYAN";
|
|
16833
|
+
COLOR2[COLOR2["WHITE"] = 37] = "WHITE";
|
|
16834
|
+
COLOR2[COLOR2["BRIGHT_BLACK"] = 90] = "BRIGHT_BLACK";
|
|
16835
|
+
COLOR2[COLOR2["BRIGHT_RED"] = 91] = "BRIGHT_RED";
|
|
16836
|
+
COLOR2[COLOR2["BRIGHT_GREEN"] = 92] = "BRIGHT_GREEN";
|
|
16837
|
+
COLOR2[COLOR2["BRIGHT_YELLOW"] = 93] = "BRIGHT_YELLOW";
|
|
16838
|
+
COLOR2[COLOR2["BRIGHT_BLUE"] = 94] = "BRIGHT_BLUE";
|
|
16839
|
+
COLOR2[COLOR2["BRIGHT_MAGENTA"] = 95] = "BRIGHT_MAGENTA";
|
|
16840
|
+
COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
|
|
16841
|
+
COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
|
|
16842
|
+
})(COLOR || (COLOR = {}));
|
|
16843
|
+
BACKGROUND_INCREMENT = 10;
|
|
16844
|
+
}
|
|
16845
|
+
});
|
|
16846
|
+
|
|
16847
|
+
// ../../node_modules/probe.gl/dist/log/utils/autobind.js
|
|
16848
|
+
function autobind(obj, predefined = ["constructor"]) {
|
|
16849
|
+
const proto = Object.getPrototypeOf(obj);
|
|
16850
|
+
const propNames = Object.getOwnPropertyNames(proto);
|
|
16851
|
+
const object = obj;
|
|
16852
|
+
for (const key of propNames) {
|
|
16853
|
+
const value = object[key];
|
|
16854
|
+
if (typeof value === "function") {
|
|
16855
|
+
if (!predefined.find((name) => key === name)) {
|
|
16856
|
+
object[key] = value.bind(obj);
|
|
16857
|
+
}
|
|
16858
|
+
}
|
|
16859
|
+
}
|
|
16860
|
+
}
|
|
16861
|
+
var init_autobind = __esm({
|
|
16862
|
+
"../../node_modules/probe.gl/dist/log/utils/autobind.js"() {
|
|
16863
|
+
}
|
|
16864
|
+
});
|
|
16865
|
+
|
|
16866
|
+
// ../../node_modules/probe.gl/dist/log/probe.js
|
|
16867
|
+
var Probe, probe;
|
|
16868
|
+
var init_probe = __esm({
|
|
16869
|
+
"../../node_modules/probe.gl/dist/log/probe.js"() {
|
|
16870
|
+
init_env();
|
|
16871
|
+
Probe = class {
|
|
16872
|
+
getHighResolutionTimer() {
|
|
16873
|
+
let timestamp;
|
|
16874
|
+
if (isBrowser() && window_.performance) {
|
|
16875
|
+
timestamp = window_?.performance?.now?.();
|
|
16876
|
+
} else if ("hrtime" in process_) {
|
|
16877
|
+
const timeParts = process_?.hrtime?.();
|
|
16878
|
+
timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
|
|
16879
|
+
} else {
|
|
16880
|
+
timestamp = Date.now();
|
|
16881
|
+
}
|
|
16882
|
+
return timestamp;
|
|
16883
|
+
}
|
|
16884
|
+
getMemoryUsageMB() {
|
|
16885
|
+
const performance = window_?.performance;
|
|
16886
|
+
const usedJSHeapSize = performance?.memory?.usedJSHeapSize;
|
|
16887
|
+
if (usedJSHeapSize === void 0 || usedJSHeapSize === null) {
|
|
16888
|
+
return null;
|
|
16889
|
+
}
|
|
16890
|
+
return Math.trunc(usedJSHeapSize / 1024 / 1024);
|
|
16891
|
+
}
|
|
16892
|
+
};
|
|
16893
|
+
probe = new Probe();
|
|
16894
|
+
globalThis.Probe = Probe;
|
|
16895
|
+
globalThis.probe = probe;
|
|
16896
|
+
}
|
|
16897
|
+
});
|
|
16898
|
+
|
|
16899
|
+
// ../../node_modules/probe.gl/dist/log/loggers/probe-log.js
|
|
16900
|
+
function decorateMessage(id, message, opts) {
|
|
16901
|
+
if (typeof message === "string") {
|
|
16902
|
+
const time = opts.time ? leftPad(formatTime(opts.total)) : "";
|
|
16903
|
+
message = opts.time ? `${id}: ${time} ${message}` : `${id}: ${message}`;
|
|
16904
|
+
message = addColor(message, opts.color, opts.background);
|
|
16905
|
+
}
|
|
16906
|
+
return message;
|
|
16907
|
+
}
|
|
16908
|
+
function getTableHeader(table) {
|
|
16909
|
+
for (const key in table) {
|
|
16910
|
+
for (const title in table[key]) {
|
|
16911
|
+
return title || "untitled";
|
|
16912
|
+
}
|
|
16913
|
+
}
|
|
16914
|
+
return "empty";
|
|
16915
|
+
}
|
|
16916
|
+
var originalConsole, DEFAULT_LOG_CONFIGURATION, ProbeLog;
|
|
16917
|
+
var init_probe_log = __esm({
|
|
16918
|
+
"../../node_modules/probe.gl/dist/log/loggers/probe-log.js"() {
|
|
16919
|
+
init_env();
|
|
16920
|
+
init_base_log();
|
|
16921
|
+
init_local_storage();
|
|
16922
|
+
init_formatters();
|
|
16923
|
+
init_color();
|
|
16924
|
+
init_autobind();
|
|
16925
|
+
init_assert2();
|
|
16926
|
+
init_probe();
|
|
16927
|
+
init_log_utils();
|
|
16928
|
+
init_log_utils();
|
|
16929
|
+
originalConsole = {
|
|
16930
|
+
debug: isBrowser() ? console.debug || console.log : console.log,
|
|
16931
|
+
log: console.log,
|
|
16932
|
+
info: console.info,
|
|
16933
|
+
warn: console.warn,
|
|
16934
|
+
error: console.error
|
|
16935
|
+
};
|
|
16936
|
+
DEFAULT_LOG_CONFIGURATION = {
|
|
16937
|
+
enabled: true,
|
|
16938
|
+
level: 0
|
|
16939
|
+
};
|
|
16940
|
+
ProbeLog = class extends BaseLog {
|
|
16941
|
+
constructor({ id } = { id: "" }) {
|
|
16942
|
+
super({ level: 0 });
|
|
16943
|
+
this.VERSION = VERSION2;
|
|
16944
|
+
this._startTs = probe.getHighResolutionTimer();
|
|
16945
|
+
this._deltaTs = probe.getHighResolutionTimer();
|
|
16946
|
+
this.userData = {};
|
|
16947
|
+
this.LOG_THROTTLE_TIMEOUT = 0;
|
|
16948
|
+
this.id = id;
|
|
16949
|
+
this.userData = {};
|
|
16950
|
+
this._storage = new LocalStorage(`__probe-${this.id}__`, { [this.id]: DEFAULT_LOG_CONFIGURATION });
|
|
16951
|
+
this.timeStamp(`${this.id} started`);
|
|
16952
|
+
autobind(this);
|
|
16953
|
+
Object.seal(this);
|
|
16954
|
+
}
|
|
16955
|
+
isEnabled() {
|
|
16956
|
+
return this._getConfiguration().enabled;
|
|
16957
|
+
}
|
|
16958
|
+
getLevel() {
|
|
16959
|
+
return this._getConfiguration().level;
|
|
16960
|
+
}
|
|
16961
|
+
/** @return milliseconds, with fractions */
|
|
16962
|
+
getTotal() {
|
|
16963
|
+
return Number((probe.getHighResolutionTimer() - this._startTs).toPrecision(10));
|
|
16964
|
+
}
|
|
16965
|
+
/** @return milliseconds, with fractions */
|
|
16966
|
+
getDelta() {
|
|
16967
|
+
return Number((probe.getHighResolutionTimer() - this._deltaTs).toPrecision(10));
|
|
16968
|
+
}
|
|
16969
|
+
/** @deprecated use logLevel */
|
|
16970
|
+
set priority(newPriority) {
|
|
16971
|
+
this.level = newPriority;
|
|
16972
|
+
}
|
|
16973
|
+
/** @deprecated use logLevel */
|
|
16974
|
+
get priority() {
|
|
16975
|
+
return this.level;
|
|
16976
|
+
}
|
|
16977
|
+
/** @deprecated use logLevel */
|
|
16978
|
+
getPriority() {
|
|
16979
|
+
return this.level;
|
|
16980
|
+
}
|
|
16981
|
+
// Configure
|
|
16982
|
+
enable(enabled = true) {
|
|
16983
|
+
this._updateConfiguration({ enabled });
|
|
16984
|
+
return this;
|
|
16985
|
+
}
|
|
16986
|
+
setLevel(level) {
|
|
16987
|
+
this._updateConfiguration({ level });
|
|
16988
|
+
return this;
|
|
16989
|
+
}
|
|
16990
|
+
/** return the current status of the setting */
|
|
16991
|
+
get(setting) {
|
|
16992
|
+
return this._getConfiguration()[setting];
|
|
16993
|
+
}
|
|
16994
|
+
// update the status of the setting
|
|
16995
|
+
set(setting, value) {
|
|
16996
|
+
this._updateConfiguration({ [setting]: value });
|
|
16997
|
+
}
|
|
16998
|
+
/** Logs the current settings as a table */
|
|
16999
|
+
settings() {
|
|
17000
|
+
if (console.table) {
|
|
17001
|
+
console.table(this._storage.config);
|
|
17002
|
+
} else {
|
|
17003
|
+
console.log(this._storage.config);
|
|
17004
|
+
}
|
|
17005
|
+
}
|
|
17006
|
+
// Unconditional logging
|
|
17007
|
+
assert(condition, message) {
|
|
17008
|
+
if (!condition) {
|
|
17009
|
+
throw new Error(message || "Assertion failed");
|
|
17010
|
+
}
|
|
17011
|
+
}
|
|
17012
|
+
warn(message, ...args) {
|
|
17013
|
+
return this._log("warn", 0, message, args, {
|
|
17014
|
+
method: originalConsole.warn,
|
|
17015
|
+
once: true
|
|
17016
|
+
});
|
|
17017
|
+
}
|
|
17018
|
+
error(message, ...args) {
|
|
17019
|
+
return this._log("error", 0, message, args, {
|
|
17020
|
+
method: originalConsole.error
|
|
17021
|
+
});
|
|
17022
|
+
}
|
|
17023
|
+
/** Print a deprecation warning */
|
|
17024
|
+
deprecated(oldUsage, newUsage) {
|
|
17025
|
+
return this.warn(`\`${oldUsage}\` is deprecated and will be removed in a later version. Use \`${newUsage}\` instead`);
|
|
17026
|
+
}
|
|
17027
|
+
/** Print a removal warning */
|
|
17028
|
+
removed(oldUsage, newUsage) {
|
|
17029
|
+
return this.error(`\`${oldUsage}\` has been removed. Use \`${newUsage}\` instead`);
|
|
17030
|
+
}
|
|
17031
|
+
probe(logLevel, message, ...args) {
|
|
17032
|
+
const memoryUsageMB = probe.getMemoryUsageMB();
|
|
17033
|
+
if (memoryUsageMB !== null) {
|
|
17034
|
+
const memoryUsagePrefix = `${memoryUsageMB}MB `;
|
|
17035
|
+
if (typeof message === "function") {
|
|
17036
|
+
message = () => `${memoryUsagePrefix}${message()}`;
|
|
17037
|
+
} else if (typeof message === "string") {
|
|
17038
|
+
message = `${memoryUsagePrefix}${message}`;
|
|
17039
|
+
}
|
|
17040
|
+
}
|
|
17041
|
+
return this._log("log", logLevel, message, args, {
|
|
17042
|
+
method: originalConsole.log,
|
|
17043
|
+
time: true,
|
|
17044
|
+
once: true
|
|
17045
|
+
});
|
|
17046
|
+
}
|
|
17047
|
+
log(logLevel, message, ...args) {
|
|
17048
|
+
return this._log("log", logLevel, message, args, {
|
|
17049
|
+
method: originalConsole.debug
|
|
17050
|
+
});
|
|
17051
|
+
}
|
|
17052
|
+
info(logLevel, message, ...args) {
|
|
17053
|
+
return this._log("info", logLevel, message, args, { method: console.info });
|
|
17054
|
+
}
|
|
17055
|
+
once(logLevel, message, ...args) {
|
|
17056
|
+
return this._log("once", logLevel, message, args, {
|
|
17057
|
+
method: originalConsole.debug || originalConsole.info,
|
|
17058
|
+
once: true
|
|
17059
|
+
});
|
|
17060
|
+
}
|
|
17061
|
+
/** Logs an object as a table */
|
|
17062
|
+
table(logLevel, table, columns) {
|
|
17063
|
+
if (table) {
|
|
17064
|
+
return this._log("table", logLevel, table, columns && [columns] || [], {
|
|
17065
|
+
method: console.table || noop,
|
|
17066
|
+
tag: getTableHeader(table)
|
|
17067
|
+
});
|
|
17068
|
+
}
|
|
17069
|
+
return noop;
|
|
17070
|
+
}
|
|
17071
|
+
time(logLevel, message) {
|
|
17072
|
+
return this._log("time", logLevel, message, [], {
|
|
17073
|
+
method: console.time ? console.time : console.info
|
|
17074
|
+
});
|
|
17075
|
+
}
|
|
17076
|
+
timeEnd(logLevel, message) {
|
|
17077
|
+
return this._log("time", logLevel, message, [], {
|
|
17078
|
+
method: console.timeEnd ? console.timeEnd : console.info
|
|
17079
|
+
});
|
|
17080
|
+
}
|
|
17081
|
+
timeStamp(logLevel, message) {
|
|
17082
|
+
return this._log("time", logLevel, message, [], {
|
|
17083
|
+
method: console.timeStamp || noop
|
|
17084
|
+
});
|
|
17085
|
+
}
|
|
17086
|
+
group(logLevel, message, opts = { collapsed: false }) {
|
|
17087
|
+
const method = (opts.collapsed ? console.groupCollapsed : console.group) || console.info;
|
|
17088
|
+
return this._log("group", logLevel, message, [], { method });
|
|
17089
|
+
}
|
|
17090
|
+
groupCollapsed(logLevel, message, opts = {}) {
|
|
17091
|
+
return this.group(logLevel, message, Object.assign({}, opts, { collapsed: true }));
|
|
17092
|
+
}
|
|
17093
|
+
groupEnd(logLevel) {
|
|
17094
|
+
return this._log("groupEnd", logLevel, "", [], {
|
|
17095
|
+
method: console.groupEnd || noop
|
|
17096
|
+
});
|
|
17097
|
+
}
|
|
17098
|
+
// EXPERIMENTAL
|
|
17099
|
+
withGroup(logLevel, message, func) {
|
|
17100
|
+
this.group(logLevel, message)();
|
|
17101
|
+
try {
|
|
17102
|
+
func();
|
|
17103
|
+
} finally {
|
|
17104
|
+
this.groupEnd(logLevel)();
|
|
17105
|
+
}
|
|
17106
|
+
}
|
|
17107
|
+
trace() {
|
|
17108
|
+
if (console.trace) {
|
|
17109
|
+
console.trace();
|
|
17110
|
+
}
|
|
17111
|
+
}
|
|
17112
|
+
_shouldLog(logLevel) {
|
|
17113
|
+
return this.isEnabled() && super._shouldLog(logLevel);
|
|
17114
|
+
}
|
|
17115
|
+
_emit(_type, normalized) {
|
|
17116
|
+
const method = normalized.method;
|
|
17117
|
+
assert2(method);
|
|
17118
|
+
normalized.total = this.getTotal();
|
|
17119
|
+
normalized.delta = this.getDelta();
|
|
17120
|
+
this._deltaTs = probe.getHighResolutionTimer();
|
|
17121
|
+
const message = decorateMessage(this.id, normalized.message, normalized);
|
|
17122
|
+
return method.bind(console, message, ...normalized.args);
|
|
17123
|
+
}
|
|
17124
|
+
_getConfiguration() {
|
|
17125
|
+
if (!this._storage.config[this.id]) {
|
|
17126
|
+
this._updateConfiguration(DEFAULT_LOG_CONFIGURATION);
|
|
17127
|
+
}
|
|
17128
|
+
return this._storage.config[this.id];
|
|
17129
|
+
}
|
|
17130
|
+
_updateConfiguration(configuration) {
|
|
17131
|
+
const currentConfiguration = this._storage.config[this.id] || {
|
|
17132
|
+
...DEFAULT_LOG_CONFIGURATION
|
|
17133
|
+
};
|
|
17134
|
+
this._storage.setConfiguration({
|
|
17135
|
+
[this.id]: { ...currentConfiguration, ...configuration }
|
|
17136
|
+
});
|
|
17137
|
+
}
|
|
17138
|
+
};
|
|
17139
|
+
ProbeLog.VERSION = VERSION2;
|
|
17140
|
+
}
|
|
17141
|
+
});
|
|
17142
|
+
|
|
17143
|
+
// ../../node_modules/probe.gl/dist/log/loggers/console-log.js
|
|
17144
|
+
var init_console_log = __esm({
|
|
17145
|
+
"../../node_modules/probe.gl/dist/log/loggers/console-log.js"() {
|
|
17146
|
+
init_base_log();
|
|
17147
|
+
}
|
|
17148
|
+
});
|
|
17149
|
+
|
|
17150
|
+
// ../../node_modules/probe.gl/dist/log/loggers/memory-log.js
|
|
17151
|
+
var init_memory_log = __esm({
|
|
17152
|
+
"../../node_modules/probe.gl/dist/log/loggers/memory-log.js"() {
|
|
17153
|
+
init_base_log();
|
|
17154
|
+
}
|
|
17155
|
+
});
|
|
17156
|
+
|
|
17157
|
+
// ../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js
|
|
17158
|
+
var init_hi_res_timestamp = __esm({
|
|
17159
|
+
"../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js"() {
|
|
17160
|
+
init_probe();
|
|
17161
|
+
}
|
|
17162
|
+
});
|
|
17163
|
+
|
|
17164
|
+
// ../../node_modules/probe.gl/dist/log/init.js
|
|
17165
|
+
var init_init = __esm({
|
|
17166
|
+
"../../node_modules/probe.gl/dist/log/init.js"() {
|
|
17167
|
+
init_probe();
|
|
17168
|
+
if (!globalThis.probe) {
|
|
17169
|
+
globalThis.probe = probe;
|
|
17170
|
+
}
|
|
17171
|
+
}
|
|
17172
|
+
});
|
|
17173
|
+
|
|
17174
|
+
// ../../node_modules/probe.gl/dist/log/index.js
|
|
17175
|
+
var log;
|
|
17176
|
+
var init_log = __esm({
|
|
17177
|
+
"../../node_modules/probe.gl/dist/log/index.js"() {
|
|
17178
|
+
init_probe_log();
|
|
17179
|
+
init_probe();
|
|
17180
|
+
init_probe_log();
|
|
17181
|
+
init_console_log();
|
|
17182
|
+
init_base_log();
|
|
17183
|
+
init_memory_log();
|
|
17184
|
+
init_color();
|
|
17185
|
+
init_color();
|
|
17186
|
+
init_formatters();
|
|
17187
|
+
init_autobind();
|
|
17188
|
+
init_local_storage();
|
|
17189
|
+
init_hi_res_timestamp();
|
|
17190
|
+
init_init();
|
|
17191
|
+
log = new ProbeLog({ id: "@probe.gl/log" });
|
|
17192
|
+
}
|
|
17193
|
+
});
|
|
17194
|
+
|
|
17195
|
+
// ../core/src/loader-utils/lib/log-utils/log.ts
|
|
17196
|
+
function createLog() {
|
|
17197
|
+
const log3 = new ProbeLog({ id: "loaders.gl" });
|
|
17198
|
+
globalThis.loaders ||= {};
|
|
17199
|
+
globalThis.loaders.log = log3;
|
|
17200
|
+
globalThis.loaders.version = version;
|
|
17201
|
+
globalThis.probe ||= {};
|
|
17202
|
+
globalThis.probe.loaders = log3;
|
|
17203
|
+
return log3;
|
|
17204
|
+
}
|
|
17205
|
+
function ignoreMessage() {
|
|
17206
|
+
}
|
|
17207
|
+
var VERSION3, version, log2, NullLog, nullLog;
|
|
17208
|
+
var init_log2 = __esm({
|
|
17209
|
+
"../core/src/loader-utils/lib/log-utils/log.ts"() {
|
|
17210
|
+
"use strict";
|
|
17211
|
+
init_log();
|
|
17212
|
+
VERSION3 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
17213
|
+
version = VERSION3[0] >= "0" && VERSION3[0] <= "9" ? `v${VERSION3}` : "";
|
|
17214
|
+
log2 = createLog();
|
|
17215
|
+
NullLog = class {
|
|
17216
|
+
/** Discards debug messages. */
|
|
17217
|
+
log() {
|
|
17218
|
+
return ignoreMessage;
|
|
17219
|
+
}
|
|
17220
|
+
/** Discards informational messages. */
|
|
17221
|
+
info() {
|
|
17222
|
+
return ignoreMessage;
|
|
17223
|
+
}
|
|
17224
|
+
/** Discards messages marked to be emitted once. */
|
|
17225
|
+
once() {
|
|
17226
|
+
return ignoreMessage;
|
|
17227
|
+
}
|
|
17228
|
+
/** Discards warnings. */
|
|
17229
|
+
warn() {
|
|
17230
|
+
return ignoreMessage;
|
|
17231
|
+
}
|
|
17232
|
+
/** Discards errors. */
|
|
17233
|
+
error() {
|
|
17234
|
+
return ignoreMessage;
|
|
17235
|
+
}
|
|
17236
|
+
};
|
|
17237
|
+
nullLog = new NullLog();
|
|
17238
|
+
}
|
|
17239
|
+
});
|
|
17240
|
+
|
|
16477
17241
|
// ../core/src/loader-utils/lib/binary-utils/array-buffer-utils.ts
|
|
16478
17242
|
function concatenateArrayBuffers(...sources) {
|
|
16479
17243
|
return concatenateArrayBuffersFromArray(sources);
|
|
@@ -17020,14 +17784,14 @@ return true;`);
|
|
|
17020
17784
|
}
|
|
17021
17785
|
function createPointDecompressor(stream, metadata, outputMode, selection) {
|
|
17022
17786
|
const extraByteCount = getExtraByteCount(metadata);
|
|
17023
|
-
for (const
|
|
17787
|
+
for (const version2 of [
|
|
17024
17788
|
metadata.point10ItemVersion,
|
|
17025
17789
|
metadata.gpsTime11ItemVersion,
|
|
17026
17790
|
metadata.rgb12ItemVersion,
|
|
17027
17791
|
metadata.byteItemVersion
|
|
17028
17792
|
]) {
|
|
17029
|
-
if (
|
|
17030
|
-
throw new Error(`Unsupported legacy LASzip item version ${
|
|
17793
|
+
if (version2 !== void 0 && version2 !== 1 && version2 !== 2) {
|
|
17794
|
+
throw new Error(`Unsupported legacy LASzip item version ${version2}`);
|
|
17031
17795
|
}
|
|
17032
17796
|
}
|
|
17033
17797
|
switch (metadata.pointDataRecordFormat) {
|
|
@@ -21726,7 +22490,7 @@ return true;`);
|
|
|
21726
22490
|
metadata.gpsTime11ItemVersion,
|
|
21727
22491
|
metadata.rgb12ItemVersion,
|
|
21728
22492
|
metadata.byteItemVersion
|
|
21729
|
-
].some((
|
|
22493
|
+
].some((version2) => version2 !== void 0 && version2 !== 2)) {
|
|
21730
22494
|
throw new Error("TypeScript LAZ encoder only supports legacy item version 2");
|
|
21731
22495
|
}
|
|
21732
22496
|
if (!Number.isInteger(metadata.pointCount) || metadata.pointCount < 0) {
|
|
@@ -23056,6 +23820,7 @@ return true;`);
|
|
|
23056
23820
|
var init_loader_utils = __esm({
|
|
23057
23821
|
"../core/src/loader-utils/index.ts"() {
|
|
23058
23822
|
"use strict";
|
|
23823
|
+
init_log2();
|
|
23059
23824
|
init_binary_chunk_reader();
|
|
23060
23825
|
init_text_iterators();
|
|
23061
23826
|
init_async_iteration();
|
|
@@ -23113,9 +23878,9 @@ return true;`);
|
|
|
23113
23878
|
}
|
|
23114
23879
|
const view = new DataView(record.data.buffer, record.data.byteOffset, record.data.byteLength);
|
|
23115
23880
|
if (view.byteLength < 4) throw new Error("LASLoader: truncated LASzip compatibility VLR");
|
|
23116
|
-
const
|
|
23117
|
-
if (
|
|
23118
|
-
throw new Error(`LASLoader: unsupported LASzip compatibility VLR version ${
|
|
23881
|
+
const version2 = view.getUint16(2, true);
|
|
23882
|
+
if (version2 !== 3 && version2 !== 4 || view.byteLength !== (version2 === 3 ? 156 : 174)) {
|
|
23883
|
+
throw new Error(`LASLoader: unsupported LASzip compatibility VLR version ${version2} or length`);
|
|
23119
23884
|
}
|
|
23120
23885
|
const offsets = /* @__PURE__ */ new Map();
|
|
23121
23886
|
let byteOffset = 0;
|
|
@@ -23145,7 +23910,7 @@ return true;`);
|
|
|
23145
23910
|
throw new Error("LASLoader: compatibility waveform color points require NIR");
|
|
23146
23911
|
return {
|
|
23147
23912
|
pointDataRecordFormat,
|
|
23148
|
-
version:
|
|
23913
|
+
version: version2 === 3 ? "1.4" : "1.5",
|
|
23149
23914
|
scanAngleByteOffset,
|
|
23150
23915
|
returnsByteOffset,
|
|
23151
23916
|
classificationByteOffset,
|
|
@@ -24117,8 +24882,8 @@ return true;`);
|
|
|
24117
24882
|
}
|
|
24118
24883
|
function parseLASMetadata(arrayBuffer, header) {
|
|
24119
24884
|
const dataView = new DataView(arrayBuffer);
|
|
24120
|
-
const
|
|
24121
|
-
const versionParts =
|
|
24885
|
+
const version2 = header.versionAsString || "1.0";
|
|
24886
|
+
const versionParts = version2.split(".").map(Number);
|
|
24122
24887
|
const isAtLeast14 = versionParts[0] > 1 || versionParts[0] === 1 && versionParts[1] >= 4;
|
|
24123
24888
|
const vlrs = parseLASVariableLengthRecords(dataView, header);
|
|
24124
24889
|
const evlrOffset = isAtLeast14 ? readUint64(dataView, 235) : 0;
|
|
@@ -25279,10 +26044,10 @@ return true;`);
|
|
|
25279
26044
|
chunkTableBytes.byteOffset,
|
|
25280
26045
|
chunkTableBytes.byteLength
|
|
25281
26046
|
);
|
|
25282
|
-
const
|
|
26047
|
+
const version2 = dataView.getUint32(0, true);
|
|
25283
26048
|
const chunkCount = dataView.getUint32(4, true);
|
|
25284
|
-
if (
|
|
25285
|
-
throw new Error(`LASLoader: unsupported LAZ chunk table version ${
|
|
26049
|
+
if (version2 !== 0) {
|
|
26050
|
+
throw new Error(`LASLoader: unsupported LAZ chunk table version ${version2}`);
|
|
25286
26051
|
}
|
|
25287
26052
|
if (chunkCount === 0) {
|
|
25288
26053
|
if (header.pointsCount !== 0) {
|
|
@@ -26695,18 +27460,18 @@ return true;`);
|
|
|
26695
27460
|
const { PCDLoaderWithParser: PCDLoaderWithParser2 } = await Promise.resolve().then(() => (init_pcd_loader2(), pcd_loader_exports));
|
|
26696
27461
|
return PCDLoaderWithParser2;
|
|
26697
27462
|
}
|
|
26698
|
-
var
|
|
27463
|
+
var VERSION5, PCDLoader, PCDWorkerLoader;
|
|
26699
27464
|
var init_pcd_loader_types = __esm({
|
|
26700
27465
|
"src/pcd/pcd-loader-types.ts"() {
|
|
26701
27466
|
"use strict";
|
|
26702
27467
|
init_pcd_format();
|
|
26703
27468
|
init_arrow_worker_transport();
|
|
26704
|
-
|
|
27469
|
+
VERSION5 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
26705
27470
|
PCDLoader = {
|
|
26706
27471
|
...PCDFormat,
|
|
26707
27472
|
dataType: null,
|
|
26708
27473
|
batchType: null,
|
|
26709
|
-
version:
|
|
27474
|
+
version: VERSION5,
|
|
26710
27475
|
worker: true,
|
|
26711
27476
|
/** Enables the stateful input/output batch protocol on the built-in worker. */
|
|
26712
27477
|
workerInBatches: true,
|
|
@@ -28590,7 +29355,7 @@ return true;`);
|
|
|
28590
29355
|
currentElement?.properties.push(property);
|
|
28591
29356
|
break;
|
|
28592
29357
|
default:
|
|
28593
|
-
|
|
29358
|
+
log2.log(0, "unhandled", lineType, lineValues)();
|
|
28594
29359
|
}
|
|
28595
29360
|
return false;
|
|
28596
29361
|
});
|
|
@@ -28713,6 +29478,7 @@ return true;`);
|
|
|
28713
29478
|
"src/ply/lib/parse-ply-in-batches.ts"() {
|
|
28714
29479
|
"use strict";
|
|
28715
29480
|
init_loader_utils();
|
|
29481
|
+
init_loader_utils();
|
|
28716
29482
|
init_normalize_ply();
|
|
28717
29483
|
init_parse_ply();
|
|
28718
29484
|
init_parse_ply_arrow();
|
|
@@ -28850,19 +29616,19 @@ return true;`);
|
|
|
28850
29616
|
const { PLYLoaderWithParser: PLYLoaderWithParser2 } = await Promise.resolve().then(() => (init_ply_loader2(), ply_loader_exports));
|
|
28851
29617
|
return PLYLoaderWithParser2;
|
|
28852
29618
|
}
|
|
28853
|
-
var
|
|
29619
|
+
var VERSION7, PLYLoader, PLYWorkerLoader;
|
|
28854
29620
|
var init_ply_loader_types = __esm({
|
|
28855
29621
|
"src/ply/ply-loader-types.ts"() {
|
|
28856
29622
|
"use strict";
|
|
28857
29623
|
init_ply_format();
|
|
28858
29624
|
init_arrow_worker_transport();
|
|
28859
|
-
|
|
29625
|
+
VERSION7 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
28860
29626
|
PLYLoader = {
|
|
28861
29627
|
dataType: null,
|
|
28862
29628
|
batchType: null,
|
|
28863
29629
|
...PLYFormat,
|
|
28864
29630
|
// shapes: ['mesh', 'gltf', 'columnar-table'],
|
|
28865
|
-
version:
|
|
29631
|
+
version: VERSION7,
|
|
28866
29632
|
worker: true,
|
|
28867
29633
|
/** Enables the stateful input/output batch protocol on the built-in worker. */
|
|
28868
29634
|
workerInBatches: true,
|
|
@@ -28911,7 +29677,7 @@ return true;`);
|
|
|
28911
29677
|
init_loader_utils();
|
|
28912
29678
|
init_schema_utils();
|
|
28913
29679
|
init_las_format();
|
|
28914
|
-
var
|
|
29680
|
+
var VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
28915
29681
|
var LAS_HEADER_LENGTH = 227;
|
|
28916
29682
|
var LAS_1_4_HEADER_LENGTH = 375;
|
|
28917
29683
|
var LAS_1_5_HEADER_LENGTH = 393;
|
|
@@ -28937,7 +29703,7 @@ return true;`);
|
|
|
28937
29703
|
...LASFormat,
|
|
28938
29704
|
dataType: null,
|
|
28939
29705
|
batchType: null,
|
|
28940
|
-
version:
|
|
29706
|
+
version: VERSION4,
|
|
28941
29707
|
extensions: ["las", "laz"],
|
|
28942
29708
|
options: {
|
|
28943
29709
|
las: {}
|
|
@@ -29003,17 +29769,17 @@ return true;`);
|
|
|
29003
29769
|
);
|
|
29004
29770
|
}
|
|
29005
29771
|
validateExtraBytesVLR(extraByteFields);
|
|
29006
|
-
const
|
|
29007
|
-
const headerLength =
|
|
29008
|
-
validateLASVersionOptions(
|
|
29772
|
+
const version2 = options.las?.version || (pointDataRecordFormat >= 6 ? "1.4" : "1.2");
|
|
29773
|
+
const headerLength = version2 === "1.5" ? LAS_1_5_HEADER_LENGTH : version2 === "1.4" ? LAS_1_4_HEADER_LENGTH : LAS_HEADER_LENGTH;
|
|
29774
|
+
validateLASVersionOptions(version2, pointDataRecordFormat, options);
|
|
29009
29775
|
const gpsTimeRange = getGpsTimeRange(gpsTimeAttribute, vertexCount);
|
|
29010
|
-
if (
|
|
29776
|
+
if (version2 === "1.5" && options.las?.timeOffset && !gpsTimeAttribute) {
|
|
29011
29777
|
throw new Error("LASWriter: LAS 1.5 timeOffset requires a GPS time attribute");
|
|
29012
29778
|
}
|
|
29013
29779
|
if (format === "laz") {
|
|
29014
|
-
validateLAZOptions(
|
|
29780
|
+
validateLAZOptions(version2, pointDataRecordFormat, options.las?.chunkSize);
|
|
29015
29781
|
}
|
|
29016
|
-
validatePointDataRecordVersion(
|
|
29782
|
+
validatePointDataRecordVersion(version2, pointDataRecordFormat);
|
|
29017
29783
|
const rawPointData = new Uint8Array(vertexCount * pointDataRecordLength);
|
|
29018
29784
|
const pointDataView = new DataView(rawPointData.buffer);
|
|
29019
29785
|
for (let vertexIndex = 0; vertexIndex < vertexCount; vertexIndex++) {
|
|
@@ -29072,7 +29838,7 @@ return true;`);
|
|
|
29072
29838
|
boundingBox,
|
|
29073
29839
|
scale,
|
|
29074
29840
|
offset,
|
|
29075
|
-
version,
|
|
29841
|
+
version: version2,
|
|
29076
29842
|
headerLength,
|
|
29077
29843
|
pointDataRecordFormat,
|
|
29078
29844
|
pointDataRecordLength,
|
|
@@ -29106,7 +29872,7 @@ return true;`);
|
|
|
29106
29872
|
bytes.set(rawPointData, pointDataOffset);
|
|
29107
29873
|
return arrayBuffer;
|
|
29108
29874
|
}
|
|
29109
|
-
function validatePointDataRecordVersion(
|
|
29875
|
+
function validatePointDataRecordVersion(version2, pointDataRecordFormat) {
|
|
29110
29876
|
const minimumVersionByPointFormat = {
|
|
29111
29877
|
0: "1.0",
|
|
29112
29878
|
1: "1.1",
|
|
@@ -29114,24 +29880,24 @@ return true;`);
|
|
|
29114
29880
|
3: "1.2"
|
|
29115
29881
|
};
|
|
29116
29882
|
const minimumVersion = minimumVersionByPointFormat[pointDataRecordFormat];
|
|
29117
|
-
if (minimumVersion &&
|
|
29883
|
+
if (minimumVersion && version2 < minimumVersion) {
|
|
29118
29884
|
throw new Error(
|
|
29119
|
-
`LASWriter: point data record format ${pointDataRecordFormat} requires LAS ${minimumVersion} or newer; received ${
|
|
29885
|
+
`LASWriter: point data record format ${pointDataRecordFormat} requires LAS ${minimumVersion} or newer; received ${version2}`
|
|
29120
29886
|
);
|
|
29121
29887
|
}
|
|
29122
|
-
if (pointDataRecordFormat >= 4 && pointDataRecordFormat <= 5 && !["1.3", "1.4", "1.5"].includes(
|
|
29888
|
+
if (pointDataRecordFormat >= 4 && pointDataRecordFormat <= 5 && !["1.3", "1.4", "1.5"].includes(version2)) {
|
|
29123
29889
|
throw new Error(
|
|
29124
|
-
`LASWriter: point data record format ${pointDataRecordFormat} requires LAS 1.3; received ${
|
|
29890
|
+
`LASWriter: point data record format ${pointDataRecordFormat} requires LAS 1.3; received ${version2}`
|
|
29125
29891
|
);
|
|
29126
29892
|
}
|
|
29127
|
-
if (pointDataRecordFormat >= 6 && !["1.4", "1.5"].includes(
|
|
29893
|
+
if (pointDataRecordFormat >= 6 && !["1.4", "1.5"].includes(version2)) {
|
|
29128
29894
|
throw new Error(
|
|
29129
|
-
`LASWriter: point data record format ${pointDataRecordFormat} requires LAS 1.4; received ${
|
|
29895
|
+
`LASWriter: point data record format ${pointDataRecordFormat} requires LAS 1.4; received ${version2}`
|
|
29130
29896
|
);
|
|
29131
29897
|
}
|
|
29132
29898
|
}
|
|
29133
|
-
function validateLASVersionOptions(
|
|
29134
|
-
if (
|
|
29899
|
+
function validateLASVersionOptions(version2, pointDataRecordFormat, options) {
|
|
29900
|
+
if (version2 === "1.5") {
|
|
29135
29901
|
if (pointDataRecordFormat < 6 || pointDataRecordFormat > 10) {
|
|
29136
29902
|
throw new Error("LASWriter: LAS 1.5 output requires point data record format 6-10");
|
|
29137
29903
|
}
|
|
@@ -29334,22 +30100,22 @@ return true;`);
|
|
|
29334
30100
|
);
|
|
29335
30101
|
}
|
|
29336
30102
|
}
|
|
29337
|
-
function validateLAZOptions(
|
|
29338
|
-
if (pointDataRecordFormat === 1 && !["1.1", "1.2", "1.3", "1.4", "1.5"].includes(
|
|
29339
|
-
throw new Error(`LASWriter: LAZ PDRF 1 output requires LAS 1.1 or newer; received ${
|
|
30103
|
+
function validateLAZOptions(version2, pointDataRecordFormat, chunkSize) {
|
|
30104
|
+
if (pointDataRecordFormat === 1 && !["1.1", "1.2", "1.3", "1.4", "1.5"].includes(version2)) {
|
|
30105
|
+
throw new Error(`LASWriter: LAZ PDRF 1 output requires LAS 1.1 or newer; received ${version2}`);
|
|
29340
30106
|
}
|
|
29341
|
-
if (pointDataRecordFormat >= 2 && pointDataRecordFormat <= 3 && !["1.2", "1.3", "1.4", "1.5"].includes(
|
|
30107
|
+
if (pointDataRecordFormat >= 2 && pointDataRecordFormat <= 3 && !["1.2", "1.3", "1.4", "1.5"].includes(version2)) {
|
|
29342
30108
|
throw new Error(
|
|
29343
|
-
`LASWriter: LAZ PDRF ${pointDataRecordFormat} output requires LAS 1.2 or newer; received ${
|
|
30109
|
+
`LASWriter: LAZ PDRF ${pointDataRecordFormat} output requires LAS 1.2 or newer; received ${version2}`
|
|
29344
30110
|
);
|
|
29345
30111
|
}
|
|
29346
|
-
if (pointDataRecordFormat >= 4 && pointDataRecordFormat <= 5 && !["1.3", "1.4", "1.5"].includes(
|
|
30112
|
+
if (pointDataRecordFormat >= 4 && pointDataRecordFormat <= 5 && !["1.3", "1.4", "1.5"].includes(version2)) {
|
|
29347
30113
|
throw new Error(
|
|
29348
|
-
`LASWriter: LAZ PDRF ${pointDataRecordFormat} requires LAS 1.3 or newer; received ${
|
|
30114
|
+
`LASWriter: LAZ PDRF ${pointDataRecordFormat} requires LAS 1.3 or newer; received ${version2}`
|
|
29349
30115
|
);
|
|
29350
30116
|
}
|
|
29351
|
-
if (pointDataRecordFormat >= 6 && !["1.4", "1.5"].includes(
|
|
29352
|
-
throw new Error(`LASWriter: LAZ output requires LAS 1.4; received ${
|
|
30117
|
+
if (pointDataRecordFormat >= 6 && !["1.4", "1.5"].includes(version2)) {
|
|
30118
|
+
throw new Error(`LASWriter: LAZ output requires LAS 1.4; received ${version2}`);
|
|
29353
30119
|
}
|
|
29354
30120
|
if (![0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].includes(pointDataRecordFormat)) {
|
|
29355
30121
|
throw new Error(
|
|
@@ -29940,12 +30706,12 @@ return true;`);
|
|
|
29940
30706
|
// src/pcd/pcd-writer.ts
|
|
29941
30707
|
init_schema_utils();
|
|
29942
30708
|
init_pcd_format();
|
|
29943
|
-
var
|
|
30709
|
+
var VERSION6 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
29944
30710
|
var PCDWriter = {
|
|
29945
30711
|
...PCDFormat,
|
|
29946
30712
|
dataType: null,
|
|
29947
30713
|
batchType: null,
|
|
29948
|
-
version:
|
|
30714
|
+
version: VERSION6,
|
|
29949
30715
|
options: {
|
|
29950
30716
|
pcd: {}
|
|
29951
30717
|
},
|
|
@@ -30050,12 +30816,12 @@ return true;`);
|
|
|
30050
30816
|
// src/ply/ply-writer.ts
|
|
30051
30817
|
init_schema_utils();
|
|
30052
30818
|
init_ply_format();
|
|
30053
|
-
var
|
|
30819
|
+
var VERSION8 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
30054
30820
|
var PLYWriter = {
|
|
30055
30821
|
...PLYFormat,
|
|
30056
30822
|
dataType: null,
|
|
30057
30823
|
batchType: null,
|
|
30058
|
-
version:
|
|
30824
|
+
version: VERSION8,
|
|
30059
30825
|
options: {
|
|
30060
30826
|
ply: {}
|
|
30061
30827
|
},
|