jscad-electronics 0.0.66 → 0.0.68
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 +144 -88
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +66 -13
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ declare const SMF: () => react_jsx_runtime.JSX.Element;
|
|
|
179
179
|
|
|
180
180
|
declare const SOD123F: () => react_jsx_runtime.JSX.Element;
|
|
181
181
|
|
|
182
|
+
declare const SOD123FL: () => react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
182
184
|
declare const SOD923: () => react_jsx_runtime.JSX.Element;
|
|
183
185
|
|
|
184
|
-
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD523, SOD923, SOT233P, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, Tssop, VSSOP };
|
|
186
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD523, SOD923, SOT233P, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -1646,18 +1646,6 @@ var SOD523 = () => {
|
|
|
1646
1646
|
const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
|
|
1647
1647
|
const taperOffset = 0.2;
|
|
1648
1648
|
const straightHeight = bodyHeight * 0.5;
|
|
1649
|
-
const Body = /* @__PURE__ */ jsx26(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs24(Union5, { children: [
|
|
1650
|
-
/* @__PURE__ */ jsx26(Translate9, { z: straightHeight / 2, children: /* @__PURE__ */ jsx26(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1651
|
-
/* @__PURE__ */ jsxs24(Hull4, { children: [
|
|
1652
|
-
/* @__PURE__ */ jsx26(Translate9, { z: straightHeight, children: /* @__PURE__ */ jsx26(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1653
|
-
/* @__PURE__ */ jsx26(Translate9, { z: bodyHeight, children: /* @__PURE__ */ jsx26(
|
|
1654
|
-
Cuboid18,
|
|
1655
|
-
{
|
|
1656
|
-
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1657
|
-
}
|
|
1658
|
-
) })
|
|
1659
|
-
] })
|
|
1660
|
-
] }) });
|
|
1661
1649
|
return /* @__PURE__ */ jsxs24(Fragment22, { children: [
|
|
1662
1650
|
/* @__PURE__ */ jsx26(
|
|
1663
1651
|
Cuboid18,
|
|
@@ -1675,7 +1663,18 @@ var SOD523 = () => {
|
|
|
1675
1663
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1676
1664
|
}
|
|
1677
1665
|
),
|
|
1678
|
-
|
|
1666
|
+
/* @__PURE__ */ jsx26(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs24(Union5, { children: [
|
|
1667
|
+
/* @__PURE__ */ jsx26(Translate9, { z: straightHeight / 2, children: /* @__PURE__ */ jsx26(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1668
|
+
/* @__PURE__ */ jsxs24(Hull4, { children: [
|
|
1669
|
+
/* @__PURE__ */ jsx26(Translate9, { z: straightHeight, children: /* @__PURE__ */ jsx26(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1670
|
+
/* @__PURE__ */ jsx26(Translate9, { z: bodyHeight, children: /* @__PURE__ */ jsx26(
|
|
1671
|
+
Cuboid18,
|
|
1672
|
+
{
|
|
1673
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1674
|
+
}
|
|
1675
|
+
) })
|
|
1676
|
+
] })
|
|
1677
|
+
] }) })
|
|
1679
1678
|
] });
|
|
1680
1679
|
};
|
|
1681
1680
|
|
|
@@ -1989,20 +1988,20 @@ var SOD123F = () => {
|
|
|
1989
1988
|
] });
|
|
1990
1989
|
};
|
|
1991
1990
|
|
|
1992
|
-
// lib/
|
|
1991
|
+
// lib/sod-123FL.tsx
|
|
1993
1992
|
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union11 } from "jscad-fiber";
|
|
1994
1993
|
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1995
|
-
var
|
|
1996
|
-
const fullWidth =
|
|
1997
|
-
const bodyLength10 =
|
|
1998
|
-
const bodyHeight =
|
|
1999
|
-
const padWidth = 0.
|
|
2000
|
-
const padLength =
|
|
2001
|
-
const padThickness = 0.
|
|
2002
|
-
const leftPadCenterX = -(fullWidth / 2);
|
|
2003
|
-
const rightPadCenterX = fullWidth / 2;
|
|
2004
|
-
const taperOffset = 0.
|
|
2005
|
-
const straightHeight =
|
|
1994
|
+
var SOD123FL = () => {
|
|
1995
|
+
const fullWidth = 2.75;
|
|
1996
|
+
const bodyLength10 = 1.8;
|
|
1997
|
+
const bodyHeight = 1;
|
|
1998
|
+
const padWidth = 0.9;
|
|
1999
|
+
const padLength = 1;
|
|
2000
|
+
const padThickness = 0.2;
|
|
2001
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2002
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2003
|
+
const taperOffset = 0.4;
|
|
2004
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2006
2005
|
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2007
2006
|
/* @__PURE__ */ jsx32(
|
|
2008
2007
|
Cuboid24,
|
|
@@ -2031,19 +2030,73 @@ var SOD923 = () => {
|
|
|
2031
2030
|
}
|
|
2032
2031
|
) })
|
|
2033
2032
|
] })
|
|
2033
|
+
] }) }),
|
|
2034
|
+
/* @__PURE__ */ jsx32(
|
|
2035
|
+
Cuboid24,
|
|
2036
|
+
{
|
|
2037
|
+
color: "#777",
|
|
2038
|
+
size: [padThickness, bodyLength10 - taperOffset, 0.01],
|
|
2039
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2040
|
+
}
|
|
2041
|
+
)
|
|
2042
|
+
] });
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
// lib/SOD-923.tsx
|
|
2046
|
+
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as Union12 } from "jscad-fiber";
|
|
2047
|
+
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2048
|
+
var SOD923 = () => {
|
|
2049
|
+
const fullWidth = 0.8;
|
|
2050
|
+
const bodyLength10 = 0.6;
|
|
2051
|
+
const bodyHeight = 0.37;
|
|
2052
|
+
const padWidth = 0.25;
|
|
2053
|
+
const padLength = 0.4;
|
|
2054
|
+
const padThickness = 0.14;
|
|
2055
|
+
const leftPadCenterX = -(fullWidth / 2);
|
|
2056
|
+
const rightPadCenterX = fullWidth / 2;
|
|
2057
|
+
const taperOffset = 0.1;
|
|
2058
|
+
const straightHeight = padThickness;
|
|
2059
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2060
|
+
/* @__PURE__ */ jsx33(
|
|
2061
|
+
Cuboid25,
|
|
2062
|
+
{
|
|
2063
|
+
color: "#ccc",
|
|
2064
|
+
size: [padLength, padWidth, padThickness],
|
|
2065
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2066
|
+
}
|
|
2067
|
+
),
|
|
2068
|
+
/* @__PURE__ */ jsx33(
|
|
2069
|
+
Cuboid25,
|
|
2070
|
+
{
|
|
2071
|
+
color: "#ccc",
|
|
2072
|
+
size: [padLength, padWidth, padThickness],
|
|
2073
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2074
|
+
}
|
|
2075
|
+
),
|
|
2076
|
+
/* @__PURE__ */ jsx33(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs31(Union12, { children: [
|
|
2077
|
+
/* @__PURE__ */ jsx33(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2078
|
+
/* @__PURE__ */ jsxs31(Hull11, { children: [
|
|
2079
|
+
/* @__PURE__ */ jsx33(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2080
|
+
/* @__PURE__ */ jsx33(Translate16, { z: bodyHeight, children: /* @__PURE__ */ jsx33(
|
|
2081
|
+
Cuboid25,
|
|
2082
|
+
{
|
|
2083
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2084
|
+
}
|
|
2085
|
+
) })
|
|
2086
|
+
] })
|
|
2034
2087
|
] }) })
|
|
2035
2088
|
] });
|
|
2036
2089
|
};
|
|
2037
2090
|
|
|
2038
2091
|
// lib/Footprinter3d.tsx
|
|
2039
|
-
import { jsx as
|
|
2092
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2040
2093
|
var Footprinter3d = ({ footprint }) => {
|
|
2041
2094
|
const fpJson = fp3.string(footprint).json();
|
|
2042
2095
|
switch (fpJson.fn) {
|
|
2043
2096
|
case "dip":
|
|
2044
|
-
return /* @__PURE__ */
|
|
2097
|
+
return /* @__PURE__ */ jsx34(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
2045
2098
|
case "tssop":
|
|
2046
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ jsx34(
|
|
2047
2100
|
Tssop,
|
|
2048
2101
|
{
|
|
2049
2102
|
pinCount: fpJson.num_pins,
|
|
@@ -2054,7 +2107,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2054
2107
|
}
|
|
2055
2108
|
);
|
|
2056
2109
|
case "vssop":
|
|
2057
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ jsx34(
|
|
2058
2111
|
VSSOP,
|
|
2059
2112
|
{
|
|
2060
2113
|
pinCount: fpJson.num_pins,
|
|
@@ -2066,7 +2119,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2066
2119
|
}
|
|
2067
2120
|
);
|
|
2068
2121
|
case "qfp":
|
|
2069
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsx34(
|
|
2070
2123
|
QFP,
|
|
2071
2124
|
{
|
|
2072
2125
|
pinCount: fpJson.num_pins,
|
|
@@ -2078,7 +2131,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2078
2131
|
);
|
|
2079
2132
|
case "qfn":
|
|
2080
2133
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2081
|
-
return /* @__PURE__ */
|
|
2134
|
+
return /* @__PURE__ */ jsx34(
|
|
2082
2135
|
qfn_default,
|
|
2083
2136
|
{
|
|
2084
2137
|
num_pins: fpJson.num_pins,
|
|
@@ -2095,35 +2148,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2095
2148
|
);
|
|
2096
2149
|
case "pinrow":
|
|
2097
2150
|
if (fpJson.male)
|
|
2098
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ jsx34(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2099
2152
|
if (fpJson.female)
|
|
2100
|
-
return /* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ jsx34(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2101
2154
|
case "cap": {
|
|
2102
2155
|
switch (fpJson.imperial) {
|
|
2103
2156
|
case "0402":
|
|
2104
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ jsx34(A0402, { color: "#856c4d" });
|
|
2105
2158
|
case "0603":
|
|
2106
|
-
return /* @__PURE__ */
|
|
2159
|
+
return /* @__PURE__ */ jsx34(A0603, { color: "#856c4d" });
|
|
2107
2160
|
case "0805":
|
|
2108
|
-
return /* @__PURE__ */
|
|
2161
|
+
return /* @__PURE__ */ jsx34(A0805, { color: "#856c4d" });
|
|
2109
2162
|
case "0201":
|
|
2110
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ jsx34(A0201, { color: "#856c4d" });
|
|
2111
2164
|
case "01005":
|
|
2112
|
-
return /* @__PURE__ */
|
|
2165
|
+
return /* @__PURE__ */ jsx34(A01005, { color: "#856c4d" });
|
|
2113
2166
|
case "1206":
|
|
2114
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ jsx34(A1206, { color: "#856c4d" });
|
|
2115
2168
|
case "1210":
|
|
2116
|
-
return /* @__PURE__ */
|
|
2169
|
+
return /* @__PURE__ */ jsx34(A1210, { color: "#856c4d" });
|
|
2117
2170
|
case "2010":
|
|
2118
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ jsx34(A2010, { color: "#856c4d" });
|
|
2119
2172
|
case "2512":
|
|
2120
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ jsx34(A2512, { color: "#856c4d" });
|
|
2121
2174
|
}
|
|
2122
2175
|
}
|
|
2123
2176
|
case "sot235":
|
|
2124
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ jsx34(SOT_235_default, {});
|
|
2125
2178
|
case "pushbutton":
|
|
2126
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsx34(
|
|
2127
2180
|
PushButton,
|
|
2128
2181
|
{
|
|
2129
2182
|
width: fpJson.w,
|
|
@@ -2132,7 +2185,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2132
2185
|
}
|
|
2133
2186
|
);
|
|
2134
2187
|
case "soic":
|
|
2135
|
-
return /* @__PURE__ */
|
|
2188
|
+
return /* @__PURE__ */ jsx34(
|
|
2136
2189
|
SOIC,
|
|
2137
2190
|
{
|
|
2138
2191
|
pinCount: fpJson.num_pins,
|
|
@@ -2143,47 +2196,49 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2143
2196
|
}
|
|
2144
2197
|
);
|
|
2145
2198
|
case "sod523":
|
|
2146
|
-
return /* @__PURE__ */
|
|
2199
|
+
return /* @__PURE__ */ jsx34(SOD523, {});
|
|
2147
2200
|
case "sma":
|
|
2148
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ jsx34(SMA, {});
|
|
2149
2202
|
case "smb":
|
|
2150
|
-
return /* @__PURE__ */
|
|
2203
|
+
return /* @__PURE__ */ jsx34(SMB, {});
|
|
2151
2204
|
case "smc":
|
|
2152
|
-
return /* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ jsx34(SMC, {});
|
|
2153
2206
|
case "smf":
|
|
2154
|
-
return /* @__PURE__ */
|
|
2207
|
+
return /* @__PURE__ */ jsx34(SMF, {});
|
|
2155
2208
|
case "sod123f":
|
|
2156
|
-
return /* @__PURE__ */
|
|
2209
|
+
return /* @__PURE__ */ jsx34(SOD123F, {});
|
|
2210
|
+
case "sod123fl":
|
|
2211
|
+
return /* @__PURE__ */ jsx34(SOD123FL, {});
|
|
2157
2212
|
case "sod923":
|
|
2158
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ jsx34(SOD923, {});
|
|
2159
2214
|
}
|
|
2160
2215
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
2161
2216
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
2162
2217
|
switch (fpJson.imperial) {
|
|
2163
2218
|
case "0402":
|
|
2164
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ jsx34(A0402, { color });
|
|
2165
2220
|
case "0603":
|
|
2166
|
-
return /* @__PURE__ */
|
|
2221
|
+
return /* @__PURE__ */ jsx34(A0603, { color });
|
|
2167
2222
|
case "0805":
|
|
2168
|
-
return /* @__PURE__ */
|
|
2223
|
+
return /* @__PURE__ */ jsx34(A0805, { color });
|
|
2169
2224
|
case "0201":
|
|
2170
|
-
return /* @__PURE__ */
|
|
2225
|
+
return /* @__PURE__ */ jsx34(A0201, { color });
|
|
2171
2226
|
case "01005":
|
|
2172
|
-
return /* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ jsx34(A01005, { color });
|
|
2173
2228
|
case "1206":
|
|
2174
|
-
return /* @__PURE__ */
|
|
2229
|
+
return /* @__PURE__ */ jsx34(A1206, { color });
|
|
2175
2230
|
case "1210":
|
|
2176
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ jsx34(A1210, { color });
|
|
2177
2232
|
case "2010":
|
|
2178
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ jsx34(A2010, { color });
|
|
2179
2234
|
case "2512":
|
|
2180
|
-
return /* @__PURE__ */
|
|
2235
|
+
return /* @__PURE__ */ jsx34(A2512, { color });
|
|
2181
2236
|
}
|
|
2182
2237
|
return null;
|
|
2183
2238
|
};
|
|
2184
2239
|
|
|
2185
2240
|
// lib/SOT-23-3P.tsx
|
|
2186
|
-
import { Fragment as
|
|
2241
|
+
import { Fragment as Fragment30, jsx as jsx35, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2187
2242
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
2188
2243
|
const bodyWidth = 1.3;
|
|
2189
2244
|
const bodyLength10 = 2.9;
|
|
@@ -2194,8 +2249,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2194
2249
|
const padContactLength = 0.4;
|
|
2195
2250
|
const padThickness = leadThickness / 2;
|
|
2196
2251
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
2197
|
-
return /* @__PURE__ */
|
|
2198
|
-
/* @__PURE__ */
|
|
2252
|
+
return /* @__PURE__ */ jsxs32(Fragment30, { children: [
|
|
2253
|
+
/* @__PURE__ */ jsx35(
|
|
2199
2254
|
SmdChipLead,
|
|
2200
2255
|
{
|
|
2201
2256
|
rotation: Math.PI,
|
|
@@ -2212,7 +2267,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2212
2267
|
},
|
|
2213
2268
|
1
|
|
2214
2269
|
),
|
|
2215
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ jsx35(
|
|
2216
2271
|
SmdChipLead,
|
|
2217
2272
|
{
|
|
2218
2273
|
rotation: Math.PI,
|
|
@@ -2229,7 +2284,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2229
2284
|
},
|
|
2230
2285
|
2
|
|
2231
2286
|
),
|
|
2232
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ jsx35(
|
|
2233
2288
|
SmdChipLead,
|
|
2234
2289
|
{
|
|
2235
2290
|
position: {
|
|
@@ -2245,7 +2300,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2245
2300
|
},
|
|
2246
2301
|
3
|
|
2247
2302
|
),
|
|
2248
|
-
/* @__PURE__ */
|
|
2303
|
+
/* @__PURE__ */ jsx35(
|
|
2249
2304
|
ChipBody,
|
|
2250
2305
|
{
|
|
2251
2306
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2258,8 +2313,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2258
2313
|
};
|
|
2259
2314
|
|
|
2260
2315
|
// lib/SOT-563.tsx
|
|
2261
|
-
import { Cuboid as
|
|
2262
|
-
import { Fragment as
|
|
2316
|
+
import { Cuboid as Cuboid26, Translate as Translate17, Rotate as Rotate6, Colorize as Colorize18 } from "jscad-fiber";
|
|
2317
|
+
import { Fragment as Fragment31, jsx as jsx36, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2263
2318
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
2264
2319
|
const bodyWidth = 1.2;
|
|
2265
2320
|
const bodyLength10 = 1.6;
|
|
@@ -2269,28 +2324,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2269
2324
|
const leadHeight = 0.13;
|
|
2270
2325
|
const leadSpacing = 0.5;
|
|
2271
2326
|
const bodyZOffset = -0.4;
|
|
2272
|
-
return /* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2327
|
+
return /* @__PURE__ */ jsxs33(Fragment31, { children: [
|
|
2328
|
+
/* @__PURE__ */ jsx36(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx36(Translate17, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx36(Colorize18, { color: "grey", children: /* @__PURE__ */ jsx36(Cuboid26, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2274
2329
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
2275
2330
|
// Left lead
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
|
|
2331
|
+
/* @__PURE__ */ jsx36(
|
|
2332
|
+
Translate17,
|
|
2278
2333
|
{
|
|
2279
2334
|
center: [
|
|
2280
2335
|
-bodyWidth / 2 - 0.03,
|
|
2281
2336
|
yOffset * leadSpacing,
|
|
2282
2337
|
leadHeight / 2
|
|
2283
2338
|
],
|
|
2284
|
-
children: /* @__PURE__ */
|
|
2339
|
+
children: /* @__PURE__ */ jsx36(Cuboid26, { size: [leadLength, leadWidth, leadHeight] })
|
|
2285
2340
|
},
|
|
2286
2341
|
`left-${index}`
|
|
2287
2342
|
),
|
|
2288
2343
|
// Right lead
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
|
|
2344
|
+
/* @__PURE__ */ jsx36(
|
|
2345
|
+
Translate17,
|
|
2291
2346
|
{
|
|
2292
2347
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
2293
|
-
children: /* @__PURE__ */
|
|
2348
|
+
children: /* @__PURE__ */ jsx36(Cuboid26, { size: [leadLength, leadWidth, leadHeight] })
|
|
2294
2349
|
},
|
|
2295
2350
|
`right-${index}`
|
|
2296
2351
|
)
|
|
@@ -2299,8 +2354,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2299
2354
|
};
|
|
2300
2355
|
|
|
2301
2356
|
// lib/SOT-723.tsx
|
|
2302
|
-
import { Cuboid as
|
|
2303
|
-
import { Fragment as
|
|
2357
|
+
import { Cuboid as Cuboid27, Translate as Translate18, Rotate as Rotate7, Colorize as Colorize19 } from "jscad-fiber";
|
|
2358
|
+
import { Fragment as Fragment32, jsx as jsx37, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2304
2359
|
var getCcwSot723Coords = (pn) => {
|
|
2305
2360
|
if (pn === 1) {
|
|
2306
2361
|
return { x: 0, y: 0 };
|
|
@@ -2318,12 +2373,12 @@ var SOT723 = () => {
|
|
|
2318
2373
|
const leadLength = 0.3;
|
|
2319
2374
|
const leadHeight = 0.1;
|
|
2320
2375
|
const centerLeadWidth = 0.42;
|
|
2321
|
-
return /* @__PURE__ */
|
|
2322
|
-
/* @__PURE__ */
|
|
2376
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2377
|
+
/* @__PURE__ */ jsx37(Rotate7, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx37(Translate18, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx37(Colorize19, { color: "grey", children: /* @__PURE__ */ jsx37(Cuboid27, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2323
2378
|
[1, 2, 3].map((pn) => {
|
|
2324
2379
|
const { x, y } = getCcwSot723Coords(pn);
|
|
2325
|
-
return /* @__PURE__ */
|
|
2326
|
-
|
|
2380
|
+
return /* @__PURE__ */ jsx37(Translate18, { center: [x, y, 0], children: /* @__PURE__ */ jsx37(
|
|
2381
|
+
Cuboid27,
|
|
2327
2382
|
{
|
|
2328
2383
|
size: [
|
|
2329
2384
|
leadLength,
|
|
@@ -2337,7 +2392,7 @@ var SOT723 = () => {
|
|
|
2337
2392
|
};
|
|
2338
2393
|
|
|
2339
2394
|
// lib/sod-123.tsx
|
|
2340
|
-
import { Fragment as
|
|
2395
|
+
import { Fragment as Fragment33, jsx as jsx38, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2341
2396
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
2342
2397
|
const bodyWidth = 2.9;
|
|
2343
2398
|
const bodyLength10 = 1.3;
|
|
@@ -2348,8 +2403,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2348
2403
|
const padContactLength = 0.4;
|
|
2349
2404
|
const padThickness = leadThickness / 2;
|
|
2350
2405
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
2351
|
-
return /* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2406
|
+
return /* @__PURE__ */ jsxs35(Fragment33, { children: [
|
|
2407
|
+
/* @__PURE__ */ jsx38(
|
|
2353
2408
|
SmdChipLead,
|
|
2354
2409
|
{
|
|
2355
2410
|
position: {
|
|
@@ -2365,7 +2420,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2365
2420
|
},
|
|
2366
2421
|
1
|
|
2367
2422
|
),
|
|
2368
|
-
/* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ jsx38(
|
|
2369
2424
|
SmdChipLead,
|
|
2370
2425
|
{
|
|
2371
2426
|
rotation: Math.PI,
|
|
@@ -2382,7 +2437,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2382
2437
|
},
|
|
2383
2438
|
2
|
|
2384
2439
|
),
|
|
2385
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ jsx38(
|
|
2386
2441
|
ChipBody,
|
|
2387
2442
|
{
|
|
2388
2443
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2418,6 +2473,7 @@ export {
|
|
|
2418
2473
|
SMF,
|
|
2419
2474
|
SOD123,
|
|
2420
2475
|
SOD123F,
|
|
2476
|
+
SOD123FL,
|
|
2421
2477
|
SOD523,
|
|
2422
2478
|
SOD923,
|
|
2423
2479
|
SOT233P,
|