door_models 5.0.7 → 5.0.8
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/dist/index.cjs.js +27 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +27 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2252,7 +2252,7 @@ function DoorLeaf(_ref8) {
|
|
|
2252
2252
|
})
|
|
2253
2253
|
})]
|
|
2254
2254
|
}, "door-hinge-".concat(index))), isGlassDoor && isFrameVisible && glassHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsx(GlassHinge, {
|
|
2255
|
-
position: [0, y, doorOffsetZ],
|
|
2255
|
+
position: [0, y, doorOffsetZ + 0.0001],
|
|
2256
2256
|
pivot: pivot,
|
|
2257
2257
|
frameSideWidth: sidesFrameWidthM,
|
|
2258
2258
|
doorDepthM: doorDepthM,
|
|
@@ -2326,17 +2326,37 @@ function DoorLeaf(_ref8) {
|
|
|
2326
2326
|
})
|
|
2327
2327
|
}), frontDoorPlane.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
|
|
2328
2328
|
position: [0, 0, doorDepthM / 2 + 0.0005],
|
|
2329
|
-
material: frontDoorPlaneMaterial,
|
|
2330
2329
|
castShadow: true,
|
|
2331
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
2332
|
-
|
|
2330
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
|
|
2331
|
+
useGroups: true,
|
|
2332
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
|
|
2333
|
+
material: frontDoorPlaneMaterial,
|
|
2334
|
+
children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
|
|
2335
|
+
args: [doorWidthM, mainDoorHeightM, 0.001]
|
|
2336
|
+
})
|
|
2337
|
+
}), occulus.visible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
|
|
2338
|
+
position: [occulusPositionXM, occulusPositionYM, 0],
|
|
2339
|
+
children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
|
|
2340
|
+
args: [occulusWidthM, occulusHeightM, 0.002]
|
|
2341
|
+
})
|
|
2342
|
+
})]
|
|
2333
2343
|
})
|
|
2334
2344
|
}), backDoorPlane.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
|
|
2335
2345
|
position: [0, 0, -doorDepthM / 2 - 0.0005],
|
|
2336
|
-
material: backDoorPlaneMaterial,
|
|
2337
2346
|
castShadow: true,
|
|
2338
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
2339
|
-
|
|
2347
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
|
|
2348
|
+
useGroups: true,
|
|
2349
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
|
|
2350
|
+
material: backDoorPlaneMaterial,
|
|
2351
|
+
children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
|
|
2352
|
+
args: [doorWidthM, mainDoorHeightM, 0.0001]
|
|
2353
|
+
})
|
|
2354
|
+
}), occulus.visible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
|
|
2355
|
+
position: [occulusPositionXM, occulusPositionYM, 0],
|
|
2356
|
+
children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
|
|
2357
|
+
args: [occulusWidthM, occulusHeightM, 0.002]
|
|
2358
|
+
})
|
|
2359
|
+
})]
|
|
2340
2360
|
})
|
|
2341
2361
|
}), occulus.visible && occulus.infillVisible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx("mesh", {
|
|
2342
2362
|
position: [occulusPositionXM, occulusPositionYM, 0],
|