@ifc-lite/ifcx 2.2.0 → 2.2.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.
- package/README.md +4 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ const result = await parseIfcx(buffer, {
|
|
|
21
21
|
|
|
22
22
|
console.log(`${result.entityCount} entities, ${result.meshes.length} pre-tessellated meshes`);
|
|
23
23
|
console.log(`Schema: ${result.schemaVersion}`); // 'IFC5'
|
|
24
|
+
// result also carries properties, quantities, relationships, spatial
|
|
25
|
+
// hierarchy, and decoded point clouds (result.pointClouds)
|
|
24
26
|
|
|
25
27
|
// Same MeshData[] shape as @ifc-lite/parser — feed straight into renderer
|
|
26
28
|
renderer.loadGeometry(result.meshes);
|
|
@@ -60,7 +62,7 @@ const result = await parseFederatedIfcx([
|
|
|
60
62
|
|
|
61
63
|
## Write IFCX
|
|
62
64
|
|
|
63
|
-
The
|
|
65
|
+
The low-level writer (`IfcxWriter` / `exportToIfcx`) lives in this package. For the full IFC-to-IFC5 conversion path (cross-schema, geometry as USD, mutations applied), use `Ifc5Exporter` from `@ifc-lite/export`:
|
|
64
66
|
|
|
65
67
|
```typescript
|
|
66
68
|
import { Ifc5Exporter } from '@ifc-lite/export';
|
|
@@ -72,7 +74,7 @@ const ifcx = exporter.export({ includeGeometry: true });
|
|
|
72
74
|
|
|
73
75
|
## API
|
|
74
76
|
|
|
75
|
-
See the [Parsing Guide](https://
|
|
77
|
+
See the [Parsing Guide](https://ifclite.dev/docs/guide/parsing/) and [API Reference](https://ifclite.dev/docs/api/typescript/#ifc-liteifcx).
|
|
76
78
|
|
|
77
79
|
## License
|
|
78
80
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifc-lite/ifcx",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "IFC5 (IFCX) parser for IFC-Lite",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ifc-lite/data": "^2.5.
|
|
17
|
-
"@ifc-lite/mutations": "^1.18.
|
|
18
|
-
"@ifc-lite/pointcloud": "^0.3.
|
|
16
|
+
"@ifc-lite/data": "^2.5.2",
|
|
17
|
+
"@ifc-lite/mutations": "^1.18.1",
|
|
18
|
+
"@ifc-lite/pointcloud": "^0.3.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"tsx": "^4.23.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"url": "https://github.com/LTplus-AG/ifc-lite.git",
|
|
29
29
|
"directory": "packages/ifcx"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://ifclite.dev/docs/",
|
|
32
32
|
"bugs": "https://github.com/LTplus-AG/ifc-lite/issues",
|
|
33
33
|
"keywords": [
|
|
34
34
|
"ifc",
|