jscad-electronics 0.0.129 → 0.0.130

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
@@ -669,26 +669,31 @@ var QFP = ({
669
669
  if (!padContactLength) padContactLength = getPadContactLength(pinCount);
670
670
  if (!leadWidth) leadWidth = getLeadWidth(pinCount, bodyWidth);
671
671
  if (!bodyWidth) bodyWidth = pitch * (sidePinCount + 4);
672
+ const footprintPadLength = padContactLength;
672
673
  const bodyLength10 = bodyWidth;
673
674
  const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
674
- const fullLength10 = bodyLength10 + 2 * padContactLength;
675
+ const leadReach = footprintPadLength * 0.5;
676
+ const fullLength10 = bodyLength10 + 2 * leadReach;
675
677
  const fullWidth = fullLength10;
676
678
  const leadHeight = 0.8;
677
679
  const leadThickness = 0.15;
678
- const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.5;
680
+ const bodyDistance = leadReach;
681
+ const fullPadContactLength = leadReach * 0.5;
682
+ const curveLength = leadReach * 0.18;
679
683
  return /* @__PURE__ */ jsxs(Fragment2, { children: [
680
684
  Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx(
681
685
  SmdChipLead,
682
686
  {
683
687
  position: {
684
- x: -fullWidth / 2 - 0.4,
688
+ x: -fullWidth / 2,
685
689
  y: i * pitch - pinOffsetToCenter,
686
690
  z: leadThickness / 2
687
691
  },
688
692
  width: leadWidth,
689
693
  thickness: leadThickness,
690
- padContactLength,
694
+ padContactLength: fullPadContactLength,
691
695
  bodyDistance,
696
+ curveLength,
692
697
  height: leadHeight
693
698
  },
694
699
  `left-${i}`
@@ -698,14 +703,15 @@ var QFP = ({
698
703
  {
699
704
  rotation: Math.PI,
700
705
  position: {
701
- x: fullWidth / 2 + 0.4,
706
+ x: fullWidth / 2,
702
707
  y: i * pitch - pinOffsetToCenter,
703
708
  z: leadThickness / 2
704
709
  },
705
710
  width: leadWidth,
706
711
  thickness: leadThickness,
707
- padContactLength,
712
+ padContactLength: fullPadContactLength,
708
713
  bodyDistance,
714
+ curveLength,
709
715
  height: leadHeight
710
716
  },
711
717
  `right-${i}`
@@ -716,13 +722,14 @@ var QFP = ({
716
722
  rotation: Math.PI / 2,
717
723
  position: {
718
724
  x: i * pitch - pinOffsetToCenter,
719
- y: -fullLength10 / 2 - 0.4,
725
+ y: -fullLength10 / 2,
720
726
  z: leadThickness / 2
721
727
  },
722
728
  width: leadWidth,
723
729
  thickness: leadThickness,
724
- padContactLength,
730
+ padContactLength: fullPadContactLength,
725
731
  bodyDistance,
732
+ curveLength,
726
733
  height: leadHeight
727
734
  },
728
735
  `bottom-${i}`
@@ -733,13 +740,14 @@ var QFP = ({
733
740
  rotation: -Math.PI / 2,
734
741
  position: {
735
742
  x: i * pitch - pinOffsetToCenter,
736
- y: fullLength10 / 2 + 0.4,
743
+ y: fullLength10 / 2,
737
744
  z: leadThickness / 2
738
745
  },
739
746
  width: leadWidth,
740
747
  thickness: leadThickness,
741
- padContactLength,
748
+ padContactLength: fullPadContactLength,
742
749
  bodyDistance,
750
+ curveLength,
743
751
  height: leadHeight
744
752
  },
745
753
  `top-${i}`