@nice2dev/ui-buildings 1.0.11 → 1.0.14
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 +24 -8
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +2161 -2122
- package/dist/ui-buildings.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,16 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
One React component with 6 editing modes, replacing 5+ separate editors:
|
|
10
10
|
|
|
11
|
-
| Mode
|
|
12
|
-
|
|
13
|
-
| **floor-plan**
|
|
14
|
-
| **network-topology** | Network topology overlay on floor plan or standalone
|
|
15
|
-
| **infrastructure**
|
|
16
|
-
| **cad**
|
|
17
|
-
| **interior**
|
|
18
|
-
| **game-scene**
|
|
11
|
+
| Mode | Description |
|
|
12
|
+
| -------------------- | ----------------------------------------------------------------- |
|
|
13
|
+
| **floor-plan** | 2D floor plan for smart home / building automation |
|
|
14
|
+
| **network-topology** | Network topology overlay on floor plan or standalone |
|
|
15
|
+
| **infrastructure** | Data center, server racks, network closets |
|
|
16
|
+
| **cad** | 3D CAD mode — walls, floors, rooms, dimensions, DXF |
|
|
17
|
+
| **interior** | 3D interior design / Sims mode — furniture placement (140+ items) |
|
|
18
|
+
| **game-scene** | 2D/3D game scene editing — tilemap, terrain, objects |
|
|
19
19
|
|
|
20
20
|
### Common Features (all modes)
|
|
21
|
+
|
|
21
22
|
- Snap to grid — unified snap system (`useSnapToGrid` + spatial-core)
|
|
22
23
|
- Layers panel, object library sidebar
|
|
23
24
|
- Measurement tools (distance, area, angle)
|
|
@@ -26,6 +27,7 @@ One React component with 6 editing modes, replacing 5+ separate editors:
|
|
|
26
27
|
- Export — PNG, SVG, PDF, DXF, `.nsp.json`
|
|
27
28
|
|
|
28
29
|
### Dependencies
|
|
30
|
+
|
|
29
31
|
- [`@nice2dev/spatial-core`](../spatial-core/) — grid system, object catalog, floor-plan model, .nsp.json serialization
|
|
30
32
|
|
|
31
33
|
## Installation
|
|
@@ -34,6 +36,20 @@ One React component with 6 editing modes, replacing 5+ separate editors:
|
|
|
34
36
|
npm install @nice2dev/ui-buildings @nice2dev/spatial-core
|
|
35
37
|
```
|
|
36
38
|
|
|
39
|
+
## Styling
|
|
40
|
+
|
|
41
|
+
This package ships unstyled component logic. Import the shared CSS bundle once at your app entrypoint:
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
import '@nice2dev/ui/style.css';
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Optional: opt into the legacy shorthand token aliases (`--bg-*`, `--text-*`, `--border-*`, ...) when migrating from a custom design-token system:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import '@nice2dev/ui/css/legacy-bg-text-aliases.css';
|
|
51
|
+
```
|
|
52
|
+
|
|
37
53
|
## License
|
|
38
54
|
|
|
39
55
|
MIT © NiceToDev
|