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