@ifc-lite/spatial 1.14.9 → 1.14.11

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -15,7 +15,8 @@ import { buildSpatialIndex } from '@ifc-lite/spatial';
15
15
 
16
16
  const index = buildSpatialIndex(meshes); // MeshData[] from @ifc-lite/geometry
17
17
 
18
- // For very large models (50K+ meshes), build off the main thread:
18
+ // For very large models (50K+ meshes), use the time-sliced builder:
19
+ // it yields to the event loop between chunks so the UI stays responsive.
19
20
  import { buildSpatialIndexAsync } from '@ifc-lite/spatial';
20
21
  const indexAsync = await buildSpatialIndexAsync(meshes);
21
22
  ```
@@ -54,7 +55,7 @@ console.log(`${hits.length} entities in region`);
54
55
  import { FrustumUtils } from '@ifc-lite/spatial';
55
56
 
56
57
  // Build a frustum from a view-projection matrix (column-major 4×4)
57
- const frustum = FrustumUtils.fromMatrix(viewProjMatrix);
58
+ const frustum = FrustumUtils.fromViewProjMatrix(viewProjMatrix);
58
59
 
59
60
  const visible = index.queryFrustum(frustum);
60
61
  // → expressIds visible to the camera; renderer only draws these
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/spatial",
3
- "version": "1.14.9",
3
+ "version": "1.14.11",
4
4
  "description": "Spatial indexing for IFC-Lite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@ifc-lite/geometry": "^2.7.0"
16
+ "@ifc-lite/geometry": "^3.1.3"
17
17
  },
18
18
  "devDependencies": {
19
19
  "typescript": "^6.0.3"