@loaders.gl/las 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/index.cjs CHANGED
@@ -26,7 +26,7 @@ __export(dist_exports, {
26
26
  module.exports = __toCommonJS(dist_exports);
27
27
 
28
28
  // dist/las-loader.js
29
- var VERSION = true ? "4.2.0-alpha.4" : "latest";
29
+ var VERSION = true ? "4.2.0-alpha.5" : "latest";
30
30
  var LASLoader = {
31
31
  name: "LAS",
32
32
  id: "las",
@@ -18534,22 +18534,23 @@ function parseLASHeader(arraybuffer) {
18534
18534
  return o;
18535
18535
  }
18536
18536
  var LASLoader2 = class {
18537
+ arraybuffer;
18538
+ readOffset = 0;
18539
+ header = {
18540
+ pointsOffset: 0,
18541
+ pointsFormatId: 0,
18542
+ pointsStructSize: 0,
18543
+ pointsCount: 0,
18544
+ scale: [0, 0, 0],
18545
+ offset: [0, 0, 0],
18546
+ maxs: [0],
18547
+ mins: [0],
18548
+ totalToRead: 0,
18549
+ totalRead: 0,
18550
+ versionAsString: "",
18551
+ isCompressed: true
18552
+ };
18537
18553
  constructor(arraybuffer) {
18538
- this.readOffset = 0;
18539
- this.header = {
18540
- pointsOffset: 0,
18541
- pointsFormatId: 0,
18542
- pointsStructSize: 0,
18543
- pointsCount: 0,
18544
- scale: [0, 0, 0],
18545
- offset: [0, 0, 0],
18546
- maxs: [0],
18547
- mins: [0],
18548
- totalToRead: 0,
18549
- totalRead: 0,
18550
- versionAsString: "",
18551
- isCompressed: true
18552
- };
18553
18554
  this.arraybuffer = arraybuffer;
18554
18555
  }
18555
18556
  /**
@@ -18621,9 +18622,11 @@ var LASLoader2 = class {
18621
18622
  }
18622
18623
  };
18623
18624
  var LAZLoader = class {
18625
+ arraybuffer;
18626
+ instance = null;
18627
+ // LASZip instance
18628
+ header = null;
18624
18629
  constructor(arraybuffer) {
18625
- this.instance = null;
18626
- this.header = null;
18627
18630
  this.arraybuffer = arraybuffer;
18628
18631
  if (!Module) {
18629
18632
  Module = getModule();
@@ -18717,6 +18720,14 @@ var LAZLoader = class {
18717
18720
  }
18718
18721
  };
18719
18722
  var LASDecoder = class {
18723
+ arrayb;
18724
+ decoder;
18725
+ pointsCount;
18726
+ pointSize;
18727
+ scale;
18728
+ offset;
18729
+ mins;
18730
+ maxs;
18720
18731
  constructor(buffer, len, header) {
18721
18732
  this.arrayb = buffer;
18722
18733
  this.decoder = POINT_FORMAT_READERS[header.pointsFormatId];
@@ -18741,12 +18752,14 @@ var LASDecoder = class {
18741
18752
  }
18742
18753
  };
18743
18754
  var LASFile = class {
18755
+ arraybuffer;
18756
+ formatId = 0;
18757
+ loader;
18758
+ isCompressed = true;
18759
+ isOpen = false;
18760
+ version = 0;
18761
+ versionAsString = "";
18744
18762
  constructor(arraybuffer) {
18745
- this.formatId = 0;
18746
- this.isCompressed = true;
18747
- this.isOpen = false;
18748
- this.version = 0;
18749
- this.versionAsString = "";
18750
18763
  this.arraybuffer = arraybuffer;
18751
18764
  if (this.determineVersion() > 13) {
18752
18765
  throw new Error("Only file versions <= 1.3 are supported at this time");