jscad-electronics 0.0.109 → 0.0.111
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.d.ts +3 -1
- package/dist/index.js +152 -121
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +58 -27
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
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 } from "jscad-fiber";
|
|
1013
|
+
import { Cuboid as Cuboid14, Colorize as Colorize6, 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,
|
|
@@ -1018,7 +1018,9 @@ var PinRow = ({
|
|
|
1018
1018
|
longSidePinLength = 6,
|
|
1019
1019
|
invert,
|
|
1020
1020
|
faceup,
|
|
1021
|
-
rows = 1
|
|
1021
|
+
rows = 1,
|
|
1022
|
+
smd,
|
|
1023
|
+
rightangle
|
|
1022
1024
|
}) => {
|
|
1023
1025
|
const pinThickness = 0.63;
|
|
1024
1026
|
const bodyHeight = 2;
|
|
@@ -1031,21 +1033,37 @@ var PinRow = ({
|
|
|
1031
1033
|
const bodyCenterY = rows > 1 ? -((rows - 1) * rowSpacing) / 2 : 0;
|
|
1032
1034
|
const flipZ = (z) => invert || faceup ? -z + bodyHeight : z;
|
|
1033
1035
|
return /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1034
|
-
/* @__PURE__ */ jsx20(
|
|
1036
|
+
/* @__PURE__ */ jsx20(Translate8, { y: rightangle ? -3 : 0, children: /* @__PURE__ */ jsx20(
|
|
1035
1037
|
Cuboid14,
|
|
1036
1038
|
{
|
|
1037
1039
|
color: "#222",
|
|
1038
1040
|
size: [bodyWidth, bodyDepth, bodyHeight],
|
|
1039
1041
|
center: [0, bodyCenterY, flipZ(bodyHeight / 2)]
|
|
1040
1042
|
}
|
|
1041
|
-
),
|
|
1043
|
+
) }),
|
|
1042
1044
|
Array.from({ length: numberOfPins }, (_, i) => {
|
|
1043
1045
|
const row = Math.floor(i / pinsPerRow);
|
|
1044
1046
|
const col = i % pinsPerRow;
|
|
1045
1047
|
const x = xoff + col * pitch;
|
|
1046
1048
|
const y = -row * rowSpacing;
|
|
1047
1049
|
return /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1048
|
-
!faceup && /* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */
|
|
1050
|
+
!faceup && /* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: smd ? /* @__PURE__ */ jsx20(
|
|
1051
|
+
SmdChipLead,
|
|
1052
|
+
{
|
|
1053
|
+
rotation: -Math.PI / 2,
|
|
1054
|
+
position: {
|
|
1055
|
+
x,
|
|
1056
|
+
y: y + 1,
|
|
1057
|
+
z: pinThickness / 2
|
|
1058
|
+
},
|
|
1059
|
+
thickness: pinThickness,
|
|
1060
|
+
width: pinThickness,
|
|
1061
|
+
height: pinThickness,
|
|
1062
|
+
padContactLength: 2,
|
|
1063
|
+
bodyDistance: 3
|
|
1064
|
+
},
|
|
1065
|
+
`short-smd-${i}`
|
|
1066
|
+
) : /* @__PURE__ */ jsxs18(Hull2, { children: [
|
|
1049
1067
|
/* @__PURE__ */ jsx20(
|
|
1050
1068
|
Cuboid14,
|
|
1051
1069
|
{
|
|
@@ -1071,28 +1089,39 @@ var PinRow = ({
|
|
|
1071
1089
|
}
|
|
1072
1090
|
)
|
|
1073
1091
|
] }) }, `short-${i}`),
|
|
1074
|
-
/* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1092
|
+
/* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */ jsx20(Translate8, { y: rightangle ? -3.9 : 0, z: rightangle ? 1 : 0, children: /* @__PURE__ */ jsx20(
|
|
1093
|
+
Rotate5,
|
|
1094
|
+
{
|
|
1095
|
+
rotation: rightangle ? [-Math.PI / 2, 0, 0] : [0, 0, 0],
|
|
1096
|
+
children: /* @__PURE__ */ jsxs18(Hull2, { children: [
|
|
1097
|
+
/* @__PURE__ */ jsx20(
|
|
1098
|
+
Cuboid14,
|
|
1099
|
+
{
|
|
1100
|
+
color: "gold",
|
|
1101
|
+
size: [
|
|
1102
|
+
pinThickness,
|
|
1103
|
+
pinThickness,
|
|
1104
|
+
longSidePinLength * 0.9
|
|
1105
|
+
],
|
|
1106
|
+
center: [x, y, flipZ(-longSidePinLength / 2 * 0.9)]
|
|
1107
|
+
}
|
|
1108
|
+
),
|
|
1109
|
+
/* @__PURE__ */ jsx20(
|
|
1110
|
+
Cuboid14,
|
|
1111
|
+
{
|
|
1112
|
+
color: "gold",
|
|
1113
|
+
size: [
|
|
1114
|
+
pinThickness / 1.8,
|
|
1115
|
+
pinThickness / 1.8,
|
|
1116
|
+
longSidePinLength
|
|
1117
|
+
],
|
|
1118
|
+
center: [x, y, flipZ(-longSidePinLength / 2)]
|
|
1119
|
+
}
|
|
1120
|
+
)
|
|
1121
|
+
] })
|
|
1122
|
+
},
|
|
1123
|
+
`rotate-${i}`
|
|
1124
|
+
) }) }, `long-${i}`)
|
|
1096
1125
|
] });
|
|
1097
1126
|
})
|
|
1098
1127
|
] });
|
|
@@ -1546,9 +1575,9 @@ import {
|
|
|
1546
1575
|
Cylinder as Cylinder4,
|
|
1547
1576
|
ExtrudeLinear as ExtrudeLinear3,
|
|
1548
1577
|
Polygon as Polygon3,
|
|
1549
|
-
Rotate as
|
|
1578
|
+
Rotate as Rotate6,
|
|
1550
1579
|
RoundedCuboid,
|
|
1551
|
-
Translate as
|
|
1580
|
+
Translate as Translate9
|
|
1552
1581
|
} from "jscad-fiber";
|
|
1553
1582
|
import { Fragment as Fragment21, jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1554
1583
|
var PushButton = ({
|
|
@@ -1713,14 +1742,14 @@ var PushButtonLeg = (props) => {
|
|
|
1713
1742
|
];
|
|
1714
1743
|
const polygon = getExpandedStroke(points, thickness);
|
|
1715
1744
|
return /* @__PURE__ */ jsx25(Colorize9, { color: "#f2f2f2", children: /* @__PURE__ */ jsx25(
|
|
1716
|
-
|
|
1745
|
+
Translate9,
|
|
1717
1746
|
{
|
|
1718
1747
|
offset: {
|
|
1719
1748
|
x: position?.x || 0,
|
|
1720
1749
|
y: position?.y || 0,
|
|
1721
1750
|
z: position?.z || 0
|
|
1722
1751
|
},
|
|
1723
|
-
children: /* @__PURE__ */ jsx25(
|
|
1752
|
+
children: /* @__PURE__ */ jsx25(Rotate6, { rotation: [0, 55, rotation], children: /* @__PURE__ */ jsx25(ExtrudeLinear3, { height: width10, children: /* @__PURE__ */ jsx25(Polygon3, { points: polygon.map((p) => [p.y, p.x]) }) }) })
|
|
1724
1753
|
}
|
|
1725
1754
|
) });
|
|
1726
1755
|
};
|
|
@@ -1866,7 +1895,7 @@ var VSSOP = ({
|
|
|
1866
1895
|
};
|
|
1867
1896
|
|
|
1868
1897
|
// lib/SOD523.tsx
|
|
1869
|
-
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as
|
|
1898
|
+
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as Translate10, Union as Union4 } from "jscad-fiber";
|
|
1870
1899
|
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1871
1900
|
var SOD523 = () => {
|
|
1872
1901
|
const fullWidth = 2.15;
|
|
@@ -1898,10 +1927,10 @@ var SOD523 = () => {
|
|
|
1898
1927
|
}
|
|
1899
1928
|
),
|
|
1900
1929
|
/* @__PURE__ */ jsx28(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs26(Union4, { children: [
|
|
1901
|
-
/* @__PURE__ */ jsx28(
|
|
1930
|
+
/* @__PURE__ */ jsx28(Translate10, { z: straightHeight / 2, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1902
1931
|
/* @__PURE__ */ jsxs26(Hull4, { children: [
|
|
1903
|
-
/* @__PURE__ */ jsx28(
|
|
1904
|
-
/* @__PURE__ */ jsx28(
|
|
1932
|
+
/* @__PURE__ */ jsx28(Translate10, { z: straightHeight, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1933
|
+
/* @__PURE__ */ jsx28(Translate10, { z: bodyHeight, children: /* @__PURE__ */ jsx28(
|
|
1905
1934
|
Cuboid18,
|
|
1906
1935
|
{
|
|
1907
1936
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -1913,7 +1942,7 @@ var SOD523 = () => {
|
|
|
1913
1942
|
};
|
|
1914
1943
|
|
|
1915
1944
|
// lib/SOD882.tsx
|
|
1916
|
-
import { Colorize as Colorize11, Cuboid as Cuboid19, Translate as
|
|
1945
|
+
import { Colorize as Colorize11, Cuboid as Cuboid19, Translate as Translate11 } from "jscad-fiber";
|
|
1917
1946
|
import { Fragment as Fragment25, jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1918
1947
|
var SOD882 = () => {
|
|
1919
1948
|
const bodyLength10 = 0.98;
|
|
@@ -1942,7 +1971,7 @@ var SOD882 = () => {
|
|
|
1942
1971
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1943
1972
|
}
|
|
1944
1973
|
),
|
|
1945
|
-
/* @__PURE__ */ jsx29(Colorize11, { color: "#222", children: /* @__PURE__ */ jsx29(
|
|
1974
|
+
/* @__PURE__ */ jsx29(Colorize11, { color: "#222", children: /* @__PURE__ */ jsx29(Translate11, { z: bodyHeight / 2 + 0.02, children: /* @__PURE__ */ jsx29(Cuboid19, { size: [bodyLength10, bodyWidth, bodyHeight] }) }) }),
|
|
1946
1975
|
/* @__PURE__ */ jsx29(
|
|
1947
1976
|
Cuboid19,
|
|
1948
1977
|
{
|
|
@@ -1979,7 +2008,7 @@ var SOD882 = () => {
|
|
|
1979
2008
|
};
|
|
1980
2009
|
|
|
1981
2010
|
// lib/SMA.tsx
|
|
1982
|
-
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union6, Hull as Hull6, Translate as
|
|
2011
|
+
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union6, Hull as Hull6, Translate as Translate12 } from "jscad-fiber";
|
|
1983
2012
|
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1984
2013
|
var SMA = () => {
|
|
1985
2014
|
const bodyWidth = 4.4;
|
|
@@ -1993,17 +2022,17 @@ var SMA = () => {
|
|
|
1993
2022
|
const straightHeight = bodyHeight * 0.5;
|
|
1994
2023
|
const Body = /* @__PURE__ */ jsx30(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(Union6, { children: [
|
|
1995
2024
|
/* @__PURE__ */ jsxs28(Hull6, { children: [
|
|
1996
|
-
/* @__PURE__ */ jsx30(
|
|
2025
|
+
/* @__PURE__ */ jsx30(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx30(
|
|
1997
2026
|
Cuboid20,
|
|
1998
2027
|
{
|
|
1999
2028
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2000
2029
|
}
|
|
2001
2030
|
) }),
|
|
2002
|
-
/* @__PURE__ */ jsx30(
|
|
2031
|
+
/* @__PURE__ */ jsx30(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2003
2032
|
] }),
|
|
2004
2033
|
/* @__PURE__ */ jsxs28(Hull6, { children: [
|
|
2005
|
-
/* @__PURE__ */ jsx30(
|
|
2006
|
-
/* @__PURE__ */ jsx30(
|
|
2034
|
+
/* @__PURE__ */ jsx30(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2035
|
+
/* @__PURE__ */ jsx30(Translate12, { z: bodyHeight, children: /* @__PURE__ */ jsx30(
|
|
2007
2036
|
Cuboid20,
|
|
2008
2037
|
{
|
|
2009
2038
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2051,7 +2080,7 @@ var SMA = () => {
|
|
|
2051
2080
|
};
|
|
2052
2081
|
|
|
2053
2082
|
// lib/SMB.tsx
|
|
2054
|
-
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union7, Hull as Hull7, Translate as
|
|
2083
|
+
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union7, Hull as Hull7, Translate as Translate13 } from "jscad-fiber";
|
|
2055
2084
|
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2056
2085
|
var SMB = () => {
|
|
2057
2086
|
const bodyWidth = 4.4;
|
|
@@ -2065,17 +2094,17 @@ var SMB = () => {
|
|
|
2065
2094
|
const straightHeight = bodyHeight * 0.5;
|
|
2066
2095
|
const Body = /* @__PURE__ */ jsx31(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(Union7, { children: [
|
|
2067
2096
|
/* @__PURE__ */ jsxs29(Hull7, { children: [
|
|
2068
|
-
/* @__PURE__ */ jsx31(
|
|
2097
|
+
/* @__PURE__ */ jsx31(Translate13, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx31(
|
|
2069
2098
|
Cuboid21,
|
|
2070
2099
|
{
|
|
2071
2100
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2072
2101
|
}
|
|
2073
2102
|
) }),
|
|
2074
|
-
/* @__PURE__ */ jsx31(
|
|
2103
|
+
/* @__PURE__ */ jsx31(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2075
2104
|
] }),
|
|
2076
2105
|
/* @__PURE__ */ jsxs29(Hull7, { children: [
|
|
2077
|
-
/* @__PURE__ */ jsx31(
|
|
2078
|
-
/* @__PURE__ */ jsx31(
|
|
2106
|
+
/* @__PURE__ */ jsx31(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2107
|
+
/* @__PURE__ */ jsx31(Translate13, { z: bodyHeight, children: /* @__PURE__ */ jsx31(
|
|
2079
2108
|
Cuboid21,
|
|
2080
2109
|
{
|
|
2081
2110
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2123,7 +2152,7 @@ var SMB = () => {
|
|
|
2123
2152
|
};
|
|
2124
2153
|
|
|
2125
2154
|
// lib/SMC.tsx
|
|
2126
|
-
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as Union8, Hull as Hull8, Translate as
|
|
2155
|
+
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as Union8, Hull as Hull8, Translate as Translate14 } from "jscad-fiber";
|
|
2127
2156
|
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2128
2157
|
var SMC = () => {
|
|
2129
2158
|
const bodyWidth = 6.8;
|
|
@@ -2137,17 +2166,17 @@ var SMC = () => {
|
|
|
2137
2166
|
const straightHeight = bodyHeight * 0.5;
|
|
2138
2167
|
const Body = /* @__PURE__ */ jsx32(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(Union8, { children: [
|
|
2139
2168
|
/* @__PURE__ */ jsxs30(Hull8, { children: [
|
|
2140
|
-
/* @__PURE__ */ jsx32(
|
|
2169
|
+
/* @__PURE__ */ jsx32(Translate14, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx32(
|
|
2141
2170
|
Cuboid22,
|
|
2142
2171
|
{
|
|
2143
2172
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2144
2173
|
}
|
|
2145
2174
|
) }),
|
|
2146
|
-
/* @__PURE__ */ jsx32(
|
|
2175
|
+
/* @__PURE__ */ jsx32(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx32(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2147
2176
|
] }),
|
|
2148
2177
|
/* @__PURE__ */ jsxs30(Hull8, { children: [
|
|
2149
|
-
/* @__PURE__ */ jsx32(
|
|
2150
|
-
/* @__PURE__ */ jsx32(
|
|
2178
|
+
/* @__PURE__ */ jsx32(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx32(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2179
|
+
/* @__PURE__ */ jsx32(Translate14, { z: bodyHeight, children: /* @__PURE__ */ jsx32(
|
|
2151
2180
|
Cuboid22,
|
|
2152
2181
|
{
|
|
2153
2182
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2195,7 +2224,7 @@ var SMC = () => {
|
|
|
2195
2224
|
};
|
|
2196
2225
|
|
|
2197
2226
|
// lib/SMF.tsx
|
|
2198
|
-
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as
|
|
2227
|
+
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate15, Union as Union9 } from "jscad-fiber";
|
|
2199
2228
|
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2200
2229
|
var SMF = () => {
|
|
2201
2230
|
const fullWidth = 2.9;
|
|
@@ -2210,10 +2239,10 @@ var SMF = () => {
|
|
|
2210
2239
|
const taperOffset = 0.2;
|
|
2211
2240
|
const straightHeight = bodyHeight * 0.5;
|
|
2212
2241
|
const Body = /* @__PURE__ */ jsx33(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs31(Union9, { children: [
|
|
2213
|
-
/* @__PURE__ */ jsx33(
|
|
2242
|
+
/* @__PURE__ */ jsx33(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2214
2243
|
/* @__PURE__ */ jsxs31(Hull9, { children: [
|
|
2215
|
-
/* @__PURE__ */ jsx33(
|
|
2216
|
-
/* @__PURE__ */ jsx33(
|
|
2244
|
+
/* @__PURE__ */ jsx33(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2245
|
+
/* @__PURE__ */ jsx33(Translate15, { z: bodyHeight, children: /* @__PURE__ */ jsx33(
|
|
2217
2246
|
Cuboid23,
|
|
2218
2247
|
{
|
|
2219
2248
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2243,7 +2272,7 @@ var SMF = () => {
|
|
|
2243
2272
|
};
|
|
2244
2273
|
|
|
2245
2274
|
// lib/sod-123F.tsx
|
|
2246
|
-
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as
|
|
2275
|
+
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate16, Union as Union10 } from "jscad-fiber";
|
|
2247
2276
|
import { Fragment as Fragment30, jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2248
2277
|
var SOD123F = () => {
|
|
2249
2278
|
const fullWidth = 2.7;
|
|
@@ -2274,10 +2303,10 @@ var SOD123F = () => {
|
|
|
2274
2303
|
}
|
|
2275
2304
|
),
|
|
2276
2305
|
/* @__PURE__ */ jsx34(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(Union10, { children: [
|
|
2277
|
-
/* @__PURE__ */ jsx34(
|
|
2306
|
+
/* @__PURE__ */ jsx34(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2278
2307
|
/* @__PURE__ */ jsxs32(Hull10, { children: [
|
|
2279
|
-
/* @__PURE__ */ jsx34(
|
|
2280
|
-
/* @__PURE__ */ jsx34(
|
|
2308
|
+
/* @__PURE__ */ jsx34(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2309
|
+
/* @__PURE__ */ jsx34(Translate16, { z: bodyHeight, children: /* @__PURE__ */ jsx34(
|
|
2281
2310
|
Cuboid24,
|
|
2282
2311
|
{
|
|
2283
2312
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2289,7 +2318,7 @@ var SOD123F = () => {
|
|
|
2289
2318
|
};
|
|
2290
2319
|
|
|
2291
2320
|
// lib/sod-123FL.tsx
|
|
2292
|
-
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as
|
|
2321
|
+
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate17, Union as Union11 } from "jscad-fiber";
|
|
2293
2322
|
import { Fragment as Fragment31, jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2294
2323
|
var SOD123FL = () => {
|
|
2295
2324
|
const fullWidth = 2.75;
|
|
@@ -2320,10 +2349,10 @@ var SOD123FL = () => {
|
|
|
2320
2349
|
}
|
|
2321
2350
|
),
|
|
2322
2351
|
/* @__PURE__ */ jsx35(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(Union11, { children: [
|
|
2323
|
-
/* @__PURE__ */ jsx35(
|
|
2352
|
+
/* @__PURE__ */ jsx35(Translate17, { z: straightHeight / 2, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2324
2353
|
/* @__PURE__ */ jsxs33(Hull11, { children: [
|
|
2325
|
-
/* @__PURE__ */ jsx35(
|
|
2326
|
-
/* @__PURE__ */ jsx35(
|
|
2354
|
+
/* @__PURE__ */ jsx35(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2355
|
+
/* @__PURE__ */ jsx35(Translate17, { z: bodyHeight, children: /* @__PURE__ */ jsx35(
|
|
2327
2356
|
Cuboid25,
|
|
2328
2357
|
{
|
|
2329
2358
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2343,7 +2372,7 @@ var SOD123FL = () => {
|
|
|
2343
2372
|
};
|
|
2344
2373
|
|
|
2345
2374
|
// lib/sod-123W.tsx
|
|
2346
|
-
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as
|
|
2375
|
+
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate18, Union as Union12 } from "jscad-fiber";
|
|
2347
2376
|
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2348
2377
|
var SOD123W = () => {
|
|
2349
2378
|
const fullWidth = 2.6;
|
|
@@ -2376,7 +2405,7 @@ var SOD123W = () => {
|
|
|
2376
2405
|
),
|
|
2377
2406
|
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union12, { children: [
|
|
2378
2407
|
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2379
|
-
/* @__PURE__ */ jsx36(
|
|
2408
|
+
/* @__PURE__ */ jsx36(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx36(
|
|
2380
2409
|
Cuboid26,
|
|
2381
2410
|
{
|
|
2382
2411
|
size: [
|
|
@@ -2386,7 +2415,7 @@ var SOD123W = () => {
|
|
|
2386
2415
|
]
|
|
2387
2416
|
}
|
|
2388
2417
|
) }),
|
|
2389
|
-
/* @__PURE__ */ jsx36(
|
|
2418
|
+
/* @__PURE__ */ jsx36(Translate18, { z: 0.01, children: /* @__PURE__ */ jsx36(
|
|
2390
2419
|
Cuboid26,
|
|
2391
2420
|
{
|
|
2392
2421
|
size: [
|
|
@@ -2398,8 +2427,8 @@ var SOD123W = () => {
|
|
|
2398
2427
|
) })
|
|
2399
2428
|
] }),
|
|
2400
2429
|
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2401
|
-
/* @__PURE__ */ jsx36(
|
|
2402
|
-
/* @__PURE__ */ jsx36(
|
|
2430
|
+
/* @__PURE__ */ jsx36(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx36(Cuboid26, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2431
|
+
/* @__PURE__ */ jsx36(Translate18, { z: bodyHeight, children: /* @__PURE__ */ jsx36(
|
|
2403
2432
|
Cuboid26,
|
|
2404
2433
|
{
|
|
2405
2434
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2419,7 +2448,7 @@ var SOD123W = () => {
|
|
|
2419
2448
|
};
|
|
2420
2449
|
|
|
2421
2450
|
// lib/sod-128.tsx
|
|
2422
|
-
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as
|
|
2451
|
+
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate19, Union as Union13 } from "jscad-fiber";
|
|
2423
2452
|
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2424
2453
|
var SOD128 = () => {
|
|
2425
2454
|
const fullWidth = 3.8;
|
|
@@ -2452,7 +2481,7 @@ var SOD128 = () => {
|
|
|
2452
2481
|
),
|
|
2453
2482
|
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union13, { children: [
|
|
2454
2483
|
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2455
|
-
/* @__PURE__ */ jsx37(
|
|
2484
|
+
/* @__PURE__ */ jsx37(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx37(
|
|
2456
2485
|
Cuboid27,
|
|
2457
2486
|
{
|
|
2458
2487
|
size: [
|
|
@@ -2462,7 +2491,7 @@ var SOD128 = () => {
|
|
|
2462
2491
|
]
|
|
2463
2492
|
}
|
|
2464
2493
|
) }),
|
|
2465
|
-
/* @__PURE__ */ jsx37(
|
|
2494
|
+
/* @__PURE__ */ jsx37(Translate19, { z: 0.01, children: /* @__PURE__ */ jsx37(
|
|
2466
2495
|
Cuboid27,
|
|
2467
2496
|
{
|
|
2468
2497
|
size: [
|
|
@@ -2474,8 +2503,8 @@ var SOD128 = () => {
|
|
|
2474
2503
|
) })
|
|
2475
2504
|
] }),
|
|
2476
2505
|
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2477
|
-
/* @__PURE__ */ jsx37(
|
|
2478
|
-
/* @__PURE__ */ jsx37(
|
|
2506
|
+
/* @__PURE__ */ jsx37(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx37(Cuboid27, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2507
|
+
/* @__PURE__ */ jsx37(Translate19, { z: bodyHeight, children: /* @__PURE__ */ jsx37(
|
|
2479
2508
|
Cuboid27,
|
|
2480
2509
|
{
|
|
2481
2510
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2495,7 +2524,7 @@ var SOD128 = () => {
|
|
|
2495
2524
|
};
|
|
2496
2525
|
|
|
2497
2526
|
// lib/SOD-923.tsx
|
|
2498
|
-
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as
|
|
2527
|
+
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as Translate20, Union as Union14 } from "jscad-fiber";
|
|
2499
2528
|
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2500
2529
|
var SOD923 = () => {
|
|
2501
2530
|
const fullWidth = 0.8;
|
|
@@ -2526,10 +2555,10 @@ var SOD923 = () => {
|
|
|
2526
2555
|
}
|
|
2527
2556
|
),
|
|
2528
2557
|
/* @__PURE__ */ jsx38(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(Union14, { children: [
|
|
2529
|
-
/* @__PURE__ */ jsx38(
|
|
2558
|
+
/* @__PURE__ */ jsx38(Translate20, { z: straightHeight / 2, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2530
2559
|
/* @__PURE__ */ jsxs36(Hull14, { children: [
|
|
2531
|
-
/* @__PURE__ */ jsx38(
|
|
2532
|
-
/* @__PURE__ */ jsx38(
|
|
2560
|
+
/* @__PURE__ */ jsx38(Translate20, { z: straightHeight, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2561
|
+
/* @__PURE__ */ jsx38(Translate20, { z: bodyHeight, children: /* @__PURE__ */ jsx38(
|
|
2533
2562
|
Cuboid28,
|
|
2534
2563
|
{
|
|
2535
2564
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2929,7 +2958,7 @@ var LQFP = ({
|
|
|
2929
2958
|
};
|
|
2930
2959
|
|
|
2931
2960
|
// lib/SOT-723.tsx
|
|
2932
|
-
import { Cuboid as Cuboid29, Translate as
|
|
2961
|
+
import { Cuboid as Cuboid29, Translate as Translate21, Colorize as Colorize21, Hull as Hull15, Union as Union15 } from "jscad-fiber";
|
|
2933
2962
|
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2934
2963
|
var SOT723 = () => {
|
|
2935
2964
|
const bodyWidth = 0.85;
|
|
@@ -2957,8 +2986,8 @@ var SOT723 = () => {
|
|
|
2957
2986
|
}
|
|
2958
2987
|
),
|
|
2959
2988
|
/* @__PURE__ */ jsxs41(Hull15, { children: [
|
|
2960
|
-
/* @__PURE__ */ jsx43(
|
|
2961
|
-
/* @__PURE__ */ jsx43(
|
|
2989
|
+
/* @__PURE__ */ jsx43(Translate21, { z: straightHeight, children: /* @__PURE__ */ jsx43(Cuboid29, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2990
|
+
/* @__PURE__ */ jsx43(Translate21, { z: bodyHeight, children: /* @__PURE__ */ jsx43(
|
|
2962
2991
|
Cuboid29,
|
|
2963
2992
|
{
|
|
2964
2993
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -3150,7 +3179,7 @@ import {
|
|
|
3150
3179
|
Colorize as Colorize23,
|
|
3151
3180
|
Cylinder as Cylinder6,
|
|
3152
3181
|
RoundedCylinder as RoundedCylinder2,
|
|
3153
|
-
Rotate as
|
|
3182
|
+
Rotate as Rotate7,
|
|
3154
3183
|
RoundedCuboid as RoundedCuboid2
|
|
3155
3184
|
} from "jscad-fiber";
|
|
3156
3185
|
import { Fragment as Fragment42, jsx as jsx46, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
@@ -3163,7 +3192,7 @@ var MicroMELF = ({
|
|
|
3163
3192
|
}) => {
|
|
3164
3193
|
const padLength = 0.2;
|
|
3165
3194
|
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3166
|
-
/* @__PURE__ */ jsx46(Colorize23, { color, children: /* @__PURE__ */ jsxs44(
|
|
3195
|
+
/* @__PURE__ */ jsx46(Colorize23, { color, children: /* @__PURE__ */ jsxs44(Rotate7, { rotation: [0, "90deg", 0], children: [
|
|
3167
3196
|
/* @__PURE__ */ jsx46(
|
|
3168
3197
|
RoundedCuboid2,
|
|
3169
3198
|
{
|
|
@@ -3181,7 +3210,7 @@ var MicroMELF = ({
|
|
|
3181
3210
|
}
|
|
3182
3211
|
)
|
|
3183
3212
|
] }) }),
|
|
3184
|
-
/* @__PURE__ */ jsx46(Colorize23, { color: cathodeIdentification, children: /* @__PURE__ */ jsx46(
|
|
3213
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: cathodeIdentification, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3185
3214
|
RoundedCuboid2,
|
|
3186
3215
|
{
|
|
3187
3216
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -3189,7 +3218,7 @@ var MicroMELF = ({
|
|
|
3189
3218
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
3190
3219
|
}
|
|
3191
3220
|
) }) }),
|
|
3192
|
-
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(
|
|
3221
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3193
3222
|
RoundedCylinder2,
|
|
3194
3223
|
{
|
|
3195
3224
|
height: padLength,
|
|
@@ -3198,7 +3227,7 @@ var MicroMELF = ({
|
|
|
3198
3227
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3199
3228
|
}
|
|
3200
3229
|
) }) }),
|
|
3201
|
-
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(
|
|
3230
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3202
3231
|
RoundedCylinder2,
|
|
3203
3232
|
{
|
|
3204
3233
|
height: padLength,
|
|
@@ -3211,7 +3240,7 @@ var MicroMELF = ({
|
|
|
3211
3240
|
};
|
|
3212
3241
|
|
|
3213
3242
|
// lib/MINIMELF.tsx
|
|
3214
|
-
import { Colorize as Colorize24, RoundedCylinder as RoundedCylinder3, Rotate as
|
|
3243
|
+
import { Colorize as Colorize24, RoundedCylinder as RoundedCylinder3, Rotate as Rotate8 } from "jscad-fiber";
|
|
3215
3244
|
import { Fragment as Fragment43, jsx as jsx47, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3216
3245
|
var MINIMELF = ({
|
|
3217
3246
|
bodyLength: bodyLength10 = 3.5,
|
|
@@ -3221,7 +3250,7 @@ var MINIMELF = ({
|
|
|
3221
3250
|
}) => {
|
|
3222
3251
|
const padLength = 0.5;
|
|
3223
3252
|
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3224
|
-
/* @__PURE__ */ jsx47(Colorize24, { color, children: /* @__PURE__ */ jsx47(
|
|
3253
|
+
/* @__PURE__ */ jsx47(Colorize24, { color, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3225
3254
|
RoundedCylinder3,
|
|
3226
3255
|
{
|
|
3227
3256
|
height: bodyLength10,
|
|
@@ -3230,7 +3259,7 @@ var MINIMELF = ({
|
|
|
3230
3259
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3231
3260
|
}
|
|
3232
3261
|
) }) }),
|
|
3233
|
-
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(
|
|
3262
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3234
3263
|
RoundedCylinder3,
|
|
3235
3264
|
{
|
|
3236
3265
|
height: padLength,
|
|
@@ -3239,7 +3268,7 @@ var MINIMELF = ({
|
|
|
3239
3268
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3240
3269
|
}
|
|
3241
3270
|
) }) }),
|
|
3242
|
-
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(
|
|
3271
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3243
3272
|
RoundedCylinder3,
|
|
3244
3273
|
{
|
|
3245
3274
|
height: padLength,
|
|
@@ -3252,7 +3281,7 @@ var MINIMELF = ({
|
|
|
3252
3281
|
};
|
|
3253
3282
|
|
|
3254
3283
|
// lib/MELF.tsx
|
|
3255
|
-
import { Colorize as Colorize25, RoundedCylinder as RoundedCylinder4, Rotate as
|
|
3284
|
+
import { Colorize as Colorize25, RoundedCylinder as RoundedCylinder4, Rotate as Rotate9 } from "jscad-fiber";
|
|
3256
3285
|
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3257
3286
|
var MELF = ({
|
|
3258
3287
|
bodyLength: bodyLength10 = 3.9,
|
|
@@ -3262,7 +3291,7 @@ var MELF = ({
|
|
|
3262
3291
|
}) => {
|
|
3263
3292
|
const padLength = 0.55;
|
|
3264
3293
|
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3265
|
-
/* @__PURE__ */ jsx48(Colorize25, { color, children: /* @__PURE__ */ jsx48(
|
|
3294
|
+
/* @__PURE__ */ jsx48(Colorize25, { color, children: /* @__PURE__ */ jsx48(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3266
3295
|
RoundedCylinder4,
|
|
3267
3296
|
{
|
|
3268
3297
|
height: bodyLength10,
|
|
@@ -3271,7 +3300,7 @@ var MELF = ({
|
|
|
3271
3300
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3272
3301
|
}
|
|
3273
3302
|
) }) }),
|
|
3274
|
-
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(
|
|
3303
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3275
3304
|
RoundedCylinder4,
|
|
3276
3305
|
{
|
|
3277
3306
|
height: padLength,
|
|
@@ -3280,7 +3309,7 @@ var MELF = ({
|
|
|
3280
3309
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3281
3310
|
}
|
|
3282
3311
|
) }) }),
|
|
3283
|
-
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(
|
|
3312
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3284
3313
|
RoundedCylinder4,
|
|
3285
3314
|
{
|
|
3286
3315
|
height: padLength,
|
|
@@ -3435,8 +3464,8 @@ import {
|
|
|
3435
3464
|
Colorize as Colorize26,
|
|
3436
3465
|
Cuboid as Cuboid33,
|
|
3437
3466
|
Hull as Hull17,
|
|
3438
|
-
Rotate as
|
|
3439
|
-
Translate as
|
|
3467
|
+
Rotate as Rotate10,
|
|
3468
|
+
Translate as Translate22,
|
|
3440
3469
|
Cylinder as Cylinder7,
|
|
3441
3470
|
Subtract as Subtract4
|
|
3442
3471
|
} from "jscad-fiber";
|
|
@@ -3459,8 +3488,8 @@ var TO220 = () => {
|
|
|
3459
3488
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3460
3489
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3461
3490
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3462
|
-
return /* @__PURE__ */ jsx51(
|
|
3463
|
-
/* @__PURE__ */ jsxs49(
|
|
3491
|
+
return /* @__PURE__ */ jsx51(Translate22, { center: [0, 0, zOffset], children: /* @__PURE__ */ jsxs49(Fragment47, { children: [
|
|
3492
|
+
/* @__PURE__ */ jsxs49(Rotate10, { rotation: [0, 55, -55], children: [
|
|
3464
3493
|
/* @__PURE__ */ jsxs49(Subtract4, { children: [
|
|
3465
3494
|
/* @__PURE__ */ jsx51(
|
|
3466
3495
|
Cuboid33,
|
|
@@ -3494,22 +3523,22 @@ var TO220 = () => {
|
|
|
3494
3523
|
}
|
|
3495
3524
|
) })
|
|
3496
3525
|
] }),
|
|
3497
|
-
/* @__PURE__ */ jsx51(
|
|
3526
|
+
/* @__PURE__ */ jsx51(Rotate10, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3498
3527
|
const x = prongCenterX;
|
|
3499
3528
|
const y = (i - 1) * prongPitch;
|
|
3500
3529
|
const z = -prongHeight - 0.6;
|
|
3501
3530
|
return /* @__PURE__ */ jsxs49(Colorize26, { color: "gold", children: [
|
|
3502
3531
|
/* @__PURE__ */ jsxs49(Hull17, { children: [
|
|
3503
|
-
/* @__PURE__ */ jsx51(
|
|
3532
|
+
/* @__PURE__ */ jsx51(Translate22, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
3504
3533
|
/* @__PURE__ */ jsx51(
|
|
3505
|
-
|
|
3534
|
+
Translate22,
|
|
3506
3535
|
{
|
|
3507
3536
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3508
3537
|
children: /* @__PURE__ */ jsx51(Cuboid33, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3509
3538
|
}
|
|
3510
3539
|
)
|
|
3511
3540
|
] }),
|
|
3512
|
-
/* @__PURE__ */ jsx51(
|
|
3541
|
+
/* @__PURE__ */ jsx51(Translate22, { center: [x, y, z], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3513
3542
|
] }, `prong-${i}`);
|
|
3514
3543
|
}) })
|
|
3515
3544
|
] }) });
|
|
@@ -3717,7 +3746,7 @@ import {
|
|
|
3717
3746
|
Colorize as Colorize27,
|
|
3718
3747
|
Cuboid as Cuboid35,
|
|
3719
3748
|
Hull as Hull18,
|
|
3720
|
-
Translate as
|
|
3749
|
+
Translate as Translate23,
|
|
3721
3750
|
Cylinder as Cylinder8,
|
|
3722
3751
|
Subtract as Subtract5
|
|
3723
3752
|
} from "jscad-fiber";
|
|
@@ -3742,19 +3771,19 @@ var TO92 = () => {
|
|
|
3742
3771
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3743
3772
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3744
3773
|
const sideLeadZ = -7.5;
|
|
3745
|
-
return /* @__PURE__ */ jsxs52(
|
|
3774
|
+
return /* @__PURE__ */ jsxs52(Translate23, { center: [0, 1, 10.5], children: [
|
|
3746
3775
|
/* @__PURE__ */ jsx54(Colorize27, { color: bodyColor, children: /* @__PURE__ */ jsxs52(Subtract5, { children: [
|
|
3747
|
-
/* @__PURE__ */ jsx54(
|
|
3748
|
-
/* @__PURE__ */ jsx54(
|
|
3776
|
+
/* @__PURE__ */ jsx54(Translate23, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx54(Cylinder8, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3777
|
+
/* @__PURE__ */ jsx54(Translate23, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3749
3778
|
] }) }),
|
|
3750
|
-
/* @__PURE__ */ jsx54(
|
|
3779
|
+
/* @__PURE__ */ jsx54(Translate23, { center: leadTipPos1, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadTipSize }) }),
|
|
3751
3780
|
/* @__PURE__ */ jsxs52(Hull18, { children: [
|
|
3752
|
-
/* @__PURE__ */ jsx54(
|
|
3753
|
-
/* @__PURE__ */ jsx54(
|
|
3781
|
+
/* @__PURE__ */ jsx54(Translate23, { center: leadMidPosA, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadSmallSize }) }),
|
|
3782
|
+
/* @__PURE__ */ jsx54(Translate23, { center: leadMidPosB, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadSmallSize }) })
|
|
3754
3783
|
] }),
|
|
3755
|
-
/* @__PURE__ */ jsx54(
|
|
3756
|
-
/* @__PURE__ */ jsx54(
|
|
3757
|
-
/* @__PURE__ */ jsx54(
|
|
3784
|
+
/* @__PURE__ */ jsx54(Translate23, { center: leadTipPos2, children: /* @__PURE__ */ jsx54(Cuboid35, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3785
|
+
/* @__PURE__ */ jsx54(Translate23, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [leadLength, legWidth, 15] }) }),
|
|
3786
|
+
/* @__PURE__ */ jsx54(Translate23, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [leadLength, legWidth, 15] }) })
|
|
3758
3787
|
] });
|
|
3759
3788
|
};
|
|
3760
3789
|
|
|
@@ -4023,7 +4052,7 @@ var SOD323 = () => {
|
|
|
4023
4052
|
};
|
|
4024
4053
|
|
|
4025
4054
|
// lib/sod-323F.tsx
|
|
4026
|
-
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as
|
|
4055
|
+
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as Translate25, Union as Union17 } from "jscad-fiber";
|
|
4027
4056
|
import { Fragment as Fragment53, jsx as jsx58, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4028
4057
|
var SOD323F = () => {
|
|
4029
4058
|
const fullWidth = 1.7;
|
|
@@ -4054,10 +4083,10 @@ var SOD323F = () => {
|
|
|
4054
4083
|
}
|
|
4055
4084
|
),
|
|
4056
4085
|
/* @__PURE__ */ jsx58(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs56(Union17, { children: [
|
|
4057
|
-
/* @__PURE__ */ jsx58(
|
|
4086
|
+
/* @__PURE__ */ jsx58(Translate25, { z: straightHeight / 2, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
4058
4087
|
/* @__PURE__ */ jsxs56(Hull20, { children: [
|
|
4059
|
-
/* @__PURE__ */ jsx58(
|
|
4060
|
-
/* @__PURE__ */ jsx58(
|
|
4088
|
+
/* @__PURE__ */ jsx58(Translate25, { z: straightHeight, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
4089
|
+
/* @__PURE__ */ jsx58(Translate25, { z: bodyHeight, children: /* @__PURE__ */ jsx58(
|
|
4061
4090
|
Cuboid38,
|
|
4062
4091
|
{
|
|
4063
4092
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -4233,7 +4262,9 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4233
4262
|
pitch: fpJson.p,
|
|
4234
4263
|
invert: fpJson.invert,
|
|
4235
4264
|
faceup: fpJson.faceup,
|
|
4236
|
-
rows
|
|
4265
|
+
rows,
|
|
4266
|
+
smd: fpJson.smd || fpJson.surface_mount,
|
|
4267
|
+
rightangle: fpJson.rightangle
|
|
4237
4268
|
}
|
|
4238
4269
|
);
|
|
4239
4270
|
if (fpJson.female)
|
|
@@ -4468,7 +4499,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4468
4499
|
};
|
|
4469
4500
|
|
|
4470
4501
|
// lib/SOT-563.tsx
|
|
4471
|
-
import { Cuboid as Cuboid40, Translate as
|
|
4502
|
+
import { Cuboid as Cuboid40, Translate as Translate27, Rotate as Rotate11, Colorize as Colorize31 } from "jscad-fiber";
|
|
4472
4503
|
import { Fragment as Fragment56, jsx as jsx62, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4473
4504
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
4474
4505
|
const bodyWidth = 1.2;
|
|
@@ -4480,11 +4511,11 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4480
4511
|
const leadSpacing = 0.5;
|
|
4481
4512
|
const bodyZOffset = -0.4;
|
|
4482
4513
|
return /* @__PURE__ */ jsxs59(Fragment56, { children: [
|
|
4483
|
-
/* @__PURE__ */ jsx62(
|
|
4514
|
+
/* @__PURE__ */ jsx62(Rotate11, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx62(Translate27, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx62(Colorize31, { color: "grey", children: /* @__PURE__ */ jsx62(Cuboid40, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
4484
4515
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
4485
4516
|
// Left lead
|
|
4486
4517
|
/* @__PURE__ */ jsx62(
|
|
4487
|
-
|
|
4518
|
+
Translate27,
|
|
4488
4519
|
{
|
|
4489
4520
|
center: [
|
|
4490
4521
|
-bodyWidth / 2 - 0.03,
|
|
@@ -4497,7 +4528,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4497
4528
|
),
|
|
4498
4529
|
// Right lead
|
|
4499
4530
|
/* @__PURE__ */ jsx62(
|
|
4500
|
-
|
|
4531
|
+
Translate27,
|
|
4501
4532
|
{
|
|
4502
4533
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
4503
4534
|
children: /* @__PURE__ */ jsx62(Cuboid40, { size: [leadLength, leadWidth, leadHeight] })
|