@loaders.gl/arrow 4.3.0-alpha.7 → 4.3.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import { parseArrowSync } from "./parsers/parse-arrow-sync.js";
5
5
  import { parseArrowInBatches } from "./parsers/parse-arrow-in-batches.js";
6
6
  // __VERSION__ is injected by babel-plugin-version-inline
7
7
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
8
- const VERSION = typeof "4.3.0-alpha.6" !== 'undefined' ? "4.3.0-alpha.6" : 'latest';
8
+ const VERSION = typeof "4.3.0-alpha.7" !== 'undefined' ? "4.3.0-alpha.7" : 'latest';
9
9
  /** ArrowJS table loader */
10
10
  export const ArrowWorkerLoader = {
11
11
  dataType: null,
@@ -12512,7 +12512,7 @@ return true;`);
12512
12512
  }
12513
12513
 
12514
12514
  // src/arrow-loader.ts
12515
- var VERSION = true ? "4.3.0-alpha.6" : "latest";
12515
+ var VERSION = true ? "4.3.0-alpha.7" : "latest";
12516
12516
  var ArrowWorkerLoader = {
12517
12517
  dataType: null,
12518
12518
  batchType: null,
@@ -2,7 +2,7 @@
2
2
  import { encodeArrowSync } from "./lib/encode-arrow.js";
3
3
  // __VERSION__ is injected by babel-plugin-version-inline
4
4
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
5
- const VERSION = typeof "4.3.0-alpha.6" !== 'undefined' ? "4.3.0-alpha.6" : 'latest';
5
+ const VERSION = typeof "4.3.0-alpha.7" !== 'undefined' ? "4.3.0-alpha.7" : 'latest';
6
6
  /** Apache Arrow writer */
7
7
  export const ArrowWriter = {
8
8
  name: 'Apache Arrow',
package/dist/dist.dev.js CHANGED
@@ -13260,52 +13260,6 @@ return true;`);
13260
13260
  return metadata || null;
13261
13261
  }
13262
13262
 
13263
- // ../../node_modules/@babel/runtime/helpers/esm/typeof.js
13264
- function _typeof(obj) {
13265
- "@babel/helpers - typeof";
13266
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
13267
- return typeof obj2;
13268
- } : function(obj2) {
13269
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
13270
- }, _typeof(obj);
13271
- }
13272
-
13273
- // ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
13274
- function _toPrimitive(input, hint) {
13275
- if (_typeof(input) !== "object" || input === null)
13276
- return input;
13277
- var prim = input[Symbol.toPrimitive];
13278
- if (prim !== void 0) {
13279
- var res = prim.call(input, hint || "default");
13280
- if (_typeof(res) !== "object")
13281
- return res;
13282
- throw new TypeError("@@toPrimitive must return a primitive value.");
13283
- }
13284
- return (hint === "string" ? String : Number)(input);
13285
- }
13286
-
13287
- // ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
13288
- function _toPropertyKey(arg) {
13289
- var key = _toPrimitive(arg, "string");
13290
- return _typeof(key) === "symbol" ? key : String(key);
13291
- }
13292
-
13293
- // ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
13294
- function _defineProperty(obj, key, value) {
13295
- key = _toPropertyKey(key);
13296
- if (key in obj) {
13297
- Object.defineProperty(obj, key, {
13298
- value,
13299
- enumerable: true,
13300
- configurable: true,
13301
- writable: true
13302
- });
13303
- } else {
13304
- obj[key] = value;
13305
- }
13306
- return obj;
13307
- }
13308
-
13309
13263
  // ../../node_modules/@math.gl/polygon/dist/polygon-utils.js
13310
13264
  var DimIndex = {
13311
13265
  x: 0,
@@ -13313,11 +13267,7 @@ return true;`);
13313
13267
  z: 2
13314
13268
  };
13315
13269
  function getPolygonSignedArea(points, options = {}) {
13316
- const {
13317
- start = 0,
13318
- end = points.length,
13319
- plane = "xy"
13320
- } = options;
13270
+ const { start = 0, end = points.length, plane = "xy" } = options;
13321
13271
  const dim = options.size || 2;
13322
13272
  let area2 = 0;
13323
13273
  const i0 = DimIndex[plane[0]];
@@ -13371,12 +13321,7 @@ return true;`);
13371
13321
  let i;
13372
13322
  let last;
13373
13323
  if (area2 === void 0) {
13374
- area2 = getPolygonSignedArea(data, {
13375
- start,
13376
- end,
13377
- size: dim,
13378
- plane
13379
- });
13324
+ area2 = getPolygonSignedArea(data, { start, end, size: dim, plane });
13380
13325
  }
13381
13326
  let i0 = DimIndex[plane[0]];
13382
13327
  let i1 = DimIndex[plane[1]];
@@ -13711,7 +13656,10 @@ return true;`);
13711
13656
  return (cx - px) * (ay - py) >= (ax - px) * (cy - py) && (ax - px) * (by - py) >= (bx - px) * (ay - py) && (bx - px) * (cy - py) >= (cx - px) * (by - py);
13712
13657
  }
13713
13658
  function isValidDiagonal(a, b) {
13714
- return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && (area(a.prev, a, b.prev) || area(a, b.prev, b)) || equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0);
13659
+ return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && // dones't intersect other edges
13660
+ (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && // locally visible
13661
+ (area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors
13662
+ equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0);
13715
13663
  }
13716
13664
  function area(p, q, r) {
13717
13665
  return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);
@@ -13804,15 +13752,12 @@ return true;`);
13804
13752
  }
13805
13753
  var Vertex = class {
13806
13754
  constructor(i, x, y) {
13807
- _defineProperty(this, "i", void 0);
13808
- _defineProperty(this, "x", void 0);
13809
- _defineProperty(this, "y", void 0);
13810
- _defineProperty(this, "prev", null);
13811
- _defineProperty(this, "next", null);
13812
- _defineProperty(this, "z", 0);
13813
- _defineProperty(this, "prevZ", null);
13814
- _defineProperty(this, "nextZ", null);
13815
- _defineProperty(this, "steiner", false);
13755
+ this.prev = null;
13756
+ this.next = null;
13757
+ this.z = 0;
13758
+ this.prevZ = null;
13759
+ this.nextZ = null;
13760
+ this.steiner = false;
13816
13761
  this.i = i;
13817
13762
  this.x = x;
13818
13763
  this.y = y;