@ifc-lite/pointcloud 0.9.0 → 0.11.0

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,4 +1,12 @@
1
1
  import type { DecodedPointChunk, PointCloudBBox } from '../types.js';
2
+ /** Explicit CRS metadata read from the source, never inferred from coordinates. */
3
+ export interface PointSourceSpatialMetadata {
4
+ horizontalId?: string;
5
+ verticalId?: string;
6
+ /** Source WKT retained verbatim even when it declares only one CRS component. */
7
+ wkt?: string;
8
+ provenance: string;
9
+ }
2
10
  /** Aggregate metadata returned from `StreamingPointSource.open()`. */
3
11
  export interface PointSourceInfo {
4
12
  /** Total points the source will emit if it streams to completion. */
@@ -13,6 +21,8 @@ export interface PointSourceInfo {
13
21
  hasIntensity: boolean;
14
22
  /** Free-form display label (filename, URL, etc.). */
15
23
  label?: string;
24
+ /** Source-declared CRS metadata, available before the first decoded chunk. */
25
+ spatialMetadata?: PointSourceSpatialMetadata;
16
26
  }
17
27
  /**
18
28
  * Renderer-agnostic streaming source.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/streaming/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAErE,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,eAAe,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,IAAI,EAAE,cAAc,CAAC;IACrB,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sDAAsD;IACtD,YAAY,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CA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CAAC;CACf;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/pointcloud",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Point cloud decoders and types for IFC-Lite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "devDependencies": {
19
19
  "esbuild": "^0.28.2",
20
20
  "typescript": "^6.0.3",
21
- "vitest": "^4.1.11"
21
+ "vitest": "^5.0.1"
22
22
  },
23
23
  "license": "MPL-2.0",
24
24
  "author": "Louis True",