jscad-electronics 0.0.154 → 0.0.155

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/vanilla.js CHANGED
@@ -854,7 +854,6 @@ var PinHeader = ({
854
854
  bodyLength: bodyLength10 = 2.54,
855
855
  bodyWidth = 2.54,
856
856
  flipZ,
857
- faceup,
858
857
  smd,
859
858
  rightangle
860
859
  }) => {
@@ -867,7 +866,7 @@ var PinHeader = ({
867
866
  center: [x, y, flipZ(bodyHeight / 2)]
868
867
  }
869
868
  ) }),
870
- !faceup && /* @__PURE__ */ jsx(Colorize, { color: PIN_METAL_COLOR, children: smd ? /* @__PURE__ */ jsx(
869
+ /* @__PURE__ */ jsx(Colorize, { color: PIN_METAL_COLOR, children: smd ? /* @__PURE__ */ jsx(
871
870
  SmdChipLead,
872
871
  {
873
872
  rotation: -Math.PI / 2,
@@ -935,7 +934,6 @@ var PinRow = ({
935
934
  pitch = 2.54,
936
935
  longSidePinLength = 6,
937
936
  invert,
938
- faceup,
939
937
  rows = 1,
940
938
  smd,
941
939
  rightangle
@@ -946,8 +944,9 @@ var PinRow = ({
946
944
  const rowSpacing = 2.54;
947
945
  const shortSidePinLength = 3;
948
946
  const xoff = -((pinsPerRow - 1) / 2) * pitch;
949
- const zOffset = !smd && !rightangle ? -bodyHeight - 1.6 : 0;
950
- const flipZ = (z) => (invert || faceup ? -z + bodyHeight : z) + zOffset;
947
+ const throughHole = !smd && !rightangle;
948
+ const flipped = throughHole ? !invert : Boolean(invert);
949
+ const flipZ = (z) => flipped ? -z + bodyHeight : z;
951
950
  return /* @__PURE__ */ jsx(Fragment2, { children: Array.from({ length: numberOfPins }, (_, i) => {
952
951
  const row = Math.floor(i / pinsPerRow);
953
952
  const col = i % pinsPerRow;
@@ -963,7 +962,6 @@ var PinRow = ({
963
962
  longSidePinLength,
964
963
  bodyHeight,
965
964
  flipZ,
966
- faceup,
967
965
  smd,
968
966
  rightangle
969
967
  },
@@ -6589,7 +6587,6 @@ var Footprinter3d = ({ footprint }) => {
6589
6587
  numberOfPins: fpJson.num_pins,
6590
6588
  pitch: fpJson.p,
6591
6589
  invert: fpJson.invert,
6592
- faceup: fpJson.faceup,
6593
6590
  rows,
6594
6591
  smd: fpJson.smd || fpJson.surface_mount,
6595
6592
  rightangle: fpJson.rightangle