@ifc-lite/mutations 1.6.1 → 1.8.0

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 +39 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @ifc-lite/mutations
2
+
3
+ Property editing and mutation tracking for IFClite. Edit IFC properties in-place with full change tracking, undo/redo, and export.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @ifc-lite/mutations
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { MutablePropertyView } from '@ifc-lite/mutations';
15
+
16
+ // Create a mutable view (params: PropertyTable | null, modelId)
17
+ const view = new MutablePropertyView(propertyTable, 'my-model');
18
+ view.setProperty(entityId, 'Pset_WallCommon', 'FireRating', 'REI 120');
19
+
20
+ // Get all changes
21
+ const mutations = view.getMutations();
22
+ ```
23
+
24
+ ## Features
25
+
26
+ - Mutation overlay on read-only IFC data
27
+ - Undo/redo support (via viewer store)
28
+ - Change sets for grouping related mutations
29
+ - Bulk query engine for updating many entities
30
+ - CSV import for spreadsheet-based updates
31
+ - Export modified data
32
+
33
+ ## API
34
+
35
+ See the [Property Editing Guide](../../docs/guide/mutations.md) and [API Reference](../../docs/api/typescript.md#ifc-litemutations).
36
+
37
+ ## License
38
+
39
+ [MPL-2.0](../../LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/mutations",
3
- "version": "1.6.1",
3
+ "version": "1.8.0",
4
4
  "description": "Mutation tracking and property editing for IFC-Lite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,8 +12,8 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@ifc-lite/data": "^1.6.1",
16
- "@ifc-lite/parser": "^1.6.1"
15
+ "@ifc-lite/data": "^1.8.0",
16
+ "@ifc-lite/parser": "^1.8.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "typescript": "^5.3.0",