@loaders.gl/tiles-3d 5.0.0-beta.4 → 5.0.0-beta.6

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.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/dist/3d-tiles/3d-tiles-archive-loader.js +1 -1
  3. package/dist/3d-tiles/dist.dev.js +941 -621
  4. package/dist/3d-tiles/dist.min.js +37 -37
  5. package/dist/3d-tiles/index.cjs +876 -947
  6. package/dist/3d-tiles/index.cjs.map +3 -3
  7. package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js +5 -1
  8. package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -1
  9. package/dist/3d-tiles/lib/utils/version.js +1 -1
  10. package/dist/3d-tiles-archive-writer.cjs +1 -1
  11. package/dist/cesium-ion-loader-with-parser.cjs +821 -942
  12. package/dist/cesium-ion-loader-with-parser.cjs.map +3 -3
  13. package/dist/copc/copc-source-loader.js +2 -2
  14. package/dist/copc/copc-source-loader.js.map +1 -1
  15. package/dist/copc/copc-writer.js +1 -1
  16. package/dist/copc/index.cjs +121 -181
  17. package/dist/copc/index.cjs.map +3 -3
  18. package/dist/dist.dev.js +323 -40
  19. package/dist/dist.min.js +10 -10
  20. package/dist/i3s/arcgis-webscene-loader.js +1 -1
  21. package/dist/i3s/dist.dev.js +3173 -712
  22. package/dist/i3s/dist.min.js +47 -47
  23. package/dist/i3s/i3s-attribute-loader.js +1 -1
  24. package/dist/i3s/i3s-building-scene-layer-loader.js +1 -1
  25. package/dist/i3s/i3s-content-loader.js +1 -1
  26. package/dist/i3s/i3s-lepcc-loader-types.js +1 -1
  27. package/dist/i3s/i3s-loader.js +1 -1
  28. package/dist/i3s/i3s-node-page-loader.js +1 -1
  29. package/dist/i3s/i3s-slpk-loader.js +1 -1
  30. package/dist/i3s/i3s-slpk-writer.js +1 -1
  31. package/dist/i3s/index.cjs +2097 -544
  32. package/dist/i3s/index.cjs.map +3 -3
  33. package/dist/i3s-content-worker-node.js +11 -11
  34. package/dist/i3s-content-worker-node.js.map +4 -4
  35. package/dist/i3s-content-worker.js +768 -346
  36. package/dist/i3s-lepcc-worker-node.js +245 -12
  37. package/dist/i3s-lepcc-worker-node.js.map +4 -4
  38. package/dist/i3s-lepcc-worker.js +240 -12
  39. package/dist/i3s-mesh-writer.cjs +1749 -290
  40. package/dist/i3s-mesh-writer.cjs.map +3 -3
  41. package/dist/i3s-slpk-writer.cjs +1 -1
  42. package/dist/index.cjs +98 -4
  43. package/dist/index.cjs.map +2 -2
  44. package/dist/point-cloud-tile-source-loader-types.js +1 -1
  45. package/dist/point-cloud-tile-source-loader.cjs +46 -2
  46. package/dist/point-cloud-tile-source-loader.cjs.map +2 -2
  47. package/dist/point-cloud-tile-source.cjs +45 -1
  48. package/dist/point-cloud-tile-source.cjs.map +1 -1
  49. package/dist/potree/dist.dev.js +325 -91
  50. package/dist/potree/dist.min.js +30 -30
  51. package/dist/potree/index.cjs +115 -176
  52. package/dist/potree/index.cjs.map +3 -3
  53. package/dist/potree/potree-bin-loader.js +1 -1
  54. package/dist/potree/potree-hierarchy-chunk-loader.js +1 -1
  55. package/dist/potree/potree-loader-types.js +1 -1
  56. package/dist/potree/potree-source-loader.js +1 -1
  57. package/dist/potree/potree-writer.js +1 -1
  58. package/dist/potree/potree2-source.d.ts.map +1 -1
  59. package/dist/potree/potree2-source.js +3 -13
  60. package/dist/potree/potree2-source.js.map +1 -1
  61. package/dist/potree-loader.cjs +1 -1
  62. package/package.json +13 -13
  63. package/src/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.ts +4 -1
  64. package/src/copc/copc-source-loader.ts +1 -1
  65. package/src/potree/potree2-source.ts +3 -14
@@ -194,18 +194,6 @@ var init_globals2 = __esm({
194
194
  }
195
195
  });
196
196
 
197
- // ../core/src/worker-utils/lib/worker-api/task-runtime.ts
198
- function normalizeTaskProgress(progress) {
199
- return { ...progress, phase: progress.phase ?? "process", unit: progress.unit ?? "items" };
200
- }
201
- var import_tasks;
202
- var init_task_runtime = __esm({
203
- "../core/src/worker-utils/lib/worker-api/task-runtime.ts"() {
204
- "use strict";
205
- import_tasks = require("@math.gl/core/tasks");
206
- }
207
- });
208
-
209
197
  // ../core/src/worker-utils/lib/worker-api/get-worker-url.ts
210
198
  function getCustomWorkerURL(worker, options = {}) {
211
199
  var _a, _b;
@@ -271,6 +259,18 @@ var init_get_worker_url = __esm({
271
259
  }
272
260
  });
273
261
 
262
+ // ../core/src/worker-utils/lib/worker-api/task-runtime.ts
263
+ function normalizeTaskProgress(progress) {
264
+ return { ...progress, phase: progress.phase ?? "process", unit: progress.unit ?? "items" };
265
+ }
266
+ var import_tasks;
267
+ var init_task_runtime = __esm({
268
+ "../core/src/worker-utils/lib/worker-api/task-runtime.ts"() {
269
+ "use strict";
270
+ import_tasks = require("@math.gl/tasks");
271
+ }
272
+ });
273
+
274
274
  // ../core/src/worker-utils/lib/worker-utils/get-transfer-list.ts
275
275
  function getTransferList(object, recursive = true, transfers) {
276
276
  const transfersSet = transfers || /* @__PURE__ */ new Set();
@@ -498,7 +498,7 @@ var import_tasks2, runners, activeRunners, moduleWorkerUrls;
498
498
  var init_process_on_worker = __esm({
499
499
  "../core/src/worker-utils/lib/worker-api/process-on-worker.ts"() {
500
500
  "use strict";
501
- import_tasks2 = require("@math.gl/core/tasks");
501
+ import_tasks2 = require("@math.gl/tasks");
502
502
  init_get_worker_url();
503
503
  init_task_runtime();
504
504
  init_get_transfer_list();
@@ -510,12 +510,10 @@ var init_process_on_worker = __esm({
510
510
  });
511
511
 
512
512
  // ../core/src/worker-utils/index.ts
513
- var import_tasks3;
514
513
  var init_worker_utils = __esm({
515
514
  "../core/src/worker-utils/index.ts"() {
516
515
  "use strict";
517
516
  init_globals2();
518
- import_tasks3 = require("@math.gl/core/tasks");
519
517
  init_process_on_worker();
520
518
  }
521
519
  });
@@ -8694,6 +8692,8 @@ var init_http_file_transport = __esm({
8694
8692
  identityHints;
8695
8693
  /** Failure objects already included in telemetry. */
8696
8694
  countedFailures = /* @__PURE__ */ new WeakSet();
8695
+ /** Observer for cumulative transport counters, including asynchronous cancellation. */
8696
+ onTelemetry;
8697
8697
  /** Mutable counters backing immutable telemetry snapshots. */
8698
8698
  telemetry = {
8699
8699
  requestedBytes: 0,
@@ -8707,6 +8707,7 @@ var init_http_file_transport = __esm({
8707
8707
  constructor(url, options) {
8708
8708
  validateKnownByteLength(options.byteLength);
8709
8709
  this.url = url;
8710
+ this.onTelemetry = options.onTelemetry;
8710
8711
  this.fetchFunction = options.fetch || ((input, init) => globalThis.fetch(input, init));
8711
8712
  this.fetchOptions = options.fetchOptions ? { ...options.fetchOptions, headers: new Headers(options.fetchOptions.headers) } : void 0;
8712
8713
  this.consistency = options.consistency || "best-effort";
@@ -8733,6 +8734,7 @@ var init_http_file_transport = __esm({
8733
8734
  }
8734
8735
  /** Counts each failure object once even when it passes through several async layers. */
8735
8736
  trackFailure(error) {
8737
+ var _a;
8736
8738
  if (typeof error === "object" && error !== null) {
8737
8739
  if (this.countedFailures.has(error)) {
8738
8740
  return;
@@ -8744,10 +8746,11 @@ var init_http_file_transport = __esm({
8744
8746
  } else {
8745
8747
  this.telemetry.errorCount++;
8746
8748
  }
8749
+ (_a = this.onTelemetry) == null ? void 0 : _a.call(this, this.getTelemetry(), error);
8747
8750
  }
8748
8751
  /** Performs and validates one exact HTTP range request. */
8749
8752
  async requestRange(offset, length, signal, expectedIdentity) {
8750
- var _a;
8753
+ var _a, _b;
8751
8754
  const requestStartTime = getTimestamp2();
8752
8755
  const abortContext = createCombinedAbortContext(signal, (_a = this.fetchOptions) == null ? void 0 : _a.signal);
8753
8756
  this.telemetry.requestCount++;
@@ -8764,7 +8767,13 @@ var init_http_file_transport = __esm({
8764
8767
  await cancelResponse(response);
8765
8768
  throw new Error(`HTTP byte-range request expected 206, received ${response.status}`);
8766
8769
  }
8767
- const contentRange = await readContentRange(response);
8770
+ const contentRange = response.headers.has("Content-Range") ? await readContentRange(response) : await this.inferContentRange(
8771
+ response,
8772
+ offset,
8773
+ length,
8774
+ expectedIdentity,
8775
+ abortContext.signal
8776
+ );
8768
8777
  const responseIdentity = getResponseIdentity(response, contentRange.byteLength);
8769
8778
  const responseError = getIdentityError(
8770
8779
  expectedIdentity,
@@ -8798,6 +8807,45 @@ var init_http_file_transport = __esm({
8798
8807
  } finally {
8799
8808
  abortContext.removeAbortListeners();
8800
8809
  this.telemetry.networkTimeMs += getTimestamp2() - requestStartTime;
8810
+ (_b = this.onTelemetry) == null ? void 0 : _b.call(this, this.getTelemetry());
8811
+ }
8812
+ }
8813
+ /** Infers bounds for a CORS-filtered 206; the caller still validates the body length. */
8814
+ async inferContentRange(response, offset, length, expectedIdentity, signal) {
8815
+ var _a;
8816
+ try {
8817
+ let byteLength = (expectedIdentity == null ? void 0 : expectedIdentity.byteLength) ?? this.identityHints.byteLength;
8818
+ if (byteLength === void 0) {
8819
+ const headers = new Headers((_a = this.fetchOptions) == null ? void 0 : _a.headers);
8820
+ headers.delete("Range");
8821
+ this.telemetry.requestCount++;
8822
+ const metadata = await this.fetchFunction(this.url, {
8823
+ ...this.fetchOptions,
8824
+ method: "HEAD",
8825
+ body: void 0,
8826
+ headers,
8827
+ signal
8828
+ });
8829
+ await cancelResponse(metadata);
8830
+ const value = metadata.headers.get("Content-Length");
8831
+ byteLength = value && /^\d+$/.test(value) ? Number(value) : NaN;
8832
+ if (metadata.status !== 200 || !Number.isSafeInteger(byteLength) || byteLength < offset + length) {
8833
+ throw new Error(
8834
+ "HTTP byte-range response is missing Content-Range and HEAD did not provide a valid file length"
8835
+ );
8836
+ }
8837
+ const identityError = getIdentityError(
8838
+ getResponseIdentity(metadata, byteLength),
8839
+ getResponseIdentity(response, byteLength),
8840
+ this.identityHints,
8841
+ this.consistency
8842
+ );
8843
+ if (identityError) throw new Error(identityError);
8844
+ }
8845
+ return { offset, endOffset: offset + length - 1, byteLength };
8846
+ } catch (error) {
8847
+ await cancelResponse(response);
8848
+ throw error;
8801
8849
  }
8802
8850
  }
8803
8851
  /** Validates and consumes the special empty-object identity response. */
@@ -9098,7 +9146,7 @@ function getSourceLoaderOptions(options) {
9098
9146
  if (options == null ? void 0 : options.core) {
9099
9147
  loadOptions.core = { ...options.core };
9100
9148
  const parserCore = loadOptions.core;
9101
- for (const key of ["type", "attributions", "loaders", "onError", "loadOptions"]) {
9149
+ for (const key of ["type", "name", "attributions", "loaders", "onError", "loadOptions"]) {
9102
9150
  delete parserCore[key];
9103
9151
  }
9104
9152
  if (Object.keys(parserCore).length === 0) {
@@ -9133,6 +9181,44 @@ function unavailableCoreApiMethod(methodName) {
9133
9181
  );
9134
9182
  };
9135
9183
  }
9184
+ function getDataSourceName(data, options) {
9185
+ var _a, _b, _c;
9186
+ const explicitName = (_a = options.core) == null ? void 0 : _a.name;
9187
+ if (explicitName !== void 0) {
9188
+ if (typeof explicitName !== "string" || !explicitName.trim())
9189
+ throw new Error("Data source name must be a non-empty string.");
9190
+ return explicitName;
9191
+ }
9192
+ if (data && typeof data === "object") {
9193
+ const named = data;
9194
+ if (typeof named.name === "string" && named.name.trim())
9195
+ return data instanceof Blob ? removeFileExtension(named.name) : named.name;
9196
+ const metadata = (_b = named.schema) == null ? void 0 : _b.metadata;
9197
+ const embeddedName = metadata instanceof Map ? metadata.get("name") : metadata == null ? void 0 : metadata.name;
9198
+ if (typeof embeddedName === "string" && embeddedName.trim()) return embeddedName;
9199
+ }
9200
+ if (typeof data === "string") {
9201
+ try {
9202
+ const url = new URL(data.replace(/\\/g, "/"), "https://source.invalid/");
9203
+ if (!["data:", "blob:"].includes(url.protocol)) {
9204
+ let basename = url.pathname.split("/").filter(Boolean).pop();
9205
+ if (basename) {
9206
+ try {
9207
+ basename = decodeURIComponent(basename);
9208
+ } catch {
9209
+ }
9210
+ return removeFileExtension(basename);
9211
+ }
9212
+ }
9213
+ } catch {
9214
+ }
9215
+ }
9216
+ return ((_c = options.core) == null ? void 0 : _c.type) && options.core.type !== "auto" ? options.core.type : "source";
9217
+ }
9218
+ function removeFileExtension(name) {
9219
+ const extension = name.lastIndexOf(".");
9220
+ return extension > 0 ? name.slice(0, extension) : name;
9221
+ }
9136
9222
  var UNAVAILABLE_CORE_API, DataSource;
9137
9223
  var init_data_source = __esm({
9138
9224
  "../core/src/loader-utils/lib/sources/data-source.ts"() {
@@ -9164,6 +9250,8 @@ var init_data_source = __esm({
9164
9250
  options;
9165
9251
  data;
9166
9252
  url;
9253
+ /** Stable query-visible name, resolved without fetching source data. */
9254
+ name;
9167
9255
  /** Shared parser options derived from the source options, excluding source-only core controls. */
9168
9256
  loadOptions;
9169
9257
  /** A resolved fetch function extracted from the shared core options. */
@@ -9180,6 +9268,7 @@ var init_data_source = __esm({
9180
9268
  );
9181
9269
  this.data = data;
9182
9270
  this.url = typeof data === "string" ? resolvePath(data) : "";
9271
+ this.name = getDataSourceName(data, this.options);
9183
9272
  const loadOptions = resolveAuthenticationOptions(getSourceLoaderOptions(this.options));
9184
9273
  this.loadOptions = loadOptions;
9185
9274
  const fetch2 = getFetchFunction(loadOptions);
@@ -9188,6 +9277,9 @@ var init_data_source = __esm({
9188
9277
  this.fetch = fetch2;
9189
9278
  }
9190
9279
  setProps(options) {
9280
+ var _a;
9281
+ if (((_a = options.core) == null ? void 0 : _a.name) !== void 0 && options.core.name !== this.name)
9282
+ throw new Error("Data source names are fixed at creation.");
9191
9283
  const mergedOptions = mergeOptions(this.options, options);
9192
9284
  const loadOptions = resolveAuthenticationOptions(getSourceLoaderOptions(mergedOptions));
9193
9285
  this.options = mergedOptions;
@@ -11036,109 +11128,7 @@ var init_las_loader_shared = __esm({
11036
11128
  }
11037
11129
  });
11038
11130
 
11039
- // ../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts
11040
- function splitArrowBuffers(input, options = {}) {
11041
- const context = { ...options, copies: /* @__PURE__ */ new WeakMap() };
11042
- if (isArrowTable(input)) {
11043
- return splitArrowTableBuffersInternal(input, context);
11044
- }
11045
- if (isArrowRecordBatch(input)) {
11046
- return splitArrowRecordBatchBuffers(input, context);
11047
- }
11048
- if (isArrowVector(input)) {
11049
- return splitArrowVectorBuffers(input, context);
11050
- }
11051
- return splitArrowDataBuffers(input, context);
11052
- }
11053
- function isArrowTable(input) {
11054
- return "batches" in input;
11055
- }
11056
- function isArrowRecordBatch(input) {
11057
- return "schema" in input && "data" in input && !Array.isArray(input.data);
11058
- }
11059
- function isArrowVector(input) {
11060
- return "data" in input && Array.isArray(input.data);
11061
- }
11062
- function splitArrowTableBuffersInternal(table, options) {
11063
- const recordBatches = table.batches.map(
11064
- (recordBatch) => splitArrowRecordBatchBuffers(recordBatch, options)
11065
- );
11066
- return new arrow7.Table(table.schema, recordBatches);
11067
- }
11068
- function splitArrowRecordBatchBuffers(recordBatch, options) {
11069
- return new arrow7.RecordBatch(
11070
- recordBatch.schema,
11071
- splitArrowDataBuffers(recordBatch.data, options)
11072
- );
11073
- }
11074
- function splitArrowDataBuffers(data, options) {
11075
- const children = data.children.map((childData) => splitArrowDataBuffers(childData, options));
11076
- const dictionary = data.dictionary ? splitArrowVectorBuffers(data.dictionary, options) : void 0;
11077
- const buffers = {
11078
- [arrow7.BufferType.OFFSET]: splitArrowBuffer(data.buffers[arrow7.BufferType.OFFSET], options),
11079
- [arrow7.BufferType.DATA]: splitArrowBuffer(data.buffers[arrow7.BufferType.DATA], options),
11080
- [arrow7.BufferType.VALIDITY]: splitArrowBuffer(data.buffers[arrow7.BufferType.VALIDITY], options),
11081
- [arrow7.BufferType.TYPE]: splitArrowBuffer(data.buffers[arrow7.BufferType.TYPE], options)
11082
- };
11083
- return new arrow7.Data(
11084
- data.type,
11085
- data.offset,
11086
- data.length,
11087
- // @ts-expect-error _nullCount is protected. Reuse it to preserve lazy null-count state.
11088
- data._nullCount,
11089
- buffers,
11090
- children,
11091
- dictionary
11092
- );
11093
- }
11094
- function splitArrowVectorBuffers(vector, options) {
11095
- return new arrow7.Vector(vector.data.map((data) => splitArrowDataBuffers(data, options)));
11096
- }
11097
- function splitArrowBuffer(array, options) {
11098
- if (!isArrowTypedArray(array)) {
11099
- return array;
11100
- }
11101
- if (options.copy === "none") {
11102
- return array;
11103
- }
11104
- if (options.copy !== "all" && array.byteOffset === 0 && array.byteLength === array.buffer.byteLength) {
11105
- return array;
11106
- }
11107
- let copy = options.copies.get(array);
11108
- if (!copy) {
11109
- copy = array.slice();
11110
- options.copies.set(array, copy);
11111
- }
11112
- return copy;
11113
- }
11114
- function isArrowTypedArray(value) {
11115
- return ArrayBuffer.isView(value) && !(value instanceof DataView);
11116
- }
11117
- var arrow7;
11118
- var init_split_arrow_buffers = __esm({
11119
- "../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts"() {
11120
- "use strict";
11121
- arrow7 = __toESM(require("apache-arrow"), 1);
11122
- }
11123
- });
11124
-
11125
- // ../core/src/schema-utils/lib/arrow/arrow-table-transport.ts
11126
- function dehydrateArrowTable(table, options) {
11127
- const splitTable = splitArrowBuffers(table, options);
11128
- return {
11129
- shape: "arrow-table",
11130
- transport: "arrow-js",
11131
- schema: serializeArrowSchema(splitTable.schema),
11132
- batches: splitTable.batches.map((recordBatch) => dehydrateArrowRecordBatch(recordBatch))
11133
- };
11134
- }
11135
- function hydrateArrowTable(table) {
11136
- const schema = deserializeArrowSchema(table.schema);
11137
- const recordBatches = table.batches.map(
11138
- (recordBatch) => new arrow8.RecordBatch(schema, hydrateArrowData(recordBatch.data))
11139
- );
11140
- return new arrow8.Table(schema, recordBatches);
11141
- }
11131
+ // ../core/src/arrow-worker-transport.ts
11142
11132
  function serializeArrowWorkerTable(result) {
11143
11133
  if (!isArrowTableWrapper(result)) {
11144
11134
  throw new Error("Workers require Arrow table output");
@@ -11146,14 +11136,14 @@ function serializeArrowWorkerTable(result) {
11146
11136
  const { data, ...metadata } = result;
11147
11137
  return {
11148
11138
  ...structuredClone(metadata),
11149
- data: dehydrateArrowTable(data, { copy: "all" })
11139
+ data: (0, import_arrow.dehydrateArrowTable)(data, { copy: "all" })
11150
11140
  };
11151
11141
  }
11152
11142
  function deserializeArrowWorkerTable(result) {
11153
11143
  if (!isDehydratedArrowTableWrapper(result)) {
11154
11144
  throw new Error("Workers require Arrow column transport");
11155
11145
  }
11156
- return { ...result, data: hydrateArrowTable(result.data) };
11146
+ return { ...result, data: (0, import_arrow.hydrateArrowTable)(result.data) };
11157
11147
  }
11158
11148
  function isArrowTableWrapper(value) {
11159
11149
  const table = value;
@@ -11167,61 +11157,11 @@ function isDehydratedArrowTableWrapper(value) {
11167
11157
  table && table.shape === "arrow-table" && table.data && table.data.transport === "arrow-js" && Array.isArray(table.data.batches)
11168
11158
  );
11169
11159
  }
11170
- function dehydrateArrowRecordBatch(recordBatch) {
11171
- return { data: dehydrateArrowData(recordBatch.data) };
11172
- }
11173
- function dehydrateArrowData(data) {
11174
- return {
11175
- type: serializeArrowType(data.type),
11176
- offset: data.offset,
11177
- length: data.length,
11178
- // @ts-expect-error _nullCount is protected. Preserve the Arrow lazy null-count state.
11179
- nullCount: data._nullCount,
11180
- buffers: {
11181
- [arrow8.BufferType.OFFSET]: data.buffers[arrow8.BufferType.OFFSET],
11182
- [arrow8.BufferType.DATA]: data.buffers[arrow8.BufferType.DATA],
11183
- [arrow8.BufferType.VALIDITY]: data.buffers[arrow8.BufferType.VALIDITY],
11184
- [arrow8.BufferType.TYPE]: data.buffers[arrow8.BufferType.TYPE]
11185
- },
11186
- children: data.children.map((childData) => dehydrateArrowData(childData)),
11187
- dictionary: data.dictionary ? dehydrateArrowVector(data.dictionary) : void 0
11188
- };
11189
- }
11190
- function dehydrateArrowVector(vector) {
11191
- return { data: vector.data.map((data) => dehydrateArrowData(data)) };
11192
- }
11193
- function hydrateArrowData(data) {
11194
- const children = data.children.map((childData) => hydrateArrowData(childData));
11195
- const dictionary = data.dictionary ? hydrateArrowVector(data.dictionary) : void 0;
11196
- return new arrow8.Data(
11197
- deserializeArrowType(data.type),
11198
- data.offset,
11199
- data.length,
11200
- data.nullCount,
11201
- data.buffers,
11202
- children,
11203
- dictionary
11204
- );
11205
- }
11206
- function hydrateArrowVector(vector) {
11207
- return new arrow8.Vector(vector.data.map((data) => hydrateArrowData(data)));
11208
- }
11209
- var arrow8;
11210
- var init_arrow_table_transport = __esm({
11211
- "../core/src/schema-utils/lib/arrow/arrow-table-transport.ts"() {
11212
- "use strict";
11213
- arrow8 = __toESM(require("apache-arrow"), 1);
11214
- init_convert_arrow_schema();
11215
- init_split_arrow_buffers();
11216
- }
11217
- });
11218
-
11219
- // ../core/src/schema-utils/arrow-transport.ts
11220
- var init_arrow_transport = __esm({
11221
- "../core/src/schema-utils/arrow-transport.ts"() {
11160
+ var import_arrow;
11161
+ var init_arrow_worker_transport = __esm({
11162
+ "../core/src/arrow-worker-transport.ts"() {
11222
11163
  "use strict";
11223
- init_arrow_table_transport();
11224
- init_split_arrow_buffers();
11164
+ import_arrow = require("@math.gl/arrow");
11225
11165
  }
11226
11166
  });
11227
11167
 
@@ -14089,7 +14029,7 @@ var init_las_loader = __esm({
14089
14029
  "use strict";
14090
14030
  init_schema_utils();
14091
14031
  init_las_loader_shared();
14092
- init_arrow_transport();
14032
+ init_arrow_worker_transport();
14093
14033
  init_parse_las();
14094
14034
  LASLoaderWithParser = {
14095
14035
  ...LAS_LOADER_METADATA,
@@ -15582,7 +15522,7 @@ function isValidCOPCKey(key) {
15582
15522
  // dist/copc/copc-source-loader.js
15583
15523
  init_schema();
15584
15524
  init_schema_utils();
15585
- init_arrow_transport();
15525
+ init_arrow_worker_transport();
15586
15526
  init_loader_utils();
15587
15527
  init_loader_utils();
15588
15528
  var import_projection = require("@math.gl/geospatial/projection");
@@ -15628,7 +15568,7 @@ function normalizeCOPCProjectionDefinition(projectionData) {
15628
15568
  }
15629
15569
 
15630
15570
  // dist/copc/copc-source-loader.js
15631
- var VERSION4 = true ? "5.0.0-beta.4" : "latest";
15571
+ var VERSION4 = true ? "5.0.0-beta.6" : "latest";
15632
15572
  var COPC_PREFIX_CACHE_LENGTH = 65536;
15633
15573
  var COORDINATE_SYSTEM = {
15634
15574
  CARTESIAN: "cartesian",
@@ -16966,7 +16906,7 @@ function createCachedCOPCRangeReader(readableFile) {
16966
16906
 
16967
16907
  // dist/copc/copc-writer.js
16968
16908
  init_loader_utils();
16969
- var VERSION5 = true ? "5.0.0-beta.4" : "latest";
16909
+ var VERSION5 = true ? "5.0.0-beta.6" : "latest";
16970
16910
  var LAS_1_4_HEADER_LENGTH3 = 375;
16971
16911
  var COPC_INFO_PAYLOAD_LENGTH = 160;
16972
16912
  var VLR_HEADER_LENGTH3 = 54;