@loaders.gl/las 3.2.0-alpha.1 → 3.2.0-alpha.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"parse-las.d.ts","sourceRoot":"","sources":["../../src/lib/parse-las.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAC,OAAO,EAAY,MAAM,aAAa,CAAC;AAapD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,GAAG,UAAU,GAAG,aAAa,CAGtC;AAsHD;;;;;;GAMG;AAEH,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,GAAE,GAAQ,GAAG,IAAI,CAwC/F"}
1
+ {"version":3,"file":"parse-las.d.ts","sourceRoot":"","sources":["../../src/lib/parse-las.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAC,OAAO,EAAY,MAAM,aAAa,CAAC;AAapD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,GAAG,UAAU,GAAG,aAAa,CAKtC;AAsHD;;;;;;GAMG;AAEH,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,GAAE,GAAQ,GAAG,IAAI,CAwC/F"}
@@ -11,8 +11,10 @@ const get_las_schema_1 = require("./get-las-schema");
11
11
  * @returns LASHeader
12
12
  */
13
13
  function parseLAS(arrayBuffer, options) {
14
- const mesh = parseLASMesh(arrayBuffer, options);
15
- return (0, schema_1.convertMesh)(mesh, options?.las?.shape || 'mesh');
14
+ return parseLASMesh(arrayBuffer, options);
15
+ // This code breaks pointcloud example on the website
16
+ // const mesh = parseLASMesh(arrayBuffer, options);
17
+ // return convertMesh(mesh, options?.las?.shape || 'mesh') as LASMesh | ArrowTable | ColumnarTable;
16
18
  }
17
19
  exports.default = parseLAS;
18
20
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/las",
3
- "version": "3.2.0-alpha.1",
3
+ "version": "3.2.0-alpha.2",
4
4
  "description": "Framework-independent loader for the LAS and LAZ formats",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@babel/runtime": "^7.3.1",
44
- "@loaders.gl/loader-utils": "3.2.0-alpha.1",
45
- "@loaders.gl/schema": "3.2.0-alpha.1",
44
+ "@loaders.gl/loader-utils": "3.2.0-alpha.2",
45
+ "@loaders.gl/schema": "3.2.0-alpha.2",
46
46
  "apache-arrow": "^4.0.0"
47
47
  },
48
- "gitHead": "423a2815092b08dcf93ad5b7dc2940b167305afe"
48
+ "gitHead": "52a602739cbfce60fc314f474efc984d199dff78"
49
49
  }
@@ -2,7 +2,7 @@
2
2
  import type {ArrowTable, ColumnarTable} from '@loaders.gl/schema';
3
3
  import type {LASLoaderOptions} from '../las-loader';
4
4
  import type {LASMesh, LASHeader} from './las-types';
5
- import {Schema, getMeshBoundingBox, convertMesh} from '@loaders.gl/schema';
5
+ import {Schema, getMeshBoundingBox /* , convertMesh */} from '@loaders.gl/schema';
6
6
  import {LASFile} from './laslaz-decoder';
7
7
  import {getLASSchema} from './get-las-schema';
8
8
 
@@ -24,8 +24,10 @@ export default function parseLAS(
24
24
  arrayBuffer: ArrayBuffer,
25
25
  options?: LASLoaderOptions
26
26
  ): LASMesh | ArrowTable | ColumnarTable {
27
- const mesh = parseLASMesh(arrayBuffer, options);
28
- return convertMesh(mesh, options?.las?.shape || 'mesh') as LASMesh | ArrowTable | ColumnarTable;
27
+ return parseLASMesh(arrayBuffer, options);
28
+ // This code breaks pointcloud example on the website
29
+ // const mesh = parseLASMesh(arrayBuffer, options);
30
+ // return convertMesh(mesh, options?.las?.shape || 'mesh') as LASMesh | ArrowTable | ColumnarTable;
29
31
  }
30
32
 
31
33
  /**