jscad-electronics 0.0.67 → 0.0.69
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 +145 -76
- 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
|
@@ -443,7 +443,7 @@ var FootprintPad = ({ pad }) => {
|
|
|
443
443
|
};
|
|
444
444
|
|
|
445
445
|
// lib/FootprintPlatedHole.tsx
|
|
446
|
-
import { Colorize as Colorize4, Translate as Translate5, Cylinder as Cylinder2, Subtract as Subtract2 } from "jscad-fiber";
|
|
446
|
+
import { Colorize as Colorize4, Cuboid as Cuboid13, Translate as Translate5, Cylinder as Cylinder2, Subtract as Subtract2 } from "jscad-fiber";
|
|
447
447
|
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
448
448
|
var FootprintPlatedHole = ({ hole }) => {
|
|
449
449
|
if (hole.shape === "circle") {
|
|
@@ -452,6 +452,18 @@ var FootprintPlatedHole = ({ hole }) => {
|
|
|
452
452
|
/* @__PURE__ */ jsx13(Cylinder2, { radius: hole.hole_diameter / 2, height: 0.01 })
|
|
453
453
|
] }) }) });
|
|
454
454
|
}
|
|
455
|
+
if (hole.shape === "circular_hole_with_rect_pad") {
|
|
456
|
+
return /* @__PURE__ */ jsx13(Colorize4, { color: "#b87333", children: /* @__PURE__ */ jsx13(Translate5, { offset: [hole.x, hole.y, 0], children: /* @__PURE__ */ jsxs12(Subtract2, { children: [
|
|
457
|
+
/* @__PURE__ */ jsx13(
|
|
458
|
+
Cuboid13,
|
|
459
|
+
{
|
|
460
|
+
size: [hole.rect_pad_width, hole.rect_pad_width, 0.01],
|
|
461
|
+
center: [0, 0, 0]
|
|
462
|
+
}
|
|
463
|
+
),
|
|
464
|
+
/* @__PURE__ */ jsx13(Cylinder2, { radius: hole.hole_diameter / 2, height: 0.01 })
|
|
465
|
+
] }) }) });
|
|
466
|
+
}
|
|
455
467
|
throw new Error("Shape not supported: " + hole.shape);
|
|
456
468
|
};
|
|
457
469
|
|
|
@@ -1988,20 +2000,20 @@ var SOD123F = () => {
|
|
|
1988
2000
|
] });
|
|
1989
2001
|
};
|
|
1990
2002
|
|
|
1991
|
-
// lib/
|
|
2003
|
+
// lib/sod-123FL.tsx
|
|
1992
2004
|
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union11 } from "jscad-fiber";
|
|
1993
2005
|
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 =
|
|
2006
|
+
var SOD123FL = () => {
|
|
2007
|
+
const fullWidth = 2.75;
|
|
2008
|
+
const bodyLength10 = 1.8;
|
|
2009
|
+
const bodyHeight = 1;
|
|
2010
|
+
const padWidth = 0.9;
|
|
2011
|
+
const padLength = 1;
|
|
2012
|
+
const padThickness = 0.2;
|
|
2013
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2014
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2015
|
+
const taperOffset = 0.4;
|
|
2016
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2005
2017
|
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2006
2018
|
/* @__PURE__ */ jsx32(
|
|
2007
2019
|
Cuboid24,
|
|
@@ -2030,19 +2042,73 @@ var SOD923 = () => {
|
|
|
2030
2042
|
}
|
|
2031
2043
|
) })
|
|
2032
2044
|
] })
|
|
2045
|
+
] }) }),
|
|
2046
|
+
/* @__PURE__ */ jsx32(
|
|
2047
|
+
Cuboid24,
|
|
2048
|
+
{
|
|
2049
|
+
color: "#777",
|
|
2050
|
+
size: [padThickness, bodyLength10 - taperOffset, 0.01],
|
|
2051
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2052
|
+
}
|
|
2053
|
+
)
|
|
2054
|
+
] });
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
// lib/SOD-923.tsx
|
|
2058
|
+
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as Union12 } from "jscad-fiber";
|
|
2059
|
+
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2060
|
+
var SOD923 = () => {
|
|
2061
|
+
const fullWidth = 0.8;
|
|
2062
|
+
const bodyLength10 = 0.6;
|
|
2063
|
+
const bodyHeight = 0.37;
|
|
2064
|
+
const padWidth = 0.25;
|
|
2065
|
+
const padLength = 0.4;
|
|
2066
|
+
const padThickness = 0.14;
|
|
2067
|
+
const leftPadCenterX = -(fullWidth / 2);
|
|
2068
|
+
const rightPadCenterX = fullWidth / 2;
|
|
2069
|
+
const taperOffset = 0.1;
|
|
2070
|
+
const straightHeight = padThickness;
|
|
2071
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2072
|
+
/* @__PURE__ */ jsx33(
|
|
2073
|
+
Cuboid25,
|
|
2074
|
+
{
|
|
2075
|
+
color: "#ccc",
|
|
2076
|
+
size: [padLength, padWidth, padThickness],
|
|
2077
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2078
|
+
}
|
|
2079
|
+
),
|
|
2080
|
+
/* @__PURE__ */ jsx33(
|
|
2081
|
+
Cuboid25,
|
|
2082
|
+
{
|
|
2083
|
+
color: "#ccc",
|
|
2084
|
+
size: [padLength, padWidth, padThickness],
|
|
2085
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2086
|
+
}
|
|
2087
|
+
),
|
|
2088
|
+
/* @__PURE__ */ jsx33(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs31(Union12, { children: [
|
|
2089
|
+
/* @__PURE__ */ jsx33(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2090
|
+
/* @__PURE__ */ jsxs31(Hull11, { children: [
|
|
2091
|
+
/* @__PURE__ */ jsx33(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2092
|
+
/* @__PURE__ */ jsx33(Translate16, { z: bodyHeight, children: /* @__PURE__ */ jsx33(
|
|
2093
|
+
Cuboid25,
|
|
2094
|
+
{
|
|
2095
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2096
|
+
}
|
|
2097
|
+
) })
|
|
2098
|
+
] })
|
|
2033
2099
|
] }) })
|
|
2034
2100
|
] });
|
|
2035
2101
|
};
|
|
2036
2102
|
|
|
2037
2103
|
// lib/Footprinter3d.tsx
|
|
2038
|
-
import { jsx as
|
|
2104
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2039
2105
|
var Footprinter3d = ({ footprint }) => {
|
|
2040
2106
|
const fpJson = fp3.string(footprint).json();
|
|
2041
2107
|
switch (fpJson.fn) {
|
|
2042
2108
|
case "dip":
|
|
2043
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ jsx34(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
2044
2110
|
case "tssop":
|
|
2045
|
-
return /* @__PURE__ */
|
|
2111
|
+
return /* @__PURE__ */ jsx34(
|
|
2046
2112
|
Tssop,
|
|
2047
2113
|
{
|
|
2048
2114
|
pinCount: fpJson.num_pins,
|
|
@@ -2053,7 +2119,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2053
2119
|
}
|
|
2054
2120
|
);
|
|
2055
2121
|
case "vssop":
|
|
2056
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsx34(
|
|
2057
2123
|
VSSOP,
|
|
2058
2124
|
{
|
|
2059
2125
|
pinCount: fpJson.num_pins,
|
|
@@ -2065,7 +2131,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2065
2131
|
}
|
|
2066
2132
|
);
|
|
2067
2133
|
case "qfp":
|
|
2068
|
-
return /* @__PURE__ */
|
|
2134
|
+
return /* @__PURE__ */ jsx34(
|
|
2069
2135
|
QFP,
|
|
2070
2136
|
{
|
|
2071
2137
|
pinCount: fpJson.num_pins,
|
|
@@ -2077,7 +2143,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2077
2143
|
);
|
|
2078
2144
|
case "qfn":
|
|
2079
2145
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2080
|
-
return /* @__PURE__ */
|
|
2146
|
+
return /* @__PURE__ */ jsx34(
|
|
2081
2147
|
qfn_default,
|
|
2082
2148
|
{
|
|
2083
2149
|
num_pins: fpJson.num_pins,
|
|
@@ -2094,35 +2160,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2094
2160
|
);
|
|
2095
2161
|
case "pinrow":
|
|
2096
2162
|
if (fpJson.male)
|
|
2097
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ jsx34(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2098
2164
|
if (fpJson.female)
|
|
2099
|
-
return /* @__PURE__ */
|
|
2165
|
+
return /* @__PURE__ */ jsx34(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2100
2166
|
case "cap": {
|
|
2101
2167
|
switch (fpJson.imperial) {
|
|
2102
2168
|
case "0402":
|
|
2103
|
-
return /* @__PURE__ */
|
|
2169
|
+
return /* @__PURE__ */ jsx34(A0402, { color: "#856c4d" });
|
|
2104
2170
|
case "0603":
|
|
2105
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ jsx34(A0603, { color: "#856c4d" });
|
|
2106
2172
|
case "0805":
|
|
2107
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ jsx34(A0805, { color: "#856c4d" });
|
|
2108
2174
|
case "0201":
|
|
2109
|
-
return /* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ jsx34(A0201, { color: "#856c4d" });
|
|
2110
2176
|
case "01005":
|
|
2111
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ jsx34(A01005, { color: "#856c4d" });
|
|
2112
2178
|
case "1206":
|
|
2113
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsx34(A1206, { color: "#856c4d" });
|
|
2114
2180
|
case "1210":
|
|
2115
|
-
return /* @__PURE__ */
|
|
2181
|
+
return /* @__PURE__ */ jsx34(A1210, { color: "#856c4d" });
|
|
2116
2182
|
case "2010":
|
|
2117
|
-
return /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ jsx34(A2010, { color: "#856c4d" });
|
|
2118
2184
|
case "2512":
|
|
2119
|
-
return /* @__PURE__ */
|
|
2185
|
+
return /* @__PURE__ */ jsx34(A2512, { color: "#856c4d" });
|
|
2120
2186
|
}
|
|
2121
2187
|
}
|
|
2122
2188
|
case "sot235":
|
|
2123
|
-
return /* @__PURE__ */
|
|
2189
|
+
return /* @__PURE__ */ jsx34(SOT_235_default, {});
|
|
2124
2190
|
case "pushbutton":
|
|
2125
|
-
return /* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsx34(
|
|
2126
2192
|
PushButton,
|
|
2127
2193
|
{
|
|
2128
2194
|
width: fpJson.w,
|
|
@@ -2131,7 +2197,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2131
2197
|
}
|
|
2132
2198
|
);
|
|
2133
2199
|
case "soic":
|
|
2134
|
-
return /* @__PURE__ */
|
|
2200
|
+
return /* @__PURE__ */ jsx34(
|
|
2135
2201
|
SOIC,
|
|
2136
2202
|
{
|
|
2137
2203
|
pinCount: fpJson.num_pins,
|
|
@@ -2142,47 +2208,49 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2142
2208
|
}
|
|
2143
2209
|
);
|
|
2144
2210
|
case "sod523":
|
|
2145
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ jsx34(SOD523, {});
|
|
2146
2212
|
case "sma":
|
|
2147
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ jsx34(SMA, {});
|
|
2148
2214
|
case "smb":
|
|
2149
|
-
return /* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsx34(SMB, {});
|
|
2150
2216
|
case "smc":
|
|
2151
|
-
return /* @__PURE__ */
|
|
2217
|
+
return /* @__PURE__ */ jsx34(SMC, {});
|
|
2152
2218
|
case "smf":
|
|
2153
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ jsx34(SMF, {});
|
|
2154
2220
|
case "sod123f":
|
|
2155
|
-
return /* @__PURE__ */
|
|
2221
|
+
return /* @__PURE__ */ jsx34(SOD123F, {});
|
|
2222
|
+
case "sod123fl":
|
|
2223
|
+
return /* @__PURE__ */ jsx34(SOD123FL, {});
|
|
2156
2224
|
case "sod923":
|
|
2157
|
-
return /* @__PURE__ */
|
|
2225
|
+
return /* @__PURE__ */ jsx34(SOD923, {});
|
|
2158
2226
|
}
|
|
2159
2227
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
2160
2228
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
2161
2229
|
switch (fpJson.imperial) {
|
|
2162
2230
|
case "0402":
|
|
2163
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ jsx34(A0402, { color });
|
|
2164
2232
|
case "0603":
|
|
2165
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ jsx34(A0603, { color });
|
|
2166
2234
|
case "0805":
|
|
2167
|
-
return /* @__PURE__ */
|
|
2235
|
+
return /* @__PURE__ */ jsx34(A0805, { color });
|
|
2168
2236
|
case "0201":
|
|
2169
|
-
return /* @__PURE__ */
|
|
2237
|
+
return /* @__PURE__ */ jsx34(A0201, { color });
|
|
2170
2238
|
case "01005":
|
|
2171
|
-
return /* @__PURE__ */
|
|
2239
|
+
return /* @__PURE__ */ jsx34(A01005, { color });
|
|
2172
2240
|
case "1206":
|
|
2173
|
-
return /* @__PURE__ */
|
|
2241
|
+
return /* @__PURE__ */ jsx34(A1206, { color });
|
|
2174
2242
|
case "1210":
|
|
2175
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ jsx34(A1210, { color });
|
|
2176
2244
|
case "2010":
|
|
2177
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ jsx34(A2010, { color });
|
|
2178
2246
|
case "2512":
|
|
2179
|
-
return /* @__PURE__ */
|
|
2247
|
+
return /* @__PURE__ */ jsx34(A2512, { color });
|
|
2180
2248
|
}
|
|
2181
2249
|
return null;
|
|
2182
2250
|
};
|
|
2183
2251
|
|
|
2184
2252
|
// lib/SOT-23-3P.tsx
|
|
2185
|
-
import { Fragment as
|
|
2253
|
+
import { Fragment as Fragment30, jsx as jsx35, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2186
2254
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
2187
2255
|
const bodyWidth = 1.3;
|
|
2188
2256
|
const bodyLength10 = 2.9;
|
|
@@ -2193,8 +2261,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2193
2261
|
const padContactLength = 0.4;
|
|
2194
2262
|
const padThickness = leadThickness / 2;
|
|
2195
2263
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
2196
|
-
return /* @__PURE__ */
|
|
2197
|
-
/* @__PURE__ */
|
|
2264
|
+
return /* @__PURE__ */ jsxs32(Fragment30, { children: [
|
|
2265
|
+
/* @__PURE__ */ jsx35(
|
|
2198
2266
|
SmdChipLead,
|
|
2199
2267
|
{
|
|
2200
2268
|
rotation: Math.PI,
|
|
@@ -2211,7 +2279,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2211
2279
|
},
|
|
2212
2280
|
1
|
|
2213
2281
|
),
|
|
2214
|
-
/* @__PURE__ */
|
|
2282
|
+
/* @__PURE__ */ jsx35(
|
|
2215
2283
|
SmdChipLead,
|
|
2216
2284
|
{
|
|
2217
2285
|
rotation: Math.PI,
|
|
@@ -2228,7 +2296,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2228
2296
|
},
|
|
2229
2297
|
2
|
|
2230
2298
|
),
|
|
2231
|
-
/* @__PURE__ */
|
|
2299
|
+
/* @__PURE__ */ jsx35(
|
|
2232
2300
|
SmdChipLead,
|
|
2233
2301
|
{
|
|
2234
2302
|
position: {
|
|
@@ -2244,7 +2312,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2244
2312
|
},
|
|
2245
2313
|
3
|
|
2246
2314
|
),
|
|
2247
|
-
/* @__PURE__ */
|
|
2315
|
+
/* @__PURE__ */ jsx35(
|
|
2248
2316
|
ChipBody,
|
|
2249
2317
|
{
|
|
2250
2318
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2257,8 +2325,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2257
2325
|
};
|
|
2258
2326
|
|
|
2259
2327
|
// lib/SOT-563.tsx
|
|
2260
|
-
import { Cuboid as
|
|
2261
|
-
import { Fragment as
|
|
2328
|
+
import { Cuboid as Cuboid26, Translate as Translate17, Rotate as Rotate6, Colorize as Colorize18 } from "jscad-fiber";
|
|
2329
|
+
import { Fragment as Fragment31, jsx as jsx36, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2262
2330
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
2263
2331
|
const bodyWidth = 1.2;
|
|
2264
2332
|
const bodyLength10 = 1.6;
|
|
@@ -2268,28 +2336,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2268
2336
|
const leadHeight = 0.13;
|
|
2269
2337
|
const leadSpacing = 0.5;
|
|
2270
2338
|
const bodyZOffset = -0.4;
|
|
2271
|
-
return /* @__PURE__ */
|
|
2272
|
-
/* @__PURE__ */
|
|
2339
|
+
return /* @__PURE__ */ jsxs33(Fragment31, { children: [
|
|
2340
|
+
/* @__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
2341
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
2274
2342
|
// Left lead
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
|
|
2343
|
+
/* @__PURE__ */ jsx36(
|
|
2344
|
+
Translate17,
|
|
2277
2345
|
{
|
|
2278
2346
|
center: [
|
|
2279
2347
|
-bodyWidth / 2 - 0.03,
|
|
2280
2348
|
yOffset * leadSpacing,
|
|
2281
2349
|
leadHeight / 2
|
|
2282
2350
|
],
|
|
2283
|
-
children: /* @__PURE__ */
|
|
2351
|
+
children: /* @__PURE__ */ jsx36(Cuboid26, { size: [leadLength, leadWidth, leadHeight] })
|
|
2284
2352
|
},
|
|
2285
2353
|
`left-${index}`
|
|
2286
2354
|
),
|
|
2287
2355
|
// Right lead
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
|
|
2356
|
+
/* @__PURE__ */ jsx36(
|
|
2357
|
+
Translate17,
|
|
2290
2358
|
{
|
|
2291
2359
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
2292
|
-
children: /* @__PURE__ */
|
|
2360
|
+
children: /* @__PURE__ */ jsx36(Cuboid26, { size: [leadLength, leadWidth, leadHeight] })
|
|
2293
2361
|
},
|
|
2294
2362
|
`right-${index}`
|
|
2295
2363
|
)
|
|
@@ -2298,8 +2366,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2298
2366
|
};
|
|
2299
2367
|
|
|
2300
2368
|
// lib/SOT-723.tsx
|
|
2301
|
-
import { Cuboid as
|
|
2302
|
-
import { Fragment as
|
|
2369
|
+
import { Cuboid as Cuboid27, Translate as Translate18, Rotate as Rotate7, Colorize as Colorize19 } from "jscad-fiber";
|
|
2370
|
+
import { Fragment as Fragment32, jsx as jsx37, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2303
2371
|
var getCcwSot723Coords = (pn) => {
|
|
2304
2372
|
if (pn === 1) {
|
|
2305
2373
|
return { x: 0, y: 0 };
|
|
@@ -2317,12 +2385,12 @@ var SOT723 = () => {
|
|
|
2317
2385
|
const leadLength = 0.3;
|
|
2318
2386
|
const leadHeight = 0.1;
|
|
2319
2387
|
const centerLeadWidth = 0.42;
|
|
2320
|
-
return /* @__PURE__ */
|
|
2321
|
-
/* @__PURE__ */
|
|
2388
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2389
|
+
/* @__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
2390
|
[1, 2, 3].map((pn) => {
|
|
2323
2391
|
const { x, y } = getCcwSot723Coords(pn);
|
|
2324
|
-
return /* @__PURE__ */
|
|
2325
|
-
|
|
2392
|
+
return /* @__PURE__ */ jsx37(Translate18, { center: [x, y, 0], children: /* @__PURE__ */ jsx37(
|
|
2393
|
+
Cuboid27,
|
|
2326
2394
|
{
|
|
2327
2395
|
size: [
|
|
2328
2396
|
leadLength,
|
|
@@ -2336,7 +2404,7 @@ var SOT723 = () => {
|
|
|
2336
2404
|
};
|
|
2337
2405
|
|
|
2338
2406
|
// lib/sod-123.tsx
|
|
2339
|
-
import { Fragment as
|
|
2407
|
+
import { Fragment as Fragment33, jsx as jsx38, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2340
2408
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
2341
2409
|
const bodyWidth = 2.9;
|
|
2342
2410
|
const bodyLength10 = 1.3;
|
|
@@ -2347,8 +2415,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2347
2415
|
const padContactLength = 0.4;
|
|
2348
2416
|
const padThickness = leadThickness / 2;
|
|
2349
2417
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
2350
|
-
return /* @__PURE__ */
|
|
2351
|
-
/* @__PURE__ */
|
|
2418
|
+
return /* @__PURE__ */ jsxs35(Fragment33, { children: [
|
|
2419
|
+
/* @__PURE__ */ jsx38(
|
|
2352
2420
|
SmdChipLead,
|
|
2353
2421
|
{
|
|
2354
2422
|
position: {
|
|
@@ -2364,7 +2432,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2364
2432
|
},
|
|
2365
2433
|
1
|
|
2366
2434
|
),
|
|
2367
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsx38(
|
|
2368
2436
|
SmdChipLead,
|
|
2369
2437
|
{
|
|
2370
2438
|
rotation: Math.PI,
|
|
@@ -2381,7 +2449,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2381
2449
|
},
|
|
2382
2450
|
2
|
|
2383
2451
|
),
|
|
2384
|
-
/* @__PURE__ */
|
|
2452
|
+
/* @__PURE__ */ jsx38(
|
|
2385
2453
|
ChipBody,
|
|
2386
2454
|
{
|
|
2387
2455
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2417,6 +2485,7 @@ export {
|
|
|
2417
2485
|
SMF,
|
|
2418
2486
|
SOD123,
|
|
2419
2487
|
SOD123F,
|
|
2488
|
+
SOD123FL,
|
|
2420
2489
|
SOD523,
|
|
2421
2490
|
SOD923,
|
|
2422
2491
|
SOT233P,
|