jscad-electronics 0.0.65 → 0.0.67
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 +123 -75
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +58 -13
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -179,4 +179,6 @@ declare const SMF: () => react_jsx_runtime.JSX.Element;
|
|
|
179
179
|
|
|
180
180
|
declare const SOD123F: () => react_jsx_runtime.JSX.Element;
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
declare const SOD923: () => react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
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 };
|
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,15 +1988,61 @@ var SOD123F = () => {
|
|
|
1989
1988
|
] });
|
|
1990
1989
|
};
|
|
1991
1990
|
|
|
1991
|
+
// lib/SOD-923.tsx
|
|
1992
|
+
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union11 } from "jscad-fiber";
|
|
1993
|
+
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1994
|
+
var SOD923 = () => {
|
|
1995
|
+
const fullWidth = 0.8;
|
|
1996
|
+
const bodyLength10 = 0.6;
|
|
1997
|
+
const bodyHeight = 0.37;
|
|
1998
|
+
const padWidth = 0.25;
|
|
1999
|
+
const padLength = 0.4;
|
|
2000
|
+
const padThickness = 0.14;
|
|
2001
|
+
const leftPadCenterX = -(fullWidth / 2);
|
|
2002
|
+
const rightPadCenterX = fullWidth / 2;
|
|
2003
|
+
const taperOffset = 0.1;
|
|
2004
|
+
const straightHeight = padThickness;
|
|
2005
|
+
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2006
|
+
/* @__PURE__ */ jsx32(
|
|
2007
|
+
Cuboid24,
|
|
2008
|
+
{
|
|
2009
|
+
color: "#ccc",
|
|
2010
|
+
size: [padLength, padWidth, padThickness],
|
|
2011
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2012
|
+
}
|
|
2013
|
+
),
|
|
2014
|
+
/* @__PURE__ */ jsx32(
|
|
2015
|
+
Cuboid24,
|
|
2016
|
+
{
|
|
2017
|
+
color: "#ccc",
|
|
2018
|
+
size: [padLength, padWidth, padThickness],
|
|
2019
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2020
|
+
}
|
|
2021
|
+
),
|
|
2022
|
+
/* @__PURE__ */ jsx32(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs30(Union11, { children: [
|
|
2023
|
+
/* @__PURE__ */ jsx32(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx32(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2024
|
+
/* @__PURE__ */ jsxs30(Hull10, { children: [
|
|
2025
|
+
/* @__PURE__ */ jsx32(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx32(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2026
|
+
/* @__PURE__ */ jsx32(Translate15, { z: bodyHeight, children: /* @__PURE__ */ jsx32(
|
|
2027
|
+
Cuboid24,
|
|
2028
|
+
{
|
|
2029
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2030
|
+
}
|
|
2031
|
+
) })
|
|
2032
|
+
] })
|
|
2033
|
+
] }) })
|
|
2034
|
+
] });
|
|
2035
|
+
};
|
|
2036
|
+
|
|
1992
2037
|
// lib/Footprinter3d.tsx
|
|
1993
|
-
import { jsx as
|
|
2038
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1994
2039
|
var Footprinter3d = ({ footprint }) => {
|
|
1995
2040
|
const fpJson = fp3.string(footprint).json();
|
|
1996
2041
|
switch (fpJson.fn) {
|
|
1997
2042
|
case "dip":
|
|
1998
|
-
return /* @__PURE__ */
|
|
2043
|
+
return /* @__PURE__ */ jsx33(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
1999
2044
|
case "tssop":
|
|
2000
|
-
return /* @__PURE__ */
|
|
2045
|
+
return /* @__PURE__ */ jsx33(
|
|
2001
2046
|
Tssop,
|
|
2002
2047
|
{
|
|
2003
2048
|
pinCount: fpJson.num_pins,
|
|
@@ -2008,7 +2053,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2008
2053
|
}
|
|
2009
2054
|
);
|
|
2010
2055
|
case "vssop":
|
|
2011
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx33(
|
|
2012
2057
|
VSSOP,
|
|
2013
2058
|
{
|
|
2014
2059
|
pinCount: fpJson.num_pins,
|
|
@@ -2020,7 +2065,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2020
2065
|
}
|
|
2021
2066
|
);
|
|
2022
2067
|
case "qfp":
|
|
2023
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx33(
|
|
2024
2069
|
QFP,
|
|
2025
2070
|
{
|
|
2026
2071
|
pinCount: fpJson.num_pins,
|
|
@@ -2032,7 +2077,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2032
2077
|
);
|
|
2033
2078
|
case "qfn":
|
|
2034
2079
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2035
|
-
return /* @__PURE__ */
|
|
2080
|
+
return /* @__PURE__ */ jsx33(
|
|
2036
2081
|
qfn_default,
|
|
2037
2082
|
{
|
|
2038
2083
|
num_pins: fpJson.num_pins,
|
|
@@ -2049,35 +2094,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2049
2094
|
);
|
|
2050
2095
|
case "pinrow":
|
|
2051
2096
|
if (fpJson.male)
|
|
2052
|
-
return /* @__PURE__ */
|
|
2097
|
+
return /* @__PURE__ */ jsx33(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2053
2098
|
if (fpJson.female)
|
|
2054
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ jsx33(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2055
2100
|
case "cap": {
|
|
2056
2101
|
switch (fpJson.imperial) {
|
|
2057
2102
|
case "0402":
|
|
2058
|
-
return /* @__PURE__ */
|
|
2103
|
+
return /* @__PURE__ */ jsx33(A0402, { color: "#856c4d" });
|
|
2059
2104
|
case "0603":
|
|
2060
|
-
return /* @__PURE__ */
|
|
2105
|
+
return /* @__PURE__ */ jsx33(A0603, { color: "#856c4d" });
|
|
2061
2106
|
case "0805":
|
|
2062
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ jsx33(A0805, { color: "#856c4d" });
|
|
2063
2108
|
case "0201":
|
|
2064
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ jsx33(A0201, { color: "#856c4d" });
|
|
2065
2110
|
case "01005":
|
|
2066
|
-
return /* @__PURE__ */
|
|
2111
|
+
return /* @__PURE__ */ jsx33(A01005, { color: "#856c4d" });
|
|
2067
2112
|
case "1206":
|
|
2068
|
-
return /* @__PURE__ */
|
|
2113
|
+
return /* @__PURE__ */ jsx33(A1206, { color: "#856c4d" });
|
|
2069
2114
|
case "1210":
|
|
2070
|
-
return /* @__PURE__ */
|
|
2115
|
+
return /* @__PURE__ */ jsx33(A1210, { color: "#856c4d" });
|
|
2071
2116
|
case "2010":
|
|
2072
|
-
return /* @__PURE__ */
|
|
2117
|
+
return /* @__PURE__ */ jsx33(A2010, { color: "#856c4d" });
|
|
2073
2118
|
case "2512":
|
|
2074
|
-
return /* @__PURE__ */
|
|
2119
|
+
return /* @__PURE__ */ jsx33(A2512, { color: "#856c4d" });
|
|
2075
2120
|
}
|
|
2076
2121
|
}
|
|
2077
2122
|
case "sot235":
|
|
2078
|
-
return /* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ jsx33(SOT_235_default, {});
|
|
2079
2124
|
case "pushbutton":
|
|
2080
|
-
return /* @__PURE__ */
|
|
2125
|
+
return /* @__PURE__ */ jsx33(
|
|
2081
2126
|
PushButton,
|
|
2082
2127
|
{
|
|
2083
2128
|
width: fpJson.w,
|
|
@@ -2086,7 +2131,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2086
2131
|
}
|
|
2087
2132
|
);
|
|
2088
2133
|
case "soic":
|
|
2089
|
-
return /* @__PURE__ */
|
|
2134
|
+
return /* @__PURE__ */ jsx33(
|
|
2090
2135
|
SOIC,
|
|
2091
2136
|
{
|
|
2092
2137
|
pinCount: fpJson.num_pins,
|
|
@@ -2097,45 +2142,47 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2097
2142
|
}
|
|
2098
2143
|
);
|
|
2099
2144
|
case "sod523":
|
|
2100
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsx33(SOD523, {});
|
|
2101
2146
|
case "sma":
|
|
2102
|
-
return /* @__PURE__ */
|
|
2147
|
+
return /* @__PURE__ */ jsx33(SMA, {});
|
|
2103
2148
|
case "smb":
|
|
2104
|
-
return /* @__PURE__ */
|
|
2149
|
+
return /* @__PURE__ */ jsx33(SMB, {});
|
|
2105
2150
|
case "smc":
|
|
2106
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ jsx33(SMC, {});
|
|
2107
2152
|
case "smf":
|
|
2108
|
-
return /* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ jsx33(SMF, {});
|
|
2109
2154
|
case "sod123f":
|
|
2110
|
-
return /* @__PURE__ */
|
|
2155
|
+
return /* @__PURE__ */ jsx33(SOD123F, {});
|
|
2156
|
+
case "sod923":
|
|
2157
|
+
return /* @__PURE__ */ jsx33(SOD923, {});
|
|
2111
2158
|
}
|
|
2112
2159
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
2113
2160
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
2114
2161
|
switch (fpJson.imperial) {
|
|
2115
2162
|
case "0402":
|
|
2116
|
-
return /* @__PURE__ */
|
|
2163
|
+
return /* @__PURE__ */ jsx33(A0402, { color });
|
|
2117
2164
|
case "0603":
|
|
2118
|
-
return /* @__PURE__ */
|
|
2165
|
+
return /* @__PURE__ */ jsx33(A0603, { color });
|
|
2119
2166
|
case "0805":
|
|
2120
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ jsx33(A0805, { color });
|
|
2121
2168
|
case "0201":
|
|
2122
|
-
return /* @__PURE__ */
|
|
2169
|
+
return /* @__PURE__ */ jsx33(A0201, { color });
|
|
2123
2170
|
case "01005":
|
|
2124
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ jsx33(A01005, { color });
|
|
2125
2172
|
case "1206":
|
|
2126
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ jsx33(A1206, { color });
|
|
2127
2174
|
case "1210":
|
|
2128
|
-
return /* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ jsx33(A1210, { color });
|
|
2129
2176
|
case "2010":
|
|
2130
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ jsx33(A2010, { color });
|
|
2131
2178
|
case "2512":
|
|
2132
|
-
return /* @__PURE__ */
|
|
2179
|
+
return /* @__PURE__ */ jsx33(A2512, { color });
|
|
2133
2180
|
}
|
|
2134
2181
|
return null;
|
|
2135
2182
|
};
|
|
2136
2183
|
|
|
2137
2184
|
// lib/SOT-23-3P.tsx
|
|
2138
|
-
import { Fragment as
|
|
2185
|
+
import { Fragment as Fragment29, jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2139
2186
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
2140
2187
|
const bodyWidth = 1.3;
|
|
2141
2188
|
const bodyLength10 = 2.9;
|
|
@@ -2146,8 +2193,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2146
2193
|
const padContactLength = 0.4;
|
|
2147
2194
|
const padThickness = leadThickness / 2;
|
|
2148
2195
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
2149
|
-
return /* @__PURE__ */
|
|
2150
|
-
/* @__PURE__ */
|
|
2196
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2197
|
+
/* @__PURE__ */ jsx34(
|
|
2151
2198
|
SmdChipLead,
|
|
2152
2199
|
{
|
|
2153
2200
|
rotation: Math.PI,
|
|
@@ -2164,7 +2211,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2164
2211
|
},
|
|
2165
2212
|
1
|
|
2166
2213
|
),
|
|
2167
|
-
/* @__PURE__ */
|
|
2214
|
+
/* @__PURE__ */ jsx34(
|
|
2168
2215
|
SmdChipLead,
|
|
2169
2216
|
{
|
|
2170
2217
|
rotation: Math.PI,
|
|
@@ -2181,7 +2228,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2181
2228
|
},
|
|
2182
2229
|
2
|
|
2183
2230
|
),
|
|
2184
|
-
/* @__PURE__ */
|
|
2231
|
+
/* @__PURE__ */ jsx34(
|
|
2185
2232
|
SmdChipLead,
|
|
2186
2233
|
{
|
|
2187
2234
|
position: {
|
|
@@ -2197,7 +2244,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2197
2244
|
},
|
|
2198
2245
|
3
|
|
2199
2246
|
),
|
|
2200
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ jsx34(
|
|
2201
2248
|
ChipBody,
|
|
2202
2249
|
{
|
|
2203
2250
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2210,8 +2257,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2210
2257
|
};
|
|
2211
2258
|
|
|
2212
2259
|
// lib/SOT-563.tsx
|
|
2213
|
-
import { Cuboid as
|
|
2214
|
-
import { Fragment as
|
|
2260
|
+
import { Cuboid as Cuboid25, Translate as Translate16, Rotate as Rotate6, Colorize as Colorize17 } from "jscad-fiber";
|
|
2261
|
+
import { Fragment as Fragment30, jsx as jsx35, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2215
2262
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
2216
2263
|
const bodyWidth = 1.2;
|
|
2217
2264
|
const bodyLength10 = 1.6;
|
|
@@ -2221,28 +2268,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2221
2268
|
const leadHeight = 0.13;
|
|
2222
2269
|
const leadSpacing = 0.5;
|
|
2223
2270
|
const bodyZOffset = -0.4;
|
|
2224
|
-
return /* @__PURE__ */
|
|
2225
|
-
/* @__PURE__ */
|
|
2271
|
+
return /* @__PURE__ */ jsxs32(Fragment30, { children: [
|
|
2272
|
+
/* @__PURE__ */ jsx35(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx35(Translate16, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx35(Colorize17, { color: "grey", children: /* @__PURE__ */ jsx35(Cuboid25, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2226
2273
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
2227
2274
|
// Left lead
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
|
|
2275
|
+
/* @__PURE__ */ jsx35(
|
|
2276
|
+
Translate16,
|
|
2230
2277
|
{
|
|
2231
2278
|
center: [
|
|
2232
2279
|
-bodyWidth / 2 - 0.03,
|
|
2233
2280
|
yOffset * leadSpacing,
|
|
2234
2281
|
leadHeight / 2
|
|
2235
2282
|
],
|
|
2236
|
-
children: /* @__PURE__ */
|
|
2283
|
+
children: /* @__PURE__ */ jsx35(Cuboid25, { size: [leadLength, leadWidth, leadHeight] })
|
|
2237
2284
|
},
|
|
2238
2285
|
`left-${index}`
|
|
2239
2286
|
),
|
|
2240
2287
|
// Right lead
|
|
2241
|
-
/* @__PURE__ */
|
|
2242
|
-
|
|
2288
|
+
/* @__PURE__ */ jsx35(
|
|
2289
|
+
Translate16,
|
|
2243
2290
|
{
|
|
2244
2291
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
2245
|
-
children: /* @__PURE__ */
|
|
2292
|
+
children: /* @__PURE__ */ jsx35(Cuboid25, { size: [leadLength, leadWidth, leadHeight] })
|
|
2246
2293
|
},
|
|
2247
2294
|
`right-${index}`
|
|
2248
2295
|
)
|
|
@@ -2251,8 +2298,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2251
2298
|
};
|
|
2252
2299
|
|
|
2253
2300
|
// lib/SOT-723.tsx
|
|
2254
|
-
import { Cuboid as
|
|
2255
|
-
import { Fragment as
|
|
2301
|
+
import { Cuboid as Cuboid26, Translate as Translate17, Rotate as Rotate7, Colorize as Colorize18 } from "jscad-fiber";
|
|
2302
|
+
import { Fragment as Fragment31, jsx as jsx36, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2256
2303
|
var getCcwSot723Coords = (pn) => {
|
|
2257
2304
|
if (pn === 1) {
|
|
2258
2305
|
return { x: 0, y: 0 };
|
|
@@ -2270,12 +2317,12 @@ var SOT723 = () => {
|
|
|
2270
2317
|
const leadLength = 0.3;
|
|
2271
2318
|
const leadHeight = 0.1;
|
|
2272
2319
|
const centerLeadWidth = 0.42;
|
|
2273
|
-
return /* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2320
|
+
return /* @__PURE__ */ jsxs33(Fragment31, { children: [
|
|
2321
|
+
/* @__PURE__ */ jsx36(Rotate7, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx36(Translate17, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx36(Colorize18, { color: "grey", children: /* @__PURE__ */ jsx36(Cuboid26, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2275
2322
|
[1, 2, 3].map((pn) => {
|
|
2276
2323
|
const { x, y } = getCcwSot723Coords(pn);
|
|
2277
|
-
return /* @__PURE__ */
|
|
2278
|
-
|
|
2324
|
+
return /* @__PURE__ */ jsx36(Translate17, { center: [x, y, 0], children: /* @__PURE__ */ jsx36(
|
|
2325
|
+
Cuboid26,
|
|
2279
2326
|
{
|
|
2280
2327
|
size: [
|
|
2281
2328
|
leadLength,
|
|
@@ -2289,7 +2336,7 @@ var SOT723 = () => {
|
|
|
2289
2336
|
};
|
|
2290
2337
|
|
|
2291
2338
|
// lib/sod-123.tsx
|
|
2292
|
-
import { Fragment as
|
|
2339
|
+
import { Fragment as Fragment32, jsx as jsx37, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2293
2340
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
2294
2341
|
const bodyWidth = 2.9;
|
|
2295
2342
|
const bodyLength10 = 1.3;
|
|
@@ -2300,8 +2347,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2300
2347
|
const padContactLength = 0.4;
|
|
2301
2348
|
const padThickness = leadThickness / 2;
|
|
2302
2349
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
2303
|
-
return /* @__PURE__ */
|
|
2304
|
-
/* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2351
|
+
/* @__PURE__ */ jsx37(
|
|
2305
2352
|
SmdChipLead,
|
|
2306
2353
|
{
|
|
2307
2354
|
position: {
|
|
@@ -2317,7 +2364,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2317
2364
|
},
|
|
2318
2365
|
1
|
|
2319
2366
|
),
|
|
2320
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ jsx37(
|
|
2321
2368
|
SmdChipLead,
|
|
2322
2369
|
{
|
|
2323
2370
|
rotation: Math.PI,
|
|
@@ -2334,7 +2381,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2334
2381
|
},
|
|
2335
2382
|
2
|
|
2336
2383
|
),
|
|
2337
|
-
/* @__PURE__ */
|
|
2384
|
+
/* @__PURE__ */ jsx37(
|
|
2338
2385
|
ChipBody,
|
|
2339
2386
|
{
|
|
2340
2387
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2371,6 +2418,7 @@ export {
|
|
|
2371
2418
|
SOD123,
|
|
2372
2419
|
SOD123F,
|
|
2373
2420
|
SOD523,
|
|
2421
|
+
SOD923,
|
|
2374
2422
|
SOT233P,
|
|
2375
2423
|
SOT563,
|
|
2376
2424
|
SOT723,
|