jscad-electronics 0.0.105 → 0.0.107
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 +71 -52
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +27 -8
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -216,10 +216,12 @@ declare const SOD123: ({ fullWidth, fullLength }: {
|
|
|
216
216
|
fullLength?: number | undefined;
|
|
217
217
|
}) => react_jsx_runtime.JSX.Element;
|
|
218
218
|
|
|
219
|
-
declare const PinRow: ({ numberOfPins, pitch, longSidePinLength, }: {
|
|
219
|
+
declare const PinRow: ({ numberOfPins, pitch, longSidePinLength, invert, faceup, }: {
|
|
220
220
|
numberOfPins: number;
|
|
221
221
|
pitch?: number;
|
|
222
222
|
longSidePinLength?: number;
|
|
223
|
+
invert?: boolean;
|
|
224
|
+
faceup?: boolean;
|
|
223
225
|
}) => react_jsx_runtime.JSX.Element;
|
|
224
226
|
|
|
225
227
|
declare const SOD523: () => react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1013,24 +1013,27 @@ 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,
|
|
1018
|
+
faceup
|
|
1017
1019
|
}) => {
|
|
1018
1020
|
const pinThickness = 0.63;
|
|
1019
1021
|
const bodyHeight = 2;
|
|
1020
1022
|
const bodyWidth = numberOfPins * pitch;
|
|
1021
1023
|
const shortSidePinLength = 3;
|
|
1022
1024
|
const xoff = -((numberOfPins - 1) / 2) * pitch;
|
|
1025
|
+
const flipZ = (z) => invert || faceup ? -z + bodyHeight : z;
|
|
1023
1026
|
return /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1024
1027
|
/* @__PURE__ */ jsx20(
|
|
1025
1028
|
Cuboid14,
|
|
1026
1029
|
{
|
|
1027
1030
|
color: "#222",
|
|
1028
1031
|
size: [bodyWidth, pinThickness * 3, bodyHeight],
|
|
1029
|
-
center: [0, 0, bodyHeight / 2
|
|
1032
|
+
center: [0, 0, flipZ(bodyHeight / 2)]
|
|
1030
1033
|
}
|
|
1031
1034
|
),
|
|
1032
1035
|
Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1033
|
-
/* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */ jsxs18(Hull2, { children: [
|
|
1036
|
+
!faceup && /* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */ jsxs18(Hull2, { children: [
|
|
1034
1037
|
/* @__PURE__ */ jsx20(
|
|
1035
1038
|
Cuboid14,
|
|
1036
1039
|
{
|
|
@@ -1039,7 +1042,7 @@ var PinRow = ({
|
|
|
1039
1042
|
center: [
|
|
1040
1043
|
xoff + i * pitch,
|
|
1041
1044
|
0,
|
|
1042
|
-
bodyHeight * 0.9 + bodyHeight / 2
|
|
1045
|
+
flipZ(bodyHeight * 0.9 + bodyHeight / 2)
|
|
1043
1046
|
]
|
|
1044
1047
|
}
|
|
1045
1048
|
),
|
|
@@ -1052,7 +1055,11 @@ var PinRow = ({
|
|
|
1052
1055
|
pinThickness / 1.8,
|
|
1053
1056
|
shortSidePinLength
|
|
1054
1057
|
],
|
|
1055
|
-
center: [
|
|
1058
|
+
center: [
|
|
1059
|
+
xoff + i * pitch,
|
|
1060
|
+
0,
|
|
1061
|
+
flipZ(bodyHeight + bodyHeight / 2)
|
|
1062
|
+
]
|
|
1056
1063
|
}
|
|
1057
1064
|
)
|
|
1058
1065
|
] }) }),
|
|
@@ -1062,7 +1069,11 @@ var PinRow = ({
|
|
|
1062
1069
|
{
|
|
1063
1070
|
color: "gold",
|
|
1064
1071
|
size: [pinThickness, pinThickness, longSidePinLength * 0.9],
|
|
1065
|
-
center: [
|
|
1072
|
+
center: [
|
|
1073
|
+
xoff + i * pitch,
|
|
1074
|
+
0,
|
|
1075
|
+
flipZ(-longSidePinLength / 2 * 0.9)
|
|
1076
|
+
]
|
|
1066
1077
|
}
|
|
1067
1078
|
),
|
|
1068
1079
|
/* @__PURE__ */ jsx20(
|
|
@@ -1074,7 +1085,7 @@ var PinRow = ({
|
|
|
1074
1085
|
pinThickness / 1.8,
|
|
1075
1086
|
longSidePinLength
|
|
1076
1087
|
],
|
|
1077
|
-
center: [xoff + i * pitch, 0, -longSidePinLength / 2]
|
|
1088
|
+
center: [xoff + i * pitch, 0, flipZ(-longSidePinLength / 2)]
|
|
1078
1089
|
}
|
|
1079
1090
|
)
|
|
1080
1091
|
] }) })
|
|
@@ -1432,7 +1443,7 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1432
1443
|
};
|
|
1433
1444
|
|
|
1434
1445
|
// lib/FemaleHeader.tsx
|
|
1435
|
-
import { Cuboid as Cuboid16, Colorize as Colorize8, Hull as Hull3, Subtract as Subtract3, Cylinder as
|
|
1446
|
+
import { Cuboid as Cuboid16, Colorize as Colorize8, Hull as Hull3, Subtract as Subtract3, Cylinder as Cylinder3 } from "jscad-fiber";
|
|
1436
1447
|
import { Fragment as Fragment20, jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1437
1448
|
var FemaleHeader = ({
|
|
1438
1449
|
numberOfPins,
|
|
@@ -1459,7 +1470,7 @@ var FemaleHeader = ({
|
|
|
1459
1470
|
Array.from(
|
|
1460
1471
|
{ length: numberOfPins },
|
|
1461
1472
|
(_, i) => innerDiameter ? /* @__PURE__ */ jsx24(
|
|
1462
|
-
|
|
1473
|
+
Cylinder3,
|
|
1463
1474
|
{
|
|
1464
1475
|
height: bodyHeight + 0.1,
|
|
1465
1476
|
radius: innerDiameter / 2,
|
|
@@ -1513,7 +1524,7 @@ var FemaleHeader = ({
|
|
|
1513
1524
|
// lib/PushButton.tsx
|
|
1514
1525
|
import {
|
|
1515
1526
|
Colorize as Colorize9,
|
|
1516
|
-
Cylinder as
|
|
1527
|
+
Cylinder as Cylinder4,
|
|
1517
1528
|
ExtrudeLinear as ExtrudeLinear3,
|
|
1518
1529
|
Polygon as Polygon3,
|
|
1519
1530
|
Rotate as Rotate5,
|
|
@@ -1550,7 +1561,7 @@ var PushButton = ({
|
|
|
1550
1561
|
}
|
|
1551
1562
|
),
|
|
1552
1563
|
/* @__PURE__ */ jsx25(
|
|
1553
|
-
|
|
1564
|
+
Cylinder4,
|
|
1554
1565
|
{
|
|
1555
1566
|
color: "#1a1a1f",
|
|
1556
1567
|
height: bodyHeight * 0.8,
|
|
@@ -1559,7 +1570,7 @@ var PushButton = ({
|
|
|
1559
1570
|
}
|
|
1560
1571
|
),
|
|
1561
1572
|
/* @__PURE__ */ jsx25(
|
|
1562
|
-
|
|
1573
|
+
Cylinder4,
|
|
1563
1574
|
{
|
|
1564
1575
|
color: "#1a1a1f",
|
|
1565
1576
|
height: bodyHeight * 0.2,
|
|
@@ -1572,7 +1583,7 @@ var PushButton = ({
|
|
|
1572
1583
|
}
|
|
1573
1584
|
),
|
|
1574
1585
|
/* @__PURE__ */ jsx25(
|
|
1575
|
-
|
|
1586
|
+
Cylinder4,
|
|
1576
1587
|
{
|
|
1577
1588
|
color: "#1a1a1f",
|
|
1578
1589
|
height: bodyHeight * 0.2,
|
|
@@ -1585,7 +1596,7 @@ var PushButton = ({
|
|
|
1585
1596
|
}
|
|
1586
1597
|
),
|
|
1587
1598
|
/* @__PURE__ */ jsx25(
|
|
1588
|
-
|
|
1599
|
+
Cylinder4,
|
|
1589
1600
|
{
|
|
1590
1601
|
color: "#1a1a1f",
|
|
1591
1602
|
height: bodyHeight * 0.2,
|
|
@@ -1598,7 +1609,7 @@ var PushButton = ({
|
|
|
1598
1609
|
}
|
|
1599
1610
|
),
|
|
1600
1611
|
/* @__PURE__ */ jsx25(
|
|
1601
|
-
|
|
1612
|
+
Cylinder4,
|
|
1602
1613
|
{
|
|
1603
1614
|
color: "#1a1a1f",
|
|
1604
1615
|
height: bodyHeight * 0.2,
|
|
@@ -1836,7 +1847,7 @@ var VSSOP = ({
|
|
|
1836
1847
|
};
|
|
1837
1848
|
|
|
1838
1849
|
// lib/SOD523.tsx
|
|
1839
|
-
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as Translate9, Union as
|
|
1850
|
+
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as Translate9, Union as Union4 } from "jscad-fiber";
|
|
1840
1851
|
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1841
1852
|
var SOD523 = () => {
|
|
1842
1853
|
const fullWidth = 2.15;
|
|
@@ -1867,7 +1878,7 @@ var SOD523 = () => {
|
|
|
1867
1878
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1868
1879
|
}
|
|
1869
1880
|
),
|
|
1870
|
-
/* @__PURE__ */ jsx28(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs26(
|
|
1881
|
+
/* @__PURE__ */ jsx28(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs26(Union4, { children: [
|
|
1871
1882
|
/* @__PURE__ */ jsx28(Translate9, { z: straightHeight / 2, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1872
1883
|
/* @__PURE__ */ jsxs26(Hull4, { children: [
|
|
1873
1884
|
/* @__PURE__ */ jsx28(Translate9, { z: straightHeight, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
@@ -1949,7 +1960,7 @@ var SOD882 = () => {
|
|
|
1949
1960
|
};
|
|
1950
1961
|
|
|
1951
1962
|
// lib/SMA.tsx
|
|
1952
|
-
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as
|
|
1963
|
+
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union6, Hull as Hull6, Translate as Translate11 } from "jscad-fiber";
|
|
1953
1964
|
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1954
1965
|
var SMA = () => {
|
|
1955
1966
|
const bodyWidth = 4.4;
|
|
@@ -1961,7 +1972,7 @@ var SMA = () => {
|
|
|
1961
1972
|
const leadHeight = 1.14;
|
|
1962
1973
|
const taperOffset = 0.4;
|
|
1963
1974
|
const straightHeight = bodyHeight * 0.5;
|
|
1964
|
-
const Body = /* @__PURE__ */ jsx30(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(
|
|
1975
|
+
const Body = /* @__PURE__ */ jsx30(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(Union6, { children: [
|
|
1965
1976
|
/* @__PURE__ */ jsxs28(Hull6, { children: [
|
|
1966
1977
|
/* @__PURE__ */ jsx30(Translate11, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx30(
|
|
1967
1978
|
Cuboid20,
|
|
@@ -1989,7 +2000,7 @@ var SMA = () => {
|
|
|
1989
2000
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1990
2001
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1991
2002
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1992
|
-
return /* @__PURE__ */ jsx30(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs28(
|
|
2003
|
+
return /* @__PURE__ */ jsx30(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs28(Union6, { children: [
|
|
1993
2004
|
/* @__PURE__ */ jsx30(
|
|
1994
2005
|
Cuboid20,
|
|
1995
2006
|
{
|
|
@@ -2021,7 +2032,7 @@ var SMA = () => {
|
|
|
2021
2032
|
};
|
|
2022
2033
|
|
|
2023
2034
|
// lib/SMB.tsx
|
|
2024
|
-
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as
|
|
2035
|
+
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union7, Hull as Hull7, Translate as Translate12 } from "jscad-fiber";
|
|
2025
2036
|
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2026
2037
|
var SMB = () => {
|
|
2027
2038
|
const bodyWidth = 4.4;
|
|
@@ -2033,7 +2044,7 @@ var SMB = () => {
|
|
|
2033
2044
|
const leadHeight = 1.14;
|
|
2034
2045
|
const taperOffset = 0.4;
|
|
2035
2046
|
const straightHeight = bodyHeight * 0.5;
|
|
2036
|
-
const Body = /* @__PURE__ */ jsx31(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(
|
|
2047
|
+
const Body = /* @__PURE__ */ jsx31(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(Union7, { children: [
|
|
2037
2048
|
/* @__PURE__ */ jsxs29(Hull7, { children: [
|
|
2038
2049
|
/* @__PURE__ */ jsx31(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx31(
|
|
2039
2050
|
Cuboid21,
|
|
@@ -2061,7 +2072,7 @@ var SMB = () => {
|
|
|
2061
2072
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2062
2073
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2063
2074
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2064
|
-
return /* @__PURE__ */ jsx31(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(
|
|
2075
|
+
return /* @__PURE__ */ jsx31(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(Union7, { children: [
|
|
2065
2076
|
/* @__PURE__ */ jsx31(
|
|
2066
2077
|
Cuboid21,
|
|
2067
2078
|
{
|
|
@@ -2093,7 +2104,7 @@ var SMB = () => {
|
|
|
2093
2104
|
};
|
|
2094
2105
|
|
|
2095
2106
|
// lib/SMC.tsx
|
|
2096
|
-
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as
|
|
2107
|
+
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as Union8, Hull as Hull8, Translate as Translate13 } from "jscad-fiber";
|
|
2097
2108
|
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2098
2109
|
var SMC = () => {
|
|
2099
2110
|
const bodyWidth = 6.8;
|
|
@@ -2105,7 +2116,7 @@ var SMC = () => {
|
|
|
2105
2116
|
const leadHeight = 1.14;
|
|
2106
2117
|
const taperOffset = 0.4;
|
|
2107
2118
|
const straightHeight = bodyHeight * 0.5;
|
|
2108
|
-
const Body = /* @__PURE__ */ jsx32(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(
|
|
2119
|
+
const Body = /* @__PURE__ */ jsx32(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(Union8, { children: [
|
|
2109
2120
|
/* @__PURE__ */ jsxs30(Hull8, { children: [
|
|
2110
2121
|
/* @__PURE__ */ jsx32(Translate13, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx32(
|
|
2111
2122
|
Cuboid22,
|
|
@@ -2133,7 +2144,7 @@ var SMC = () => {
|
|
|
2133
2144
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2134
2145
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2135
2146
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2136
|
-
return /* @__PURE__ */ jsx32(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs30(
|
|
2147
|
+
return /* @__PURE__ */ jsx32(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs30(Union8, { children: [
|
|
2137
2148
|
/* @__PURE__ */ jsx32(
|
|
2138
2149
|
Cuboid22,
|
|
2139
2150
|
{
|
|
@@ -2165,7 +2176,7 @@ var SMC = () => {
|
|
|
2165
2176
|
};
|
|
2166
2177
|
|
|
2167
2178
|
// lib/SMF.tsx
|
|
2168
|
-
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as
|
|
2179
|
+
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as Union9 } from "jscad-fiber";
|
|
2169
2180
|
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2170
2181
|
var SMF = () => {
|
|
2171
2182
|
const fullWidth = 2.9;
|
|
@@ -2179,7 +2190,7 @@ var SMF = () => {
|
|
|
2179
2190
|
const rightPadCenterX = 1.3;
|
|
2180
2191
|
const taperOffset = 0.2;
|
|
2181
2192
|
const straightHeight = bodyHeight * 0.5;
|
|
2182
|
-
const Body = /* @__PURE__ */ jsx33(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs31(
|
|
2193
|
+
const Body = /* @__PURE__ */ jsx33(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs31(Union9, { children: [
|
|
2183
2194
|
/* @__PURE__ */ jsx33(Translate14, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2184
2195
|
/* @__PURE__ */ jsxs31(Hull9, { children: [
|
|
2185
2196
|
/* @__PURE__ */ jsx33(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2213,7 +2224,7 @@ var SMF = () => {
|
|
|
2213
2224
|
};
|
|
2214
2225
|
|
|
2215
2226
|
// lib/sod-123F.tsx
|
|
2216
|
-
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as
|
|
2227
|
+
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union10 } from "jscad-fiber";
|
|
2217
2228
|
import { Fragment as Fragment30, jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2218
2229
|
var SOD123F = () => {
|
|
2219
2230
|
const fullWidth = 2.7;
|
|
@@ -2243,7 +2254,7 @@ var SOD123F = () => {
|
|
|
2243
2254
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2244
2255
|
}
|
|
2245
2256
|
),
|
|
2246
|
-
/* @__PURE__ */ jsx34(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(
|
|
2257
|
+
/* @__PURE__ */ jsx34(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(Union10, { children: [
|
|
2247
2258
|
/* @__PURE__ */ jsx34(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2248
2259
|
/* @__PURE__ */ jsxs32(Hull10, { children: [
|
|
2249
2260
|
/* @__PURE__ */ jsx34(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2259,7 +2270,7 @@ var SOD123F = () => {
|
|
|
2259
2270
|
};
|
|
2260
2271
|
|
|
2261
2272
|
// lib/sod-123FL.tsx
|
|
2262
|
-
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as
|
|
2273
|
+
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as Union11 } from "jscad-fiber";
|
|
2263
2274
|
import { Fragment as Fragment31, jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2264
2275
|
var SOD123FL = () => {
|
|
2265
2276
|
const fullWidth = 2.75;
|
|
@@ -2289,7 +2300,7 @@ var SOD123FL = () => {
|
|
|
2289
2300
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2290
2301
|
}
|
|
2291
2302
|
),
|
|
2292
|
-
/* @__PURE__ */ jsx35(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(
|
|
2303
|
+
/* @__PURE__ */ jsx35(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(Union11, { children: [
|
|
2293
2304
|
/* @__PURE__ */ jsx35(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2294
2305
|
/* @__PURE__ */ jsxs33(Hull11, { children: [
|
|
2295
2306
|
/* @__PURE__ */ jsx35(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2313,7 +2324,7 @@ var SOD123FL = () => {
|
|
|
2313
2324
|
};
|
|
2314
2325
|
|
|
2315
2326
|
// lib/sod-123W.tsx
|
|
2316
|
-
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as
|
|
2327
|
+
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as Union12 } from "jscad-fiber";
|
|
2317
2328
|
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2318
2329
|
var SOD123W = () => {
|
|
2319
2330
|
const fullWidth = 2.6;
|
|
@@ -2344,7 +2355,7 @@ var SOD123W = () => {
|
|
|
2344
2355
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2345
2356
|
}
|
|
2346
2357
|
),
|
|
2347
|
-
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(
|
|
2358
|
+
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union12, { children: [
|
|
2348
2359
|
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2349
2360
|
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(
|
|
2350
2361
|
Cuboid26,
|
|
@@ -2389,7 +2400,7 @@ var SOD123W = () => {
|
|
|
2389
2400
|
};
|
|
2390
2401
|
|
|
2391
2402
|
// lib/sod-128.tsx
|
|
2392
|
-
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as
|
|
2403
|
+
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as Union13 } from "jscad-fiber";
|
|
2393
2404
|
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2394
2405
|
var SOD128 = () => {
|
|
2395
2406
|
const fullWidth = 3.8;
|
|
@@ -2420,7 +2431,7 @@ var SOD128 = () => {
|
|
|
2420
2431
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2421
2432
|
}
|
|
2422
2433
|
),
|
|
2423
|
-
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(
|
|
2434
|
+
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union13, { children: [
|
|
2424
2435
|
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2425
2436
|
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx37(
|
|
2426
2437
|
Cuboid27,
|
|
@@ -2465,7 +2476,7 @@ var SOD128 = () => {
|
|
|
2465
2476
|
};
|
|
2466
2477
|
|
|
2467
2478
|
// lib/SOD-923.tsx
|
|
2468
|
-
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as Translate19, Union as
|
|
2479
|
+
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as Translate19, Union as Union14 } from "jscad-fiber";
|
|
2469
2480
|
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2470
2481
|
var SOD923 = () => {
|
|
2471
2482
|
const fullWidth = 0.8;
|
|
@@ -2495,7 +2506,7 @@ var SOD923 = () => {
|
|
|
2495
2506
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2496
2507
|
}
|
|
2497
2508
|
),
|
|
2498
|
-
/* @__PURE__ */ jsx38(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(
|
|
2509
|
+
/* @__PURE__ */ jsx38(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(Union14, { children: [
|
|
2499
2510
|
/* @__PURE__ */ jsx38(Translate19, { z: straightHeight / 2, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2500
2511
|
/* @__PURE__ */ jsxs36(Hull14, { children: [
|
|
2501
2512
|
/* @__PURE__ */ jsx38(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -2899,7 +2910,7 @@ var LQFP = ({
|
|
|
2899
2910
|
};
|
|
2900
2911
|
|
|
2901
2912
|
// lib/SOT-723.tsx
|
|
2902
|
-
import { Cuboid as Cuboid29, Translate as Translate20, Colorize as Colorize21, Hull as Hull15, Union as
|
|
2913
|
+
import { Cuboid as Cuboid29, Translate as Translate20, Colorize as Colorize21, Hull as Hull15, Union as Union15 } from "jscad-fiber";
|
|
2903
2914
|
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2904
2915
|
var SOT723 = () => {
|
|
2905
2916
|
const bodyWidth = 0.85;
|
|
@@ -2918,7 +2929,7 @@ var SOT723 = () => {
|
|
|
2918
2929
|
const leftBottomPadCenterX = -0.55;
|
|
2919
2930
|
const leftBottomPadCenterY = -0.4;
|
|
2920
2931
|
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2921
|
-
/* @__PURE__ */ jsx43(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs41(
|
|
2932
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs41(Union15, { children: [
|
|
2922
2933
|
/* @__PURE__ */ jsx43(
|
|
2923
2934
|
Cuboid29,
|
|
2924
2935
|
{
|
|
@@ -3034,7 +3045,7 @@ var DFN = ({
|
|
|
3034
3045
|
};
|
|
3035
3046
|
|
|
3036
3047
|
// lib/hc49.tsx
|
|
3037
|
-
import { Colorize as Colorize22, Cylinder as
|
|
3048
|
+
import { Colorize as Colorize22, Cylinder as Cylinder5, Hull as Hull16, RoundedCylinder } from "jscad-fiber";
|
|
3038
3049
|
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3039
3050
|
var HC49 = ({
|
|
3040
3051
|
bodyLength: bodyLength10 = 10.2,
|
|
@@ -3096,7 +3107,7 @@ var HC49 = ({
|
|
|
3096
3107
|
] }),
|
|
3097
3108
|
/* @__PURE__ */ jsxs43(Colorize22, { color: leadColor, children: [
|
|
3098
3109
|
/* @__PURE__ */ jsx45(
|
|
3099
|
-
|
|
3110
|
+
Cylinder5,
|
|
3100
3111
|
{
|
|
3101
3112
|
height: leadLength + bodyHeight / 2,
|
|
3102
3113
|
radius: leadDiameter / 2,
|
|
@@ -3104,7 +3115,7 @@ var HC49 = ({
|
|
|
3104
3115
|
}
|
|
3105
3116
|
),
|
|
3106
3117
|
/* @__PURE__ */ jsx45(
|
|
3107
|
-
|
|
3118
|
+
Cylinder5,
|
|
3108
3119
|
{
|
|
3109
3120
|
height: leadLength + bodyHeight / 2,
|
|
3110
3121
|
radius: leadDiameter / 2,
|
|
@@ -3118,7 +3129,7 @@ var HC49 = ({
|
|
|
3118
3129
|
// lib/MicroMELF.tsx
|
|
3119
3130
|
import {
|
|
3120
3131
|
Colorize as Colorize23,
|
|
3121
|
-
Cylinder as
|
|
3132
|
+
Cylinder as Cylinder6,
|
|
3122
3133
|
RoundedCylinder as RoundedCylinder2,
|
|
3123
3134
|
Rotate as Rotate6,
|
|
3124
3135
|
RoundedCuboid as RoundedCuboid2
|
|
@@ -3143,7 +3154,7 @@ var MicroMELF = ({
|
|
|
3143
3154
|
}
|
|
3144
3155
|
),
|
|
3145
3156
|
/* @__PURE__ */ jsx46(
|
|
3146
|
-
|
|
3157
|
+
Cylinder6,
|
|
3147
3158
|
{
|
|
3148
3159
|
height: padLength / 2,
|
|
3149
3160
|
radius: bodyDiameter / 2 - padLength,
|
|
@@ -3407,7 +3418,7 @@ import {
|
|
|
3407
3418
|
Hull as Hull17,
|
|
3408
3419
|
Rotate as Rotate9,
|
|
3409
3420
|
Translate as Translate21,
|
|
3410
|
-
Cylinder as
|
|
3421
|
+
Cylinder as Cylinder7,
|
|
3411
3422
|
Subtract as Subtract4
|
|
3412
3423
|
} from "jscad-fiber";
|
|
3413
3424
|
import { Fragment as Fragment47, jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
@@ -3441,7 +3452,7 @@ var TO220 = () => {
|
|
|
3441
3452
|
}
|
|
3442
3453
|
),
|
|
3443
3454
|
/* @__PURE__ */ jsx51(
|
|
3444
|
-
|
|
3455
|
+
Cylinder7,
|
|
3445
3456
|
{
|
|
3446
3457
|
color: "black",
|
|
3447
3458
|
center: [padCenterX, 0, padThickness - 2],
|
|
@@ -3688,7 +3699,7 @@ import {
|
|
|
3688
3699
|
Cuboid as Cuboid35,
|
|
3689
3700
|
Hull as Hull18,
|
|
3690
3701
|
Translate as Translate22,
|
|
3691
|
-
Cylinder as
|
|
3702
|
+
Cylinder as Cylinder8,
|
|
3692
3703
|
Subtract as Subtract5
|
|
3693
3704
|
} from "jscad-fiber";
|
|
3694
3705
|
import { jsx as jsx54, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
@@ -3714,7 +3725,7 @@ var TO92 = () => {
|
|
|
3714
3725
|
const sideLeadZ = -7.5;
|
|
3715
3726
|
return /* @__PURE__ */ jsxs52(Translate22, { center: [0, 1, 10.5], children: [
|
|
3716
3727
|
/* @__PURE__ */ jsx54(Colorize27, { color: bodyColor, children: /* @__PURE__ */ jsxs52(Subtract5, { children: [
|
|
3717
|
-
/* @__PURE__ */ jsx54(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx54(
|
|
3728
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx54(Cylinder8, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3718
3729
|
/* @__PURE__ */ jsx54(Translate22, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3719
3730
|
] }) }),
|
|
3720
3731
|
/* @__PURE__ */ jsx54(Translate22, { center: leadTipPos1, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadTipSize }) }),
|
|
@@ -3993,7 +4004,7 @@ var SOD323 = () => {
|
|
|
3993
4004
|
};
|
|
3994
4005
|
|
|
3995
4006
|
// lib/sod-323F.tsx
|
|
3996
|
-
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as Translate24, Union as
|
|
4007
|
+
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as Translate24, Union as Union17 } from "jscad-fiber";
|
|
3997
4008
|
import { Fragment as Fragment53, jsx as jsx58, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
3998
4009
|
var SOD323F = () => {
|
|
3999
4010
|
const fullWidth = 1.7;
|
|
@@ -4023,7 +4034,7 @@ var SOD323F = () => {
|
|
|
4023
4034
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4024
4035
|
}
|
|
4025
4036
|
),
|
|
4026
|
-
/* @__PURE__ */ jsx58(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs56(
|
|
4037
|
+
/* @__PURE__ */ jsx58(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs56(Union17, { children: [
|
|
4027
4038
|
/* @__PURE__ */ jsx58(Translate24, { z: straightHeight / 2, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
4028
4039
|
/* @__PURE__ */ jsxs56(Hull20, { children: [
|
|
4029
4040
|
/* @__PURE__ */ jsx58(Translate24, { z: straightHeight, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -4194,7 +4205,15 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4194
4205
|
}
|
|
4195
4206
|
case "pinrow":
|
|
4196
4207
|
if (fpJson.male)
|
|
4197
|
-
return /* @__PURE__ */ jsx60(
|
|
4208
|
+
return /* @__PURE__ */ jsx60(
|
|
4209
|
+
PinRow,
|
|
4210
|
+
{
|
|
4211
|
+
numberOfPins: fpJson.num_pins,
|
|
4212
|
+
pitch: fpJson.p,
|
|
4213
|
+
invert: fpJson.invert,
|
|
4214
|
+
faceup: fpJson.faceup
|
|
4215
|
+
}
|
|
4216
|
+
);
|
|
4198
4217
|
if (fpJson.female)
|
|
4199
4218
|
return /* @__PURE__ */ jsx60(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
4200
4219
|
case "cap": {
|