@loaders.gl/tiles-3d 5.0.0-beta.4 → 5.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/3d-tiles/3d-tiles-archive-loader.js +1 -1
- package/dist/3d-tiles/dist.dev.js +891 -620
- package/dist/3d-tiles/dist.min.js +37 -37
- package/dist/3d-tiles/index.cjs +821 -943
- package/dist/3d-tiles/index.cjs.map +3 -3
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js +5 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -1
- package/dist/3d-tiles/lib/utils/version.js +1 -1
- package/dist/3d-tiles-archive-writer.cjs +1 -1
- package/dist/cesium-ion-loader-with-parser.cjs +820 -942
- package/dist/cesium-ion-loader-with-parser.cjs.map +3 -3
- package/dist/copc/copc-source-loader.js +2 -2
- package/dist/copc/copc-source-loader.js.map +1 -1
- package/dist/copc/copc-writer.js +1 -1
- package/dist/copc/index.cjs +24 -178
- package/dist/copc/index.cjs.map +3 -3
- package/dist/dist.dev.js +231 -38
- package/dist/dist.min.js +10 -10
- package/dist/i3s/arcgis-webscene-loader.js +1 -1
- package/dist/i3s/dist.dev.js +3080 -710
- package/dist/i3s/dist.min.js +47 -47
- package/dist/i3s/i3s-attribute-loader.js +1 -1
- package/dist/i3s/i3s-building-scene-layer-loader.js +1 -1
- package/dist/i3s/i3s-content-loader.js +1 -1
- package/dist/i3s/i3s-lepcc-loader-types.js +1 -1
- package/dist/i3s/i3s-loader.js +1 -1
- package/dist/i3s/i3s-node-page-loader.js +1 -1
- package/dist/i3s/i3s-slpk-loader.js +1 -1
- package/dist/i3s/i3s-slpk-writer.js +1 -1
- package/dist/i3s/index.cjs +1999 -541
- package/dist/i3s/index.cjs.map +3 -3
- package/dist/i3s-content-worker-node.js +11 -11
- package/dist/i3s-content-worker-node.js.map +4 -4
- package/dist/i3s-content-worker.js +767 -346
- package/dist/i3s-lepcc-worker-node.js +245 -12
- package/dist/i3s-lepcc-worker-node.js.map +4 -4
- package/dist/i3s-lepcc-worker.js +240 -12
- package/dist/i3s-mesh-writer.cjs +1748 -290
- package/dist/i3s-mesh-writer.cjs.map +3 -3
- package/dist/i3s-slpk-writer.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/point-cloud-tile-source-loader-types.js +1 -1
- package/dist/point-cloud-tile-source-loader.cjs +1 -1
- package/dist/potree/dist.dev.js +226 -82
- package/dist/potree/dist.min.js +30 -30
- package/dist/potree/index.cjs +13 -165
- package/dist/potree/index.cjs.map +3 -3
- package/dist/potree/potree-bin-loader.js +1 -1
- package/dist/potree/potree-hierarchy-chunk-loader.js +1 -1
- package/dist/potree/potree-loader-types.js +1 -1
- package/dist/potree/potree-source-loader.js +1 -1
- package/dist/potree/potree-writer.js +1 -1
- package/dist/potree-loader.cjs +1 -1
- package/package.json +13 -13
- package/src/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.ts +4 -1
- package/src/copc/copc-source-loader.ts +1 -1
package/dist/potree/index.cjs
CHANGED
|
@@ -6220,7 +6220,7 @@ var init_potree_loader_types2 = __esm({
|
|
|
6220
6220
|
"dist/potree/potree-loader-types.js"() {
|
|
6221
6221
|
"use strict";
|
|
6222
6222
|
init_potree_format();
|
|
6223
|
-
VERSION3 = true ? "5.0.0-beta.
|
|
6223
|
+
VERSION3 = true ? "5.0.0-beta.5" : "latest";
|
|
6224
6224
|
PotreeLoader2 = {
|
|
6225
6225
|
...PotreeFormat,
|
|
6226
6226
|
dataType: null,
|
|
@@ -6387,7 +6387,7 @@ var init_potree_hierarchy_chunk_loader = __esm({
|
|
|
6387
6387
|
"dist/potree/potree-hierarchy-chunk-loader.js"() {
|
|
6388
6388
|
"use strict";
|
|
6389
6389
|
init_potree_format();
|
|
6390
|
-
VERSION4 = true ? "5.0.0-beta.
|
|
6390
|
+
VERSION4 = true ? "5.0.0-beta.5" : "latest";
|
|
6391
6391
|
PotreeHierarchyChunkLoader = {
|
|
6392
6392
|
...PotreeHierarchyChunkFormat,
|
|
6393
6393
|
dataType: null,
|
|
@@ -7908,7 +7908,7 @@ var init_potree_bin_loader = __esm({
|
|
|
7908
7908
|
"dist/potree/potree-bin-loader.js"() {
|
|
7909
7909
|
"use strict";
|
|
7910
7910
|
init_potree_format();
|
|
7911
|
-
VERSION5 = true ? "5.0.0-beta.
|
|
7911
|
+
VERSION5 = true ? "5.0.0-beta.5" : "latest";
|
|
7912
7912
|
PotreeBinLoader = {
|
|
7913
7913
|
...PotreeBinFormat,
|
|
7914
7914
|
dataType: null,
|
|
@@ -8177,109 +8177,7 @@ var init_las_loader_shared = __esm({
|
|
|
8177
8177
|
}
|
|
8178
8178
|
});
|
|
8179
8179
|
|
|
8180
|
-
// ../core/src/
|
|
8181
|
-
function splitArrowBuffers(input, options = {}) {
|
|
8182
|
-
const context = { ...options, copies: /* @__PURE__ */ new WeakMap() };
|
|
8183
|
-
if (isArrowTable(input)) {
|
|
8184
|
-
return splitArrowTableBuffersInternal(input, context);
|
|
8185
|
-
}
|
|
8186
|
-
if (isArrowRecordBatch(input)) {
|
|
8187
|
-
return splitArrowRecordBatchBuffers(input, context);
|
|
8188
|
-
}
|
|
8189
|
-
if (isArrowVector(input)) {
|
|
8190
|
-
return splitArrowVectorBuffers(input, context);
|
|
8191
|
-
}
|
|
8192
|
-
return splitArrowDataBuffers(input, context);
|
|
8193
|
-
}
|
|
8194
|
-
function isArrowTable(input) {
|
|
8195
|
-
return "batches" in input;
|
|
8196
|
-
}
|
|
8197
|
-
function isArrowRecordBatch(input) {
|
|
8198
|
-
return "schema" in input && "data" in input && !Array.isArray(input.data);
|
|
8199
|
-
}
|
|
8200
|
-
function isArrowVector(input) {
|
|
8201
|
-
return "data" in input && Array.isArray(input.data);
|
|
8202
|
-
}
|
|
8203
|
-
function splitArrowTableBuffersInternal(table, options) {
|
|
8204
|
-
const recordBatches = table.batches.map(
|
|
8205
|
-
(recordBatch) => splitArrowRecordBatchBuffers(recordBatch, options)
|
|
8206
|
-
);
|
|
8207
|
-
return new arrow7.Table(table.schema, recordBatches);
|
|
8208
|
-
}
|
|
8209
|
-
function splitArrowRecordBatchBuffers(recordBatch, options) {
|
|
8210
|
-
return new arrow7.RecordBatch(
|
|
8211
|
-
recordBatch.schema,
|
|
8212
|
-
splitArrowDataBuffers(recordBatch.data, options)
|
|
8213
|
-
);
|
|
8214
|
-
}
|
|
8215
|
-
function splitArrowDataBuffers(data, options) {
|
|
8216
|
-
const children = data.children.map((childData) => splitArrowDataBuffers(childData, options));
|
|
8217
|
-
const dictionary = data.dictionary ? splitArrowVectorBuffers(data.dictionary, options) : void 0;
|
|
8218
|
-
const buffers = {
|
|
8219
|
-
[arrow7.BufferType.OFFSET]: splitArrowBuffer(data.buffers[arrow7.BufferType.OFFSET], options),
|
|
8220
|
-
[arrow7.BufferType.DATA]: splitArrowBuffer(data.buffers[arrow7.BufferType.DATA], options),
|
|
8221
|
-
[arrow7.BufferType.VALIDITY]: splitArrowBuffer(data.buffers[arrow7.BufferType.VALIDITY], options),
|
|
8222
|
-
[arrow7.BufferType.TYPE]: splitArrowBuffer(data.buffers[arrow7.BufferType.TYPE], options)
|
|
8223
|
-
};
|
|
8224
|
-
return new arrow7.Data(
|
|
8225
|
-
data.type,
|
|
8226
|
-
data.offset,
|
|
8227
|
-
data.length,
|
|
8228
|
-
// @ts-expect-error _nullCount is protected. Reuse it to preserve lazy null-count state.
|
|
8229
|
-
data._nullCount,
|
|
8230
|
-
buffers,
|
|
8231
|
-
children,
|
|
8232
|
-
dictionary
|
|
8233
|
-
);
|
|
8234
|
-
}
|
|
8235
|
-
function splitArrowVectorBuffers(vector, options) {
|
|
8236
|
-
return new arrow7.Vector(vector.data.map((data) => splitArrowDataBuffers(data, options)));
|
|
8237
|
-
}
|
|
8238
|
-
function splitArrowBuffer(array, options) {
|
|
8239
|
-
if (!isArrowTypedArray(array)) {
|
|
8240
|
-
return array;
|
|
8241
|
-
}
|
|
8242
|
-
if (options.copy === "none") {
|
|
8243
|
-
return array;
|
|
8244
|
-
}
|
|
8245
|
-
if (options.copy !== "all" && array.byteOffset === 0 && array.byteLength === array.buffer.byteLength) {
|
|
8246
|
-
return array;
|
|
8247
|
-
}
|
|
8248
|
-
let copy = options.copies.get(array);
|
|
8249
|
-
if (!copy) {
|
|
8250
|
-
copy = array.slice();
|
|
8251
|
-
options.copies.set(array, copy);
|
|
8252
|
-
}
|
|
8253
|
-
return copy;
|
|
8254
|
-
}
|
|
8255
|
-
function isArrowTypedArray(value) {
|
|
8256
|
-
return ArrayBuffer.isView(value) && !(value instanceof DataView);
|
|
8257
|
-
}
|
|
8258
|
-
var arrow7;
|
|
8259
|
-
var init_split_arrow_buffers = __esm({
|
|
8260
|
-
"../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts"() {
|
|
8261
|
-
"use strict";
|
|
8262
|
-
arrow7 = __toESM(require("apache-arrow"), 1);
|
|
8263
|
-
}
|
|
8264
|
-
});
|
|
8265
|
-
|
|
8266
|
-
// ../core/src/schema-utils/lib/arrow/arrow-table-transport.ts
|
|
8267
|
-
function dehydrateArrowTable(table, options) {
|
|
8268
|
-
const splitTable = splitArrowBuffers(table, options);
|
|
8269
|
-
return {
|
|
8270
|
-
shape: "arrow-table",
|
|
8271
|
-
transport: "arrow-js",
|
|
8272
|
-
schema: serializeArrowSchema(splitTable.schema),
|
|
8273
|
-
batches: splitTable.batches.map((recordBatch) => dehydrateArrowRecordBatch(recordBatch))
|
|
8274
|
-
};
|
|
8275
|
-
}
|
|
8276
|
-
function hydrateArrowTable(table) {
|
|
8277
|
-
const schema = deserializeArrowSchema(table.schema);
|
|
8278
|
-
const recordBatches = table.batches.map(
|
|
8279
|
-
(recordBatch) => new arrow8.RecordBatch(schema, hydrateArrowData(recordBatch.data))
|
|
8280
|
-
);
|
|
8281
|
-
return new arrow8.Table(schema, recordBatches);
|
|
8282
|
-
}
|
|
8180
|
+
// ../core/src/arrow-worker-transport.ts
|
|
8283
8181
|
function serializeArrowWorkerTable(result) {
|
|
8284
8182
|
if (!isArrowTableWrapper(result)) {
|
|
8285
8183
|
throw new Error("Workers require Arrow table output");
|
|
@@ -8287,14 +8185,14 @@ function serializeArrowWorkerTable(result) {
|
|
|
8287
8185
|
const { data, ...metadata } = result;
|
|
8288
8186
|
return {
|
|
8289
8187
|
...structuredClone(metadata),
|
|
8290
|
-
data: dehydrateArrowTable(data, { copy: "all" })
|
|
8188
|
+
data: (0, import_arrow.dehydrateArrowTable)(data, { copy: "all" })
|
|
8291
8189
|
};
|
|
8292
8190
|
}
|
|
8293
8191
|
function deserializeArrowWorkerTable(result) {
|
|
8294
8192
|
if (!isDehydratedArrowTableWrapper(result)) {
|
|
8295
8193
|
throw new Error("Workers require Arrow column transport");
|
|
8296
8194
|
}
|
|
8297
|
-
return { ...result, data: hydrateArrowTable(result.data) };
|
|
8195
|
+
return { ...result, data: (0, import_arrow.hydrateArrowTable)(result.data) };
|
|
8298
8196
|
}
|
|
8299
8197
|
function isArrowTableWrapper(value) {
|
|
8300
8198
|
const table = value;
|
|
@@ -8308,61 +8206,11 @@ function isDehydratedArrowTableWrapper(value) {
|
|
|
8308
8206
|
table && table.shape === "arrow-table" && table.data && table.data.transport === "arrow-js" && Array.isArray(table.data.batches)
|
|
8309
8207
|
);
|
|
8310
8208
|
}
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
function dehydrateArrowData(data) {
|
|
8315
|
-
return {
|
|
8316
|
-
type: serializeArrowType(data.type),
|
|
8317
|
-
offset: data.offset,
|
|
8318
|
-
length: data.length,
|
|
8319
|
-
// @ts-expect-error _nullCount is protected. Preserve the Arrow lazy null-count state.
|
|
8320
|
-
nullCount: data._nullCount,
|
|
8321
|
-
buffers: {
|
|
8322
|
-
[arrow8.BufferType.OFFSET]: data.buffers[arrow8.BufferType.OFFSET],
|
|
8323
|
-
[arrow8.BufferType.DATA]: data.buffers[arrow8.BufferType.DATA],
|
|
8324
|
-
[arrow8.BufferType.VALIDITY]: data.buffers[arrow8.BufferType.VALIDITY],
|
|
8325
|
-
[arrow8.BufferType.TYPE]: data.buffers[arrow8.BufferType.TYPE]
|
|
8326
|
-
},
|
|
8327
|
-
children: data.children.map((childData) => dehydrateArrowData(childData)),
|
|
8328
|
-
dictionary: data.dictionary ? dehydrateArrowVector(data.dictionary) : void 0
|
|
8329
|
-
};
|
|
8330
|
-
}
|
|
8331
|
-
function dehydrateArrowVector(vector) {
|
|
8332
|
-
return { data: vector.data.map((data) => dehydrateArrowData(data)) };
|
|
8333
|
-
}
|
|
8334
|
-
function hydrateArrowData(data) {
|
|
8335
|
-
const children = data.children.map((childData) => hydrateArrowData(childData));
|
|
8336
|
-
const dictionary = data.dictionary ? hydrateArrowVector(data.dictionary) : void 0;
|
|
8337
|
-
return new arrow8.Data(
|
|
8338
|
-
deserializeArrowType(data.type),
|
|
8339
|
-
data.offset,
|
|
8340
|
-
data.length,
|
|
8341
|
-
data.nullCount,
|
|
8342
|
-
data.buffers,
|
|
8343
|
-
children,
|
|
8344
|
-
dictionary
|
|
8345
|
-
);
|
|
8346
|
-
}
|
|
8347
|
-
function hydrateArrowVector(vector) {
|
|
8348
|
-
return new arrow8.Vector(vector.data.map((data) => hydrateArrowData(data)));
|
|
8349
|
-
}
|
|
8350
|
-
var arrow8;
|
|
8351
|
-
var init_arrow_table_transport = __esm({
|
|
8352
|
-
"../core/src/schema-utils/lib/arrow/arrow-table-transport.ts"() {
|
|
8353
|
-
"use strict";
|
|
8354
|
-
arrow8 = __toESM(require("apache-arrow"), 1);
|
|
8355
|
-
init_convert_arrow_schema();
|
|
8356
|
-
init_split_arrow_buffers();
|
|
8357
|
-
}
|
|
8358
|
-
});
|
|
8359
|
-
|
|
8360
|
-
// ../core/src/schema-utils/arrow-transport.ts
|
|
8361
|
-
var init_arrow_transport = __esm({
|
|
8362
|
-
"../core/src/schema-utils/arrow-transport.ts"() {
|
|
8209
|
+
var import_arrow;
|
|
8210
|
+
var init_arrow_worker_transport = __esm({
|
|
8211
|
+
"../core/src/arrow-worker-transport.ts"() {
|
|
8363
8212
|
"use strict";
|
|
8364
|
-
|
|
8365
|
-
init_split_arrow_buffers();
|
|
8213
|
+
import_arrow = require("@math.gl/arrow");
|
|
8366
8214
|
}
|
|
8367
8215
|
});
|
|
8368
8216
|
|
|
@@ -11230,7 +11078,7 @@ var init_las_loader = __esm({
|
|
|
11230
11078
|
"use strict";
|
|
11231
11079
|
init_schema_utils();
|
|
11232
11080
|
init_las_loader_shared();
|
|
11233
|
-
|
|
11081
|
+
init_arrow_worker_transport();
|
|
11234
11082
|
init_parse_las();
|
|
11235
11083
|
LASLoaderWithParser = {
|
|
11236
11084
|
...LAS_LOADER_METADATA,
|
|
@@ -12840,7 +12688,7 @@ function inferPotreeColumnRole(name) {
|
|
|
12840
12688
|
|
|
12841
12689
|
// dist/potree/potree-source-loader.js
|
|
12842
12690
|
init_potree_format();
|
|
12843
|
-
var VERSION7 = true ? "5.0.0-beta.
|
|
12691
|
+
var VERSION7 = true ? "5.0.0-beta.5" : "latest";
|
|
12844
12692
|
var PotreeSourceLoader = {
|
|
12845
12693
|
...PotreeBinFormat,
|
|
12846
12694
|
dataType: null,
|
|
@@ -12867,7 +12715,7 @@ var PotreeSourceLoader = {
|
|
|
12867
12715
|
|
|
12868
12716
|
// dist/potree/potree-writer.js
|
|
12869
12717
|
init_schema_utils();
|
|
12870
|
-
var VERSION8 = true ? "5.0.0-beta.
|
|
12718
|
+
var VERSION8 = true ? "5.0.0-beta.5" : "latest";
|
|
12871
12719
|
var PotreeWriter = {
|
|
12872
12720
|
name: "Potree metadata",
|
|
12873
12721
|
id: "potree",
|