@ifc-lite/spatial 1.14.10 → 1.14.12

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 +4 -3
  2. package/package.json +3 -3
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
@@ -70,7 +71,7 @@ The renderer (`@ifc-lite/renderer`) ships its own GPU-side picking and culling
70
71
 
71
72
  ## API
72
73
 
73
- See the [API Reference](https://ltplus-ag.github.io/ifc-lite/api/typescript/#ifc-litespatial).
74
+ See the [API Reference](https://ifclite.dev/docs/api/typescript/#ifc-litespatial).
74
75
 
75
76
  ## License
76
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/spatial",
3
- "version": "1.14.10",
3
+ "version": "1.14.12",
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": "^3.0.0"
16
+ "@ifc-lite/geometry": "^3.1.4"
17
17
  },
18
18
  "devDependencies": {
19
19
  "typescript": "^6.0.3"
@@ -25,7 +25,7 @@
25
25
  "url": "https://github.com/LTplus-AG/ifc-lite.git",
26
26
  "directory": "packages/spatial"
27
27
  },
28
- "homepage": "https://ltplus-ag.github.io/ifc-lite/",
28
+ "homepage": "https://ifclite.dev/docs/",
29
29
  "bugs": "https://github.com/LTplus-AG/ifc-lite/issues",
30
30
  "keywords": [
31
31
  "ifc",