@loaders.gl/flatgeobuf 4.2.0-alpha.5 → 4.2.0-alpha.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.
package/dist/dist.dev.js CHANGED
@@ -12,6 +12,7 @@ var __exports__ = (() => {
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
13
13
  var __getProtoOf = Object.getPrototypeOf;
14
14
  var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15
16
  var __commonJS = (cb, mod) => function __require() {
16
17
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
18
  };
@@ -37,6 +38,10 @@ var __exports__ = (() => {
37
38
  mod
38
39
  ));
39
40
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
+ var __publicField = (obj, key, value) => {
42
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
43
+ return value;
44
+ };
40
45
 
41
46
  // external-global-plugin:@loaders.gl/core
42
47
  var require_core = __commonJS({
@@ -5936,10 +5941,8 @@ var __exports__ = (() => {
5936
5941
 
5937
5942
  // src/flatgeobuf/3.27.2/flat-geobuf/geometry.ts
5938
5943
  var Geometry = class {
5939
- constructor() {
5940
- this.bb = null;
5941
- this.bb_pos = 0;
5942
- }
5944
+ bb = null;
5945
+ bb_pos = 0;
5943
5946
  __init(i, bb) {
5944
5947
  this.bb_pos = i;
5945
5948
  this.bb = bb;
@@ -6248,10 +6251,8 @@ var __exports__ = (() => {
6248
6251
 
6249
6252
  // src/flatgeobuf/3.27.2/flat-geobuf/column.ts
6250
6253
  var Column = class {
6251
- constructor() {
6252
- this.bb = null;
6253
- this.bb_pos = 0;
6254
- }
6254
+ bb = null;
6255
+ bb_pos = 0;
6255
6256
  __init(i, bb) {
6256
6257
  this.bb_pos = i;
6257
6258
  this.bb = bb;
@@ -6368,10 +6369,8 @@ var __exports__ = (() => {
6368
6369
 
6369
6370
  // src/flatgeobuf/3.27.2/flat-geobuf/feature.ts
6370
6371
  var Feature = class {
6371
- constructor() {
6372
- this.bb = null;
6373
- this.bb_pos = 0;
6374
- }
6372
+ bb = null;
6373
+ bb_pos = 0;
6375
6374
  __init(i, bb) {
6376
6375
  this.bb_pos = i;
6377
6376
  this.bb = bb;
@@ -6650,10 +6649,8 @@ var __exports__ = (() => {
6650
6649
 
6651
6650
  // src/flatgeobuf/3.27.2/flat-geobuf/crs.ts
6652
6651
  var Crs = class {
6653
- constructor() {
6654
- this.bb = null;
6655
- this.bb_pos = 0;
6656
- }
6652
+ bb = null;
6653
+ bb_pos = 0;
6657
6654
  __init(i, bb) {
6658
6655
  this.bb_pos = i;
6659
6656
  this.bb = bb;
@@ -6729,10 +6726,8 @@ var __exports__ = (() => {
6729
6726
 
6730
6727
  // src/flatgeobuf/3.27.2/flat-geobuf/header.ts
6731
6728
  var Header = class {
6732
- constructor() {
6733
- this.bb = null;
6734
- this.bb_pos = 0;
6735
- }
6729
+ bb = null;
6730
+ bb_pos = 0;
6736
6731
  __init(i, bb) {
6737
6732
  this.bb_pos = i;
6738
6733
  this.bb = bb;
@@ -8056,9 +8051,7 @@ var __exports__ = (() => {
8056
8051
 
8057
8052
  // src/flatgeobuf/3.27.2/config.ts
8058
8053
  var _Config = class {
8059
- constructor() {
8060
- this._extraRequestThreshold = 256 * 1024;
8061
- }
8054
+ _extraRequestThreshold = 256 * 1024;
8062
8055
  /**
8063
8056
  * Fetch up to this many extra bytes if it will eliminate an extra request
8064
8057
  */
@@ -8073,7 +8066,7 @@ var __exports__ = (() => {
8073
8066
  }
8074
8067
  };
8075
8068
  var Config = _Config;
8076
- Config.global = new _Config();
8069
+ __publicField(Config, "global", new _Config());
8077
8070
 
8078
8071
  // src/flatgeobuf/3.27.2/logger.ts
8079
8072
  var Logger = class {
@@ -8113,7 +8106,7 @@ var __exports__ = (() => {
8113
8106
  }
8114
8107
  }
8115
8108
  };
8116
- Logger.logLevel = 2 /* Warn */;
8109
+ __publicField(Logger, "logLevel", 2 /* Warn */);
8117
8110
 
8118
8111
  // src/flatgeobuf/3.27.2/packedrtree.ts
8119
8112
  var NODE_ITEM_BYTE_LEN = 8 * 4 + 8;
@@ -8154,6 +8147,8 @@ var __exports__ = (() => {
8154
8147
  }
8155
8148
  async function* streamSearch(numItems, nodeSize, rect, readNode) {
8156
8149
  class NodeRange {
8150
+ _level;
8151
+ nodes;
8157
8152
  constructor(nodes, level) {
8158
8153
  this._level = level;
8159
8154
  this.nodes = nodes;
@@ -8277,6 +8272,10 @@ var __exports__ = (() => {
8277
8272
 
8278
8273
  // src/flatgeobuf/3.27.2/http-reader.ts
8279
8274
  var HttpReader = class {
8275
+ headerClient;
8276
+ header;
8277
+ headerLength;
8278
+ indexLength;
8280
8279
  constructor(headerClient, header, headerLength, indexLength) {
8281
8280
  this.headerClient = headerClient;
8282
8281
  this.header = header;
@@ -8427,13 +8426,14 @@ var __exports__ = (() => {
8427
8426
  }
8428
8427
  };
8429
8428
  var BufferedHttpRangeClient = class {
8429
+ httpClient;
8430
+ bytesEverUsed = 0;
8431
+ bytesEverFetched = 0;
8432
+ buffer = new ArrayBuffer(0);
8433
+ // Byte offset of `buffer` with respect to the beginning of the file being
8434
+ // buffered
8435
+ head = 0;
8430
8436
  constructor(source) {
8431
- this.bytesEverUsed = 0;
8432
- this.bytesEverFetched = 0;
8433
- this.buffer = new ArrayBuffer(0);
8434
- // Byte offset of `buffer` with respect to the beginning of the file being
8435
- // buffered
8436
- this.head = 0;
8437
8437
  if (typeof source === "string") {
8438
8438
  this.httpClient = new HttpRangeClient(source);
8439
8439
  } else if (source instanceof HttpRangeClient) {
@@ -8465,9 +8465,10 @@ var __exports__ = (() => {
8465
8465
  }
8466
8466
  };
8467
8467
  var HttpRangeClient = class {
8468
+ url;
8469
+ requestsEverMade = 0;
8470
+ bytesEverRequested = 0;
8468
8471
  constructor(url) {
8469
- this.requestsEverMade = 0;
8470
- this.bytesEverRequested = 0;
8471
8472
  this.url = url;
8472
8473
  }
8473
8474
  async getRange(begin, length, purpose) {