jscad-electronics 0.0.128 → 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/index.js +19 -11
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +19 -11
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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}`
|
|
@@ -914,7 +922,7 @@ var PinRow = ({
|
|
|
914
922
|
const row = Math.floor(i / pinsPerRow);
|
|
915
923
|
const col = i % pinsPerRow;
|
|
916
924
|
const x = xoff + col * pitch;
|
|
917
|
-
const y = -row * rowSpacing;
|
|
925
|
+
const y = ((rows - 1) / 2 - row) * rowSpacing;
|
|
918
926
|
return /* @__PURE__ */ jsx(
|
|
919
927
|
PinHeader,
|
|
920
928
|
{
|