jscad-electronics 0.0.104 → 0.0.106
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 +7 -2
- package/dist/index.js +330 -182
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +149 -7
- package/dist/vanilla.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1013,20 +1013,22 @@ import { Fragment as Fragment16, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-
|
|
|
1013
1013
|
var PinRow = ({
|
|
1014
1014
|
numberOfPins,
|
|
1015
1015
|
pitch = 2.54,
|
|
1016
|
-
longSidePinLength = 6
|
|
1016
|
+
longSidePinLength = 6,
|
|
1017
|
+
invert
|
|
1017
1018
|
}) => {
|
|
1018
1019
|
const pinThickness = 0.63;
|
|
1019
1020
|
const bodyHeight = 2;
|
|
1020
1021
|
const bodyWidth = numberOfPins * pitch;
|
|
1021
1022
|
const shortSidePinLength = 3;
|
|
1022
1023
|
const xoff = -((numberOfPins - 1) / 2) * pitch;
|
|
1024
|
+
const flipZ = (z) => invert ? -z + bodyHeight : z;
|
|
1023
1025
|
return /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1024
1026
|
/* @__PURE__ */ jsx20(
|
|
1025
1027
|
Cuboid14,
|
|
1026
1028
|
{
|
|
1027
1029
|
color: "#222",
|
|
1028
1030
|
size: [bodyWidth, pinThickness * 3, bodyHeight],
|
|
1029
|
-
center: [0, 0, bodyHeight / 2
|
|
1031
|
+
center: [0, 0, flipZ(bodyHeight / 2)]
|
|
1030
1032
|
}
|
|
1031
1033
|
),
|
|
1032
1034
|
Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
@@ -1039,7 +1041,7 @@ var PinRow = ({
|
|
|
1039
1041
|
center: [
|
|
1040
1042
|
xoff + i * pitch,
|
|
1041
1043
|
0,
|
|
1042
|
-
bodyHeight * 0.9 + bodyHeight / 2
|
|
1044
|
+
flipZ(bodyHeight * 0.9 + bodyHeight / 2)
|
|
1043
1045
|
]
|
|
1044
1046
|
}
|
|
1045
1047
|
),
|
|
@@ -1052,7 +1054,11 @@ var PinRow = ({
|
|
|
1052
1054
|
pinThickness / 1.8,
|
|
1053
1055
|
shortSidePinLength
|
|
1054
1056
|
],
|
|
1055
|
-
center: [
|
|
1057
|
+
center: [
|
|
1058
|
+
xoff + i * pitch,
|
|
1059
|
+
0,
|
|
1060
|
+
flipZ(bodyHeight + bodyHeight / 2)
|
|
1061
|
+
]
|
|
1056
1062
|
}
|
|
1057
1063
|
)
|
|
1058
1064
|
] }) }),
|
|
@@ -1062,7 +1068,11 @@ var PinRow = ({
|
|
|
1062
1068
|
{
|
|
1063
1069
|
color: "gold",
|
|
1064
1070
|
size: [pinThickness, pinThickness, longSidePinLength * 0.9],
|
|
1065
|
-
center: [
|
|
1071
|
+
center: [
|
|
1072
|
+
xoff + i * pitch,
|
|
1073
|
+
0,
|
|
1074
|
+
flipZ(-longSidePinLength / 2 * 0.9)
|
|
1075
|
+
]
|
|
1066
1076
|
}
|
|
1067
1077
|
),
|
|
1068
1078
|
/* @__PURE__ */ jsx20(
|
|
@@ -1074,7 +1084,7 @@ var PinRow = ({
|
|
|
1074
1084
|
pinThickness / 1.8,
|
|
1075
1085
|
longSidePinLength
|
|
1076
1086
|
],
|
|
1077
|
-
center: [xoff + i * pitch, 0, -longSidePinLength / 2]
|
|
1087
|
+
center: [xoff + i * pitch, 0, flipZ(-longSidePinLength / 2)]
|
|
1078
1088
|
}
|
|
1079
1089
|
)
|
|
1080
1090
|
] }) })
|
|
@@ -1432,7 +1442,7 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1432
1442
|
};
|
|
1433
1443
|
|
|
1434
1444
|
// lib/FemaleHeader.tsx
|
|
1435
|
-
import { Cuboid as Cuboid16, Colorize as Colorize8, Hull as Hull3, Subtract as Subtract3, Cylinder as
|
|
1445
|
+
import { Cuboid as Cuboid16, Colorize as Colorize8, Hull as Hull3, Subtract as Subtract3, Cylinder as Cylinder3 } from "jscad-fiber";
|
|
1436
1446
|
import { Fragment as Fragment20, jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1437
1447
|
var FemaleHeader = ({
|
|
1438
1448
|
numberOfPins,
|
|
@@ -1459,7 +1469,7 @@ var FemaleHeader = ({
|
|
|
1459
1469
|
Array.from(
|
|
1460
1470
|
{ length: numberOfPins },
|
|
1461
1471
|
(_, i) => innerDiameter ? /* @__PURE__ */ jsx24(
|
|
1462
|
-
|
|
1472
|
+
Cylinder3,
|
|
1463
1473
|
{
|
|
1464
1474
|
height: bodyHeight + 0.1,
|
|
1465
1475
|
radius: innerDiameter / 2,
|
|
@@ -1513,7 +1523,7 @@ var FemaleHeader = ({
|
|
|
1513
1523
|
// lib/PushButton.tsx
|
|
1514
1524
|
import {
|
|
1515
1525
|
Colorize as Colorize9,
|
|
1516
|
-
Cylinder as
|
|
1526
|
+
Cylinder as Cylinder4,
|
|
1517
1527
|
ExtrudeLinear as ExtrudeLinear3,
|
|
1518
1528
|
Polygon as Polygon3,
|
|
1519
1529
|
Rotate as Rotate5,
|
|
@@ -1550,7 +1560,7 @@ var PushButton = ({
|
|
|
1550
1560
|
}
|
|
1551
1561
|
),
|
|
1552
1562
|
/* @__PURE__ */ jsx25(
|
|
1553
|
-
|
|
1563
|
+
Cylinder4,
|
|
1554
1564
|
{
|
|
1555
1565
|
color: "#1a1a1f",
|
|
1556
1566
|
height: bodyHeight * 0.8,
|
|
@@ -1559,7 +1569,7 @@ var PushButton = ({
|
|
|
1559
1569
|
}
|
|
1560
1570
|
),
|
|
1561
1571
|
/* @__PURE__ */ jsx25(
|
|
1562
|
-
|
|
1572
|
+
Cylinder4,
|
|
1563
1573
|
{
|
|
1564
1574
|
color: "#1a1a1f",
|
|
1565
1575
|
height: bodyHeight * 0.2,
|
|
@@ -1572,7 +1582,7 @@ var PushButton = ({
|
|
|
1572
1582
|
}
|
|
1573
1583
|
),
|
|
1574
1584
|
/* @__PURE__ */ jsx25(
|
|
1575
|
-
|
|
1585
|
+
Cylinder4,
|
|
1576
1586
|
{
|
|
1577
1587
|
color: "#1a1a1f",
|
|
1578
1588
|
height: bodyHeight * 0.2,
|
|
@@ -1585,7 +1595,7 @@ var PushButton = ({
|
|
|
1585
1595
|
}
|
|
1586
1596
|
),
|
|
1587
1597
|
/* @__PURE__ */ jsx25(
|
|
1588
|
-
|
|
1598
|
+
Cylinder4,
|
|
1589
1599
|
{
|
|
1590
1600
|
color: "#1a1a1f",
|
|
1591
1601
|
height: bodyHeight * 0.2,
|
|
@@ -1598,7 +1608,7 @@ var PushButton = ({
|
|
|
1598
1608
|
}
|
|
1599
1609
|
),
|
|
1600
1610
|
/* @__PURE__ */ jsx25(
|
|
1601
|
-
|
|
1611
|
+
Cylinder4,
|
|
1602
1612
|
{
|
|
1603
1613
|
color: "#1a1a1f",
|
|
1604
1614
|
height: bodyHeight * 0.2,
|
|
@@ -1836,7 +1846,7 @@ var VSSOP = ({
|
|
|
1836
1846
|
};
|
|
1837
1847
|
|
|
1838
1848
|
// lib/SOD523.tsx
|
|
1839
|
-
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as Translate9, Union as
|
|
1849
|
+
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as Translate9, Union as Union4 } from "jscad-fiber";
|
|
1840
1850
|
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1841
1851
|
var SOD523 = () => {
|
|
1842
1852
|
const fullWidth = 2.15;
|
|
@@ -1867,7 +1877,7 @@ var SOD523 = () => {
|
|
|
1867
1877
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1868
1878
|
}
|
|
1869
1879
|
),
|
|
1870
|
-
/* @__PURE__ */ jsx28(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs26(
|
|
1880
|
+
/* @__PURE__ */ jsx28(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs26(Union4, { children: [
|
|
1871
1881
|
/* @__PURE__ */ jsx28(Translate9, { z: straightHeight / 2, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1872
1882
|
/* @__PURE__ */ jsxs26(Hull4, { children: [
|
|
1873
1883
|
/* @__PURE__ */ jsx28(Translate9, { z: straightHeight, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
@@ -1949,7 +1959,7 @@ var SOD882 = () => {
|
|
|
1949
1959
|
};
|
|
1950
1960
|
|
|
1951
1961
|
// lib/SMA.tsx
|
|
1952
|
-
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as
|
|
1962
|
+
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union6, Hull as Hull6, Translate as Translate11 } from "jscad-fiber";
|
|
1953
1963
|
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1954
1964
|
var SMA = () => {
|
|
1955
1965
|
const bodyWidth = 4.4;
|
|
@@ -1961,7 +1971,7 @@ var SMA = () => {
|
|
|
1961
1971
|
const leadHeight = 1.14;
|
|
1962
1972
|
const taperOffset = 0.4;
|
|
1963
1973
|
const straightHeight = bodyHeight * 0.5;
|
|
1964
|
-
const Body = /* @__PURE__ */ jsx30(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(
|
|
1974
|
+
const Body = /* @__PURE__ */ jsx30(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(Union6, { children: [
|
|
1965
1975
|
/* @__PURE__ */ jsxs28(Hull6, { children: [
|
|
1966
1976
|
/* @__PURE__ */ jsx30(Translate11, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx30(
|
|
1967
1977
|
Cuboid20,
|
|
@@ -1989,7 +1999,7 @@ var SMA = () => {
|
|
|
1989
1999
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1990
2000
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1991
2001
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1992
|
-
return /* @__PURE__ */ jsx30(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs28(
|
|
2002
|
+
return /* @__PURE__ */ jsx30(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs28(Union6, { children: [
|
|
1993
2003
|
/* @__PURE__ */ jsx30(
|
|
1994
2004
|
Cuboid20,
|
|
1995
2005
|
{
|
|
@@ -2021,7 +2031,7 @@ var SMA = () => {
|
|
|
2021
2031
|
};
|
|
2022
2032
|
|
|
2023
2033
|
// lib/SMB.tsx
|
|
2024
|
-
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as
|
|
2034
|
+
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union7, Hull as Hull7, Translate as Translate12 } from "jscad-fiber";
|
|
2025
2035
|
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2026
2036
|
var SMB = () => {
|
|
2027
2037
|
const bodyWidth = 4.4;
|
|
@@ -2033,7 +2043,7 @@ var SMB = () => {
|
|
|
2033
2043
|
const leadHeight = 1.14;
|
|
2034
2044
|
const taperOffset = 0.4;
|
|
2035
2045
|
const straightHeight = bodyHeight * 0.5;
|
|
2036
|
-
const Body = /* @__PURE__ */ jsx31(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(
|
|
2046
|
+
const Body = /* @__PURE__ */ jsx31(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(Union7, { children: [
|
|
2037
2047
|
/* @__PURE__ */ jsxs29(Hull7, { children: [
|
|
2038
2048
|
/* @__PURE__ */ jsx31(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx31(
|
|
2039
2049
|
Cuboid21,
|
|
@@ -2061,7 +2071,7 @@ var SMB = () => {
|
|
|
2061
2071
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2062
2072
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2063
2073
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2064
|
-
return /* @__PURE__ */ jsx31(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(
|
|
2074
|
+
return /* @__PURE__ */ jsx31(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(Union7, { children: [
|
|
2065
2075
|
/* @__PURE__ */ jsx31(
|
|
2066
2076
|
Cuboid21,
|
|
2067
2077
|
{
|
|
@@ -2093,7 +2103,7 @@ var SMB = () => {
|
|
|
2093
2103
|
};
|
|
2094
2104
|
|
|
2095
2105
|
// lib/SMC.tsx
|
|
2096
|
-
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as
|
|
2106
|
+
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as Union8, Hull as Hull8, Translate as Translate13 } from "jscad-fiber";
|
|
2097
2107
|
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2098
2108
|
var SMC = () => {
|
|
2099
2109
|
const bodyWidth = 6.8;
|
|
@@ -2105,7 +2115,7 @@ var SMC = () => {
|
|
|
2105
2115
|
const leadHeight = 1.14;
|
|
2106
2116
|
const taperOffset = 0.4;
|
|
2107
2117
|
const straightHeight = bodyHeight * 0.5;
|
|
2108
|
-
const Body = /* @__PURE__ */ jsx32(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(
|
|
2118
|
+
const Body = /* @__PURE__ */ jsx32(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(Union8, { children: [
|
|
2109
2119
|
/* @__PURE__ */ jsxs30(Hull8, { children: [
|
|
2110
2120
|
/* @__PURE__ */ jsx32(Translate13, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx32(
|
|
2111
2121
|
Cuboid22,
|
|
@@ -2133,7 +2143,7 @@ var SMC = () => {
|
|
|
2133
2143
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2134
2144
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2135
2145
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2136
|
-
return /* @__PURE__ */ jsx32(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs30(
|
|
2146
|
+
return /* @__PURE__ */ jsx32(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs30(Union8, { children: [
|
|
2137
2147
|
/* @__PURE__ */ jsx32(
|
|
2138
2148
|
Cuboid22,
|
|
2139
2149
|
{
|
|
@@ -2165,7 +2175,7 @@ var SMC = () => {
|
|
|
2165
2175
|
};
|
|
2166
2176
|
|
|
2167
2177
|
// lib/SMF.tsx
|
|
2168
|
-
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as
|
|
2178
|
+
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as Union9 } from "jscad-fiber";
|
|
2169
2179
|
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2170
2180
|
var SMF = () => {
|
|
2171
2181
|
const fullWidth = 2.9;
|
|
@@ -2179,7 +2189,7 @@ var SMF = () => {
|
|
|
2179
2189
|
const rightPadCenterX = 1.3;
|
|
2180
2190
|
const taperOffset = 0.2;
|
|
2181
2191
|
const straightHeight = bodyHeight * 0.5;
|
|
2182
|
-
const Body = /* @__PURE__ */ jsx33(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs31(
|
|
2192
|
+
const Body = /* @__PURE__ */ jsx33(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs31(Union9, { children: [
|
|
2183
2193
|
/* @__PURE__ */ jsx33(Translate14, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2184
2194
|
/* @__PURE__ */ jsxs31(Hull9, { children: [
|
|
2185
2195
|
/* @__PURE__ */ jsx33(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2213,7 +2223,7 @@ var SMF = () => {
|
|
|
2213
2223
|
};
|
|
2214
2224
|
|
|
2215
2225
|
// lib/sod-123F.tsx
|
|
2216
|
-
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as
|
|
2226
|
+
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union10 } from "jscad-fiber";
|
|
2217
2227
|
import { Fragment as Fragment30, jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2218
2228
|
var SOD123F = () => {
|
|
2219
2229
|
const fullWidth = 2.7;
|
|
@@ -2243,7 +2253,7 @@ var SOD123F = () => {
|
|
|
2243
2253
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2244
2254
|
}
|
|
2245
2255
|
),
|
|
2246
|
-
/* @__PURE__ */ jsx34(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(
|
|
2256
|
+
/* @__PURE__ */ jsx34(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(Union10, { children: [
|
|
2247
2257
|
/* @__PURE__ */ jsx34(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2248
2258
|
/* @__PURE__ */ jsxs32(Hull10, { children: [
|
|
2249
2259
|
/* @__PURE__ */ jsx34(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2259,7 +2269,7 @@ var SOD123F = () => {
|
|
|
2259
2269
|
};
|
|
2260
2270
|
|
|
2261
2271
|
// lib/sod-123FL.tsx
|
|
2262
|
-
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as
|
|
2272
|
+
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as Union11 } from "jscad-fiber";
|
|
2263
2273
|
import { Fragment as Fragment31, jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2264
2274
|
var SOD123FL = () => {
|
|
2265
2275
|
const fullWidth = 2.75;
|
|
@@ -2289,7 +2299,7 @@ var SOD123FL = () => {
|
|
|
2289
2299
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2290
2300
|
}
|
|
2291
2301
|
),
|
|
2292
|
-
/* @__PURE__ */ jsx35(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(
|
|
2302
|
+
/* @__PURE__ */ jsx35(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(Union11, { children: [
|
|
2293
2303
|
/* @__PURE__ */ jsx35(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2294
2304
|
/* @__PURE__ */ jsxs33(Hull11, { children: [
|
|
2295
2305
|
/* @__PURE__ */ jsx35(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2313,7 +2323,7 @@ var SOD123FL = () => {
|
|
|
2313
2323
|
};
|
|
2314
2324
|
|
|
2315
2325
|
// lib/sod-123W.tsx
|
|
2316
|
-
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as
|
|
2326
|
+
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as Union12 } from "jscad-fiber";
|
|
2317
2327
|
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2318
2328
|
var SOD123W = () => {
|
|
2319
2329
|
const fullWidth = 2.6;
|
|
@@ -2344,7 +2354,7 @@ var SOD123W = () => {
|
|
|
2344
2354
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2345
2355
|
}
|
|
2346
2356
|
),
|
|
2347
|
-
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(
|
|
2357
|
+
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union12, { children: [
|
|
2348
2358
|
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2349
2359
|
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(
|
|
2350
2360
|
Cuboid26,
|
|
@@ -2389,7 +2399,7 @@ var SOD123W = () => {
|
|
|
2389
2399
|
};
|
|
2390
2400
|
|
|
2391
2401
|
// lib/sod-128.tsx
|
|
2392
|
-
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as
|
|
2402
|
+
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as Union13 } from "jscad-fiber";
|
|
2393
2403
|
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2394
2404
|
var SOD128 = () => {
|
|
2395
2405
|
const fullWidth = 3.8;
|
|
@@ -2420,7 +2430,7 @@ var SOD128 = () => {
|
|
|
2420
2430
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2421
2431
|
}
|
|
2422
2432
|
),
|
|
2423
|
-
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(
|
|
2433
|
+
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union13, { children: [
|
|
2424
2434
|
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2425
2435
|
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx37(
|
|
2426
2436
|
Cuboid27,
|
|
@@ -2465,7 +2475,7 @@ var SOD128 = () => {
|
|
|
2465
2475
|
};
|
|
2466
2476
|
|
|
2467
2477
|
// lib/SOD-923.tsx
|
|
2468
|
-
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as Translate19, Union as
|
|
2478
|
+
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as Translate19, Union as Union14 } from "jscad-fiber";
|
|
2469
2479
|
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2470
2480
|
var SOD923 = () => {
|
|
2471
2481
|
const fullWidth = 0.8;
|
|
@@ -2495,7 +2505,7 @@ var SOD923 = () => {
|
|
|
2495
2505
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2496
2506
|
}
|
|
2497
2507
|
),
|
|
2498
|
-
/* @__PURE__ */ jsx38(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(
|
|
2508
|
+
/* @__PURE__ */ jsx38(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(Union14, { children: [
|
|
2499
2509
|
/* @__PURE__ */ jsx38(Translate19, { z: straightHeight / 2, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2500
2510
|
/* @__PURE__ */ jsxs36(Hull14, { children: [
|
|
2501
2511
|
/* @__PURE__ */ jsx38(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2899,7 +2909,7 @@ var LQFP = ({
|
|
|
2899
2909
|
};
|
|
2900
2910
|
|
|
2901
2911
|
// lib/SOT-723.tsx
|
|
2902
|
-
import { Cuboid as Cuboid29, Translate as Translate20, Colorize as Colorize21, Hull as Hull15, Union as
|
|
2912
|
+
import { Cuboid as Cuboid29, Translate as Translate20, Colorize as Colorize21, Hull as Hull15, Union as Union15 } from "jscad-fiber";
|
|
2903
2913
|
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2904
2914
|
var SOT723 = () => {
|
|
2905
2915
|
const bodyWidth = 0.85;
|
|
@@ -2918,7 +2928,7 @@ var SOT723 = () => {
|
|
|
2918
2928
|
const leftBottomPadCenterX = -0.55;
|
|
2919
2929
|
const leftBottomPadCenterY = -0.4;
|
|
2920
2930
|
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2921
|
-
/* @__PURE__ */ jsx43(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs41(
|
|
2931
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs41(Union15, { children: [
|
|
2922
2932
|
/* @__PURE__ */ jsx43(
|
|
2923
2933
|
Cuboid29,
|
|
2924
2934
|
{
|
|
@@ -3034,7 +3044,7 @@ var DFN = ({
|
|
|
3034
3044
|
};
|
|
3035
3045
|
|
|
3036
3046
|
// lib/hc49.tsx
|
|
3037
|
-
import { Colorize as Colorize22, Cylinder as
|
|
3047
|
+
import { Colorize as Colorize22, Cylinder as Cylinder5, Hull as Hull16, RoundedCylinder } from "jscad-fiber";
|
|
3038
3048
|
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3039
3049
|
var HC49 = ({
|
|
3040
3050
|
bodyLength: bodyLength10 = 10.2,
|
|
@@ -3096,7 +3106,7 @@ var HC49 = ({
|
|
|
3096
3106
|
] }),
|
|
3097
3107
|
/* @__PURE__ */ jsxs43(Colorize22, { color: leadColor, children: [
|
|
3098
3108
|
/* @__PURE__ */ jsx45(
|
|
3099
|
-
|
|
3109
|
+
Cylinder5,
|
|
3100
3110
|
{
|
|
3101
3111
|
height: leadLength + bodyHeight / 2,
|
|
3102
3112
|
radius: leadDiameter / 2,
|
|
@@ -3104,7 +3114,7 @@ var HC49 = ({
|
|
|
3104
3114
|
}
|
|
3105
3115
|
),
|
|
3106
3116
|
/* @__PURE__ */ jsx45(
|
|
3107
|
-
|
|
3117
|
+
Cylinder5,
|
|
3108
3118
|
{
|
|
3109
3119
|
height: leadLength + bodyHeight / 2,
|
|
3110
3120
|
radius: leadDiameter / 2,
|
|
@@ -3118,7 +3128,7 @@ var HC49 = ({
|
|
|
3118
3128
|
// lib/MicroMELF.tsx
|
|
3119
3129
|
import {
|
|
3120
3130
|
Colorize as Colorize23,
|
|
3121
|
-
Cylinder as
|
|
3131
|
+
Cylinder as Cylinder6,
|
|
3122
3132
|
RoundedCylinder as RoundedCylinder2,
|
|
3123
3133
|
Rotate as Rotate6,
|
|
3124
3134
|
RoundedCuboid as RoundedCuboid2
|
|
@@ -3143,7 +3153,7 @@ var MicroMELF = ({
|
|
|
3143
3153
|
}
|
|
3144
3154
|
),
|
|
3145
3155
|
/* @__PURE__ */ jsx46(
|
|
3146
|
-
|
|
3156
|
+
Cylinder6,
|
|
3147
3157
|
{
|
|
3148
3158
|
height: padLength / 2,
|
|
3149
3159
|
radius: bodyDiameter / 2 - padLength,
|
|
@@ -3407,7 +3417,7 @@ import {
|
|
|
3407
3417
|
Hull as Hull17,
|
|
3408
3418
|
Rotate as Rotate9,
|
|
3409
3419
|
Translate as Translate21,
|
|
3410
|
-
Cylinder as
|
|
3420
|
+
Cylinder as Cylinder7,
|
|
3411
3421
|
Subtract as Subtract4
|
|
3412
3422
|
} from "jscad-fiber";
|
|
3413
3423
|
import { Fragment as Fragment47, jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
@@ -3441,7 +3451,7 @@ var TO220 = () => {
|
|
|
3441
3451
|
}
|
|
3442
3452
|
),
|
|
3443
3453
|
/* @__PURE__ */ jsx51(
|
|
3444
|
-
|
|
3454
|
+
Cylinder7,
|
|
3445
3455
|
{
|
|
3446
3456
|
color: "black",
|
|
3447
3457
|
center: [padCenterX, 0, padThickness - 2],
|
|
@@ -3617,16 +3627,81 @@ var SOT457 = () => {
|
|
|
3617
3627
|
] });
|
|
3618
3628
|
};
|
|
3619
3629
|
|
|
3630
|
+
// lib/SOT-963.tsx
|
|
3631
|
+
import { Cuboid as Cuboid34 } from "jscad-fiber";
|
|
3632
|
+
import { Fragment as Fragment49, jsx as jsx53, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3633
|
+
var SOT963 = () => {
|
|
3634
|
+
const bodyWidth = 0.8;
|
|
3635
|
+
const bodyLength10 = 1;
|
|
3636
|
+
const bodyHeight = 0.37;
|
|
3637
|
+
const terminalWidth = 0.15;
|
|
3638
|
+
const terminalLength = 0.19;
|
|
3639
|
+
const terminalThickness = 0.12;
|
|
3640
|
+
const pitch = 0.35;
|
|
3641
|
+
const pinsPerSide = 3;
|
|
3642
|
+
const pinSpan = pitch * (pinsPerSide - 1);
|
|
3643
|
+
return /* @__PURE__ */ jsxs51(Fragment49, { children: [
|
|
3644
|
+
/* @__PURE__ */ jsx53(
|
|
3645
|
+
ChipBody,
|
|
3646
|
+
{
|
|
3647
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3648
|
+
width: bodyWidth,
|
|
3649
|
+
length: bodyLength10,
|
|
3650
|
+
height: bodyHeight,
|
|
3651
|
+
heightAboveSurface: 0,
|
|
3652
|
+
color: "#1a1a1a",
|
|
3653
|
+
taperRatio: 0.15,
|
|
3654
|
+
straightHeightRatio: 0,
|
|
3655
|
+
notchPosition: {
|
|
3656
|
+
x: -bodyWidth / 4,
|
|
3657
|
+
y: pinSpan / 2.2,
|
|
3658
|
+
z: bodyHeight + 0.1
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
),
|
|
3662
|
+
[0, 1, 2].map((i) => {
|
|
3663
|
+
const y = -pinSpan / 2 + i * pitch;
|
|
3664
|
+
return /* @__PURE__ */ jsx53(
|
|
3665
|
+
Cuboid34,
|
|
3666
|
+
{
|
|
3667
|
+
center: [
|
|
3668
|
+
-bodyWidth / 2 + terminalLength / 2 - 0.1,
|
|
3669
|
+
y,
|
|
3670
|
+
terminalThickness / 2
|
|
3671
|
+
],
|
|
3672
|
+
size: [terminalLength, terminalWidth, terminalThickness]
|
|
3673
|
+
},
|
|
3674
|
+
`left-${i}`
|
|
3675
|
+
);
|
|
3676
|
+
}),
|
|
3677
|
+
[0, 1, 2].map((i) => {
|
|
3678
|
+
const y = -pinSpan / 2 + i * pitch;
|
|
3679
|
+
return /* @__PURE__ */ jsx53(
|
|
3680
|
+
Cuboid34,
|
|
3681
|
+
{
|
|
3682
|
+
center: [
|
|
3683
|
+
bodyWidth / 2 - terminalLength / 2 + 0.1,
|
|
3684
|
+
y,
|
|
3685
|
+
terminalThickness / 2
|
|
3686
|
+
],
|
|
3687
|
+
size: [terminalLength, terminalWidth, terminalThickness]
|
|
3688
|
+
},
|
|
3689
|
+
`right-${i}`
|
|
3690
|
+
);
|
|
3691
|
+
})
|
|
3692
|
+
] });
|
|
3693
|
+
};
|
|
3694
|
+
|
|
3620
3695
|
// lib/TO92.tsx
|
|
3621
3696
|
import {
|
|
3622
3697
|
Colorize as Colorize27,
|
|
3623
|
-
Cuboid as
|
|
3698
|
+
Cuboid as Cuboid35,
|
|
3624
3699
|
Hull as Hull18,
|
|
3625
3700
|
Translate as Translate22,
|
|
3626
|
-
Cylinder as
|
|
3701
|
+
Cylinder as Cylinder8,
|
|
3627
3702
|
Subtract as Subtract5
|
|
3628
3703
|
} from "jscad-fiber";
|
|
3629
|
-
import { jsx as
|
|
3704
|
+
import { jsx as jsx54, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3630
3705
|
var TO92 = () => {
|
|
3631
3706
|
const bodyRadius = 2.4;
|
|
3632
3707
|
const bodyHeight = 4.5;
|
|
@@ -3647,24 +3722,24 @@ var TO92 = () => {
|
|
|
3647
3722
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3648
3723
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3649
3724
|
const sideLeadZ = -7.5;
|
|
3650
|
-
return /* @__PURE__ */
|
|
3651
|
-
/* @__PURE__ */
|
|
3652
|
-
/* @__PURE__ */
|
|
3653
|
-
/* @__PURE__ */
|
|
3725
|
+
return /* @__PURE__ */ jsxs52(Translate22, { center: [0, 1, 10.5], children: [
|
|
3726
|
+
/* @__PURE__ */ jsx54(Colorize27, { color: bodyColor, children: /* @__PURE__ */ jsxs52(Subtract5, { children: [
|
|
3727
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx54(Cylinder8, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3728
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3654
3729
|
] }) }),
|
|
3655
|
-
/* @__PURE__ */
|
|
3656
|
-
/* @__PURE__ */
|
|
3657
|
-
/* @__PURE__ */
|
|
3658
|
-
/* @__PURE__ */
|
|
3730
|
+
/* @__PURE__ */ jsx54(Translate22, { center: leadTipPos1, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadTipSize }) }),
|
|
3731
|
+
/* @__PURE__ */ jsxs52(Hull18, { children: [
|
|
3732
|
+
/* @__PURE__ */ jsx54(Translate22, { center: leadMidPosA, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadSmallSize }) }),
|
|
3733
|
+
/* @__PURE__ */ jsx54(Translate22, { center: leadMidPosB, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadSmallSize }) })
|
|
3659
3734
|
] }),
|
|
3660
|
-
/* @__PURE__ */
|
|
3661
|
-
/* @__PURE__ */
|
|
3662
|
-
/* @__PURE__ */
|
|
3735
|
+
/* @__PURE__ */ jsx54(Translate22, { center: leadTipPos2, children: /* @__PURE__ */ jsx54(Cuboid35, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3736
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [leadLength, legWidth, 15] }) }),
|
|
3737
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [leadLength, legWidth, 15] }) })
|
|
3663
3738
|
] });
|
|
3664
3739
|
};
|
|
3665
3740
|
|
|
3666
3741
|
// lib/SOT-363.tsx
|
|
3667
|
-
import { Fragment as
|
|
3742
|
+
import { Fragment as Fragment50, jsx as jsx55, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3668
3743
|
var SOT363 = () => {
|
|
3669
3744
|
const fullWidth = 2;
|
|
3670
3745
|
const bodyWidth = 1.25;
|
|
@@ -3675,8 +3750,8 @@ var SOT363 = () => {
|
|
|
3675
3750
|
const leadHeight = 0.85;
|
|
3676
3751
|
const padContactLength = 0.3;
|
|
3677
3752
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3678
|
-
return /* @__PURE__ */
|
|
3679
|
-
/* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsxs53(Fragment50, { children: [
|
|
3754
|
+
/* @__PURE__ */ jsx55(
|
|
3680
3755
|
SmdChipLead,
|
|
3681
3756
|
{
|
|
3682
3757
|
rotation: Math.PI,
|
|
@@ -3693,7 +3768,7 @@ var SOT363 = () => {
|
|
|
3693
3768
|
},
|
|
3694
3769
|
1
|
|
3695
3770
|
),
|
|
3696
|
-
/* @__PURE__ */
|
|
3771
|
+
/* @__PURE__ */ jsx55(
|
|
3697
3772
|
SmdChipLead,
|
|
3698
3773
|
{
|
|
3699
3774
|
rotation: Math.PI,
|
|
@@ -3710,7 +3785,7 @@ var SOT363 = () => {
|
|
|
3710
3785
|
},
|
|
3711
3786
|
2
|
|
3712
3787
|
),
|
|
3713
|
-
/* @__PURE__ */
|
|
3788
|
+
/* @__PURE__ */ jsx55(
|
|
3714
3789
|
SmdChipLead,
|
|
3715
3790
|
{
|
|
3716
3791
|
rotation: Math.PI,
|
|
@@ -3727,7 +3802,7 @@ var SOT363 = () => {
|
|
|
3727
3802
|
},
|
|
3728
3803
|
3
|
|
3729
3804
|
),
|
|
3730
|
-
/* @__PURE__ */
|
|
3805
|
+
/* @__PURE__ */ jsx55(
|
|
3731
3806
|
SmdChipLead,
|
|
3732
3807
|
{
|
|
3733
3808
|
position: {
|
|
@@ -3743,7 +3818,7 @@ var SOT363 = () => {
|
|
|
3743
3818
|
},
|
|
3744
3819
|
3
|
|
3745
3820
|
),
|
|
3746
|
-
/* @__PURE__ */
|
|
3821
|
+
/* @__PURE__ */ jsx55(
|
|
3747
3822
|
SmdChipLead,
|
|
3748
3823
|
{
|
|
3749
3824
|
position: {
|
|
@@ -3759,7 +3834,7 @@ var SOT363 = () => {
|
|
|
3759
3834
|
},
|
|
3760
3835
|
1
|
|
3761
3836
|
),
|
|
3762
|
-
/* @__PURE__ */
|
|
3837
|
+
/* @__PURE__ */ jsx55(
|
|
3763
3838
|
SmdChipLead,
|
|
3764
3839
|
{
|
|
3765
3840
|
position: {
|
|
@@ -3775,7 +3850,7 @@ var SOT363 = () => {
|
|
|
3775
3850
|
},
|
|
3776
3851
|
2
|
|
3777
3852
|
),
|
|
3778
|
-
/* @__PURE__ */
|
|
3853
|
+
/* @__PURE__ */ jsx55(
|
|
3779
3854
|
ChipBody,
|
|
3780
3855
|
{
|
|
3781
3856
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3795,9 +3870,69 @@ var SOT363 = () => {
|
|
|
3795
3870
|
};
|
|
3796
3871
|
var SOT_363_default = SOT363;
|
|
3797
3872
|
|
|
3873
|
+
// lib/SOT-886.tsx
|
|
3874
|
+
import { Cuboid as Cuboid36 } from "jscad-fiber";
|
|
3875
|
+
import { Fragment as Fragment51, jsx as jsx56, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3876
|
+
var SOT886 = () => {
|
|
3877
|
+
const bodyWidth = 1;
|
|
3878
|
+
const bodyLength10 = 1.45;
|
|
3879
|
+
const bodyHeight = 0.5;
|
|
3880
|
+
const terminalWidth = 0.2;
|
|
3881
|
+
const terminalLength = 0.3;
|
|
3882
|
+
const terminalThickness = 0.05;
|
|
3883
|
+
const pitch = 0.5;
|
|
3884
|
+
const pinsPerSide = 3;
|
|
3885
|
+
const pinSpan = pitch * (pinsPerSide - 1);
|
|
3886
|
+
return /* @__PURE__ */ jsxs54(Fragment51, { children: [
|
|
3887
|
+
/* @__PURE__ */ jsx56(
|
|
3888
|
+
ChipBody,
|
|
3889
|
+
{
|
|
3890
|
+
center: { x: 0, y: 0, z: terminalThickness },
|
|
3891
|
+
width: bodyWidth,
|
|
3892
|
+
length: bodyLength10,
|
|
3893
|
+
height: bodyHeight,
|
|
3894
|
+
heightAboveSurface: 0,
|
|
3895
|
+
color: "#1a1a1a",
|
|
3896
|
+
taperRatio: 0,
|
|
3897
|
+
includeNotch: false
|
|
3898
|
+
}
|
|
3899
|
+
),
|
|
3900
|
+
[0, 1, 2].map((i) => {
|
|
3901
|
+
const y = -pinSpan / 2 + i * pitch;
|
|
3902
|
+
return /* @__PURE__ */ jsx56(
|
|
3903
|
+
Cuboid36,
|
|
3904
|
+
{
|
|
3905
|
+
center: [
|
|
3906
|
+
-bodyWidth / 2 + terminalLength / 2,
|
|
3907
|
+
y,
|
|
3908
|
+
terminalThickness / 2
|
|
3909
|
+
],
|
|
3910
|
+
size: [terminalLength, terminalWidth, terminalThickness]
|
|
3911
|
+
},
|
|
3912
|
+
`left-${i}`
|
|
3913
|
+
);
|
|
3914
|
+
}),
|
|
3915
|
+
[0, 1, 2].map((i) => {
|
|
3916
|
+
const y = -pinSpan / 2 + i * pitch;
|
|
3917
|
+
return /* @__PURE__ */ jsx56(
|
|
3918
|
+
Cuboid36,
|
|
3919
|
+
{
|
|
3920
|
+
center: [
|
|
3921
|
+
bodyWidth / 2 - terminalLength / 2,
|
|
3922
|
+
y,
|
|
3923
|
+
terminalThickness / 2
|
|
3924
|
+
],
|
|
3925
|
+
size: [terminalLength, terminalWidth, terminalThickness]
|
|
3926
|
+
},
|
|
3927
|
+
`right-${i}`
|
|
3928
|
+
);
|
|
3929
|
+
})
|
|
3930
|
+
] });
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3798
3933
|
// lib/sod-323.tsx
|
|
3799
|
-
import { Colorize as Colorize28, Cuboid as
|
|
3800
|
-
import { Fragment as
|
|
3934
|
+
import { Colorize as Colorize28, Cuboid as Cuboid37 } from "jscad-fiber";
|
|
3935
|
+
import { Fragment as Fragment52, jsx as jsx57, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
3801
3936
|
var SOD323 = () => {
|
|
3802
3937
|
const fullWidth = 2.5;
|
|
3803
3938
|
const bodyLength10 = 1.25;
|
|
@@ -3809,8 +3944,8 @@ var SOD323 = () => {
|
|
|
3809
3944
|
const padCenterX = bodyWidth / 2;
|
|
3810
3945
|
const bodyDistance = 0.45;
|
|
3811
3946
|
const leadHeight = 0.7;
|
|
3812
|
-
return /* @__PURE__ */
|
|
3813
|
-
/* @__PURE__ */
|
|
3947
|
+
return /* @__PURE__ */ jsxs55(Fragment52, { children: [
|
|
3948
|
+
/* @__PURE__ */ jsx57(
|
|
3814
3949
|
SmdChipLead,
|
|
3815
3950
|
{
|
|
3816
3951
|
position: {
|
|
@@ -3826,7 +3961,7 @@ var SOD323 = () => {
|
|
|
3826
3961
|
},
|
|
3827
3962
|
1
|
|
3828
3963
|
),
|
|
3829
|
-
/* @__PURE__ */
|
|
3964
|
+
/* @__PURE__ */ jsx57(
|
|
3830
3965
|
SmdChipLead,
|
|
3831
3966
|
{
|
|
3832
3967
|
rotation: Math.PI,
|
|
@@ -3843,7 +3978,7 @@ var SOD323 = () => {
|
|
|
3843
3978
|
},
|
|
3844
3979
|
1
|
|
3845
3980
|
),
|
|
3846
|
-
/* @__PURE__ */
|
|
3981
|
+
/* @__PURE__ */ jsx57(Colorize28, { color: "#222", children: /* @__PURE__ */ jsx57(
|
|
3847
3982
|
ChipBody,
|
|
3848
3983
|
{
|
|
3849
3984
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3856,8 +3991,8 @@ var SOD323 = () => {
|
|
|
3856
3991
|
heightAboveSurface: 0.05
|
|
3857
3992
|
}
|
|
3858
3993
|
) }),
|
|
3859
|
-
/* @__PURE__ */
|
|
3860
|
-
|
|
3994
|
+
/* @__PURE__ */ jsx57(
|
|
3995
|
+
Cuboid37,
|
|
3861
3996
|
{
|
|
3862
3997
|
color: "#777",
|
|
3863
3998
|
size: [bodyWidth / 3, bodyLength10 - 0.075, 0.02],
|
|
@@ -3868,8 +4003,8 @@ var SOD323 = () => {
|
|
|
3868
4003
|
};
|
|
3869
4004
|
|
|
3870
4005
|
// lib/sod-323F.tsx
|
|
3871
|
-
import { Colorize as Colorize29, Cuboid as
|
|
3872
|
-
import { Fragment as
|
|
4006
|
+
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as Translate24, Union as Union17 } from "jscad-fiber";
|
|
4007
|
+
import { Fragment as Fragment53, jsx as jsx58, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
3873
4008
|
var SOD323F = () => {
|
|
3874
4009
|
const fullWidth = 1.7;
|
|
3875
4010
|
const bodyLength10 = 1.25;
|
|
@@ -3881,37 +4016,37 @@ var SOD323F = () => {
|
|
|
3881
4016
|
const rightPadCenterX = fullWidth / 2 + padLength / 2;
|
|
3882
4017
|
const taperOffset = 0.2;
|
|
3883
4018
|
const straightHeight = padThickness;
|
|
3884
|
-
return /* @__PURE__ */
|
|
3885
|
-
/* @__PURE__ */
|
|
3886
|
-
|
|
4019
|
+
return /* @__PURE__ */ jsxs56(Fragment53, { children: [
|
|
4020
|
+
/* @__PURE__ */ jsx58(
|
|
4021
|
+
Cuboid38,
|
|
3887
4022
|
{
|
|
3888
4023
|
color: "#ccc",
|
|
3889
4024
|
size: [padLength, padWidth, padThickness],
|
|
3890
4025
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
3891
4026
|
}
|
|
3892
4027
|
),
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
|
|
4028
|
+
/* @__PURE__ */ jsx58(
|
|
4029
|
+
Cuboid38,
|
|
3895
4030
|
{
|
|
3896
4031
|
color: "#ccc",
|
|
3897
4032
|
size: [padLength, padWidth, padThickness],
|
|
3898
4033
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
3899
4034
|
}
|
|
3900
4035
|
),
|
|
3901
|
-
/* @__PURE__ */
|
|
3902
|
-
/* @__PURE__ */
|
|
3903
|
-
/* @__PURE__ */
|
|
3904
|
-
/* @__PURE__ */
|
|
3905
|
-
/* @__PURE__ */
|
|
3906
|
-
|
|
4036
|
+
/* @__PURE__ */ jsx58(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs56(Union17, { children: [
|
|
4037
|
+
/* @__PURE__ */ jsx58(Translate24, { z: straightHeight / 2, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
4038
|
+
/* @__PURE__ */ jsxs56(Hull20, { children: [
|
|
4039
|
+
/* @__PURE__ */ jsx58(Translate24, { z: straightHeight, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
4040
|
+
/* @__PURE__ */ jsx58(Translate24, { z: bodyHeight, children: /* @__PURE__ */ jsx58(
|
|
4041
|
+
Cuboid38,
|
|
3907
4042
|
{
|
|
3908
4043
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
3909
4044
|
}
|
|
3910
4045
|
) })
|
|
3911
4046
|
] })
|
|
3912
4047
|
] }) }),
|
|
3913
|
-
/* @__PURE__ */
|
|
3914
|
-
|
|
4048
|
+
/* @__PURE__ */ jsx58(
|
|
4049
|
+
Cuboid38,
|
|
3915
4050
|
{
|
|
3916
4051
|
color: "#777",
|
|
3917
4052
|
size: [fullWidth / 3, bodyLength10 - taperOffset, 0.02],
|
|
@@ -3922,8 +4057,8 @@ var SOD323F = () => {
|
|
|
3922
4057
|
};
|
|
3923
4058
|
|
|
3924
4059
|
// lib/sod-323FL.tsx
|
|
3925
|
-
import { Colorize as Colorize30, Cuboid as
|
|
3926
|
-
import { Fragment as
|
|
4060
|
+
import { Colorize as Colorize30, Cuboid as Cuboid39 } from "jscad-fiber";
|
|
4061
|
+
import { Fragment as Fragment54, jsx as jsx59, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
3927
4062
|
var SOD323FL = () => {
|
|
3928
4063
|
const fullWidth = 1.775;
|
|
3929
4064
|
const bodyLength10 = 1.25;
|
|
@@ -3934,24 +4069,24 @@ var SOD323FL = () => {
|
|
|
3934
4069
|
const leftPadCenterX = -fullWidth / 2 - padLength / 2 + 0.04;
|
|
3935
4070
|
const rightPadCenterX = fullWidth / 2 + padLength / 2 - 0.04;
|
|
3936
4071
|
const taperOffset = 0.2;
|
|
3937
|
-
return /* @__PURE__ */
|
|
3938
|
-
/* @__PURE__ */
|
|
3939
|
-
|
|
4072
|
+
return /* @__PURE__ */ jsxs57(Fragment54, { children: [
|
|
4073
|
+
/* @__PURE__ */ jsx59(
|
|
4074
|
+
Cuboid39,
|
|
3940
4075
|
{
|
|
3941
4076
|
color: "#ccc",
|
|
3942
4077
|
size: [padLength, padWidth, padThickness],
|
|
3943
4078
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
3944
4079
|
}
|
|
3945
4080
|
),
|
|
3946
|
-
/* @__PURE__ */
|
|
3947
|
-
|
|
4081
|
+
/* @__PURE__ */ jsx59(
|
|
4082
|
+
Cuboid39,
|
|
3948
4083
|
{
|
|
3949
4084
|
color: "#ccc",
|
|
3950
4085
|
size: [padLength, padWidth, padThickness],
|
|
3951
4086
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
3952
4087
|
}
|
|
3953
4088
|
),
|
|
3954
|
-
/* @__PURE__ */
|
|
4089
|
+
/* @__PURE__ */ jsx59(Colorize30, { color: "#222", children: /* @__PURE__ */ jsx59(
|
|
3955
4090
|
ChipBody,
|
|
3956
4091
|
{
|
|
3957
4092
|
width: fullWidth,
|
|
@@ -3964,8 +4099,8 @@ var SOD323FL = () => {
|
|
|
3964
4099
|
includeNotch: false
|
|
3965
4100
|
}
|
|
3966
4101
|
) }),
|
|
3967
|
-
/* @__PURE__ */
|
|
3968
|
-
|
|
4102
|
+
/* @__PURE__ */ jsx59(
|
|
4103
|
+
Cuboid39,
|
|
3969
4104
|
{
|
|
3970
4105
|
color: "#777",
|
|
3971
4106
|
size: [fullWidth / 3, bodyLength10 - 0.05, 0.02],
|
|
@@ -3976,14 +4111,14 @@ var SOD323FL = () => {
|
|
|
3976
4111
|
};
|
|
3977
4112
|
|
|
3978
4113
|
// lib/Footprinter3d.tsx
|
|
3979
|
-
import { jsx as
|
|
4114
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
3980
4115
|
var Footprinter3d = ({ footprint }) => {
|
|
3981
4116
|
const fpJson = fp3.string(footprint).json();
|
|
3982
4117
|
switch (fpJson.fn) {
|
|
3983
4118
|
case "dip":
|
|
3984
|
-
return /* @__PURE__ */
|
|
4119
|
+
return /* @__PURE__ */ jsx60(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3985
4120
|
case "tssop":
|
|
3986
|
-
return /* @__PURE__ */
|
|
4121
|
+
return /* @__PURE__ */ jsx60(
|
|
3987
4122
|
Tssop,
|
|
3988
4123
|
{
|
|
3989
4124
|
pinCount: fpJson.num_pins,
|
|
@@ -3994,7 +4129,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3994
4129
|
}
|
|
3995
4130
|
);
|
|
3996
4131
|
case "msop":
|
|
3997
|
-
return /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ jsx60(
|
|
3998
4133
|
MSOP,
|
|
3999
4134
|
{
|
|
4000
4135
|
pinCount: fpJson.num_pins,
|
|
@@ -4005,7 +4140,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4005
4140
|
}
|
|
4006
4141
|
);
|
|
4007
4142
|
case "vssop":
|
|
4008
|
-
return /* @__PURE__ */
|
|
4143
|
+
return /* @__PURE__ */ jsx60(
|
|
4009
4144
|
VSSOP,
|
|
4010
4145
|
{
|
|
4011
4146
|
pinCount: fpJson.num_pins,
|
|
@@ -4017,7 +4152,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4017
4152
|
}
|
|
4018
4153
|
);
|
|
4019
4154
|
case "qfp":
|
|
4020
|
-
return /* @__PURE__ */
|
|
4155
|
+
return /* @__PURE__ */ jsx60(
|
|
4021
4156
|
QFP,
|
|
4022
4157
|
{
|
|
4023
4158
|
pinCount: fpJson.num_pins,
|
|
@@ -4028,12 +4163,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4028
4163
|
}
|
|
4029
4164
|
);
|
|
4030
4165
|
case "tqfp":
|
|
4031
|
-
return /* @__PURE__ */
|
|
4166
|
+
return /* @__PURE__ */ jsx60(tqfp_default, {});
|
|
4032
4167
|
case "lqfp":
|
|
4033
|
-
return /* @__PURE__ */
|
|
4168
|
+
return /* @__PURE__ */ jsx60(LQFP, { pinCount: fpJson.num_pins });
|
|
4034
4169
|
case "qfn": {
|
|
4035
4170
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4036
|
-
return /* @__PURE__ */
|
|
4171
|
+
return /* @__PURE__ */ jsx60(
|
|
4037
4172
|
qfn_default,
|
|
4038
4173
|
{
|
|
4039
4174
|
num_pins: fpJson.num_pins,
|
|
@@ -4051,7 +4186,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4051
4186
|
}
|
|
4052
4187
|
case "dfn": {
|
|
4053
4188
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4054
|
-
return /* @__PURE__ */
|
|
4189
|
+
return /* @__PURE__ */ jsx60(
|
|
4055
4190
|
DFN,
|
|
4056
4191
|
{
|
|
4057
4192
|
num_pins: fpJson.num_pins,
|
|
@@ -4069,49 +4204,60 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4069
4204
|
}
|
|
4070
4205
|
case "pinrow":
|
|
4071
4206
|
if (fpJson.male)
|
|
4072
|
-
return /* @__PURE__ */
|
|
4207
|
+
return /* @__PURE__ */ jsx60(
|
|
4208
|
+
PinRow,
|
|
4209
|
+
{
|
|
4210
|
+
numberOfPins: fpJson.num_pins,
|
|
4211
|
+
pitch: fpJson.p,
|
|
4212
|
+
invert: fpJson.invert
|
|
4213
|
+
}
|
|
4214
|
+
);
|
|
4073
4215
|
if (fpJson.female)
|
|
4074
|
-
return /* @__PURE__ */
|
|
4216
|
+
return /* @__PURE__ */ jsx60(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
4075
4217
|
case "cap": {
|
|
4076
4218
|
switch (fpJson.imperial) {
|
|
4077
4219
|
case "0402":
|
|
4078
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ jsx60(A0402, { color: "#856c4d" });
|
|
4079
4221
|
case "0603":
|
|
4080
|
-
return /* @__PURE__ */
|
|
4222
|
+
return /* @__PURE__ */ jsx60(A0603, { color: "#856c4d" });
|
|
4081
4223
|
case "0805":
|
|
4082
|
-
return /* @__PURE__ */
|
|
4224
|
+
return /* @__PURE__ */ jsx60(A0805, { color: "#856c4d" });
|
|
4083
4225
|
case "0201":
|
|
4084
|
-
return /* @__PURE__ */
|
|
4226
|
+
return /* @__PURE__ */ jsx60(A0201, { color: "#856c4d" });
|
|
4085
4227
|
case "01005":
|
|
4086
|
-
return /* @__PURE__ */
|
|
4228
|
+
return /* @__PURE__ */ jsx60(A01005, { color: "#856c4d" });
|
|
4087
4229
|
case "1206":
|
|
4088
|
-
return /* @__PURE__ */
|
|
4230
|
+
return /* @__PURE__ */ jsx60(A1206, { color: "#856c4d" });
|
|
4089
4231
|
case "1210":
|
|
4090
|
-
return /* @__PURE__ */
|
|
4232
|
+
return /* @__PURE__ */ jsx60(A1210, { color: "#856c4d" });
|
|
4091
4233
|
case "2010":
|
|
4092
|
-
return /* @__PURE__ */
|
|
4234
|
+
return /* @__PURE__ */ jsx60(A2010, { color: "#856c4d" });
|
|
4093
4235
|
case "2512":
|
|
4094
|
-
return /* @__PURE__ */
|
|
4236
|
+
return /* @__PURE__ */ jsx60(A2512, { color: "#856c4d" });
|
|
4095
4237
|
}
|
|
4096
4238
|
}
|
|
4097
4239
|
case "sot235":
|
|
4098
|
-
return /* @__PURE__ */
|
|
4240
|
+
return /* @__PURE__ */ jsx60(SOT_235_default, {});
|
|
4099
4241
|
case "sot457":
|
|
4100
|
-
return /* @__PURE__ */
|
|
4242
|
+
return /* @__PURE__ */ jsx60(SOT457, {});
|
|
4101
4243
|
case "sot223":
|
|
4102
|
-
return /* @__PURE__ */
|
|
4244
|
+
return /* @__PURE__ */ jsx60(SOT223, {});
|
|
4103
4245
|
case "sot23w":
|
|
4104
|
-
return /* @__PURE__ */
|
|
4246
|
+
return /* @__PURE__ */ jsx60(SOT23W, {});
|
|
4105
4247
|
case "sot323":
|
|
4106
|
-
return /* @__PURE__ */
|
|
4248
|
+
return /* @__PURE__ */ jsx60(SOT323, {});
|
|
4107
4249
|
case "sod323f":
|
|
4108
|
-
return /* @__PURE__ */
|
|
4250
|
+
return /* @__PURE__ */ jsx60(SOD323F, {});
|
|
4109
4251
|
case "sod323fl":
|
|
4110
|
-
return /* @__PURE__ */
|
|
4252
|
+
return /* @__PURE__ */ jsx60(SOD323FL, {});
|
|
4111
4253
|
case "sot363":
|
|
4112
|
-
return /* @__PURE__ */
|
|
4254
|
+
return /* @__PURE__ */ jsx60(SOT_363_default, {});
|
|
4255
|
+
case "sot886":
|
|
4256
|
+
return /* @__PURE__ */ jsx60(SOT886, {});
|
|
4257
|
+
case "sot963":
|
|
4258
|
+
return /* @__PURE__ */ jsx60(SOT963, {});
|
|
4113
4259
|
case "pushbutton":
|
|
4114
|
-
return /* @__PURE__ */
|
|
4260
|
+
return /* @__PURE__ */ jsx60(
|
|
4115
4261
|
PushButton,
|
|
4116
4262
|
{
|
|
4117
4263
|
width: fpJson.w,
|
|
@@ -4120,7 +4266,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4120
4266
|
}
|
|
4121
4267
|
);
|
|
4122
4268
|
case "soic":
|
|
4123
|
-
return /* @__PURE__ */
|
|
4269
|
+
return /* @__PURE__ */ jsx60(
|
|
4124
4270
|
SOIC,
|
|
4125
4271
|
{
|
|
4126
4272
|
pinCount: fpJson.num_pins,
|
|
@@ -4131,39 +4277,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4131
4277
|
}
|
|
4132
4278
|
);
|
|
4133
4279
|
case "sod523":
|
|
4134
|
-
return /* @__PURE__ */
|
|
4280
|
+
return /* @__PURE__ */ jsx60(SOD523, {});
|
|
4135
4281
|
case "sod882":
|
|
4136
|
-
return /* @__PURE__ */
|
|
4282
|
+
return /* @__PURE__ */ jsx60(SOD882, {});
|
|
4137
4283
|
case "sma":
|
|
4138
|
-
return /* @__PURE__ */
|
|
4284
|
+
return /* @__PURE__ */ jsx60(SMA, {});
|
|
4139
4285
|
case "smb":
|
|
4140
|
-
return /* @__PURE__ */
|
|
4286
|
+
return /* @__PURE__ */ jsx60(SMB, {});
|
|
4141
4287
|
case "smc":
|
|
4142
|
-
return /* @__PURE__ */
|
|
4288
|
+
return /* @__PURE__ */ jsx60(SMC, {});
|
|
4143
4289
|
case "smf":
|
|
4144
|
-
return /* @__PURE__ */
|
|
4290
|
+
return /* @__PURE__ */ jsx60(SMF, {});
|
|
4145
4291
|
case "sod123f":
|
|
4146
|
-
return /* @__PURE__ */
|
|
4292
|
+
return /* @__PURE__ */ jsx60(SOD123F, {});
|
|
4147
4293
|
case "sod123fl":
|
|
4148
|
-
return /* @__PURE__ */
|
|
4294
|
+
return /* @__PURE__ */ jsx60(SOD123FL, {});
|
|
4149
4295
|
case "sod123w":
|
|
4150
|
-
return /* @__PURE__ */
|
|
4296
|
+
return /* @__PURE__ */ jsx60(SOD123W, {});
|
|
4151
4297
|
case "sod128":
|
|
4152
|
-
return /* @__PURE__ */
|
|
4298
|
+
return /* @__PURE__ */ jsx60(SOD128, {});
|
|
4153
4299
|
case "sod323":
|
|
4154
|
-
return /* @__PURE__ */
|
|
4300
|
+
return /* @__PURE__ */ jsx60(SOD323, {});
|
|
4155
4301
|
case "sod923":
|
|
4156
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ jsx60(SOD923, {});
|
|
4157
4303
|
case "hc49":
|
|
4158
|
-
return /* @__PURE__ */
|
|
4304
|
+
return /* @__PURE__ */ jsx60(HC49, {});
|
|
4159
4305
|
case "micromelf":
|
|
4160
|
-
return /* @__PURE__ */
|
|
4306
|
+
return /* @__PURE__ */ jsx60(MicroMELF, {});
|
|
4161
4307
|
case "minimelf":
|
|
4162
|
-
return /* @__PURE__ */
|
|
4308
|
+
return /* @__PURE__ */ jsx60(MINIMELF, {});
|
|
4163
4309
|
case "melf":
|
|
4164
|
-
return /* @__PURE__ */
|
|
4310
|
+
return /* @__PURE__ */ jsx60(MELF, {});
|
|
4165
4311
|
case "ms012":
|
|
4166
|
-
return /* @__PURE__ */
|
|
4312
|
+
return /* @__PURE__ */ jsx60(
|
|
4167
4313
|
MS012,
|
|
4168
4314
|
{
|
|
4169
4315
|
pinCount: fpJson.num_pins,
|
|
@@ -4173,7 +4319,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4173
4319
|
}
|
|
4174
4320
|
);
|
|
4175
4321
|
case "ms013":
|
|
4176
|
-
return /* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ jsx60(
|
|
4177
4323
|
MS013,
|
|
4178
4324
|
{
|
|
4179
4325
|
pinCount: fpJson.num_pins,
|
|
@@ -4183,39 +4329,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4183
4329
|
}
|
|
4184
4330
|
);
|
|
4185
4331
|
case "sot723":
|
|
4186
|
-
return /* @__PURE__ */
|
|
4332
|
+
return /* @__PURE__ */ jsx60(SOT723, {});
|
|
4187
4333
|
case "to220":
|
|
4188
|
-
return /* @__PURE__ */
|
|
4334
|
+
return /* @__PURE__ */ jsx60(TO220, {});
|
|
4189
4335
|
case "to92":
|
|
4190
|
-
return /* @__PURE__ */
|
|
4336
|
+
return /* @__PURE__ */ jsx60(TO92, {});
|
|
4191
4337
|
}
|
|
4192
4338
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
4193
4339
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
4194
4340
|
switch (fpJson.imperial) {
|
|
4195
4341
|
case "0402":
|
|
4196
|
-
return /* @__PURE__ */
|
|
4342
|
+
return /* @__PURE__ */ jsx60(A0402, { color });
|
|
4197
4343
|
case "0603":
|
|
4198
|
-
return /* @__PURE__ */
|
|
4344
|
+
return /* @__PURE__ */ jsx60(A0603, { color });
|
|
4199
4345
|
case "0805":
|
|
4200
|
-
return /* @__PURE__ */
|
|
4346
|
+
return /* @__PURE__ */ jsx60(A0805, { color });
|
|
4201
4347
|
case "0201":
|
|
4202
|
-
return /* @__PURE__ */
|
|
4348
|
+
return /* @__PURE__ */ jsx60(A0201, { color });
|
|
4203
4349
|
case "01005":
|
|
4204
|
-
return /* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ jsx60(A01005, { color });
|
|
4205
4351
|
case "1206":
|
|
4206
|
-
return /* @__PURE__ */
|
|
4352
|
+
return /* @__PURE__ */ jsx60(A1206, { color });
|
|
4207
4353
|
case "1210":
|
|
4208
|
-
return /* @__PURE__ */
|
|
4354
|
+
return /* @__PURE__ */ jsx60(A1210, { color });
|
|
4209
4355
|
case "2010":
|
|
4210
|
-
return /* @__PURE__ */
|
|
4356
|
+
return /* @__PURE__ */ jsx60(A2010, { color });
|
|
4211
4357
|
case "2512":
|
|
4212
|
-
return /* @__PURE__ */
|
|
4358
|
+
return /* @__PURE__ */ jsx60(A2512, { color });
|
|
4213
4359
|
}
|
|
4214
4360
|
return null;
|
|
4215
4361
|
};
|
|
4216
4362
|
|
|
4217
4363
|
// lib/SOT-23-3P.tsx
|
|
4218
|
-
import { Fragment as
|
|
4364
|
+
import { Fragment as Fragment55, jsx as jsx61, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4219
4365
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4220
4366
|
const bodyWidth = 1.3;
|
|
4221
4367
|
const bodyLength10 = 2.9;
|
|
@@ -4226,8 +4372,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4226
4372
|
const padContactLength = 0.4;
|
|
4227
4373
|
const padThickness = leadThickness / 2;
|
|
4228
4374
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4229
|
-
return /* @__PURE__ */
|
|
4230
|
-
/* @__PURE__ */
|
|
4375
|
+
return /* @__PURE__ */ jsxs58(Fragment55, { children: [
|
|
4376
|
+
/* @__PURE__ */ jsx61(
|
|
4231
4377
|
SmdChipLead,
|
|
4232
4378
|
{
|
|
4233
4379
|
rotation: Math.PI,
|
|
@@ -4244,7 +4390,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4244
4390
|
},
|
|
4245
4391
|
1
|
|
4246
4392
|
),
|
|
4247
|
-
/* @__PURE__ */
|
|
4393
|
+
/* @__PURE__ */ jsx61(
|
|
4248
4394
|
SmdChipLead,
|
|
4249
4395
|
{
|
|
4250
4396
|
rotation: Math.PI,
|
|
@@ -4261,7 +4407,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4261
4407
|
},
|
|
4262
4408
|
2
|
|
4263
4409
|
),
|
|
4264
|
-
/* @__PURE__ */
|
|
4410
|
+
/* @__PURE__ */ jsx61(
|
|
4265
4411
|
SmdChipLead,
|
|
4266
4412
|
{
|
|
4267
4413
|
position: {
|
|
@@ -4277,7 +4423,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4277
4423
|
},
|
|
4278
4424
|
3
|
|
4279
4425
|
),
|
|
4280
|
-
/* @__PURE__ */
|
|
4426
|
+
/* @__PURE__ */ jsx61(
|
|
4281
4427
|
ChipBody,
|
|
4282
4428
|
{
|
|
4283
4429
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4290,8 +4436,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4290
4436
|
};
|
|
4291
4437
|
|
|
4292
4438
|
// lib/SOT-563.tsx
|
|
4293
|
-
import { Cuboid as
|
|
4294
|
-
import { Fragment as
|
|
4439
|
+
import { Cuboid as Cuboid40, Translate as Translate26, Rotate as Rotate10, Colorize as Colorize31 } from "jscad-fiber";
|
|
4440
|
+
import { Fragment as Fragment56, jsx as jsx62, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4295
4441
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
4296
4442
|
const bodyWidth = 1.2;
|
|
4297
4443
|
const bodyLength10 = 1.6;
|
|
@@ -4301,11 +4447,11 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4301
4447
|
const leadHeight = 0.13;
|
|
4302
4448
|
const leadSpacing = 0.5;
|
|
4303
4449
|
const bodyZOffset = -0.4;
|
|
4304
|
-
return /* @__PURE__ */
|
|
4305
|
-
/* @__PURE__ */
|
|
4450
|
+
return /* @__PURE__ */ jsxs59(Fragment56, { children: [
|
|
4451
|
+
/* @__PURE__ */ jsx62(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx62(Translate26, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx62(Colorize31, { color: "grey", children: /* @__PURE__ */ jsx62(Cuboid40, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
4306
4452
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
4307
4453
|
// Left lead
|
|
4308
|
-
/* @__PURE__ */
|
|
4454
|
+
/* @__PURE__ */ jsx62(
|
|
4309
4455
|
Translate26,
|
|
4310
4456
|
{
|
|
4311
4457
|
center: [
|
|
@@ -4313,16 +4459,16 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4313
4459
|
yOffset * leadSpacing,
|
|
4314
4460
|
leadHeight / 2
|
|
4315
4461
|
],
|
|
4316
|
-
children: /* @__PURE__ */
|
|
4462
|
+
children: /* @__PURE__ */ jsx62(Cuboid40, { size: [leadLength, leadWidth, leadHeight] })
|
|
4317
4463
|
},
|
|
4318
4464
|
`left-${index}`
|
|
4319
4465
|
),
|
|
4320
4466
|
// Right lead
|
|
4321
|
-
/* @__PURE__ */
|
|
4467
|
+
/* @__PURE__ */ jsx62(
|
|
4322
4468
|
Translate26,
|
|
4323
4469
|
{
|
|
4324
4470
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
4325
|
-
children: /* @__PURE__ */
|
|
4471
|
+
children: /* @__PURE__ */ jsx62(Cuboid40, { size: [leadLength, leadWidth, leadHeight] })
|
|
4326
4472
|
},
|
|
4327
4473
|
`right-${index}`
|
|
4328
4474
|
)
|
|
@@ -4331,7 +4477,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4331
4477
|
};
|
|
4332
4478
|
|
|
4333
4479
|
// lib/sod-123.tsx
|
|
4334
|
-
import { Fragment as
|
|
4480
|
+
import { Fragment as Fragment57, jsx as jsx63, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
4335
4481
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
4336
4482
|
const bodyWidth = 2.9;
|
|
4337
4483
|
const bodyLength10 = 1.3;
|
|
@@ -4342,8 +4488,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4342
4488
|
const padContactLength = 0.4;
|
|
4343
4489
|
const padThickness = leadThickness / 2;
|
|
4344
4490
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
4345
|
-
return /* @__PURE__ */
|
|
4346
|
-
/* @__PURE__ */
|
|
4491
|
+
return /* @__PURE__ */ jsxs60(Fragment57, { children: [
|
|
4492
|
+
/* @__PURE__ */ jsx63(
|
|
4347
4493
|
SmdChipLead,
|
|
4348
4494
|
{
|
|
4349
4495
|
position: {
|
|
@@ -4359,7 +4505,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4359
4505
|
},
|
|
4360
4506
|
1
|
|
4361
4507
|
),
|
|
4362
|
-
/* @__PURE__ */
|
|
4508
|
+
/* @__PURE__ */ jsx63(
|
|
4363
4509
|
SmdChipLead,
|
|
4364
4510
|
{
|
|
4365
4511
|
rotation: Math.PI,
|
|
@@ -4376,7 +4522,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4376
4522
|
},
|
|
4377
4523
|
2
|
|
4378
4524
|
),
|
|
4379
|
-
/* @__PURE__ */
|
|
4525
|
+
/* @__PURE__ */ jsx63(
|
|
4380
4526
|
ChipBody,
|
|
4381
4527
|
{
|
|
4382
4528
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4438,6 +4584,8 @@ export {
|
|
|
4438
4584
|
SOT457,
|
|
4439
4585
|
SOT563,
|
|
4440
4586
|
SOT723,
|
|
4587
|
+
SOT886,
|
|
4588
|
+
SOT963,
|
|
4441
4589
|
SmdChipLead,
|
|
4442
4590
|
TO220,
|
|
4443
4591
|
TO92,
|