@loaders.gl/tiles-3d 5.0.0-beta.10 → 5.0.0-beta.11
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/3d-tiles/3d-tiles-archive-loader.js +1 -1
- package/dist/3d-tiles/dist.dev.js +169 -581
- package/dist/3d-tiles/dist.min.js +16 -16
- package/dist/3d-tiles/index.cjs +115 -390
- package/dist/3d-tiles/index.cjs.map +3 -3
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.d.ts +1 -2
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.d.ts.map +1 -1
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.js +3 -4
- package/dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.js.map +1 -1
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.d.ts +4 -0
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.d.ts.map +1 -0
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.js +36 -0
- package/dist/3d-tiles/lib/classes/helpers/tile-component-types.js.map +1 -0
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.d.ts.map +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.js +3 -4
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.js.map +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-batch-table.d.ts +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.d.ts +9 -5
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.d.ts.map +1 -1
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.js +15 -12
- package/dist/3d-tiles/lib/classes/tile-3d-feature-table.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.d.ts +0 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.js +2 -4
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.d.ts +1 -2
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.js +7 -7
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.js +0 -2
- package/dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.js +1 -2
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js +13 -13
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.d.ts.map +1 -1
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.js +22 -23
- package/dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.js.map +1 -1
- package/dist/3d-tiles/lib/utils/version.js +1 -1
- package/dist/3d-tiles/types.d.ts +7 -3
- package/dist/3d-tiles/types.d.ts.map +1 -1
- package/dist/3d-tiles-archive-writer.cjs +1 -1
- package/dist/copc/copc-loader.d.ts.map +1 -1
- package/dist/copc/copc-loader.js +10 -7
- package/dist/copc/copc-loader.js.map +1 -1
- package/dist/copc/copc-writer.d.ts +5 -4
- package/dist/copc/copc-writer.d.ts.map +1 -1
- package/dist/copc/copc-writer.js +1 -1
- package/dist/copc/copc-writer.js.map +1 -1
- package/dist/copc/index.cjs +809 -124
- package/dist/copc/index.cjs.map +3 -3
- package/dist/dist.dev.js +45 -77
- package/dist/dist.min.js +10 -10
- package/dist/i3s/arcgis-webscene-loader.js +1 -1
- package/dist/i3s/dist.dev.js +11915 -12119
- package/dist/i3s/dist.min.js +25 -25
- 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-mesh-attributes.d.ts +2 -2
- package/dist/i3s/i3s-mesh-attributes.d.ts.map +1 -1
- package/dist/i3s/i3s-mesh-attributes.js +6 -11
- package/dist/i3s/i3s-mesh-attributes.js.map +1 -1
- package/dist/i3s/i3s-mesh-writer.js +2 -3
- package/dist/i3s/i3s-mesh-writer.js.map +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 +314 -442
- package/dist/i3s/index.cjs.map +3 -3
- package/dist/i3s/lib/parsers/constants.d.ts +0 -3
- package/dist/i3s/lib/parsers/constants.d.ts.map +1 -1
- package/dist/i3s/lib/parsers/constants.js +0 -8
- package/dist/i3s/lib/parsers/constants.js.map +1 -1
- package/dist/i3s/lib/parsers/parse-i3s-tile-content.d.ts.map +1 -1
- package/dist/i3s/lib/parsers/parse-i3s-tile-content.js +1 -2
- package/dist/i3s/lib/parsers/parse-i3s-tile-content.js.map +1 -1
- package/dist/i3s/types.d.ts +0 -1
- package/dist/i3s/types.d.ts.map +1 -1
- 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 +485 -879
- package/dist/i3s-lepcc-worker-node.js +2 -2
- package/dist/i3s-lepcc-worker.js +2 -2
- package/dist/i3s-mesh-writer.cjs +87 -206
- package/dist/i3s-mesh-writer.cjs.map +3 -3
- package/dist/i3s-slpk-writer.cjs +1 -1
- package/dist/index.cjs +44 -41
- package/dist/index.cjs.map +1 -1
- package/dist/point-cloud-tile-loader-types.js +1 -1
- package/dist/point-cloud-tile-loader.cjs +17 -28
- package/dist/point-cloud-tile-loader.cjs.map +1 -1
- package/dist/point-cloud-tile-source.cjs +16 -27
- package/dist/point-cloud-tile-source.cjs.map +1 -1
- package/dist/point-cloud-tile-source.js +2 -2
- package/dist/point-cloud-tile-source.js.map +1 -1
- package/dist/potree/dist.dev.js +985 -139
- package/dist/potree/dist.min.js +28 -28
- package/dist/potree/index.cjs +813 -140
- package/dist/potree/index.cjs.map +3 -3
- package/dist/potree/lib/potree-node-source.d.ts.map +1 -1
- package/dist/potree/lib/potree-node-source.js +2 -14
- package/dist/potree/lib/potree-node-source.js.map +1 -1
- package/dist/potree/parsers/parse-potree-bin.js +3 -3
- package/dist/potree/parsers/parse-potree-bin.js.map +1 -1
- 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-writer.d.ts +3 -3
- package/dist/potree/potree-writer.d.ts.map +1 -1
- package/dist/potree/potree-writer.js +2 -2
- package/dist/potree/potree-writer.js.map +1 -1
- package/dist/potree/potree2-source.d.ts +1 -1
- package/dist/potree/potree2-source.d.ts.map +1 -1
- package/dist/potree/potree2-source.js +6 -3
- package/dist/potree/potree2-source.js.map +1 -1
- package/dist/potree-loader.cjs +817 -153
- package/dist/potree-loader.cjs.map +3 -3
- package/dist/tileset-3d/helpers/frame-state.d.ts +2 -1
- package/dist/tileset-3d/helpers/frame-state.d.ts.map +1 -1
- package/dist/tileset-3d/helpers/frame-state.js +41 -15
- package/dist/tileset-3d/helpers/frame-state.js.map +1 -1
- package/dist/types.d.ts +15 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.ts +3 -4
- package/src/3d-tiles/lib/classes/helpers/tile-component-types.ts +39 -0
- package/src/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.ts +3 -4
- package/src/3d-tiles/lib/classes/tile-3d-feature-table.ts +38 -14
- package/src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.ts +2 -5
- package/src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.ts +10 -10
- package/src/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.ts +0 -2
- package/src/3d-tiles/lib/parsers/parse-3d-tile-batched-model.ts +1 -2
- package/src/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.ts +19 -19
- package/src/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.ts +22 -23
- package/src/3d-tiles/types.ts +4 -3
- package/src/copc/copc-loader.ts +8 -8
- package/src/copc/copc-writer.ts +6 -5
- package/src/i3s/i3s-mesh-attributes.ts +9 -17
- package/src/i3s/i3s-mesh-writer.ts +4 -3
- package/src/i3s/lib/parsers/constants.ts +0 -9
- package/src/i3s/lib/parsers/parse-i3s-tile-content.ts +1 -2
- package/src/i3s/types.ts +0 -1
- package/src/point-cloud-tile-source.ts +2 -2
- package/src/potree/lib/potree-node-source.ts +2 -15
- package/src/potree/parsers/parse-potree-bin.ts +3 -3
- package/src/potree/potree-writer.ts +6 -11
- package/src/potree/potree2-source.ts +6 -3
- package/src/tileset-3d/helpers/frame-state.ts +43 -15
- package/src/types.ts +15 -0
package/dist/3d-tiles/index.cjs
CHANGED
|
@@ -9424,16 +9424,6 @@ var init_KHR_texture_basisu = __esm({
|
|
|
9424
9424
|
});
|
|
9425
9425
|
|
|
9426
9426
|
// ../core/src/arrow-worker-transport.ts
|
|
9427
|
-
function deserializeArrowWorkerTable(result) {
|
|
9428
|
-
if (isArrowWorkerEnvelope(result)) {
|
|
9429
|
-
return { ...result.metadata, shape: "arrow-table", data: hydrateWorkerTable(result) };
|
|
9430
|
-
}
|
|
9431
|
-
if (isLegacyArrowWorkerEnvelope(result)) {
|
|
9432
|
-
const { arrowBatchMetadata: _snapshots, data: _columns, ...metadata } = result;
|
|
9433
|
-
return { ...metadata, data: hydrateWorkerTable(result) };
|
|
9434
|
-
}
|
|
9435
|
-
throw new Error("Workers require Arrow column transport");
|
|
9436
|
-
}
|
|
9437
9427
|
function serializeNativeArrowWorkerResult(result, options = { copy: "all" }) {
|
|
9438
9428
|
const batch = result instanceof arrow.RecordBatch;
|
|
9439
9429
|
if (!batch && !(result instanceof arrow.Table)) {
|
|
@@ -9458,63 +9448,27 @@ function deserializeNativeArrowWorkerResult(result) {
|
|
|
9458
9448
|
function serializeArrowWorkerResult(result, options) {
|
|
9459
9449
|
var _a;
|
|
9460
9450
|
const workerOptions = options;
|
|
9461
|
-
const
|
|
9462
|
-
|
|
9463
|
-
return serializeNativeArrowWorkerResult(result, { copy: bufferCopyMode ?? "all" });
|
|
9464
|
-
}
|
|
9465
|
-
if (!isArrowTableWrapper(result)) {
|
|
9466
|
-
return result;
|
|
9467
|
-
}
|
|
9468
|
-
const { data, shape: _shape, ...metadata } = result;
|
|
9469
|
-
return {
|
|
9470
|
-
transport: "arrow-column-envelope",
|
|
9471
|
-
metadata: structuredClone(metadata),
|
|
9472
|
-
...serializeWorkerColumns(data, bufferCopyMode ? { copy: bufferCopyMode } : void 0)
|
|
9473
|
-
};
|
|
9451
|
+
const copy = ((_a = workerOptions == null ? void 0 : workerOptions.core) == null ? void 0 : _a.workerTransferBufferCopy) ?? (workerOptions == null ? void 0 : workerOptions.workerTransferBufferCopy);
|
|
9452
|
+
return result instanceof arrow.Table || result instanceof arrow.RecordBatch ? serializeNativeArrowWorkerResult(result, { copy: copy ?? "all" }) : result;
|
|
9474
9453
|
}
|
|
9475
9454
|
function deserializeArrowWorkerResult(result) {
|
|
9476
9455
|
const transport = result == null ? void 0 : result.transport;
|
|
9477
|
-
|
|
9478
|
-
return deserializeNativeArrowWorkerResult(result);
|
|
9479
|
-
}
|
|
9480
|
-
return isArrowWorkerEnvelope(result) || isLegacyArrowWorkerEnvelope(result) ? deserializeArrowWorkerTable(result) : result;
|
|
9481
|
-
}
|
|
9482
|
-
function isArrowTableWrapper(value) {
|
|
9483
|
-
const table = value;
|
|
9484
|
-
return Boolean(
|
|
9485
|
-
table && table.shape === "arrow-table" && table.data && typeof table.data === "object" && "batches" in table.data
|
|
9486
|
-
);
|
|
9456
|
+
return transport === "arrow-table-columns" || transport === "arrow-record-batch" ? deserializeNativeArrowWorkerResult(result) : result;
|
|
9487
9457
|
}
|
|
9488
9458
|
function hasArrowWorkerColumns(value) {
|
|
9489
9459
|
var _a;
|
|
9490
9460
|
const columns = value;
|
|
9491
9461
|
return ((_a = columns == null ? void 0 : columns.data) == null ? void 0 : _a.transport) === "arrow-js" && Array.isArray(columns.data.batches);
|
|
9492
9462
|
}
|
|
9493
|
-
function isArrowWorkerEnvelope(value) {
|
|
9494
|
-
return (value == null ? void 0 : value.transport) === "arrow-column-envelope" && hasArrowWorkerColumns(value);
|
|
9495
|
-
}
|
|
9496
|
-
function isLegacyArrowWorkerEnvelope(value) {
|
|
9497
|
-
return (value == null ? void 0 : value.shape) === "arrow-table" && hasArrowWorkerColumns(value);
|
|
9498
|
-
}
|
|
9499
9463
|
function serializeWorkerColumns(table, options) {
|
|
9500
9464
|
return {
|
|
9501
9465
|
arrowBatchMetadata: snapshotBatchMetadata(table),
|
|
9502
|
-
data:
|
|
9466
|
+
data: (0, import_arrow.dehydrateArrowTable)(table, options)
|
|
9503
9467
|
};
|
|
9504
9468
|
}
|
|
9505
|
-
function dehydrateWorkerTable(table, options) {
|
|
9506
|
-
const payload = (0, import_arrow.dehydrateArrowTable)(table, options);
|
|
9507
|
-
if (table.numCols === 0) {
|
|
9508
|
-
for (const [index, batch] of table.batches.entries()) {
|
|
9509
|
-
payload.batches[index].length = batch.numRows;
|
|
9510
|
-
}
|
|
9511
|
-
}
|
|
9512
|
-
return payload;
|
|
9513
|
-
}
|
|
9514
9469
|
function snapshotBatchMetadata(table) {
|
|
9515
9470
|
return table.batches.map((batch) => ({
|
|
9516
|
-
schema: arrow.tableToIPC(new arrow.Table(batch.schema, []))
|
|
9517
|
-
metadata: Array.from(batch.metadata)
|
|
9471
|
+
schema: arrow.tableToIPC(new arrow.Table(batch.schema, []))
|
|
9518
9472
|
}));
|
|
9519
9473
|
}
|
|
9520
9474
|
function hydrateWorkerTable(result) {
|
|
@@ -9522,18 +9476,11 @@ function hydrateWorkerTable(result) {
|
|
|
9522
9476
|
const table = (0, import_arrow.hydrateArrowTable)(data);
|
|
9523
9477
|
const batches = table.batches.map((batch, index) => {
|
|
9524
9478
|
const snapshot = arrowBatchMetadata == null ? void 0 : arrowBatchMetadata[index];
|
|
9525
|
-
|
|
9479
|
+
return snapshot ? (0, import_arrow.createRecordBatchWithMetadata)(
|
|
9526
9480
|
arrow.tableFromIPC(snapshot.schema).schema,
|
|
9527
9481
|
batch.data,
|
|
9528
|
-
new Map(snapshot.metadata)
|
|
9482
|
+
snapshot.metadata ? new Map(snapshot.metadata) : (0, import_arrow.getRecordBatchMetadata)(batch)
|
|
9529
9483
|
) : batch;
|
|
9530
|
-
const rowCount = data.batches[index].length;
|
|
9531
|
-
if (restored.numCols === 0 && restored.numRows !== rowCount) {
|
|
9532
|
-
Object.defineProperty(restored, "data", {
|
|
9533
|
-
value: new arrow.Data(new arrow.Struct([]), 0, rowCount, 0, void 0, [])
|
|
9534
|
-
});
|
|
9535
|
-
}
|
|
9536
|
-
return restored;
|
|
9537
9484
|
});
|
|
9538
9485
|
return new arrow.Table(table.schema, batches);
|
|
9539
9486
|
}
|
|
@@ -9902,26 +9849,9 @@ var init_data_type = __esm({
|
|
|
9902
9849
|
});
|
|
9903
9850
|
|
|
9904
9851
|
// ../core/src/schema-utils/lib/schema/convert-arrow-schema.ts
|
|
9905
|
-
function serializeArrowSchema(arrowSchema) {
|
|
9906
|
-
return {
|
|
9907
|
-
fields: arrowSchema.fields.map((arrowField) => serializeArrowField(arrowField)),
|
|
9908
|
-
metadata: serializeArrowMetadata(arrowSchema.metadata)
|
|
9909
|
-
};
|
|
9910
|
-
}
|
|
9911
|
-
function serializeArrowMetadata(arrowMetadata) {
|
|
9912
|
-
return Object.fromEntries(arrowMetadata);
|
|
9913
|
-
}
|
|
9914
9852
|
function deserializeArrowMetadata(metadata) {
|
|
9915
9853
|
return metadata ? new Map(Object.entries(metadata)) : /* @__PURE__ */ new Map();
|
|
9916
9854
|
}
|
|
9917
|
-
function serializeArrowField(field) {
|
|
9918
|
-
return {
|
|
9919
|
-
name: field.name,
|
|
9920
|
-
type: serializeArrowType(field.type),
|
|
9921
|
-
nullable: field.nullable,
|
|
9922
|
-
metadata: serializeArrowMetadata(field.metadata)
|
|
9923
|
-
};
|
|
9924
|
-
}
|
|
9925
9855
|
function deserializeArrowField(field, options) {
|
|
9926
9856
|
return new arrow2.Field(
|
|
9927
9857
|
field.name,
|
|
@@ -9930,193 +9860,6 @@ function deserializeArrowField(field, options) {
|
|
|
9930
9860
|
deserializeArrowMetadata(field.metadata)
|
|
9931
9861
|
);
|
|
9932
9862
|
}
|
|
9933
|
-
function serializeArrowType(arrowType) {
|
|
9934
|
-
if (isArrowViewType(arrowType, "BinaryView")) {
|
|
9935
|
-
return "binary-view";
|
|
9936
|
-
}
|
|
9937
|
-
if (isArrowViewType(arrowType, "Utf8View")) {
|
|
9938
|
-
return "utf8-view";
|
|
9939
|
-
}
|
|
9940
|
-
if (isOptionalArrowType(arrowType, "LargeList")) {
|
|
9941
|
-
const largeListType = arrowType;
|
|
9942
|
-
return {
|
|
9943
|
-
type: "large-list",
|
|
9944
|
-
children: [serializeArrowField(largeListType.valueField)]
|
|
9945
|
-
};
|
|
9946
|
-
}
|
|
9947
|
-
switch (arrowType.constructor) {
|
|
9948
|
-
case arrow2.Null:
|
|
9949
|
-
return "null";
|
|
9950
|
-
case arrow2.Binary:
|
|
9951
|
-
return "binary";
|
|
9952
|
-
case arrow2.FixedSizeBinary:
|
|
9953
|
-
return {
|
|
9954
|
-
type: "fixed-size-binary",
|
|
9955
|
-
byteWidth: arrowType.byteWidth
|
|
9956
|
-
};
|
|
9957
|
-
case arrow2.Bool:
|
|
9958
|
-
return "bool";
|
|
9959
|
-
case arrow2.Int:
|
|
9960
|
-
const intType = arrowType;
|
|
9961
|
-
return `${intType.isSigned ? "" : "u"}int${intType.bitWidth}`;
|
|
9962
|
-
case arrow2.Int8:
|
|
9963
|
-
return "int8";
|
|
9964
|
-
case arrow2.Int16:
|
|
9965
|
-
return "int16";
|
|
9966
|
-
case arrow2.Int32:
|
|
9967
|
-
return "int32";
|
|
9968
|
-
case arrow2.Int64:
|
|
9969
|
-
return "int64";
|
|
9970
|
-
case arrow2.Uint8:
|
|
9971
|
-
return "uint8";
|
|
9972
|
-
case arrow2.Uint16:
|
|
9973
|
-
return "uint16";
|
|
9974
|
-
case arrow2.Uint32:
|
|
9975
|
-
return "uint32";
|
|
9976
|
-
case arrow2.Uint64:
|
|
9977
|
-
return "uint64";
|
|
9978
|
-
case arrow2.Float:
|
|
9979
|
-
const precision = arrowType.precision;
|
|
9980
|
-
switch (precision) {
|
|
9981
|
-
case arrow2.Precision.HALF:
|
|
9982
|
-
return "float16";
|
|
9983
|
-
case arrow2.Precision.SINGLE:
|
|
9984
|
-
return "float32";
|
|
9985
|
-
case arrow2.Precision.DOUBLE:
|
|
9986
|
-
return "float64";
|
|
9987
|
-
default:
|
|
9988
|
-
return "float16";
|
|
9989
|
-
}
|
|
9990
|
-
case arrow2.Float16:
|
|
9991
|
-
return "float16";
|
|
9992
|
-
case arrow2.Float32:
|
|
9993
|
-
return "float32";
|
|
9994
|
-
case arrow2.Float64:
|
|
9995
|
-
return "float64";
|
|
9996
|
-
case arrow2.Utf8:
|
|
9997
|
-
return "utf8";
|
|
9998
|
-
case arrow2.Decimal:
|
|
9999
|
-
const decimal = arrowType;
|
|
10000
|
-
return {
|
|
10001
|
-
type: "decimal",
|
|
10002
|
-
bitWidth: decimal.bitWidth,
|
|
10003
|
-
precision: decimal.precision,
|
|
10004
|
-
scale: decimal.scale
|
|
10005
|
-
};
|
|
10006
|
-
case arrow2.Date_:
|
|
10007
|
-
const dateUnit = arrowType.unit;
|
|
10008
|
-
return dateUnit === arrow2.DateUnit.DAY ? "date-day" : "date-millisecond";
|
|
10009
|
-
case arrow2.DateDay:
|
|
10010
|
-
return "date-day";
|
|
10011
|
-
case arrow2.DateMillisecond:
|
|
10012
|
-
return "date-millisecond";
|
|
10013
|
-
case arrow2.Time:
|
|
10014
|
-
const timeUnit = arrowType.unit;
|
|
10015
|
-
switch (timeUnit) {
|
|
10016
|
-
case arrow2.TimeUnit.SECOND:
|
|
10017
|
-
return "time-second";
|
|
10018
|
-
case arrow2.TimeUnit.MILLISECOND:
|
|
10019
|
-
return "time-millisecond";
|
|
10020
|
-
case arrow2.TimeUnit.MICROSECOND:
|
|
10021
|
-
return "time-microsecond";
|
|
10022
|
-
case arrow2.TimeUnit.NANOSECOND:
|
|
10023
|
-
return "time-nanosecond";
|
|
10024
|
-
default:
|
|
10025
|
-
return "time-second";
|
|
10026
|
-
}
|
|
10027
|
-
case arrow2.TimeMillisecond:
|
|
10028
|
-
return "time-millisecond";
|
|
10029
|
-
case arrow2.TimeSecond:
|
|
10030
|
-
return "time-second";
|
|
10031
|
-
case arrow2.TimeMicrosecond:
|
|
10032
|
-
return "time-microsecond";
|
|
10033
|
-
case arrow2.TimeNanosecond:
|
|
10034
|
-
return "time-nanosecond";
|
|
10035
|
-
case arrow2.Timestamp:
|
|
10036
|
-
const timeStampUnit = arrowType.unit;
|
|
10037
|
-
switch (timeStampUnit) {
|
|
10038
|
-
case arrow2.TimeUnit.SECOND:
|
|
10039
|
-
return "timestamp-second";
|
|
10040
|
-
case arrow2.TimeUnit.MILLISECOND:
|
|
10041
|
-
return "timestamp-millisecond";
|
|
10042
|
-
case arrow2.TimeUnit.MICROSECOND:
|
|
10043
|
-
return "timestamp-microsecond";
|
|
10044
|
-
case arrow2.TimeUnit.NANOSECOND:
|
|
10045
|
-
return "timestamp-nanosecond";
|
|
10046
|
-
default:
|
|
10047
|
-
return "timestamp-second";
|
|
10048
|
-
}
|
|
10049
|
-
case arrow2.TimestampSecond:
|
|
10050
|
-
return "timestamp-second";
|
|
10051
|
-
case arrow2.TimestampMillisecond:
|
|
10052
|
-
return "timestamp-millisecond";
|
|
10053
|
-
case arrow2.TimestampMicrosecond:
|
|
10054
|
-
return "timestamp-microsecond";
|
|
10055
|
-
case arrow2.TimestampNanosecond:
|
|
10056
|
-
return "timestamp-nanosecond";
|
|
10057
|
-
case arrow2.Interval:
|
|
10058
|
-
const intervalUnit = arrowType.unit;
|
|
10059
|
-
switch (intervalUnit) {
|
|
10060
|
-
case arrow2.IntervalUnit.DAY_TIME:
|
|
10061
|
-
return "interval-daytime";
|
|
10062
|
-
case arrow2.IntervalUnit.YEAR_MONTH:
|
|
10063
|
-
return "interval-yearmonth";
|
|
10064
|
-
default:
|
|
10065
|
-
return "interval-daytime";
|
|
10066
|
-
}
|
|
10067
|
-
case arrow2.IntervalDayTime:
|
|
10068
|
-
return "interval-daytime";
|
|
10069
|
-
case arrow2.IntervalYearMonth:
|
|
10070
|
-
return "interval-yearmonth";
|
|
10071
|
-
case arrow2.Map_:
|
|
10072
|
-
const mapType = arrowType;
|
|
10073
|
-
return {
|
|
10074
|
-
type: "map",
|
|
10075
|
-
keysSorted: mapType.keysSorted,
|
|
10076
|
-
children: mapType.children.map((arrowField) => serializeArrowField(arrowField))
|
|
10077
|
-
};
|
|
10078
|
-
case arrow2.List:
|
|
10079
|
-
const listType = arrowType;
|
|
10080
|
-
const listField = listType.valueField;
|
|
10081
|
-
return {
|
|
10082
|
-
type: "list",
|
|
10083
|
-
children: [serializeArrowField(listField)]
|
|
10084
|
-
};
|
|
10085
|
-
case arrow2.FixedSizeList:
|
|
10086
|
-
const fixedSizeList = arrowType;
|
|
10087
|
-
return {
|
|
10088
|
-
type: "fixed-size-list",
|
|
10089
|
-
listSize: fixedSizeList.listSize,
|
|
10090
|
-
children: [serializeArrowField(fixedSizeList.children[0])]
|
|
10091
|
-
};
|
|
10092
|
-
case arrow2.Struct:
|
|
10093
|
-
const structType = arrowType;
|
|
10094
|
-
return {
|
|
10095
|
-
type: "struct",
|
|
10096
|
-
children: structType.children.map((arrowField) => serializeArrowField(arrowField))
|
|
10097
|
-
};
|
|
10098
|
-
case arrow2.SparseUnion:
|
|
10099
|
-
case arrow2.DenseUnion:
|
|
10100
|
-
const unionType = arrowType;
|
|
10101
|
-
return {
|
|
10102
|
-
type: unionType instanceof arrow2.DenseUnion ? "dense-union" : "sparse-union",
|
|
10103
|
-
typeIds: unionType.typeIds,
|
|
10104
|
-
children: unionType.children.map((arrowField) => serializeArrowField(arrowField)),
|
|
10105
|
-
typeIdToChildIndex: { ...unionType.typeIdToChildIndex }
|
|
10106
|
-
};
|
|
10107
|
-
case arrow2.Dictionary:
|
|
10108
|
-
const dictionaryType = arrowType;
|
|
10109
|
-
return {
|
|
10110
|
-
type: "dictionary",
|
|
10111
|
-
id: dictionaryType.id,
|
|
10112
|
-
indices: serializeArrowDictionaryKeyType(dictionaryType.indices),
|
|
10113
|
-
dictionary: serializeArrowType(dictionaryType.dictionary),
|
|
10114
|
-
isOrdered: dictionaryType.isOrdered
|
|
10115
|
-
};
|
|
10116
|
-
default:
|
|
10117
|
-
throw new Error(`arrow type not supported: ${arrowType.constructor.name}`);
|
|
10118
|
-
}
|
|
10119
|
-
}
|
|
10120
9863
|
function deserializeArrowType(dataType, options) {
|
|
10121
9864
|
if (typeof dataType === "object") {
|
|
10122
9865
|
switch (dataType.type) {
|
|
@@ -10239,19 +9982,6 @@ function deserializeArrowType(dataType, options) {
|
|
|
10239
9982
|
function getOptionalArrowConstructor(typeName) {
|
|
10240
9983
|
return arrow2[typeName];
|
|
10241
9984
|
}
|
|
10242
|
-
function isArrowViewType(arrowType, viewTypeName) {
|
|
10243
|
-
const constructor = getOptionalArrowConstructor(viewTypeName);
|
|
10244
|
-
if (constructor && arrowType instanceof constructor) {
|
|
10245
|
-
return true;
|
|
10246
|
-
}
|
|
10247
|
-
const guards = arrow2.DataType;
|
|
10248
|
-
const guard = viewTypeName === "BinaryView" ? guards.isBinaryView : guards.isUtf8View;
|
|
10249
|
-
return Boolean(guard == null ? void 0 : guard(arrowType));
|
|
10250
|
-
}
|
|
10251
|
-
function isOptionalArrowType(arrowType, typeName) {
|
|
10252
|
-
const constructor = getOptionalArrowConstructor(typeName);
|
|
10253
|
-
return Boolean(constructor && arrowType instanceof constructor);
|
|
10254
|
-
}
|
|
10255
9985
|
function makeVariableWidthArrowType(viewTypeName, fallbackType, options) {
|
|
10256
9986
|
const viewTypeMode = (options == null ? void 0 : options.viewTypes) || "never";
|
|
10257
9987
|
if (viewTypeMode === "never") {
|
|
@@ -10277,34 +10007,6 @@ function makeRequiredArrowViewType(viewTypeName) {
|
|
|
10277
10007
|
}
|
|
10278
10008
|
return new constructor();
|
|
10279
10009
|
}
|
|
10280
|
-
function serializeArrowDictionaryKeyType(arrowType) {
|
|
10281
|
-
if (arrowType instanceof arrow2.Int) {
|
|
10282
|
-
const prefix = arrowType.isSigned ? "int" : "uint";
|
|
10283
|
-
const keyType = `${prefix}${arrowType.bitWidth}`;
|
|
10284
|
-
if (isSchemaDictionaryKeyType(keyType)) {
|
|
10285
|
-
return keyType;
|
|
10286
|
-
}
|
|
10287
|
-
}
|
|
10288
|
-
switch (arrowType.constructor) {
|
|
10289
|
-
case arrow2.Int8:
|
|
10290
|
-
return "int8";
|
|
10291
|
-
case arrow2.Int16:
|
|
10292
|
-
return "int16";
|
|
10293
|
-
case arrow2.Int32:
|
|
10294
|
-
return "int32";
|
|
10295
|
-
case arrow2.Uint8:
|
|
10296
|
-
return "uint8";
|
|
10297
|
-
case arrow2.Uint16:
|
|
10298
|
-
return "uint16";
|
|
10299
|
-
case arrow2.Uint32:
|
|
10300
|
-
return "uint32";
|
|
10301
|
-
default:
|
|
10302
|
-
throw new Error(`arrow dictionary index type not supported: ${arrowType.constructor.name}`);
|
|
10303
|
-
}
|
|
10304
|
-
}
|
|
10305
|
-
function isSchemaDictionaryKeyType(keyType) {
|
|
10306
|
-
return ["int8", "int16", "int32", "uint8", "uint16", "uint32"].includes(keyType);
|
|
10307
|
-
}
|
|
10308
10010
|
function deserializeArrowDictionaryKeyType(keyType) {
|
|
10309
10011
|
switch (keyType) {
|
|
10310
10012
|
case "int8":
|
|
@@ -10512,7 +10214,7 @@ var init_arrow_fixed_size_list_utils = __esm({
|
|
|
10512
10214
|
});
|
|
10513
10215
|
|
|
10514
10216
|
// ../core/src/schema-utils/lib/mesh/convert-mesh-to-table.ts
|
|
10515
|
-
function
|
|
10217
|
+
function convertMeshToArrowTable(mesh) {
|
|
10516
10218
|
var _a;
|
|
10517
10219
|
return makeMeshArrowTable(mesh.attributes, {
|
|
10518
10220
|
schema: mesh.schema,
|
|
@@ -10535,22 +10237,14 @@ function makeMeshArrowTable(attributes, options = {}) {
|
|
|
10535
10237
|
fields.push(
|
|
10536
10238
|
getAttributeArrowField(options.schema, attributeName, column, attribute.componentType)
|
|
10537
10239
|
);
|
|
10538
|
-
if (attributeName ===
|
|
10240
|
+
if (attributeName === attributeNames[0] && ((_b = (_a = options.indices) == null ? void 0 : _a.value) == null ? void 0 : _b.length)) {
|
|
10539
10241
|
const indicesField = indexedMeshArrowSchema.fields.find((field) => field.name === "indices");
|
|
10540
10242
|
columns.indices = getIndicesVector(options.indices.value, column.length, indicesField.type);
|
|
10541
10243
|
fields.push(indicesField);
|
|
10542
10244
|
}
|
|
10543
10245
|
}
|
|
10544
10246
|
const arrowSchema = new arrow5.Schema(fields, getMeshArrowMetadata(options));
|
|
10545
|
-
|
|
10546
|
-
const schema = serializeArrowSchema(table.schema);
|
|
10547
|
-
return {
|
|
10548
|
-
shape: "arrow-table",
|
|
10549
|
-
schema,
|
|
10550
|
-
data: table,
|
|
10551
|
-
topology: options.topology || "point-list",
|
|
10552
|
-
indices: options.indices
|
|
10553
|
-
};
|
|
10247
|
+
return ((_c = columns[attributeNames[0]]) == null ? void 0 : _c.length) === 0 ? new arrow5.Table(arrowSchema) : new arrow5.Table(arrowSchema, columns);
|
|
10554
10248
|
}
|
|
10555
10249
|
function getAttributeArrowVector(value, size, componentType) {
|
|
10556
10250
|
if (componentType === "float16") {
|
|
@@ -11372,7 +11066,7 @@ async function parseDraco(arrayBuffer, options, loadDecoderModule, context) {
|
|
|
11372
11066
|
const mesh = dracoParser.parseSync(arrayBuffer, options == null ? void 0 : options.draco);
|
|
11373
11067
|
reportProgress == null ? void 0 : reportProgress({ phase: "decode", completed: 1, total: 1, unit: "tasks" });
|
|
11374
11068
|
if (((_b = options == null ? void 0 : options.draco) == null ? void 0 : _b.shape) === "arrow") {
|
|
11375
|
-
return
|
|
11069
|
+
return convertMeshToArrowTable(mesh);
|
|
11376
11070
|
}
|
|
11377
11071
|
return mesh;
|
|
11378
11072
|
} finally {
|
|
@@ -15038,7 +14732,7 @@ var VERSION6;
|
|
|
15038
14732
|
var init_version5 = __esm({
|
|
15039
14733
|
"dist/3d-tiles/lib/utils/version.js"() {
|
|
15040
14734
|
"use strict";
|
|
15041
|
-
VERSION6 = true ? "5.0.0-beta.
|
|
14735
|
+
VERSION6 = true ? "5.0.0-beta.11" : "latest";
|
|
15042
14736
|
}
|
|
15043
14737
|
});
|
|
15044
14738
|
|
|
@@ -19841,12 +19535,50 @@ var init_src3 = __esm({
|
|
|
19841
19535
|
}
|
|
19842
19536
|
});
|
|
19843
19537
|
|
|
19538
|
+
// dist/3d-tiles/lib/classes/helpers/tile-component-types.js
|
|
19539
|
+
function getTileComponentArrayType(componentType) {
|
|
19540
|
+
if (!Object.hasOwn(TILE_COMPONENT_ARRAYS, componentType)) {
|
|
19541
|
+
throw new Error(`Unsupported 3D Tiles component type: ${componentType}`);
|
|
19542
|
+
}
|
|
19543
|
+
return TILE_COMPONENT_ARRAYS[componentType];
|
|
19544
|
+
}
|
|
19545
|
+
var TILE_COMPONENT_ARRAYS;
|
|
19546
|
+
var init_tile_component_types = __esm({
|
|
19547
|
+
"dist/3d-tiles/lib/classes/helpers/tile-component-types.js"() {
|
|
19548
|
+
"use strict";
|
|
19549
|
+
TILE_COMPONENT_ARRAYS = {
|
|
19550
|
+
BYTE: Int8Array,
|
|
19551
|
+
UNSIGNED_BYTE: Uint8Array,
|
|
19552
|
+
SHORT: Int16Array,
|
|
19553
|
+
UNSIGNED_SHORT: Uint16Array,
|
|
19554
|
+
INT: Int32Array,
|
|
19555
|
+
UNSIGNED_INT: Uint32Array,
|
|
19556
|
+
FLOAT: Float32Array,
|
|
19557
|
+
DOUBLE: Float64Array,
|
|
19558
|
+
UNSIGNED_SHORT_4_4_4_4: Uint16Array,
|
|
19559
|
+
UNSIGNED_SHORT_5_5_5_1: Uint16Array,
|
|
19560
|
+
UNSIGNED_SHORT_5_6_5: Uint16Array,
|
|
19561
|
+
5120: Int8Array,
|
|
19562
|
+
5121: Uint8Array,
|
|
19563
|
+
5122: Int16Array,
|
|
19564
|
+
5123: Uint16Array,
|
|
19565
|
+
5124: Int32Array,
|
|
19566
|
+
5125: Uint32Array,
|
|
19567
|
+
5126: Float32Array,
|
|
19568
|
+
5130: Float64Array,
|
|
19569
|
+
32819: Uint16Array,
|
|
19570
|
+
32820: Uint16Array,
|
|
19571
|
+
33635: Uint16Array
|
|
19572
|
+
};
|
|
19573
|
+
}
|
|
19574
|
+
});
|
|
19575
|
+
|
|
19844
19576
|
// dist/3d-tiles/lib/classes/tile-3d-feature-table.js
|
|
19845
|
-
var
|
|
19577
|
+
var Tile3DFeatureTable;
|
|
19846
19578
|
var init_tile_3d_feature_table = __esm({
|
|
19847
19579
|
"dist/3d-tiles/lib/classes/tile-3d-feature-table.js"() {
|
|
19848
19580
|
"use strict";
|
|
19849
|
-
|
|
19581
|
+
init_tile_component_types();
|
|
19850
19582
|
Tile3DFeatureTable = class {
|
|
19851
19583
|
json;
|
|
19852
19584
|
buffer;
|
|
@@ -19862,23 +19594,26 @@ var init_tile_3d_feature_table = __esm({
|
|
|
19862
19594
|
hasProperty(propertyName) {
|
|
19863
19595
|
return Boolean(this.json[propertyName]);
|
|
19864
19596
|
}
|
|
19865
|
-
|
|
19597
|
+
/** Reads a global property, using the component type for binary storage. */
|
|
19598
|
+
getGlobalProperty(propertyName, componentType = Uint32Array, componentLength = 1) {
|
|
19866
19599
|
const jsonValue = this.json[propertyName];
|
|
19867
19600
|
if (jsonValue && Number.isFinite(jsonValue.byteOffset)) {
|
|
19868
19601
|
return this._getTypedArrayFromBinary(propertyName, componentType, componentLength, 1, jsonValue.byteOffset);
|
|
19869
19602
|
}
|
|
19870
19603
|
return jsonValue;
|
|
19871
19604
|
}
|
|
19605
|
+
/** Reads a property for all features as a typed array. */
|
|
19872
19606
|
getPropertyArray(propertyName, componentType, componentLength) {
|
|
19873
19607
|
const jsonValue = this.json[propertyName];
|
|
19874
19608
|
if (jsonValue && Number.isFinite(jsonValue.byteOffset)) {
|
|
19875
19609
|
if ("componentType" in jsonValue) {
|
|
19876
|
-
componentType =
|
|
19610
|
+
componentType = getTileComponentArrayType(jsonValue.componentType);
|
|
19877
19611
|
}
|
|
19878
19612
|
return this._getTypedArrayFromBinary(propertyName, componentType, componentLength, this.featuresLength, jsonValue.byteOffset);
|
|
19879
19613
|
}
|
|
19880
19614
|
return this._getTypedArrayFromArray(propertyName, componentType, jsonValue);
|
|
19881
19615
|
}
|
|
19616
|
+
/** Reads a single feature property, writing vector components to result. */
|
|
19882
19617
|
getProperty(propertyName, componentType, componentLength, featureId, result) {
|
|
19883
19618
|
const jsonValue = this.json[propertyName];
|
|
19884
19619
|
if (!jsonValue) {
|
|
@@ -19898,7 +19633,8 @@ var init_tile_3d_feature_table = __esm({
|
|
|
19898
19633
|
const cachedTypedArrays = this._cachedTypedArrays;
|
|
19899
19634
|
let typedArray = cachedTypedArrays[propertyName];
|
|
19900
19635
|
if (!typedArray) {
|
|
19901
|
-
|
|
19636
|
+
const ArrayType = typeof componentType === "number" ? getTileComponentArrayType(componentType) : componentType;
|
|
19637
|
+
typedArray = new ArrayType(this.buffer.buffer, this.buffer.byteOffset + byteOffset, count * componentLength);
|
|
19902
19638
|
cachedTypedArrays[propertyName] = typedArray;
|
|
19903
19639
|
}
|
|
19904
19640
|
return typedArray;
|
|
@@ -19907,15 +19643,13 @@ var init_tile_3d_feature_table = __esm({
|
|
|
19907
19643
|
const cachedTypedArrays = this._cachedTypedArrays;
|
|
19908
19644
|
let typedArray = cachedTypedArrays[propertyName];
|
|
19909
19645
|
if (!typedArray) {
|
|
19646
|
+
const ArrayType = typeof componentType === "number" ? getTileComponentArrayType(componentType) : componentType;
|
|
19910
19647
|
if (ArrayBuffer.isView(array)) {
|
|
19911
19648
|
const byteOffset = array.byteOffset;
|
|
19912
19649
|
const byteLength = array.byteLength;
|
|
19913
|
-
const elementCount = byteLength /
|
|
19914
|
-
typedArray =
|
|
19915
|
-
} else if (array instanceof ArrayBuffer) {
|
|
19916
|
-
typedArray = import_geometry.GLType.createTypedArray(componentType, array);
|
|
19650
|
+
const elementCount = byteLength / ArrayType.BYTES_PER_ELEMENT;
|
|
19651
|
+
typedArray = new ArrayType(array.buffer, byteOffset, elementCount);
|
|
19917
19652
|
} else {
|
|
19918
|
-
const ArrayType = import_geometry.GLType.getArrayType(componentType);
|
|
19919
19653
|
typedArray = new ArrayType(array);
|
|
19920
19654
|
}
|
|
19921
19655
|
cachedTypedArrays[propertyName] = typedArray;
|
|
@@ -19930,25 +19664,24 @@ var init_tile_3d_feature_table = __esm({
|
|
|
19930
19664
|
function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length) {
|
|
19931
19665
|
const { componentType } = tile3DAccessor;
|
|
19932
19666
|
assert(tile3DAccessor.componentType);
|
|
19933
|
-
const
|
|
19667
|
+
const ArrayType = getTileComponentArrayType(componentType);
|
|
19934
19668
|
const size = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
|
|
19935
19669
|
const unpacker = UNPACKER[tile3DAccessor.type];
|
|
19936
19670
|
const packer = PACKER[tile3DAccessor.type];
|
|
19937
19671
|
byteOffset += tile3DAccessor.byteOffset;
|
|
19938
|
-
const values =
|
|
19672
|
+
const values = new ArrayType(buffer, byteOffset, size * length);
|
|
19939
19673
|
return {
|
|
19940
19674
|
values,
|
|
19941
|
-
type,
|
|
19942
19675
|
size,
|
|
19943
19676
|
unpacker,
|
|
19944
19677
|
packer
|
|
19945
19678
|
};
|
|
19946
19679
|
}
|
|
19947
|
-
var
|
|
19680
|
+
var COMPONENTS_PER_ATTRIBUTE, UNPACKER, PACKER;
|
|
19948
19681
|
var init_tile_3d_accessor_utils = __esm({
|
|
19949
19682
|
"dist/3d-tiles/lib/classes/helpers/tile-3d-accessor-utils.js"() {
|
|
19950
19683
|
"use strict";
|
|
19951
|
-
|
|
19684
|
+
init_tile_component_types();
|
|
19952
19685
|
init_loader_utils();
|
|
19953
19686
|
COMPONENTS_PER_ATTRIBUTE = {
|
|
19954
19687
|
SCALAR: 1,
|
|
@@ -20105,14 +19838,14 @@ function initializeHierarchyValues(hierarchyJson, binaryBody) {
|
|
|
20105
19838
|
let parentIds = hierarchyJson.parentIds;
|
|
20106
19839
|
let parentIdsLength = instancesLength;
|
|
20107
19840
|
if (defined3(classIds.byteOffset)) {
|
|
20108
|
-
classIds.componentType ??=
|
|
19841
|
+
classIds.componentType ??= "UNSIGNED_SHORT";
|
|
20109
19842
|
classIds.type = "SCALAR";
|
|
20110
19843
|
classIds = createTypedArrayFromAccessor(classIds, binaryBody.buffer, binaryBody.byteOffset, instancesLength).values;
|
|
20111
19844
|
}
|
|
20112
19845
|
let parentIndexes;
|
|
20113
19846
|
if (defined3(parentCounts)) {
|
|
20114
19847
|
if (defined3(parentCounts.byteOffset)) {
|
|
20115
|
-
parentCounts.componentType ??=
|
|
19848
|
+
parentCounts.componentType ??= "UNSIGNED_SHORT";
|
|
20116
19849
|
parentCounts.type = "SCALAR";
|
|
20117
19850
|
parentCounts = createTypedArrayFromAccessor(parentCounts, binaryBody.buffer, binaryBody.byteOffset, instancesLength).values;
|
|
20118
19851
|
}
|
|
@@ -20124,7 +19857,7 @@ function initializeHierarchyValues(hierarchyJson, binaryBody) {
|
|
|
20124
19857
|
}
|
|
20125
19858
|
}
|
|
20126
19859
|
if (defined3(parentIds) && defined3(parentIds.byteOffset)) {
|
|
20127
|
-
parentIds.componentType ??=
|
|
19860
|
+
parentIds.componentType ??= "UNSIGNED_SHORT";
|
|
20128
19861
|
parentIds.type = "SCALAR";
|
|
20129
19862
|
parentIds = createTypedArrayFromAccessor(parentIds, binaryBody.buffer, binaryBody.byteOffset, parentIdsLength).values;
|
|
20130
19863
|
}
|
|
@@ -20243,12 +19976,11 @@ function validateInstance(hierarchy, instanceIndex, stack) {
|
|
|
20243
19976
|
}
|
|
20244
19977
|
stack.pop(instanceIndex);
|
|
20245
19978
|
}
|
|
20246
|
-
var
|
|
19979
|
+
var defined3, scratchVisited, scratchStack, marker;
|
|
20247
19980
|
var init_tile_3d_batch_table_hierarchy = __esm({
|
|
20248
19981
|
"dist/3d-tiles/lib/classes/tile-3d-batch-table-hierarchy.js"() {
|
|
20249
19982
|
"use strict";
|
|
20250
19983
|
init_loader_utils();
|
|
20251
|
-
import_geometry3 = require("@math.gl/geometry");
|
|
20252
19984
|
init_tile_3d_accessor_utils();
|
|
20253
19985
|
defined3 = (x) => x !== void 0;
|
|
20254
19986
|
scratchVisited = [];
|
|
@@ -20624,7 +20356,7 @@ function normalize3DTileColorAttribute(tile, colors, batchTable, colorFormat = "
|
|
|
20624
20356
|
if (colors && isRGB565) {
|
|
20625
20357
|
const colorArray = new Uint8ClampedArray(pointCount * 3);
|
|
20626
20358
|
for (let i = 0; i < pointCount; i++) {
|
|
20627
|
-
const color = (0,
|
|
20359
|
+
const color = (0, import_geometry.decodeRGB565)(colors[i]);
|
|
20628
20360
|
colorArray[i * 3] = color[0];
|
|
20629
20361
|
colorArray[i * 3 + 1] = color[1];
|
|
20630
20362
|
colorArray[i * 3 + 2] = color[2];
|
|
@@ -20639,7 +20371,6 @@ function normalize3DTileColorAttribute(tile, colors, batchTable, colorFormat = "
|
|
|
20639
20371
|
function makeColorAttribute(colors, size, colorFormat) {
|
|
20640
20372
|
if (colorFormat === "float16") {
|
|
20641
20373
|
return {
|
|
20642
|
-
type: 5131,
|
|
20643
20374
|
value: convertColorArrayToFloat16(colors, 255),
|
|
20644
20375
|
size,
|
|
20645
20376
|
normalized: false,
|
|
@@ -20648,19 +20379,18 @@ function makeColorAttribute(colors, size, colorFormat) {
|
|
|
20648
20379
|
}
|
|
20649
20380
|
if (colorFormat === "float32") {
|
|
20650
20381
|
return {
|
|
20651
|
-
type: import_geometry4.GL.FLOAT,
|
|
20652
20382
|
value: Float32Array.from(colors, (color) => color / 255),
|
|
20653
20383
|
size,
|
|
20654
20384
|
normalized: false
|
|
20655
20385
|
};
|
|
20656
20386
|
}
|
|
20657
|
-
return {
|
|
20387
|
+
return { value: colors, size, normalized: true };
|
|
20658
20388
|
}
|
|
20659
|
-
var
|
|
20389
|
+
var import_geometry;
|
|
20660
20390
|
var init_normalize_3d_tile_colors = __esm({
|
|
20661
20391
|
"dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-colors.js"() {
|
|
20662
20392
|
"use strict";
|
|
20663
|
-
|
|
20393
|
+
import_geometry = require("@math.gl/geometry");
|
|
20664
20394
|
init_schema();
|
|
20665
20395
|
}
|
|
20666
20396
|
});
|
|
@@ -20671,29 +20401,28 @@ function normalize3DTileNormalAttribute(tile, normals) {
|
|
|
20671
20401
|
return null;
|
|
20672
20402
|
}
|
|
20673
20403
|
if (tile.isOctEncoded16P) {
|
|
20674
|
-
const
|
|
20675
|
-
|
|
20676
|
-
|
|
20404
|
+
const pointCount = normals.length / 2;
|
|
20405
|
+
const decodedArray = new Float32Array(pointCount * 3);
|
|
20406
|
+
for (let i = 0; i < pointCount; i++) {
|
|
20407
|
+
(0, import_geometry2.octDecode)(normals[i * 2], normals[i * 2 + 1], scratchNormal);
|
|
20677
20408
|
scratchNormal.toArray(decodedArray, i * 3);
|
|
20678
20409
|
}
|
|
20679
20410
|
return {
|
|
20680
|
-
|
|
20681
|
-
size: 2,
|
|
20411
|
+
size: 3,
|
|
20682
20412
|
value: decodedArray
|
|
20683
20413
|
};
|
|
20684
20414
|
}
|
|
20685
20415
|
return {
|
|
20686
|
-
|
|
20687
|
-
size: 2,
|
|
20416
|
+
size: 3,
|
|
20688
20417
|
value: normals
|
|
20689
20418
|
};
|
|
20690
20419
|
}
|
|
20691
|
-
var import_core14,
|
|
20420
|
+
var import_core14, import_geometry2, scratchNormal;
|
|
20692
20421
|
var init_normalize_3d_tile_normals = __esm({
|
|
20693
20422
|
"dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-normals.js"() {
|
|
20694
20423
|
"use strict";
|
|
20695
20424
|
import_core14 = require("@math.gl/core");
|
|
20696
|
-
|
|
20425
|
+
import_geometry2 = require("@math.gl/geometry");
|
|
20697
20426
|
scratchNormal = new import_core14.Vector3();
|
|
20698
20427
|
}
|
|
20699
20428
|
});
|
|
@@ -20708,7 +20437,6 @@ function normalize3DTilePositionAttribute(tile, positions, options) {
|
|
|
20708
20437
|
return decodeQuantizedPositions(tile, positions);
|
|
20709
20438
|
}
|
|
20710
20439
|
return {
|
|
20711
|
-
type: import_geometry6.GL.UNSIGNED_SHORT,
|
|
20712
20440
|
value: positions,
|
|
20713
20441
|
size: 3,
|
|
20714
20442
|
normalized: true
|
|
@@ -20722,12 +20450,11 @@ function decodeQuantizedPositions(tile, positions) {
|
|
|
20722
20450
|
}
|
|
20723
20451
|
return decodedArray;
|
|
20724
20452
|
}
|
|
20725
|
-
var import_core15
|
|
20453
|
+
var import_core15;
|
|
20726
20454
|
var init_normalize_3d_tile_positions = __esm({
|
|
20727
20455
|
"dist/3d-tiles/lib/parsers/helpers/normalize-3d-tile-positions.js"() {
|
|
20728
20456
|
"use strict";
|
|
20729
20457
|
import_core15 = require("@math.gl/core");
|
|
20730
|
-
import_geometry6 = require("@math.gl/geometry");
|
|
20731
20458
|
}
|
|
20732
20459
|
});
|
|
20733
20460
|
|
|
@@ -20746,6 +20473,7 @@ async function parsePointCloud3DTile(tile, arrayBuffer, byteOffset, options, con
|
|
|
20746
20473
|
return byteOffset;
|
|
20747
20474
|
}
|
|
20748
20475
|
function initializeTile(tile) {
|
|
20476
|
+
tile.topology = "point-list";
|
|
20749
20477
|
tile.attributes = {
|
|
20750
20478
|
positions: null,
|
|
20751
20479
|
colors: null,
|
|
@@ -20767,7 +20495,7 @@ function parsePointCloudTables(tile) {
|
|
|
20767
20495
|
tile.featuresLength = pointsLength;
|
|
20768
20496
|
tile.pointsLength = pointsLength;
|
|
20769
20497
|
tile.pointCount = pointsLength;
|
|
20770
|
-
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER",
|
|
20498
|
+
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER", Float32Array, 3);
|
|
20771
20499
|
const batchTable = parseBatchIds(tile, featureTable);
|
|
20772
20500
|
return { featureTable, batchTable };
|
|
20773
20501
|
}
|
|
@@ -20780,16 +20508,16 @@ function parsePositions(tile, featureTable, options) {
|
|
|
20780
20508
|
};
|
|
20781
20509
|
if (!tile.attributes.positions) {
|
|
20782
20510
|
if (featureTable.hasProperty("POSITION")) {
|
|
20783
|
-
tile.attributes.positions = featureTable.getPropertyArray("POSITION",
|
|
20511
|
+
tile.attributes.positions = featureTable.getPropertyArray("POSITION", Float32Array, 3);
|
|
20784
20512
|
} else if (featureTable.hasProperty("POSITION_QUANTIZED")) {
|
|
20785
|
-
const positions = featureTable.getPropertyArray("POSITION_QUANTIZED",
|
|
20513
|
+
const positions = featureTable.getPropertyArray("POSITION_QUANTIZED", Uint16Array, 3);
|
|
20786
20514
|
tile.isQuantized = true;
|
|
20787
20515
|
tile.quantizedRange = (1 << 16) - 1;
|
|
20788
|
-
tile.quantizedVolumeScale = featureTable.getGlobalProperty("QUANTIZED_VOLUME_SCALE",
|
|
20516
|
+
tile.quantizedVolumeScale = featureTable.getGlobalProperty("QUANTIZED_VOLUME_SCALE", Float32Array, 3);
|
|
20789
20517
|
if (!tile.quantizedVolumeScale) {
|
|
20790
20518
|
throw new Error("QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");
|
|
20791
20519
|
}
|
|
20792
|
-
tile.quantizedVolumeOffset = featureTable.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",
|
|
20520
|
+
tile.quantizedVolumeOffset = featureTable.getGlobalProperty("QUANTIZED_VOLUME_OFFSET", Float32Array, 3);
|
|
20793
20521
|
if (!tile.quantizedVolumeOffset) {
|
|
20794
20522
|
throw new Error("QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");
|
|
20795
20523
|
}
|
|
@@ -20810,18 +20538,18 @@ function parseColors(tile, featureTable, batchTable, colorFormat) {
|
|
|
20810
20538
|
if (!tile.attributes.colors) {
|
|
20811
20539
|
let colors = null;
|
|
20812
20540
|
if (featureTable.hasProperty("RGBA")) {
|
|
20813
|
-
colors = featureTable.getPropertyArray("RGBA",
|
|
20541
|
+
colors = featureTable.getPropertyArray("RGBA", Uint8Array, 4);
|
|
20814
20542
|
tile.isTranslucent = true;
|
|
20815
20543
|
} else if (featureTable.hasProperty("RGB")) {
|
|
20816
|
-
colors = featureTable.getPropertyArray("RGB",
|
|
20544
|
+
colors = featureTable.getPropertyArray("RGB", Uint8Array, 3);
|
|
20817
20545
|
} else if (featureTable.hasProperty("RGB565")) {
|
|
20818
|
-
colors = featureTable.getPropertyArray("RGB565",
|
|
20546
|
+
colors = featureTable.getPropertyArray("RGB565", Uint16Array, 1);
|
|
20819
20547
|
tile.isRGB565 = true;
|
|
20820
20548
|
}
|
|
20821
20549
|
tile.attributes.colors = normalize3DTileColorAttribute(tile, colors, batchTable, colorFormat);
|
|
20822
20550
|
}
|
|
20823
20551
|
if (featureTable.hasProperty("CONSTANT_RGBA")) {
|
|
20824
|
-
tile.constantRGBA = featureTable.getGlobalProperty("CONSTANT_RGBA",
|
|
20552
|
+
tile.constantRGBA = featureTable.getGlobalProperty("CONSTANT_RGBA", Uint8Array, 4);
|
|
20825
20553
|
}
|
|
20826
20554
|
}
|
|
20827
20555
|
function parseNormals(tile, featureTable) {
|
|
@@ -20834,9 +20562,9 @@ function parseNormals(tile, featureTable) {
|
|
|
20834
20562
|
if (!tile.attributes.normals) {
|
|
20835
20563
|
let normals = null;
|
|
20836
20564
|
if (featureTable.hasProperty("NORMAL")) {
|
|
20837
|
-
normals = featureTable.getPropertyArray("NORMAL",
|
|
20565
|
+
normals = featureTable.getPropertyArray("NORMAL", Float32Array, 3);
|
|
20838
20566
|
} else if (featureTable.hasProperty("NORMAL_OCT16P")) {
|
|
20839
|
-
normals = featureTable.getPropertyArray("NORMAL_OCT16P",
|
|
20567
|
+
normals = featureTable.getPropertyArray("NORMAL_OCT16P", Uint8Array, 2);
|
|
20840
20568
|
tile.isOctEncoded16P = true;
|
|
20841
20569
|
}
|
|
20842
20570
|
tile.attributes.normals = normalize3DTileNormalAttribute(tile, normals);
|
|
@@ -20845,7 +20573,7 @@ function parseNormals(tile, featureTable) {
|
|
|
20845
20573
|
function parseBatchIds(tile, featureTable) {
|
|
20846
20574
|
let batchTable = null;
|
|
20847
20575
|
if (!tile.batchIds && featureTable.hasProperty("BATCH_ID")) {
|
|
20848
|
-
tile.batchIds = featureTable.getPropertyArray("BATCH_ID",
|
|
20576
|
+
tile.batchIds = featureTable.getPropertyArray("BATCH_ID", Uint16Array, 1);
|
|
20849
20577
|
if (tile.batchIds) {
|
|
20850
20578
|
const batchFeatureLength = featureTable.getGlobalProperty("BATCH_LENGTH");
|
|
20851
20579
|
if (!batchFeatureLength) {
|
|
@@ -20942,13 +20670,12 @@ async function loadDraco(tile, dracoData, options, context) {
|
|
|
20942
20670
|
...batchTableAttributes
|
|
20943
20671
|
};
|
|
20944
20672
|
}
|
|
20945
|
-
var
|
|
20673
|
+
var import_core16;
|
|
20946
20674
|
var init_parse_3d_tile_point_cloud = __esm({
|
|
20947
20675
|
"dist/3d-tiles/lib/parsers/parse-3d-tile-point-cloud.js"() {
|
|
20948
20676
|
"use strict";
|
|
20949
20677
|
init_src3();
|
|
20950
20678
|
init_loader_utils();
|
|
20951
|
-
import_geometry7 = require("@math.gl/geometry");
|
|
20952
20679
|
import_core16 = require("@math.gl/core");
|
|
20953
20680
|
init_tile_3d_feature_table();
|
|
20954
20681
|
init_tile_3d_batch_table();
|
|
@@ -21059,14 +20786,12 @@ function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) {
|
|
|
21059
20786
|
byteOffset = parse3DTileTablesSync(tile, arrayBuffer, byteOffset, options);
|
|
21060
20787
|
byteOffset = parse3DTileGLTFViewSync(tile, arrayBuffer, byteOffset, options);
|
|
21061
20788
|
const featureTable = new Tile3DFeatureTable(tile.featureTableJson, tile.featureTableBinary);
|
|
21062
|
-
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER",
|
|
20789
|
+
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER", Float32Array, 3);
|
|
21063
20790
|
return byteOffset;
|
|
21064
20791
|
}
|
|
21065
|
-
var import_geometry8;
|
|
21066
20792
|
var init_parse_3d_tile_batched_model = __esm({
|
|
21067
20793
|
"dist/3d-tiles/lib/parsers/parse-3d-tile-batched-model.js"() {
|
|
21068
20794
|
"use strict";
|
|
21069
|
-
import_geometry8 = require("@math.gl/geometry");
|
|
21070
20795
|
init_tile_3d_feature_table();
|
|
21071
20796
|
init_parse_3d_tile_header();
|
|
21072
20797
|
init_parse_3d_tile_tables();
|
|
@@ -21102,7 +20827,7 @@ function parseInstancedModel(tile, arrayBuffer, byteOffset, options, context) {
|
|
|
21102
20827
|
throw new Error("i3dm parser: INSTANCES_LENGTH must be defined");
|
|
21103
20828
|
}
|
|
21104
20829
|
tile.eastNorthUp = featureTable.getGlobalProperty("EAST_NORTH_UP");
|
|
21105
|
-
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER",
|
|
20830
|
+
tile.rtcCenter = featureTable.getGlobalProperty("RTC_CENTER", Float32Array, 3);
|
|
21106
20831
|
const batchTable = new Tile3DBatchTableParser(tile.batchTableJson, tile.batchTableBinary, instancesLength);
|
|
21107
20832
|
extractInstancedAttributes(tile, featureTable, batchTable, instancesLength);
|
|
21108
20833
|
return byteOffset;
|
|
@@ -21126,14 +20851,14 @@ function extractInstancedAttributes(tile, featureTable, batchTable, instancesLen
|
|
|
21126
20851
|
for (let i = 0; i < instancesLength; i++) {
|
|
21127
20852
|
let position;
|
|
21128
20853
|
if (featureTable.hasProperty("POSITION")) {
|
|
21129
|
-
position = featureTable.getProperty("POSITION",
|
|
20854
|
+
position = featureTable.getProperty("POSITION", Float32Array, 3, i, instancePosition);
|
|
21130
20855
|
} else if (featureTable.hasProperty("POSITION_QUANTIZED")) {
|
|
21131
|
-
position = featureTable.getProperty("POSITION_QUANTIZED",
|
|
21132
|
-
const quantizedVolumeOffset = featureTable.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",
|
|
20856
|
+
position = featureTable.getProperty("POSITION_QUANTIZED", Uint16Array, 3, i, instancePosition);
|
|
20857
|
+
const quantizedVolumeOffset = featureTable.getGlobalProperty("QUANTIZED_VOLUME_OFFSET", Float32Array, 3);
|
|
21133
20858
|
if (!quantizedVolumeOffset) {
|
|
21134
20859
|
throw new Error("i3dm parser: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");
|
|
21135
20860
|
}
|
|
21136
|
-
const quantizedVolumeScale = featureTable.getGlobalProperty("QUANTIZED_VOLUME_SCALE",
|
|
20861
|
+
const quantizedVolumeScale = featureTable.getGlobalProperty("QUANTIZED_VOLUME_SCALE", Float32Array, 3);
|
|
21137
20862
|
if (!quantizedVolumeScale) {
|
|
21138
20863
|
throw new Error("i3dm parser: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");
|
|
21139
20864
|
}
|
|
@@ -21147,8 +20872,8 @@ function extractInstancedAttributes(tile, featureTable, batchTable, instancesLen
|
|
|
21147
20872
|
}
|
|
21148
20873
|
instancePosition.copy(position);
|
|
21149
20874
|
instanceTranslationRotationScale.translation = instancePosition;
|
|
21150
|
-
const normalUp = featureTable.getProperty("NORMAL_UP",
|
|
21151
|
-
const normalRight = featureTable.getProperty("NORMAL_RIGHT",
|
|
20875
|
+
const normalUp = featureTable.getProperty("NORMAL_UP", Float32Array, 3, i, scratch1);
|
|
20876
|
+
const normalRight = featureTable.getProperty("NORMAL_RIGHT", Float32Array, 3, i, scratch2);
|
|
21152
20877
|
tile.normalUp = normalUp;
|
|
21153
20878
|
tile.normalRight = normalRight;
|
|
21154
20879
|
let hasCustomOrientation = false;
|
|
@@ -21161,8 +20886,8 @@ function extractInstancedAttributes(tile, featureTable, batchTable, instancesLen
|
|
|
21161
20886
|
tile.hasCustomOrientation = true;
|
|
21162
20887
|
hasCustomOrientation = true;
|
|
21163
20888
|
} else {
|
|
21164
|
-
const octNormalUp = featureTable.getProperty("NORMAL_UP_OCT32P",
|
|
21165
|
-
const octNormalRight = featureTable.getProperty("NORMAL_RIGHT_OCT32P",
|
|
20889
|
+
const octNormalUp = featureTable.getProperty("NORMAL_UP_OCT32P", Uint16Array, 2, i, scratch1);
|
|
20890
|
+
const octNormalRight = featureTable.getProperty("NORMAL_RIGHT_OCT32P", Uint16Array, 2, i, scratch2);
|
|
21166
20891
|
tile.octNormalUp = octNormalUp;
|
|
21167
20892
|
tile.octNormalRight = octNormalRight;
|
|
21168
20893
|
if (tile.octNormalUp) {
|
|
@@ -21191,16 +20916,16 @@ function extractInstancedAttributes(tile, featureTable, batchTable, instancesLen
|
|
|
21191
20916
|
instanceQuaternion.fromMatrix3(instanceRotation);
|
|
21192
20917
|
instanceTranslationRotationScale.rotation = instanceQuaternion;
|
|
21193
20918
|
instanceScale.set(1, 1, 1);
|
|
21194
|
-
const scale = featureTable.getProperty("SCALE",
|
|
20919
|
+
const scale = featureTable.getProperty("SCALE", Float32Array, 1, i, scratch3);
|
|
21195
20920
|
if (Number.isFinite(scale)) {
|
|
21196
20921
|
instanceScale.multiplyByScalar(scale);
|
|
21197
20922
|
}
|
|
21198
|
-
const nonUniformScale = featureTable.getProperty("SCALE_NON_UNIFORM",
|
|
20923
|
+
const nonUniformScale = featureTable.getProperty("SCALE_NON_UNIFORM", Float32Array, 3, i, scratch1);
|
|
21199
20924
|
if (nonUniformScale) {
|
|
21200
20925
|
instanceScale.scale(nonUniformScale);
|
|
21201
20926
|
}
|
|
21202
20927
|
instanceTranslationRotationScale.scale = instanceScale;
|
|
21203
|
-
let batchId = featureTable.getProperty("BATCH_ID",
|
|
20928
|
+
let batchId = featureTable.getProperty("BATCH_ID", Uint16Array, 1, i, scratch4);
|
|
21204
20929
|
if (batchId === void 0) {
|
|
21205
20930
|
batchId = i;
|
|
21206
20931
|
}
|
|
@@ -21218,17 +20943,17 @@ function extractInstancedAttributes(tile, featureTable, batchTable, instancesLen
|
|
|
21218
20943
|
tile.instances = instances;
|
|
21219
20944
|
}
|
|
21220
20945
|
function decodeOct32POrientation(encodedUp, encodedRight, normalUp, normalRight) {
|
|
21221
|
-
(0,
|
|
21222
|
-
(0,
|
|
20946
|
+
(0, import_geometry3.octDecodeInRange)(encodedUp[0], encodedUp[1], 65535, normalUp);
|
|
20947
|
+
(0, import_geometry3.octDecodeInRange)(encodedRight[0], encodedRight[1], 65535, normalRight);
|
|
21223
20948
|
}
|
|
21224
|
-
var import_core17, import_geospatial8, import_geospatial9,
|
|
20949
|
+
var import_core17, import_geospatial8, import_geospatial9, import_geometry3;
|
|
21225
20950
|
var init_parse_3d_tile_instanced_model = __esm({
|
|
21226
20951
|
"dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js"() {
|
|
21227
20952
|
"use strict";
|
|
21228
20953
|
import_core17 = require("@math.gl/core");
|
|
21229
20954
|
import_geospatial8 = require("@math.gl/geospatial");
|
|
21230
20955
|
import_geospatial9 = require("@math.gl/geospatial");
|
|
21231
|
-
|
|
20956
|
+
import_geometry3 = require("@math.gl/geometry");
|
|
21232
20957
|
init_tile_3d_feature_table();
|
|
21233
20958
|
init_tile_3d_batch_table();
|
|
21234
20959
|
init_parse_3d_tile_header();
|
|
@@ -25613,7 +25338,7 @@ var init_d_tiles_archive_loader = __esm({
|
|
|
25613
25338
|
"dist/3d-tiles/3d-tiles-archive-loader.js"() {
|
|
25614
25339
|
"use strict";
|
|
25615
25340
|
init_tiles_3d_format();
|
|
25616
|
-
VERSION7 = true ? "5.0.0-beta.
|
|
25341
|
+
VERSION7 = true ? "5.0.0-beta.11" : "latest";
|
|
25617
25342
|
Tiles3DArchiveFileLoader = {
|
|
25618
25343
|
dataType: null,
|
|
25619
25344
|
batchType: null,
|