@ifc-lite/export 2.5.0 → 2.5.1
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 +23 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -27,6 +27,23 @@ const glb = gp.exportGlbFromMeshes(result.meshes, /* includeMetadata */ true);
|
|
|
27
27
|
const url = URL.createObjectURL(new Blob([new Uint8Array(glb)], { type: 'model/gltf-binary' }));
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
## CSV / JSON-LD / HBJSON - also via GeometryProcessor
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
// `file` is a caller-provided File (e.g. from an <input type="file">)
|
|
34
|
+
const bytes = new Uint8Array(await file.arrayBuffer()); // raw IFC bytes
|
|
35
|
+
|
|
36
|
+
// CSV: mode is one of entities | properties | quantities | spatial
|
|
37
|
+
const csv = gp.exportCsv(bytes, 'properties');
|
|
38
|
+
|
|
39
|
+
// JSON-LD knowledge graph
|
|
40
|
+
const jsonld = gp.exportJsonld(bytes);
|
|
41
|
+
|
|
42
|
+
// HBJSON (Honeybee JSON for energy simulation)
|
|
43
|
+
const hbjson = gp.exportHbjson(bytes, 'model');
|
|
44
|
+
// Each returns Uint8Array | null (null until the processor is initialized)
|
|
45
|
+
```
|
|
46
|
+
|
|
30
47
|
## IFC STEP — with mutations
|
|
31
48
|
|
|
32
49
|
```typescript
|
|
@@ -101,6 +118,12 @@ const lod1 = await generateLod1(bytes, { quality: 'medium' });
|
|
|
101
118
|
// Falls back gracefully to box geometry if a complex element fails to mesh
|
|
102
119
|
```
|
|
103
120
|
|
|
121
|
+
## Also exported
|
|
122
|
+
|
|
123
|
+
- `MergedExporter` - merge several parsed models into one STEP export
|
|
124
|
+
- `convertEntityType` / `convertStepLine` / `needsConversion` - IFC2X3 / IFC4 / IFC4X3 schema conversion helpers
|
|
125
|
+
- `parseGLB` / `parseGLBToMeshData` / `extractGlbMapping` - GLB round-trip readers
|
|
126
|
+
|
|
104
127
|
## API
|
|
105
128
|
|
|
106
129
|
See the [Exporting Guide](https://ltplus-ag.github.io/ifc-lite/guide/exporting/) and [API Reference](https://ltplus-ag.github.io/ifc-lite/api/typescript/#ifc-liteexport).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifc-lite/export",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Export formats for IFC-Lite",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"parquet-wasm": "^0.7.
|
|
16
|
+
"parquet-wasm": "^0.7.2",
|
|
17
17
|
"apache-arrow": "^21.1.0",
|
|
18
18
|
"jszip": "^3.10.0",
|
|
19
|
-
"@ifc-lite/
|
|
20
|
-
"@ifc-lite/
|
|
21
|
-
"@ifc-lite/encoding": "^1.14.
|
|
22
|
-
"@ifc-lite/parser": "^3.
|
|
23
|
-
"@ifc-lite/mutations": "^1.
|
|
19
|
+
"@ifc-lite/data": "^2.5.1",
|
|
20
|
+
"@ifc-lite/geometry": "^3.1.3",
|
|
21
|
+
"@ifc-lite/encoding": "^1.14.9",
|
|
22
|
+
"@ifc-lite/parser": "^3.8.1",
|
|
23
|
+
"@ifc-lite/mutations": "^1.18.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "^6.0.3",
|
|
27
27
|
"vitest": "^4.1.9",
|
|
28
|
-
"@ifc-lite/ifcx": "^2.1
|
|
28
|
+
"@ifc-lite/ifcx": "^2.2.1"
|
|
29
29
|
},
|
|
30
30
|
"license": "MPL-2.0",
|
|
31
31
|
"author": "Louis True",
|