door_models 5.1.0 → 5.1.2
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 +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1547,7 +1547,7 @@ function DoorModels(_ref7) {
|
|
|
1547
1547
|
const totalFrameHeightM = totalOpeningHeightM + topFrameWidthM;
|
|
1548
1548
|
|
|
1549
1549
|
// --- Centering Logic ---
|
|
1550
|
-
const yCenteringOffset = -topFrameWidthM / 2;
|
|
1550
|
+
const yCenteringOffset = -(topFrameWidthM + exteriorFanlightHeightM) / 2;
|
|
1551
1551
|
const sideFrameCenterY = topFrameWidthM / 2;
|
|
1552
1552
|
const interiorFanlightYPosition = totalOpeningHeightM / 2 - interiorFanlightHeightM / 2;
|
|
1553
1553
|
const topFrameCenterY = totalOpeningHeightM / 2 + topFrameWidthM / 2;
|
|
@@ -1575,7 +1575,7 @@ function DoorModels(_ref7) {
|
|
|
1575
1575
|
|
|
1576
1576
|
// --- HINGE VISIBILITY LOGIC ---
|
|
1577
1577
|
const isGlassDoor = React.useMemo(() => ["SG8", "SG10", "SG12"].includes(bodyType), [bodyType]);
|
|
1578
|
-
|
|
1578
|
+
(doorHeight - initialDoorHeight.current) / 2 / 1000;
|
|
1579
1579
|
|
|
1580
1580
|
// Calculate evenly spaced hinge positions
|
|
1581
1581
|
React.useMemo(() => {
|
|
@@ -1643,7 +1643,7 @@ function DoorModels(_ref7) {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1645
1645
|
children: /*#__PURE__*/jsxRuntime.jsxs("group", {
|
|
1646
|
-
"position-y":
|
|
1646
|
+
"position-y": yCenteringOffset,
|
|
1647
1647
|
children: [frontCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
|
|
1648
1648
|
"position-z": frontArchitraveZ,
|
|
1649
1649
|
children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
|