door_models 5.0.4 → 5.0.5

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
@@ -607,13 +607,13 @@ const ConfiguratorProvider = _ref => {
607
607
  }));
608
608
  setTestExteriorFanlightMaterial("metal");
609
609
  break;
610
- case "ALDGL":
610
+ case "ALDGFL":
611
611
  setExteriorFanlight(prev => _objectSpread2(_objectSpread2({}, prev), {}, {
612
612
  depth: doorFrame.frameDepth
613
613
  }));
614
614
  setTestExteriorFanlightMaterial("glass");
615
615
  break;
616
- case "ALSGL":
616
+ case "ALSGFL":
617
617
  setExteriorFanlight(prev => _objectSpread2(_objectSpread2({}, prev), {}, {
618
618
  depth: 40
619
619
  }));
@@ -621,6 +621,11 @@ const ConfiguratorProvider = _ref => {
621
621
  break;
622
622
  }
623
623
  }, [exteriorFanlight.visible, exteriorFanlightType, doorFrame.frameDepth, setTestExteriorFanlightMaterial, setExteriorFanlight]);
624
+ React.useEffect(() => {
625
+ setOcculus(prevOcculus => _objectSpread2(_objectSpread2({}, prevOcculus), {}, {
626
+ depth: door.theDoorDepth
627
+ }));
628
+ }, [door.theDoorDepth]);
624
629
  React.useEffect(() => {
625
630
  const topThkValue = parseInt(doorFrame.topThk) || 0;
626
631
  const exteriorFanlightHeight = exteriorFanlight.visible ? exteriorFanlight.height : 0;
@@ -796,22 +801,22 @@ function StandardHandle(_ref) {
796
801
  frameType // 👈
797
802
  } = _ref;
798
803
  // --- Base Dimensions ---
799
- const roseRadius = 0.025;
804
+ const roseRadius = 0.035;
800
805
 
801
806
  // --- Thickness ---
802
807
  // default 5mm, but 8mm + 1–2mm if WDG frame
803
808
  const roseThickness = frameType === "WDGF_WDG100" ? 0.008 + 0.0015 // average: 9.5mm
804
809
  : 0.005; // 5mm default
805
810
 
806
- const handleRadius = 0.009;
807
- const handleLength = 0.12;
811
+ const handleRadius = 0.015;
812
+ const handleLength = 0.2;
808
813
 
809
814
  // face offset based on thickness
810
815
  const faceZ = doorDepthM / 2 + roseThickness / 2;
811
- const connectorLength = handleLength - 0.08;
816
+ const connectorLength = handleLength / 3;
812
817
  const cornerFrontZ = faceZ + roseThickness + connectorLength;
813
818
  const cornerBackZ = -faceZ - roseThickness - connectorLength;
814
- const roseGapY = 0.012;
819
+ const roseGapY = 0.07;
815
820
  return /*#__PURE__*/jsxRuntime.jsxs("group", {
816
821
  position: position,
817
822
  children: [[faceZ, -faceZ].map((z, i) => /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
@@ -909,13 +914,13 @@ function StandardHandle(_ref) {
909
914
  position: [0, 0.0075, 0],
910
915
  material: availableMaterials.aluminumBrighter,
911
916
  children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
912
- args: [0.008, 0.008, roseThickness, 32]
917
+ args: [0.01, 0.01, roseThickness, 32]
913
918
  })
914
919
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
915
920
  position: [0, -0.0075, 0],
916
921
  material: availableMaterials.aluminumBrighter,
917
922
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
918
- args: [0.008, 0.015, roseThickness]
923
+ args: [0.01, 0.015, roseThickness]
919
924
  })
920
925
  })]
921
926
  })]
@@ -1029,12 +1034,12 @@ function GlassHandle(_ref3) {
1029
1034
  doorPivot
1030
1035
  } = _ref3;
1031
1036
  // --- Dimensions ---
1032
- const roseRadius = 0.025;
1037
+ const roseRadius = 0.035;
1033
1038
  const roseThickness = 0.005;
1034
- const handleRadius = 0.009;
1035
- const handleLength = 0.12;
1039
+ const handleRadius = 0.015;
1040
+ const handleLength = 0.2;
1036
1041
  const faceZ = doorDepthM / 2 + roseThickness / 2;
1037
- const connectorLength = handleLength - 0.08;
1042
+ const connectorLength = handleLength / 3;
1038
1043
  return /*#__PURE__*/jsxRuntime.jsxs("group", {
1039
1044
  position: position,
1040
1045
  children: [[faceZ, -faceZ].map((z, i) => /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
@@ -1056,13 +1061,13 @@ function GlassHandle(_ref3) {
1056
1061
  position: [0, 0.0075, 0],
1057
1062
  material: availableMaterials.aluminum,
1058
1063
  children: /*#__PURE__*/jsxRuntime.jsx("cylinderGeometry", {
1059
- args: [0.008, 0.008, roseThickness, 32]
1064
+ args: [0.01, 0.01, roseThickness, 32]
1060
1065
  })
1061
1066
  }), /*#__PURE__*/jsxRuntime.jsx("mesh", {
1062
1067
  position: [0, -0.0075, 0],
1063
1068
  material: availableMaterials.aluminum,
1064
1069
  children: /*#__PURE__*/jsxRuntime.jsx("boxGeometry", {
1065
- args: [0.008, 0.015, roseThickness]
1070
+ args: [0.01, 0.015, roseThickness]
1066
1071
  })
1067
1072
  })]
1068
1073
  })]