jscad-electronics 0.0.105 → 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 +2 -1
- package/dist/index.js +68 -51
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +24 -7
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -216,10 +216,11 @@ 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, }: {
|
|
220
220
|
numberOfPins: number;
|
|
221
221
|
pitch?: number;
|
|
222
222
|
longSidePinLength?: number;
|
|
223
|
+
invert?: boolean;
|
|
223
224
|
}) => react_jsx_runtime.JSX.Element;
|
|
224
225
|
|
|
225
226
|
declare const SOD523: () => react_jsx_runtime.JSX.Element;
|
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],
|
|
@@ -3688,7 +3698,7 @@ import {
|
|
|
3688
3698
|
Cuboid as Cuboid35,
|
|
3689
3699
|
Hull as Hull18,
|
|
3690
3700
|
Translate as Translate22,
|
|
3691
|
-
Cylinder as
|
|
3701
|
+
Cylinder as Cylinder8,
|
|
3692
3702
|
Subtract as Subtract5
|
|
3693
3703
|
} from "jscad-fiber";
|
|
3694
3704
|
import { jsx as jsx54, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
@@ -3714,7 +3724,7 @@ var TO92 = () => {
|
|
|
3714
3724
|
const sideLeadZ = -7.5;
|
|
3715
3725
|
return /* @__PURE__ */ jsxs52(Translate22, { center: [0, 1, 10.5], children: [
|
|
3716
3726
|
/* @__PURE__ */ jsx54(Colorize27, { color: bodyColor, children: /* @__PURE__ */ jsxs52(Subtract5, { children: [
|
|
3717
|
-
/* @__PURE__ */ jsx54(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx54(
|
|
3727
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx54(Cylinder8, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3718
3728
|
/* @__PURE__ */ jsx54(Translate22, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx54(Cuboid35, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3719
3729
|
] }) }),
|
|
3720
3730
|
/* @__PURE__ */ jsx54(Translate22, { center: leadTipPos1, children: /* @__PURE__ */ jsx54(Cuboid35, { size: leadTipSize }) }),
|
|
@@ -3993,7 +4003,7 @@ var SOD323 = () => {
|
|
|
3993
4003
|
};
|
|
3994
4004
|
|
|
3995
4005
|
// lib/sod-323F.tsx
|
|
3996
|
-
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as Translate24, Union as
|
|
4006
|
+
import { Colorize as Colorize29, Cuboid as Cuboid38, Hull as Hull20, Translate as Translate24, Union as Union17 } from "jscad-fiber";
|
|
3997
4007
|
import { Fragment as Fragment53, jsx as jsx58, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
3998
4008
|
var SOD323F = () => {
|
|
3999
4009
|
const fullWidth = 1.7;
|
|
@@ -4023,7 +4033,7 @@ var SOD323F = () => {
|
|
|
4023
4033
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4024
4034
|
}
|
|
4025
4035
|
),
|
|
4026
|
-
/* @__PURE__ */ jsx58(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs56(
|
|
4036
|
+
/* @__PURE__ */ jsx58(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs56(Union17, { children: [
|
|
4027
4037
|
/* @__PURE__ */ jsx58(Translate24, { z: straightHeight / 2, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
4028
4038
|
/* @__PURE__ */ jsxs56(Hull20, { children: [
|
|
4029
4039
|
/* @__PURE__ */ jsx58(Translate24, { z: straightHeight, children: /* @__PURE__ */ jsx58(Cuboid38, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
@@ -4194,7 +4204,14 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4194
4204
|
}
|
|
4195
4205
|
case "pinrow":
|
|
4196
4206
|
if (fpJson.male)
|
|
4197
|
-
return /* @__PURE__ */ jsx60(
|
|
4207
|
+
return /* @__PURE__ */ jsx60(
|
|
4208
|
+
PinRow,
|
|
4209
|
+
{
|
|
4210
|
+
numberOfPins: fpJson.num_pins,
|
|
4211
|
+
pitch: fpJson.p,
|
|
4212
|
+
invert: fpJson.invert
|
|
4213
|
+
}
|
|
4214
|
+
);
|
|
4198
4215
|
if (fpJson.female)
|
|
4199
4216
|
return /* @__PURE__ */ jsx60(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
4200
4217
|
case "cap": {
|