@loaders.gl/las 3.0.10 → 3.0.14
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.es5.min.js +1 -1
- package/dist/dist.es5.min.js.map +1 -1
- package/dist/dist.min.js +1 -1
- package/dist/dist.min.js.map +1 -1
- package/dist/es5/las-loader.js +1 -1
- package/dist/es5/lib/laslaz-decoder.js +8 -8
- package/dist/es5/lib/laslaz-decoder.js.map +1 -1
- package/dist/esm/las-loader.js +1 -1
- package/dist/esm/lib/laslaz-decoder.js +9 -9
- package/dist/esm/lib/laslaz-decoder.js.map +1 -1
- package/dist/las-worker.js +1 -1
- package/dist/las-worker.js.map +1 -1
- package/package.json +4 -4
- package/src/lib/laslaz-decoder.ts +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/las",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"description": "Framework-independent loader for the LAS and LAZ formats",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/runtime": "^7.3.1",
|
|
44
|
-
"@loaders.gl/loader-utils": "3.0.
|
|
45
|
-
"@loaders.gl/schema": "3.0.
|
|
44
|
+
"@loaders.gl/loader-utils": "3.0.14",
|
|
45
|
+
"@loaders.gl/schema": "3.0.14"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "dc931768fc34de549ef6baeb94e2ee5aa8163baf"
|
|
48
48
|
}
|
|
@@ -249,8 +249,8 @@ class LAZLoader {
|
|
|
249
249
|
this.instance.readOffset = 0;
|
|
250
250
|
|
|
251
251
|
return true;
|
|
252
|
-
} catch (
|
|
253
|
-
throw new Error(`Failed to open file: ${
|
|
252
|
+
} catch (error) {
|
|
253
|
+
throw new Error(`Failed to open file: ${(error as Error).message}`);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -264,8 +264,8 @@ class LAZLoader {
|
|
|
264
264
|
header.pointsFormatId &= 0x3f;
|
|
265
265
|
this.header = header;
|
|
266
266
|
return header;
|
|
267
|
-
} catch (
|
|
268
|
-
throw new Error(`Failed to get header: ${
|
|
267
|
+
} catch (error) {
|
|
268
|
+
throw new Error(`Failed to get header: ${(error as Error).message}`);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
@@ -311,8 +311,8 @@ class LAZLoader {
|
|
|
311
311
|
count: pointsRead,
|
|
312
312
|
hasMoreData: instance.readOffset < header.pointsCount
|
|
313
313
|
};
|
|
314
|
-
} catch (
|
|
315
|
-
throw new Error(`Failed to read data: ${
|
|
314
|
+
} catch (error) {
|
|
315
|
+
throw new Error(`Failed to read data: ${(error as Error).message}`);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
@@ -327,8 +327,8 @@ class LAZLoader {
|
|
|
327
327
|
this.instance = null;
|
|
328
328
|
}
|
|
329
329
|
return true;
|
|
330
|
-
} catch (
|
|
331
|
-
throw new Error(`Failed to close file: ${
|
|
330
|
+
} catch (error) {
|
|
331
|
+
throw new Error(`Failed to close file: ${(error as Error).message}`);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}
|