jscad-electronics 0.0.113 → 0.0.114

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.js CHANGED
@@ -1010,7 +1010,7 @@ var getLeadWidth = (pinCount, width10) => {
1010
1010
  };
1011
1011
 
1012
1012
  // lib/PinRow.tsx
1013
- import { Cuboid as Cuboid14, Colorize as Colorize6, Hull as Hull2, Rotate as Rotate5, Translate as Translate8 } from "jscad-fiber";
1013
+ import { Colorize as Colorize6, Cuboid as Cuboid14, Hull as Hull2, Rotate as Rotate5, Translate as Translate8 } from "jscad-fiber";
1014
1014
  import { Fragment as Fragment16, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
1015
1015
  var PinRow = ({
1016
1016
  numberOfPins,
@@ -1031,7 +1031,8 @@ var PinRow = ({
1031
1031
  const shortSidePinLength = 3;
1032
1032
  const xoff = -((pinsPerRow - 1) / 2) * pitch;
1033
1033
  const bodyCenterY = rows > 1 ? -((rows - 1) * rowSpacing) / 2 : 0;
1034
- const flipZ = (z) => invert || faceup ? -z + bodyHeight : z;
1034
+ const zOffset = !smd && !rightangle ? -bodyHeight - 1.6 : 0;
1035
+ const flipZ = (z) => (invert || faceup ? -z + bodyHeight : z) + zOffset;
1035
1036
  return /* @__PURE__ */ jsxs18(Fragment16, { children: [
1036
1037
  /* @__PURE__ */ jsx20(Translate8, { y: rightangle ? -3 : 0, children: /* @__PURE__ */ jsx20(
1037
1038
  Cuboid14,