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/index.js +18 -10
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +18 -10
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -942,26 +942,31 @@ var QFP = ({
|
|
|
942
942
|
if (!padContactLength) padContactLength = getPadContactLength(pinCount);
|
|
943
943
|
if (!leadWidth) leadWidth = getLeadWidth(pinCount, bodyWidth);
|
|
944
944
|
if (!bodyWidth) bodyWidth = pitch * (sidePinCount + 4);
|
|
945
|
+
const footprintPadLength = padContactLength;
|
|
945
946
|
const bodyLength10 = bodyWidth;
|
|
946
947
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
947
|
-
const
|
|
948
|
+
const leadReach = footprintPadLength * 0.5;
|
|
949
|
+
const fullLength10 = bodyLength10 + 2 * leadReach;
|
|
948
950
|
const fullWidth = fullLength10;
|
|
949
951
|
const leadHeight = 0.8;
|
|
950
952
|
const leadThickness = 0.15;
|
|
951
|
-
const bodyDistance =
|
|
953
|
+
const bodyDistance = leadReach;
|
|
954
|
+
const fullPadContactLength = leadReach * 0.5;
|
|
955
|
+
const curveLength = leadReach * 0.18;
|
|
952
956
|
return /* @__PURE__ */ jsxs17(Fragment15, { children: [
|
|
953
957
|
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx19(
|
|
954
958
|
SmdChipLead,
|
|
955
959
|
{
|
|
956
960
|
position: {
|
|
957
|
-
x: -fullWidth / 2
|
|
961
|
+
x: -fullWidth / 2,
|
|
958
962
|
y: i * pitch - pinOffsetToCenter,
|
|
959
963
|
z: leadThickness / 2
|
|
960
964
|
},
|
|
961
965
|
width: leadWidth,
|
|
962
966
|
thickness: leadThickness,
|
|
963
|
-
padContactLength,
|
|
967
|
+
padContactLength: fullPadContactLength,
|
|
964
968
|
bodyDistance,
|
|
969
|
+
curveLength,
|
|
965
970
|
height: leadHeight
|
|
966
971
|
},
|
|
967
972
|
`left-${i}`
|
|
@@ -971,14 +976,15 @@ var QFP = ({
|
|
|
971
976
|
{
|
|
972
977
|
rotation: Math.PI,
|
|
973
978
|
position: {
|
|
974
|
-
x: fullWidth / 2
|
|
979
|
+
x: fullWidth / 2,
|
|
975
980
|
y: i * pitch - pinOffsetToCenter,
|
|
976
981
|
z: leadThickness / 2
|
|
977
982
|
},
|
|
978
983
|
width: leadWidth,
|
|
979
984
|
thickness: leadThickness,
|
|
980
|
-
padContactLength,
|
|
985
|
+
padContactLength: fullPadContactLength,
|
|
981
986
|
bodyDistance,
|
|
987
|
+
curveLength,
|
|
982
988
|
height: leadHeight
|
|
983
989
|
},
|
|
984
990
|
`right-${i}`
|
|
@@ -989,13 +995,14 @@ var QFP = ({
|
|
|
989
995
|
rotation: Math.PI / 2,
|
|
990
996
|
position: {
|
|
991
997
|
x: i * pitch - pinOffsetToCenter,
|
|
992
|
-
y: -fullLength10 / 2
|
|
998
|
+
y: -fullLength10 / 2,
|
|
993
999
|
z: leadThickness / 2
|
|
994
1000
|
},
|
|
995
1001
|
width: leadWidth,
|
|
996
1002
|
thickness: leadThickness,
|
|
997
|
-
padContactLength,
|
|
1003
|
+
padContactLength: fullPadContactLength,
|
|
998
1004
|
bodyDistance,
|
|
1005
|
+
curveLength,
|
|
999
1006
|
height: leadHeight
|
|
1000
1007
|
},
|
|
1001
1008
|
`bottom-${i}`
|
|
@@ -1006,13 +1013,14 @@ var QFP = ({
|
|
|
1006
1013
|
rotation: -Math.PI / 2,
|
|
1007
1014
|
position: {
|
|
1008
1015
|
x: i * pitch - pinOffsetToCenter,
|
|
1009
|
-
y: fullLength10 / 2
|
|
1016
|
+
y: fullLength10 / 2,
|
|
1010
1017
|
z: leadThickness / 2
|
|
1011
1018
|
},
|
|
1012
1019
|
width: leadWidth,
|
|
1013
1020
|
thickness: leadThickness,
|
|
1014
|
-
padContactLength,
|
|
1021
|
+
padContactLength: fullPadContactLength,
|
|
1015
1022
|
bodyDistance,
|
|
1023
|
+
curveLength,
|
|
1016
1024
|
height: leadHeight
|
|
1017
1025
|
},
|
|
1018
1026
|
`top-${i}`
|