door_models 5.0.5 → 5.0.6

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 CHANGED
@@ -193,8 +193,8 @@ const ConfiguratorProvider = _ref => {
193
193
  const [testHingeMaterial, setTestHingeMaterial] = React.useState("metal");
194
194
  const [testFrontCoverPanelMaterial, setTestFrontCoverPanelMaterial] = React.useState("aluminum");
195
195
  const [testBackCoverPanelMaterial, setTestBackCoverPanelMaterial] = React.useState("aluminum");
196
-
197
- //
196
+ const doorHeight = 0;
197
+ const [newPivotPosition, setNewPivotPosition] = React.useState(0);
198
198
  const [parseMessage, setParseMessage] = React.useState({
199
199
  type: "",
200
200
  text: ""
@@ -203,6 +203,8 @@ const ConfiguratorProvider = _ref => {
203
203
  setIs2D(initialIs2D);
204
204
  }, [initialIs2D]);
205
205
  const handleParseCpid = React.useCallback(cpidToParse => {
206
+ setTotalHeight(2700);
207
+ setTotalWidth(974);
206
208
  const showMessage = function (text) {
207
209
  let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "error";
208
210
  setParseMessage({
@@ -248,6 +250,9 @@ const ConfiguratorProvider = _ref => {
248
250
  newConfig.fanlightVisible = false;
249
251
  currentIndex++;
250
252
  } else if (validFanlights.includes(fanlightPart)) {
253
+ setExteriorFanlight(prev => _objectSpread2(_objectSpread2({}, prev), {}, {
254
+ height: 300
255
+ }));
251
256
  newConfig.fanlightVisible = true;
252
257
  newConfig.fanlightType = fanlightPart;
253
258
  currentIndex++;
@@ -274,6 +279,12 @@ const ConfiguratorProvider = _ref => {
274
279
  newConfig.bodyType = tempBody;
275
280
  if (bodyPartRaw.endsWith("OCC")) {
276
281
  newConfig.occulusVisible = true;
282
+ setOcculus(prev => _objectSpread2(_objectSpread2({}, prev), {}, {
283
+ x1: 150,
284
+ x2: 150,
285
+ y1: 150,
286
+ y2: 150
287
+ }));
277
288
  }
278
289
  currentIndex += 2;
279
290
  frameFound = true;
@@ -285,6 +296,9 @@ const ConfiguratorProvider = _ref => {
285
296
  }
286
297
  for (let i = currentIndex; i < parts.length; i++) {
287
298
  if (parts[i] === "IFL") {
299
+ setInteriorFanlight(prev => _objectSpread2(_objectSpread2({}, prev), {}, {
300
+ height: 300
301
+ }));
288
302
  newConfig.interiorFanlightVisible = true;
289
303
  } else if (parts[i] === "OCC") {
290
304
  newConfig.occulusVisible = true;
@@ -703,7 +717,10 @@ const ConfiguratorProvider = _ref => {
703
717
  setGlassVisible,
704
718
  glassDepth,
705
719
  setGlassDepth,
706
- handleParseCpid
720
+ handleParseCpid,
721
+ newPivotPosition,
722
+ setNewPivotPosition,
723
+ doorHeight
707
724
  },
708
725
  children: children
709
726
  });
@@ -1316,6 +1333,7 @@ function DoorModels(_ref7) {
1316
1333
  testFrontCoverPanelMaterial,
1317
1334
  testBackCoverPanelMaterial,
1318
1335
  glassDepth,
1336
+ cpid,
1319
1337
  handleParseCpid
1320
1338
  } = useConfigurator();
1321
1339
  React.useEffect(() => {
@@ -1402,6 +1420,12 @@ function DoorModels(_ref7) {
1402
1420
  secondDoorStopDepth,
1403
1421
  secondDoorStopOffset
1404
1422
  } = doorFrame;
1423
+ const initialDoorHeight = React.useRef(doorHeight);
1424
+
1425
+ // useEffect(() => {
1426
+ // initialDoorHeight.current = doorHeight;
1427
+ // }, [cpid]);
1428
+
1405
1429
  const {
1406
1430
  height: interiorFanlightHeightValue
1407
1431
  } = interiorFanlight;
@@ -1528,7 +1552,7 @@ function DoorModels(_ref7) {
1528
1552
  const totalFrameHeightM = totalOpeningHeightM + topFrameWidthM;
1529
1553
 
1530
1554
  // --- Centering Logic ---
1531
- const yCenteringOffset = -(topFrameWidthM + exteriorFanlightHeightM) / 2;
1555
+ const yCenteringOffset = -topFrameWidthM / 2;
1532
1556
  const sideFrameCenterY = topFrameWidthM / 2;
1533
1557
  const interiorFanlightYPosition = totalOpeningHeightM / 2 - interiorFanlightHeightM / 2;
1534
1558
  const doorYPosition = -totalOpeningHeightM / 2 + mainDoorHeightM / 2;
@@ -1583,6 +1607,12 @@ function DoorModels(_ref7) {
1583
1607
 
1584
1608
  // --- HINGE VISIBILITY LOGIC ---
1585
1609
  const isGlassDoor = React.useMemo(() => ["SG8", "SG10", "SG12"].includes(bodyType), [bodyType]);
1610
+ const pivotNewPosition = (doorHeight - initialDoorHeight.current) / 2 / 1000;
1611
+ console.log("////////");
1612
+ console.log("initialDoorHeight.current", initialDoorHeight.current);
1613
+ console.log("doorHeight", doorHeight);
1614
+ console.log("pivotNewPosition", pivotNewPosition);
1615
+ console.log("////////");
1586
1616
 
1587
1617
  // Calculate evenly spaced hinge positions
1588
1618
  const standardHingeYPositions = React.useMemo(() => {
@@ -1630,424 +1660,416 @@ function DoorModels(_ref7) {
1630
1660
  })
1631
1661
  });
1632
1662
  }
1633
- return /*#__PURE__*/jsxRuntime.jsxs("group", {
1634
- "position-y": yCenteringOffset,
1635
- children: [frontCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1636
- "position-z": frontArchitraveZ,
1637
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1638
- position: [0, topArchitraveY, 0],
1639
- castShadow: true,
1640
- material: frontCoverPanelMaterial,
1641
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1642
- args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1643
- })
1644
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1645
- position: [leftArchitraveX, sideArchitraveCenterY, 0],
1646
- castShadow: true,
1647
- material: frontCoverPanelMaterial,
1648
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1649
- args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1650
- })
1651
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1652
- position: [rightArchitraveX, sideArchitraveCenterY, 0],
1653
- castShadow: true,
1654
- material: frontCoverPanelMaterial,
1655
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1656
- args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1657
- })
1658
- })]
1659
- }), backCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1660
- "position-z": backArchitraveZ,
1661
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1662
- position: [0, topArchitraveY, 0],
1663
- castShadow: true,
1664
- material: backCoverPanelMaterial,
1665
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1666
- args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1667
- })
1668
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1669
- position: [leftArchitraveX, sideArchitraveCenterY, 0],
1670
- castShadow: true,
1671
- material: backCoverPanelMaterial,
1672
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1673
- args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1674
- })
1675
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1676
- position: [rightArchitraveX, sideArchitraveCenterY, 0],
1677
- castShadow: true,
1678
- material: backCoverPanelMaterial,
1679
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1680
- args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1681
- })
1682
- })]
1683
- }), exteriorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1684
- position: [0, exteriorFanlightYPosition, exteriorFanlightZPosition],
1685
- castShadow: true,
1686
- material: exteriorFanlightMaterial,
1687
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1688
- args: [totalFrameWidth, exteriorFanlightHeightM, exteriorFanlightDepthM]
1689
- })
1690
- }), isFrameVisible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1691
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1692
- castShadow: true,
1693
- position: [0, topFrameCenterY, 0],
1694
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1695
- useGroups: true,
1696
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1697
- name: "frame-base",
1698
- material: frameMaterial,
1699
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1700
- args: [doorWidthM, topFrameWidthM, frameDepthM]
1701
- })
1702
- }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1703
- name: "cut-exterior",
1704
- material: frameMaterial,
1705
- position: [0, notchposition, 0],
1706
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1707
- args: [doorWidthM + 0.01, notchWidthM, notchDepthM]
1708
- })
1709
- })]
1710
- })
1711
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1712
- castShadow: true,
1713
- position: [-doorWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, 0],
1714
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1715
- useGroups: true,
1716
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1717
- name: "frame-base",
1718
- material: frameMaterial,
1719
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1720
- args: [sidesFrameWidthM, totalFrameHeightM, frameDepthM]
1721
- })
1722
- }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1723
- name: "cut-exterior",
1724
- material: frameMaterial,
1725
- position: [-notchposition, 0, 0],
1726
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1727
- args: [notchWidthM, totalFrameHeightM + 0.01, notchDepthM]
1728
- })
1729
- })]
1730
- })
1731
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1732
- castShadow: true,
1733
- position: [doorWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, 0],
1734
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1735
- useGroups: true,
1736
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1737
- name: "frame-base",
1738
- material: frameMaterial,
1739
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1740
- args: [sidesFrameWidthM, totalFrameHeightM, frameDepthM]
1741
- })
1742
- }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1743
- name: "cut-exterior",
1744
- material: frameMaterial,
1745
- position: [notchposition, 0, 0],
1746
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1747
- args: [notchWidthM, totalFrameHeightM + 0.01, notchDepthM]
1748
- })
1749
- })]
1750
- })
1751
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1752
- castShadow: true,
1753
- position: [0, totalOpeningHeightM / 2 - doorStopWidthM / 2, doorStopPositionZ],
1754
- material: doorStopMaterial,
1755
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1756
- args: [doorWidthM, doorStopWidthM, doorStopDepthM]
1757
- })
1758
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1759
- castShadow: true,
1760
- position: [-doorWidthM / 2 + doorStopWidthM / 2, 0, doorStopPositionZ],
1761
- material: doorStopMaterial,
1762
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1763
- args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1764
- })
1765
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1663
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
1664
+ children: /*#__PURE__*/jsxRuntime.jsxs("group", {
1665
+ "position-y": yCenteringOffset + pivotNewPosition,
1666
+ children: [frontCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1667
+ "position-z": frontArchitraveZ,
1668
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1669
+ position: [0, topArchitraveY, 0],
1670
+ castShadow: true,
1671
+ material: frontCoverPanelMaterial,
1672
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1673
+ args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1674
+ })
1675
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1676
+ position: [leftArchitraveX, sideArchitraveCenterY, 0],
1677
+ castShadow: true,
1678
+ material: frontCoverPanelMaterial,
1679
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1680
+ args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1681
+ })
1682
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1683
+ position: [rightArchitraveX, sideArchitraveCenterY, 0],
1684
+ castShadow: true,
1685
+ material: frontCoverPanelMaterial,
1686
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1687
+ args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1688
+ })
1689
+ })]
1690
+ }), backCoverPanel.visible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1691
+ "position-z": backArchitraveZ,
1692
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1693
+ position: [0, topArchitraveY, 0],
1694
+ castShadow: true,
1695
+ material: backCoverPanelMaterial,
1696
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1697
+ args: [topArchitraveWidth, architraveProfileM, architraveDepthM]
1698
+ })
1699
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1700
+ position: [leftArchitraveX, sideArchitraveCenterY, 0],
1701
+ castShadow: true,
1702
+ material: backCoverPanelMaterial,
1703
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1704
+ args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1705
+ })
1706
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1707
+ position: [rightArchitraveX, sideArchitraveCenterY, 0],
1708
+ castShadow: true,
1709
+ material: backCoverPanelMaterial,
1710
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1711
+ args: [architraveProfileM, sideArchitraveHeight, architraveDepthM]
1712
+ })
1713
+ })]
1714
+ }), exteriorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1715
+ position: [0, exteriorFanlightYPosition, exteriorFanlightZPosition],
1766
1716
  castShadow: true,
1767
- position: [doorWidthM / 2 - doorStopWidthM / 2, 0, doorStopPositionZ],
1768
- material: doorStopMaterial,
1717
+ material: exteriorFanlightMaterial,
1769
1718
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1770
- args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1719
+ args: [totalFrameWidth, exteriorFanlightHeightM, exteriorFanlightDepthM]
1771
1720
  })
1772
- }), frameType !== "WF_FLI" && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1721
+ }), isFrameVisible && /*#__PURE__*/jsxRuntime.jsxs("group", {
1773
1722
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1774
1723
  castShadow: true,
1775
- position: [0, topGasketYPosition, gasketZPosition],
1776
- material: gasketMaterial,
1724
+ position: [0, topFrameCenterY, 0],
1725
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1726
+ useGroups: true,
1727
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1728
+ name: "frame-base",
1729
+ material: frameMaterial,
1730
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1731
+ args: [doorWidthM, topFrameWidthM, frameDepthM]
1732
+ })
1733
+ }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1734
+ name: "cut-exterior",
1735
+ material: frameMaterial,
1736
+ position: [0, notchposition, 0],
1737
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1738
+ args: [doorWidthM + 0.01, notchWidthM, notchDepthM]
1739
+ })
1740
+ })]
1741
+ })
1742
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1743
+ castShadow: true,
1744
+ position: [-doorWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, 0],
1745
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1746
+ useGroups: true,
1747
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1748
+ name: "frame-base",
1749
+ material: frameMaterial,
1750
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1751
+ args: [sidesFrameWidthM, totalFrameHeightM, frameDepthM]
1752
+ })
1753
+ }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1754
+ name: "cut-exterior",
1755
+ material: frameMaterial,
1756
+ position: [-notchposition, 0, 0],
1757
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1758
+ args: [notchWidthM, totalFrameHeightM + 0.01, notchDepthM]
1759
+ })
1760
+ })]
1761
+ })
1762
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1763
+ castShadow: true,
1764
+ position: [doorWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, 0],
1765
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1766
+ useGroups: true,
1767
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1768
+ name: "frame-base",
1769
+ material: frameMaterial,
1770
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1771
+ args: [sidesFrameWidthM, totalFrameHeightM, frameDepthM]
1772
+ })
1773
+ }), !["MXF_40", "MXF_50", "MXCAF_40", "MXCAF_50"].includes(frameType) && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
1774
+ name: "cut-exterior",
1775
+ material: frameMaterial,
1776
+ position: [notchposition, 0, 0],
1777
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1778
+ args: [notchWidthM, totalFrameHeightM + 0.01, notchDepthM]
1779
+ })
1780
+ })]
1781
+ })
1782
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1783
+ castShadow: true,
1784
+ position: [0, totalOpeningHeightM / 2 - doorStopWidthM / 2, doorStopPositionZ],
1785
+ material: doorStopMaterial,
1777
1786
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1778
- args: [doorWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
1787
+ args: [doorWidthM, doorStopWidthM, doorStopDepthM]
1779
1788
  })
1780
1789
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1781
1790
  castShadow: true,
1782
- position: [leftGasketXPosition - 0.005, -0.005, gasketZPosition],
1783
- material: gasketMaterial,
1791
+ position: [-doorWidthM / 2 + doorStopWidthM / 2, 0, doorStopPositionZ],
1792
+ material: doorStopMaterial,
1784
1793
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1785
- args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1794
+ args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1786
1795
  })
1787
1796
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1788
1797
  castShadow: true,
1789
- position: [rightGasketXPosition + 0.005, -0.005, gasketZPosition],
1790
- material: gasketMaterial,
1798
+ position: [doorWidthM / 2 - doorStopWidthM / 2, 0, doorStopPositionZ],
1799
+ material: doorStopMaterial,
1791
1800
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1792
- args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1801
+ args: [doorStopWidthM, totalOpeningHeightM, doorStopDepthM]
1793
1802
  })
1794
- })]
1795
- }), (frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI") && /*#__PURE__*/jsxRuntime.jsxs("group", {
1796
- children: [/*#__PURE__*/jsxRuntime.jsxs("group", {
1797
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1798
- castShadow: true,
1799
- position: [0, totalOpeningHeightM / 2 - secondDoorStopWidthM / 2, secondDoorStopPositionZ],
1800
- material: doorStopMaterial,
1801
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1802
- args: [doorWidthM, secondDoorStopWidthM, secondDoorStopDepthM]
1803
- })
1804
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1805
- castShadow: true,
1806
- position: [-doorWidthM / 2 + secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1807
- material: doorStopMaterial,
1808
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1809
- args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1810
- })
1811
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1812
- castShadow: true,
1813
- position: [doorWidthM / 2 - secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1814
- material: doorStopMaterial,
1815
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1816
- args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1817
- })
1818
- })]
1819
- }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1803
+ }), frameType !== "WF_FLI" && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1820
1804
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1821
1805
  castShadow: true,
1822
- position: [0, secondTopGasketYPosition - 0.005, secondGasketZPosition],
1806
+ position: [0, topGasketYPosition, gasketZPosition],
1823
1807
  material: gasketMaterial,
1824
1808
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1825
1809
  args: [doorWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
1826
1810
  })
1827
1811
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1828
1812
  castShadow: true,
1829
- position: [secondLeftGasketXPosition - 0.005, -0.01, secondGasketZPosition],
1813
+ position: [leftGasketXPosition - 0.005, -0.005, gasketZPosition],
1830
1814
  material: gasketMaterial,
1831
1815
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1832
- args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.04, gasketDepthM]
1816
+ args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1833
1817
  })
1834
1818
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1835
1819
  castShadow: true,
1836
- position: [secondRightGasketXPosition + 0.005, -0.01, secondGasketZPosition],
1820
+ position: [rightGasketXPosition + 0.005, -0.005, gasketZPosition],
1837
1821
  material: gasketMaterial,
1838
1822
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1839
- args: [gasketWidthM + 0.004, totalOpeningHeightM - 0.04, gasketDepthM]
1823
+ args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.02, gasketDepthM]
1840
1824
  })
1841
1825
  })]
1842
- }), glassVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1826
+ }), (frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI") && /*#__PURE__*/jsxRuntime.jsxs("group", {
1843
1827
  children: [/*#__PURE__*/jsxRuntime.jsxs("group", {
1844
- children: [(frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1845
- castShadow: true,
1846
- position: [0, topFrameCenterY - secondDoorStopWidthM / 2, leftGlass_Z],
1847
- material: glassInfillMaterial,
1848
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1849
- args: [doorWidthM - 2 * secondDoorStopWidthM, topFrameWidthM + secondDoorStopWidthM, GlassPanelDepthM]
1850
- })
1851
- }), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1828
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1852
1829
  castShadow: true,
1853
- position: [0, topFrameCenterY, leftGlass_Z],
1854
- material: glassInfillMaterial,
1830
+ position: [0, totalOpeningHeightM / 2 - secondDoorStopWidthM / 2, secondDoorStopPositionZ],
1831
+ material: doorStopMaterial,
1855
1832
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1856
- args: [doorWidthM - 2 * secondDoorStopWidthM, topFrameWidthM, GlassPanelDepthM]
1833
+ args: [doorWidthM, secondDoorStopWidthM, secondDoorStopDepthM]
1857
1834
  })
1858
1835
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1859
1836
  castShadow: true,
1860
- position: [-doorWidthM / 2 - sidesFrameWidthM / 2 + secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1861
- material: glassInfillMaterial,
1837
+ position: [-doorWidthM / 2 + secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1838
+ material: doorStopMaterial,
1862
1839
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1863
- args: [sidesFrameWidthM + secondDoorStopWidthM, totalFrameHeightM, GlassPanelDepthM]
1840
+ args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1864
1841
  })
1865
1842
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1866
1843
  castShadow: true,
1867
- position: [doorWidthM / 2 + sidesFrameWidthM / 2 - secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1868
- material: glassInfillMaterial,
1844
+ position: [doorWidthM / 2 - secondDoorStopWidthM / 2, 0, secondDoorStopPositionZ],
1845
+ material: doorStopMaterial,
1869
1846
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1870
- args: [sidesFrameWidthM + secondDoorStopWidthM, totalFrameHeightM, GlassPanelDepthM]
1847
+ args: [secondDoorStopWidthM, totalOpeningHeightM, secondDoorStopDepthM]
1871
1848
  })
1872
1849
  })]
1873
1850
  }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1874
1851
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1875
1852
  castShadow: true,
1876
- position: [0, topFrameCenterY, rightGlass_Z],
1877
- material: glassInfillMaterial,
1853
+ position: [0, secondTopGasketYPosition - 0.005, secondGasketZPosition],
1854
+ material: gasketMaterial,
1878
1855
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1879
- args: [doorWidthM, topFrameWidthM, GlassPanelDepthM]
1856
+ args: [doorWidthM - 0.03, gasketWidthM + 0.005, gasketDepthM]
1880
1857
  })
1881
1858
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1882
1859
  castShadow: true,
1883
- position: [-doorWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1884
- material: glassInfillMaterial,
1860
+ position: [secondLeftGasketXPosition - 0.005, -0.01, secondGasketZPosition],
1861
+ material: gasketMaterial,
1885
1862
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1886
- args: [sidesFrameWidthM, totalFrameHeightM, GlassPanelDepthM]
1863
+ args: [gasketWidthM + 0.005, totalOpeningHeightM - 0.04, gasketDepthM]
1887
1864
  })
1888
1865
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1889
1866
  castShadow: true,
1890
- position: [doorWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1891
- material: glassInfillMaterial,
1867
+ position: [secondRightGasketXPosition + 0.005, -0.01, secondGasketZPosition],
1868
+ material: gasketMaterial,
1892
1869
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1893
- args: [sidesFrameWidthM, totalFrameHeightM, GlassPanelDepthM]
1870
+ args: [gasketWidthM + 0.004, totalOpeningHeightM - 0.04, gasketDepthM]
1894
1871
  })
1895
1872
  })]
1873
+ }), glassVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1874
+ children: [/*#__PURE__*/jsxRuntime.jsxs("group", {
1875
+ children: [(frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1876
+ castShadow: true,
1877
+ position: [0, topFrameCenterY - secondDoorStopWidthM / 2, leftGlass_Z],
1878
+ material: glassInfillMaterial,
1879
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1880
+ args: [doorWidthM - 2 * secondDoorStopWidthM, topFrameWidthM + secondDoorStopWidthM, GlassPanelDepthM]
1881
+ })
1882
+ }), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1883
+ castShadow: true,
1884
+ position: [0, topFrameCenterY, leftGlass_Z],
1885
+ material: glassInfillMaterial,
1886
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1887
+ args: [doorWidthM - 2 * secondDoorStopWidthM, topFrameWidthM, GlassPanelDepthM]
1888
+ })
1889
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1890
+ castShadow: true,
1891
+ position: [-doorWidthM / 2 - sidesFrameWidthM / 2 + secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1892
+ material: glassInfillMaterial,
1893
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1894
+ args: [sidesFrameWidthM + secondDoorStopWidthM, totalFrameHeightM, GlassPanelDepthM]
1895
+ })
1896
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1897
+ castShadow: true,
1898
+ position: [doorWidthM / 2 + sidesFrameWidthM / 2 - secondDoorStopWidthM / 2, sideFrameCenterY, leftGlass_Z],
1899
+ material: glassInfillMaterial,
1900
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1901
+ args: [sidesFrameWidthM + secondDoorStopWidthM, totalFrameHeightM, GlassPanelDepthM]
1902
+ })
1903
+ })]
1904
+ }), /*#__PURE__*/jsxRuntime.jsxs("group", {
1905
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1906
+ castShadow: true,
1907
+ position: [0, topFrameCenterY, rightGlass_Z],
1908
+ material: glassInfillMaterial,
1909
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1910
+ args: [doorWidthM, topFrameWidthM, GlassPanelDepthM]
1911
+ })
1912
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1913
+ castShadow: true,
1914
+ position: [-doorWidthM / 2 - sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1915
+ material: glassInfillMaterial,
1916
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1917
+ args: [sidesFrameWidthM, totalFrameHeightM, GlassPanelDepthM]
1918
+ })
1919
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1920
+ castShadow: true,
1921
+ position: [doorWidthM / 2 + sidesFrameWidthM / 2, sideFrameCenterY, rightGlass_Z],
1922
+ material: glassInfillMaterial,
1923
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1924
+ args: [sidesFrameWidthM, totalFrameHeightM, GlassPanelDepthM]
1925
+ })
1926
+ })]
1927
+ })]
1896
1928
  })]
1897
1929
  })]
1898
- })]
1899
- }), interiorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1900
- position: [0, interiorFanlightYPosition, doorCenterZ],
1901
- castShadow: true,
1902
- material: interiorFanlightMaterial,
1903
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1904
- args: [doorWidthM, interiorFanlightHeightM, doorDepthM]
1905
- })
1906
- }), isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsxs("group", {
1907
- position: [hingeSideX, doorYPosition + y, hingeZ],
1908
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1909
- material: hingeBodyMaterial,
1910
- position: [0, separatorHeightM / 2 + barrelPartHeight / 2, 0],
1930
+ }), interiorFanlight.visible && /*#__PURE__*/jsxRuntime.jsx("mesh", {
1931
+ position: [0, interiorFanlightYPosition, doorCenterZ],
1911
1932
  castShadow: true,
1912
- children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1913
- args: [hingeRadiusM, hingeRadiusM, barrelPartHeight, 32]
1914
- })
1915
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1916
- material: hingeAccentMaterial,
1917
- position: [0, separatorHeightM / 2 + barrelPartHeight + capHeightM / 2, 0],
1918
- castShadow: true,
1919
- children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1920
- args: [hingeRadiusM, hingeRadiusM, capHeightM, 32]
1933
+ material: interiorFanlightMaterial,
1934
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1935
+ args: [doorWidthM, interiorFanlightHeightM, doorDepthM]
1921
1936
  })
1922
- })]
1923
- }, "frame-hinge-".concat(index))), /*#__PURE__*/jsxRuntime.jsxs(three.a.group, {
1924
- position: [hingeSideX, doorYPosition, hingeZ],
1925
- rotation: rotation.to((x, y, z) => [x, y, z]),
1926
- onClick: handleClick,
1927
- onPointerOver: () => document.body.style.cursor = "pointer",
1928
- onPointerOut: () => document.body.style.cursor = "auto",
1929
- children: [isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsxs("group", {
1930
- position: [0, y, 0],
1937
+ }), isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsxs("group", {
1938
+ position: [hingeSideX, doorYPosition + y, hingeZ],
1931
1939
  children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1932
1940
  material: hingeBodyMaterial,
1933
- position: [0, -separatorHeightM / 2 - barrelPartHeight / 2, 0],
1941
+ position: [0, separatorHeightM / 2 + barrelPartHeight / 2, 0],
1934
1942
  castShadow: true,
1935
1943
  children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1936
1944
  args: [hingeRadiusM, hingeRadiusM, barrelPartHeight, 32]
1937
1945
  })
1938
1946
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1939
1947
  material: hingeAccentMaterial,
1940
- position: [0, -separatorHeightM / 2 - barrelPartHeight - capHeightM / 2, 0],
1948
+ position: [0, separatorHeightM / 2 + barrelPartHeight + capHeightM / 2, 0],
1941
1949
  castShadow: true,
1942
1950
  children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1943
1951
  args: [hingeRadiusM, hingeRadiusM, capHeightM, 32]
1944
1952
  })
1945
- }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1946
- material: hingeAccentMaterial,
1947
- position: [0, 0, 0],
1948
- castShadow: true,
1949
- children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1950
- args: [hingeRadiusM, hingeRadiusM, separatorHeightM, 32]
1951
- })
1952
1953
  })]
1953
- }, "door-hinge-".concat(index))), isGlassDoor && isFrameVisible && glassHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsx(GlassHinge, {
1954
- position: [0, y, doorOffsetZ],
1955
- pivot: doorPivot,
1956
- frameSideWidth: sidesFrameWidthM,
1957
- doorDepthM: doorDepthM,
1958
- material: hingeBodyMaterial,
1959
- gasketMaterial: gasketMaterial
1960
- }, "glass-hinge-".concat(index))), /*#__PURE__*/jsxRuntime.jsxs("group", {
1961
- position: [-hingeSideX, 0, doorOffsetZ],
1962
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1963
- castShadow: true,
1964
- children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1965
- useGroups: true,
1966
- children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1967
- name: "door-base",
1968
- material: doorMaterial,
1969
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1970
- args: [doorWidthM, mainDoorHeightM, doorDepthM]
1971
- })
1972
- }), /*#__PURE__*/jsxRuntime.jsx(DoorStopCuts, {
1973
- visible: frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI",
1974
- width: doorWidthM,
1975
- height: totalOpeningHeightM,
1976
- stopWidth: doorStopWidthM,
1977
- stopDepth: doorStopDepthM,
1978
- stopPositionZ: doorStopPositionZ,
1979
- centerZ: doorCenterZ,
1980
- glassDepthOffset: GlassPanelDepthM / 2,
1981
- material: doorMaterial,
1982
- setName: "1"
1983
- }), /*#__PURE__*/jsxRuntime.jsx(DoorStopCuts, {
1984
- visible: frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI",
1985
- width: doorWidthM,
1986
- height: totalOpeningHeightM,
1987
- stopWidth: secondDoorStopWidthM,
1988
- stopDepth: secondDoorStopDepthM,
1989
- stopPositionZ: secondDoorStopPositionZ,
1990
- centerZ: doorCenterZ,
1991
- glassDepthOffset: GlassPanelDepthM / 2,
1992
- material: doorMaterial,
1993
- setName: "2"
1994
- }), glassVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1995
- children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1996
- position: [0, 0, frontGlassOffsetZ],
1997
- castShadow: true,
1998
- material: glassInfillMaterial,
1999
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2000
- args: [doorWidthM, mainDoorHeightM, GlassPanelDepthM]
2001
- })
2002
- }), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/jsxRuntime.jsx("mesh", {
2003
- position: [0, 0, backGlassOffsetZ],
2004
- castShadow: true,
2005
- material: glassInfillMaterial,
1954
+ }, "frame-hinge-".concat(index))), /*#__PURE__*/jsxRuntime.jsxs(three.a.group, {
1955
+ position: [hingeSideX, doorYPosition, hingeZ],
1956
+ rotation: rotation.to((x, y, z) => [x, y, z]),
1957
+ onClick: handleClick,
1958
+ onPointerOver: () => document.body.style.cursor = "pointer",
1959
+ onPointerOut: () => document.body.style.cursor = "auto",
1960
+ children: [isStandardHingeVisible && standardHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsxs("group", {
1961
+ position: [0, y, 0],
1962
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1963
+ material: hingeBodyMaterial,
1964
+ position: [0, -separatorHeightM / 2 - barrelPartHeight / 2, 0],
1965
+ castShadow: true,
1966
+ children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1967
+ args: [hingeRadiusM, hingeRadiusM, barrelPartHeight, 32]
1968
+ })
1969
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1970
+ material: hingeAccentMaterial,
1971
+ position: [0, -separatorHeightM / 2 - barrelPartHeight - capHeightM / 2, 0],
1972
+ castShadow: true,
1973
+ children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1974
+ args: [hingeRadiusM, hingeRadiusM, capHeightM, 32]
1975
+ })
1976
+ }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1977
+ material: hingeAccentMaterial,
1978
+ position: [0, 0, 0],
1979
+ castShadow: true,
1980
+ children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1981
+ args: [hingeRadiusM, hingeRadiusM, separatorHeightM, 32]
1982
+ })
1983
+ })]
1984
+ }, "door-hinge-".concat(index))), isGlassDoor && isFrameVisible && glassHingeYPositions.map((y, index) => /*#__PURE__*/jsxRuntime.jsx(GlassHinge, {
1985
+ position: [0, y, doorOffsetZ],
1986
+ pivot: doorPivot,
1987
+ frameSideWidth: sidesFrameWidthM,
1988
+ doorDepthM: doorDepthM,
1989
+ material: hingeBodyMaterial,
1990
+ gasketMaterial: gasketMaterial
1991
+ }, "glass-hinge-".concat(index))), /*#__PURE__*/jsxRuntime.jsxs("group", {
1992
+ position: [-hingeSideX, 0, doorOffsetZ],
1993
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
1994
+ castShadow: true,
1995
+ children: /*#__PURE__*/jsxRuntime.jsxs(csg.Geometry, {
1996
+ useGroups: true,
1997
+ children: [/*#__PURE__*/jsxRuntime.jsx(csg.Base, {
1998
+ name: "door-base",
1999
+ material: doorMaterial,
2006
2000
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2007
- args: [doorWidthM, mainDoorHeightM, GlassPanelDepthM]
2001
+ args: [doorWidthM, mainDoorHeightM, doorDepthM]
2008
2002
  })
2009
- }), (frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/jsxRuntime.jsx("mesh", {
2010
- position: [0, -secondDoorStopWidthM / 2, backGlassOffsetZ],
2011
- castShadow: true,
2012
- material: glassInfillMaterial,
2003
+ }), /*#__PURE__*/jsxRuntime.jsx(DoorStopCuts, {
2004
+ visible: frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI",
2005
+ width: doorWidthM,
2006
+ height: totalOpeningHeightM,
2007
+ stopWidth: doorStopWidthM,
2008
+ stopDepth: doorStopDepthM,
2009
+ stopPositionZ: doorStopPositionZ,
2010
+ centerZ: doorCenterZ,
2011
+ glassDepthOffset: GlassPanelDepthM / 2,
2012
+ material: doorMaterial,
2013
+ setName: "1"
2014
+ }), /*#__PURE__*/jsxRuntime.jsx(DoorStopCuts, {
2015
+ visible: frameType === "WDGF_WDG100" || frameType === "WF_100" || frameType === "WF_FLI",
2016
+ width: doorWidthM,
2017
+ height: totalOpeningHeightM,
2018
+ stopWidth: secondDoorStopWidthM,
2019
+ stopDepth: secondDoorStopDepthM,
2020
+ stopPositionZ: secondDoorStopPositionZ,
2021
+ centerZ: doorCenterZ,
2022
+ glassDepthOffset: GlassPanelDepthM / 2,
2023
+ material: doorMaterial,
2024
+ setName: "2"
2025
+ }), glassVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2026
+ children: [/*#__PURE__*/jsxRuntime.jsx("mesh", {
2027
+ position: [0, 0, frontGlassOffsetZ],
2028
+ castShadow: true,
2029
+ material: glassInfillMaterial,
2030
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2031
+ args: [doorWidthM, mainDoorHeightM, GlassPanelDepthM]
2032
+ })
2033
+ }), frameType !== "WDGF_WDG100" && frameType !== "WF_100" && /*#__PURE__*/jsxRuntime.jsx("mesh", {
2034
+ position: [0, 0, backGlassOffsetZ],
2035
+ castShadow: true,
2036
+ material: glassInfillMaterial,
2037
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2038
+ args: [doorWidthM, mainDoorHeightM, GlassPanelDepthM]
2039
+ })
2040
+ }), (frameType === "WDGF_WDG100" || frameType === "WF_100") && /*#__PURE__*/jsxRuntime.jsx("mesh", {
2041
+ position: [0, -secondDoorStopWidthM / 2, backGlassOffsetZ],
2042
+ castShadow: true,
2043
+ material: glassInfillMaterial,
2044
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2045
+ args: [doorWidthM - 2 * secondDoorStopWidthM, mainDoorHeightM - secondDoorStopWidthM, GlassPanelDepthM]
2046
+ })
2047
+ })]
2048
+ }), occulus.visible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
2049
+ material: placeholderMaterial,
2050
+ position: [occulusPositionXM, occulusPositionYM, 0],
2013
2051
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2014
- args: [doorWidthM - 2 * secondDoorStopWidthM, mainDoorHeightM - secondDoorStopWidthM, GlassPanelDepthM]
2052
+ args: [occulusWidthM, occulusHeightM, doorDepthM + 0.01]
2015
2053
  })
2016
2054
  })]
2017
- }), occulus.visible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx(csg.Subtraction, {
2018
- material: placeholderMaterial,
2019
- position: [occulusPositionXM, occulusPositionYM, 0],
2020
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2021
- args: [occulusWidthM, occulusHeightM, doorDepthM + 0.01]
2022
- })
2023
- })]
2024
- })
2025
- }), occulus.visible && occulus.infillVisible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx("mesh", {
2026
- position: [occulusPositionXM, occulusPositionYM, 0],
2027
- castShadow: true,
2028
- material: occulusInfillMaterial,
2029
- children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2030
- args: [occulusWidthM, occulusHeightM, occulusInfillDepthM]
2031
- })
2032
- }), /*#__PURE__*/jsxRuntime.jsx(DoorHandle, {
2033
- bodyType: bodyType,
2034
- handleX: handleX,
2035
- handleHeightM: handleHeightM,
2036
- doorDepthM: doorDepthM,
2037
- doorPivot: doorPivot
2055
+ })
2056
+ }), occulus.visible && occulus.infillVisible && occulusWidthM > 0 && occulusHeightM > 0 && /*#__PURE__*/jsxRuntime.jsx("mesh", {
2057
+ position: [occulusPositionXM, occulusPositionYM, 0],
2058
+ castShadow: true,
2059
+ material: occulusInfillMaterial,
2060
+ children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
2061
+ args: [occulusWidthM, occulusHeightM, occulusInfillDepthM]
2062
+ })
2063
+ }), /*#__PURE__*/jsxRuntime.jsx(DoorHandle, {
2064
+ bodyType: bodyType,
2065
+ handleX: handleX,
2066
+ handleHeightM: handleHeightM,
2067
+ doorDepthM: doorDepthM,
2068
+ doorPivot: doorPivot
2069
+ })]
2038
2070
  })]
2039
2071
  })]
2040
- }), isPlaneVisible && /*#__PURE__*/jsxRuntime.jsxs("mesh", {
2041
- receiveShadow: true,
2042
- rotation: [-Math.PI / 2, 0, 0],
2043
- position: [0, -totalOpeningHeightM / 2 - yCenteringOffset - 0.01, 0],
2044
- children: [/*#__PURE__*/jsxRuntime.jsx("planeGeometry", {
2045
- args: [10, 10]
2046
- }), /*#__PURE__*/jsxRuntime.jsx("meshStandardMaterial", {
2047
- color: "#f9f9f9",
2048
- side: THREE__namespace.DoubleSide
2049
- })]
2050
- })]
2072
+ })
2051
2073
  });
2052
2074
  }
2053
2075