@ifc-lite/create 1.16.2 → 1.16.4

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 +42 -0
  2. package/package.json +6 -6
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @ifc-lite/create
2
+
3
+ Create valid IFC4 STEP files from scratch, programmatically. `IfcCreator` builds a complete spatial structure (project, site, building, storeys) and adds building elements with real geometry, property sets, quantities, and materials. Inputs are in metres and elements are placed relative to an identity placement unless you specify otherwise.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @ifc-lite/create
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { IfcCreator } from '@ifc-lite/create';
15
+
16
+ const creator = new IfcCreator({ Name: 'My Project' });
17
+ const storey = creator.addIfcBuildingStorey({ Name: 'Ground Floor', Elevation: 0 });
18
+ creator.addIfcWall(storey, {
19
+ Start: [0, 0, 0], End: [5, 0, 0],
20
+ Thickness: 0.2, Height: 3,
21
+ });
22
+ const { content } = creator.toIfc(); // IFC STEP text
23
+ ```
24
+
25
+ ## Features
26
+
27
+ - Element builders: walls, slabs, columns, beams, stairs, roofs, doors, windows, ramps, railings, plates, members, footings, piles, spaces, curtain walls, furnishing, proxies, and parametric profile shapes (I, L, T, U, C, hollow sections)
28
+ - Openings: `addIfcWallDoor` and `addIfcWallWindow` cut hosted doors and windows into walls
29
+ - Property sets, element quantities, materials, and colors
30
+ - 4D scheduling entities: IfcWorkSchedule, IfcTask, IfcRelSequence
31
+ - In-store builders (`addWallToStore`, `addSlabToStore`, ...) that emit elements into an existing parsed model
32
+ - Space generation: `generateSpacesFromWalls` and `detectEnclosedAreas` derive IfcSpace footprints from wall layouts
33
+ - Fully typed parameter objects for every element
34
+
35
+ ## Links
36
+
37
+ - Docs: https://ifclite.dev/docs/
38
+ - Source: https://github.com/LTplus-AG/ifc-lite
39
+
40
+ ## License
41
+
42
+ MPL-2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/create",
3
- "version": "1.16.2",
3
+ "version": "1.16.4",
4
4
  "description": "IFC creation from scratch — walls, slabs, beams, columns, stairs, roofs with geometry, properties and quantities",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,13 +13,13 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@ifc-lite/encoding": "^1.14.7",
17
- "@ifc-lite/mutations": "^1.15.3",
18
- "@ifc-lite/parser": "^3.2.0"
16
+ "@ifc-lite/encoding": "^1.14.10",
17
+ "@ifc-lite/mutations": "^1.18.1",
18
+ "@ifc-lite/parser": "^3.8.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "typescript": "^6.0.3",
22
- "vitest": "^4.1.0"
22
+ "vitest": "^4.1.9"
23
23
  },
24
24
  "license": "MPL-2.0",
25
25
  "author": "Louis True",
@@ -28,7 +28,7 @@
28
28
  "url": "https://github.com/LTplus-AG/ifc-lite.git",
29
29
  "directory": "packages/create"
30
30
  },
31
- "homepage": "https://ltplus-ag.github.io/ifc-lite/",
31
+ "homepage": "https://ifclite.dev/docs/",
32
32
  "bugs": "https://github.com/LTplus-AG/ifc-lite/issues",
33
33
  "keywords": [
34
34
  "ifc",