@ifc-lite/drawing-2d 1.6.1 → 1.7.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.
- package/README.md +40 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @ifc-lite/drawing-2d
|
|
2
|
+
|
|
3
|
+
2D architectural drawing generation from 3D IFC models. Produces section cuts, floor plans, and elevations as vector SVG with proper architectural conventions.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @ifc-lite/drawing-2d
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { generateFloorPlan, exportToSVG } from '@ifc-lite/drawing-2d';
|
|
15
|
+
|
|
16
|
+
// Generate a floor plan (meshes, elevation, options?)
|
|
17
|
+
const drawing = await generateFloorPlan(meshData, 1.2);
|
|
18
|
+
|
|
19
|
+
// Export as SVG
|
|
20
|
+
const svg = exportToSVG(drawing, { showHatching: true });
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
- Floor plans, sections, and elevations
|
|
26
|
+
- Cut lines, projection lines, and hidden lines
|
|
27
|
+
- Material-based hatching (concrete, masonry, insulation, etc.)
|
|
28
|
+
- Architectural symbols (door swings, window frames, stair arrows)
|
|
29
|
+
- Graphic override presets (architectural, fire safety, structural, MEP)
|
|
30
|
+
- Drawing sheets with frames, title blocks, and scale bars
|
|
31
|
+
- GPU-accelerated section cutting
|
|
32
|
+
- SVG vector output
|
|
33
|
+
|
|
34
|
+
## API
|
|
35
|
+
|
|
36
|
+
See the [2D Drawings Guide](../../docs/guide/drawing-2d.md) and [API Reference](../../docs/api/typescript.md#ifc-litedrawing-2d).
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
[MPL-2.0](../../LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifc-lite/drawing-2d",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "2D architectural drawing generation from IFC models - section cuts, floor plans, and elevations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ifc-lite/geometry": "^1.
|
|
15
|
+
"@ifc-lite/geometry": "^1.7.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@webgpu/types": "^0.1.69",
|