@umituz/web-virtual 2.1.0 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-virtual",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Universal 3D Virtual Environment Engine for Web & React — Offices, Farms, Factories, Schools, Hospitals with 60fps performance, raycasting and interactive entities.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -147,7 +147,8 @@ export function createGreenhouse(options: GreenhouseOptions = {}): THREE.Group {
147
147
  const {
148
148
  width = 9,
149
149
  depth = 6,
150
- height = 2.8,
150
+ // `height` is accepted for API symmetry — the vault derives from depth.
151
+ height: _height = 2.8,
151
152
  frameColor = '#e8eaed',
152
153
  glassColor = '#cdebdd',
153
154
  glassOpacity = 0.3,
@@ -156,6 +157,7 @@ export function createGreenhouse(options: GreenhouseOptions = {}): THREE.Group {
156
157
  benches,
157
158
  entityId,
158
159
  } = options
160
+ void _height
159
161
 
160
162
  const group = new THREE.Group()
161
163
  group.name = 'greenhouse'
@@ -67,7 +67,6 @@ export function createCropPlot(options: CropPlotOptions = {}): THREE.Group {
67
67
  const rowCount = Math.max(1, Math.round(rows * (0.35 + 0.65 * g)))
68
68
 
69
69
  const rowAxis = rowDirection === 'x' ? 'x' : 'z'
70
- const crossAxis = rowAxis === 'x' ? 'z' : 'x'
71
70
  const rowLength = rowAxis === 'x' ? width : depth
72
71
  const crossLength = rowAxis === 'x' ? depth : width
73
72