jscad-electronics 0.0.94 → 0.0.96
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 +8 -1
- package/dist/index.js +517 -359
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +153 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1343,9 +1343,85 @@ var SOT235 = () => {
|
|
|
1343
1343
|
};
|
|
1344
1344
|
var SOT_235_default = SOT235;
|
|
1345
1345
|
|
|
1346
|
+
// lib/SOT-23W.tsx
|
|
1347
|
+
import { Fragment as Fragment19, jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1348
|
+
var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
1349
|
+
const bodyWidth = 1.92;
|
|
1350
|
+
const bodyLength10 = 2.9;
|
|
1351
|
+
const bodyHeight = 1.1;
|
|
1352
|
+
const leadWidth = 0.4;
|
|
1353
|
+
const leadThickness = 0.15;
|
|
1354
|
+
const leadHeight = 0.45;
|
|
1355
|
+
const padContactLength = 0.25;
|
|
1356
|
+
const padThickness = leadThickness / 2;
|
|
1357
|
+
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
1358
|
+
return /* @__PURE__ */ jsxs21(Fragment19, { children: [
|
|
1359
|
+
/* @__PURE__ */ jsx23(
|
|
1360
|
+
SmdChipLead,
|
|
1361
|
+
{
|
|
1362
|
+
rotation: Math.PI,
|
|
1363
|
+
position: {
|
|
1364
|
+
x: fullWidth / 2,
|
|
1365
|
+
y: 0,
|
|
1366
|
+
z: padThickness
|
|
1367
|
+
},
|
|
1368
|
+
width: leadWidth,
|
|
1369
|
+
thickness: leadThickness,
|
|
1370
|
+
padContactLength,
|
|
1371
|
+
bodyDistance: extendedBodyDistance,
|
|
1372
|
+
height: leadHeight
|
|
1373
|
+
},
|
|
1374
|
+
1
|
|
1375
|
+
),
|
|
1376
|
+
/* @__PURE__ */ jsx23(
|
|
1377
|
+
SmdChipLead,
|
|
1378
|
+
{
|
|
1379
|
+
position: {
|
|
1380
|
+
x: -fullWidth / 2,
|
|
1381
|
+
y: -0.95,
|
|
1382
|
+
z: padThickness
|
|
1383
|
+
},
|
|
1384
|
+
width: leadWidth,
|
|
1385
|
+
thickness: leadThickness,
|
|
1386
|
+
padContactLength,
|
|
1387
|
+
bodyDistance: extendedBodyDistance,
|
|
1388
|
+
height: leadHeight
|
|
1389
|
+
},
|
|
1390
|
+
2
|
|
1391
|
+
),
|
|
1392
|
+
/* @__PURE__ */ jsx23(
|
|
1393
|
+
SmdChipLead,
|
|
1394
|
+
{
|
|
1395
|
+
position: {
|
|
1396
|
+
x: -fullWidth / 2,
|
|
1397
|
+
y: 0.95,
|
|
1398
|
+
z: padThickness
|
|
1399
|
+
},
|
|
1400
|
+
width: leadWidth,
|
|
1401
|
+
thickness: leadThickness,
|
|
1402
|
+
padContactLength,
|
|
1403
|
+
bodyDistance: extendedBodyDistance,
|
|
1404
|
+
height: leadHeight
|
|
1405
|
+
},
|
|
1406
|
+
3
|
|
1407
|
+
),
|
|
1408
|
+
/* @__PURE__ */ jsx23(
|
|
1409
|
+
ChipBody,
|
|
1410
|
+
{
|
|
1411
|
+
center: { x: 0, y: 0, z: 0 },
|
|
1412
|
+
width: bodyWidth,
|
|
1413
|
+
length: bodyLength10,
|
|
1414
|
+
height: bodyHeight,
|
|
1415
|
+
straightHeightRatio: 0.45,
|
|
1416
|
+
heightAboveSurface: 0.05
|
|
1417
|
+
}
|
|
1418
|
+
)
|
|
1419
|
+
] });
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1346
1422
|
// lib/FemaleHeader.tsx
|
|
1347
1423
|
import { Cuboid as Cuboid16, Colorize as Colorize8, Hull as Hull3, Subtract as Subtract3, Cylinder as Cylinder4 } from "jscad-fiber";
|
|
1348
|
-
import { Fragment as
|
|
1424
|
+
import { Fragment as Fragment20, jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1349
1425
|
var FemaleHeader = ({
|
|
1350
1426
|
numberOfPins,
|
|
1351
1427
|
pitch = 2.54,
|
|
@@ -1359,8 +1435,8 @@ var FemaleHeader = ({
|
|
|
1359
1435
|
const bodyWidth = (numberOfPins - 1) * pitch + outerDiameter + pitch / 2;
|
|
1360
1436
|
const gapWidth = pinThickness * 1.6;
|
|
1361
1437
|
const xoff = -((numberOfPins - 1) / 2) * pitch;
|
|
1362
|
-
const Body = /* @__PURE__ */
|
|
1363
|
-
/* @__PURE__ */
|
|
1438
|
+
const Body = /* @__PURE__ */ jsx24(Colorize8, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs22(Subtract3, { children: [
|
|
1439
|
+
/* @__PURE__ */ jsx24(
|
|
1364
1440
|
Cuboid16,
|
|
1365
1441
|
{
|
|
1366
1442
|
color: "#000",
|
|
@@ -1370,7 +1446,7 @@ var FemaleHeader = ({
|
|
|
1370
1446
|
),
|
|
1371
1447
|
Array.from(
|
|
1372
1448
|
{ length: numberOfPins },
|
|
1373
|
-
(_, i) => innerDiameter ? /* @__PURE__ */
|
|
1449
|
+
(_, i) => innerDiameter ? /* @__PURE__ */ jsx24(
|
|
1374
1450
|
Cylinder4,
|
|
1375
1451
|
{
|
|
1376
1452
|
height: bodyHeight + 0.1,
|
|
@@ -1379,7 +1455,7 @@ var FemaleHeader = ({
|
|
|
1379
1455
|
color: "#222"
|
|
1380
1456
|
},
|
|
1381
1457
|
i
|
|
1382
|
-
) : /* @__PURE__ */
|
|
1458
|
+
) : /* @__PURE__ */ jsx24(
|
|
1383
1459
|
Cuboid16,
|
|
1384
1460
|
{
|
|
1385
1461
|
size: [gapWidth, gapWidth, bodyHeight],
|
|
@@ -1389,11 +1465,11 @@ var FemaleHeader = ({
|
|
|
1389
1465
|
)
|
|
1390
1466
|
)
|
|
1391
1467
|
] }) });
|
|
1392
|
-
return /* @__PURE__ */
|
|
1468
|
+
return /* @__PURE__ */ jsxs22(Fragment20, { children: [
|
|
1393
1469
|
Body,
|
|
1394
|
-
Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
1470
|
+
Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ jsxs22(Colorize8, { color: "silver", children: [
|
|
1471
|
+
/* @__PURE__ */ jsxs22(Hull3, { children: [
|
|
1472
|
+
/* @__PURE__ */ jsx24(
|
|
1397
1473
|
Cuboid16,
|
|
1398
1474
|
{
|
|
1399
1475
|
color: "silver",
|
|
@@ -1401,7 +1477,7 @@ var FemaleHeader = ({
|
|
|
1401
1477
|
center: [xoff + i * pitch, 0, -legsLength / 2 * 0.9]
|
|
1402
1478
|
}
|
|
1403
1479
|
),
|
|
1404
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ jsx24(
|
|
1405
1481
|
Cuboid16,
|
|
1406
1482
|
{
|
|
1407
1483
|
color: "silver",
|
|
@@ -1410,7 +1486,7 @@ var FemaleHeader = ({
|
|
|
1410
1486
|
}
|
|
1411
1487
|
)
|
|
1412
1488
|
] }),
|
|
1413
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx24(
|
|
1414
1490
|
Cuboid16,
|
|
1415
1491
|
{
|
|
1416
1492
|
color: "silver",
|
|
@@ -1432,7 +1508,7 @@ import {
|
|
|
1432
1508
|
RoundedCuboid,
|
|
1433
1509
|
Translate as Translate8
|
|
1434
1510
|
} from "jscad-fiber";
|
|
1435
|
-
import { Fragment as
|
|
1511
|
+
import { Fragment as Fragment21, jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1436
1512
|
var PushButton = ({
|
|
1437
1513
|
width: width10,
|
|
1438
1514
|
length,
|
|
@@ -1442,8 +1518,8 @@ var PushButton = ({
|
|
|
1442
1518
|
const bodyLength10 = length;
|
|
1443
1519
|
const bodyHeight = width10 * 0.7;
|
|
1444
1520
|
const legWidth = innerDiameter / 2.5;
|
|
1445
|
-
return /* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ jsxs23(Fragment21, { children: [
|
|
1522
|
+
/* @__PURE__ */ jsx25(
|
|
1447
1523
|
RoundedCuboid,
|
|
1448
1524
|
{
|
|
1449
1525
|
color: "#1a1a1f",
|
|
@@ -1452,7 +1528,7 @@ var PushButton = ({
|
|
|
1452
1528
|
roundRadius: 0.3
|
|
1453
1529
|
}
|
|
1454
1530
|
),
|
|
1455
|
-
/* @__PURE__ */
|
|
1531
|
+
/* @__PURE__ */ jsx25(
|
|
1456
1532
|
RoundedCuboid,
|
|
1457
1533
|
{
|
|
1458
1534
|
color: "#f2f2f2",
|
|
@@ -1461,7 +1537,7 @@ var PushButton = ({
|
|
|
1461
1537
|
roundRadius: 0.14
|
|
1462
1538
|
}
|
|
1463
1539
|
),
|
|
1464
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ jsx25(
|
|
1465
1541
|
Cylinder5,
|
|
1466
1542
|
{
|
|
1467
1543
|
color: "#1a1a1f",
|
|
@@ -1470,7 +1546,7 @@ var PushButton = ({
|
|
|
1470
1546
|
center: [0, 0, bodyHeight + bodyHeight * 0.8 / 2]
|
|
1471
1547
|
}
|
|
1472
1548
|
),
|
|
1473
|
-
/* @__PURE__ */
|
|
1549
|
+
/* @__PURE__ */ jsx25(
|
|
1474
1550
|
Cylinder5,
|
|
1475
1551
|
{
|
|
1476
1552
|
color: "#1a1a1f",
|
|
@@ -1483,7 +1559,7 @@ var PushButton = ({
|
|
|
1483
1559
|
]
|
|
1484
1560
|
}
|
|
1485
1561
|
),
|
|
1486
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ jsx25(
|
|
1487
1563
|
Cylinder5,
|
|
1488
1564
|
{
|
|
1489
1565
|
color: "#1a1a1f",
|
|
@@ -1496,7 +1572,7 @@ var PushButton = ({
|
|
|
1496
1572
|
]
|
|
1497
1573
|
}
|
|
1498
1574
|
),
|
|
1499
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ jsx25(
|
|
1500
1576
|
Cylinder5,
|
|
1501
1577
|
{
|
|
1502
1578
|
color: "#1a1a1f",
|
|
@@ -1509,7 +1585,7 @@ var PushButton = ({
|
|
|
1509
1585
|
]
|
|
1510
1586
|
}
|
|
1511
1587
|
),
|
|
1512
|
-
/* @__PURE__ */
|
|
1588
|
+
/* @__PURE__ */ jsx25(
|
|
1513
1589
|
Cylinder5,
|
|
1514
1590
|
{
|
|
1515
1591
|
color: "#1a1a1f",
|
|
@@ -1522,7 +1598,7 @@ var PushButton = ({
|
|
|
1522
1598
|
]
|
|
1523
1599
|
}
|
|
1524
1600
|
),
|
|
1525
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ jsx25(
|
|
1526
1602
|
PushButtonLeg,
|
|
1527
1603
|
{
|
|
1528
1604
|
thickness: innerDiameter / 3,
|
|
@@ -1536,7 +1612,7 @@ var PushButton = ({
|
|
|
1536
1612
|
}
|
|
1537
1613
|
}
|
|
1538
1614
|
),
|
|
1539
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ jsx25(
|
|
1540
1616
|
PushButtonLeg,
|
|
1541
1617
|
{
|
|
1542
1618
|
thickness: innerDiameter / 3,
|
|
@@ -1551,7 +1627,7 @@ var PushButton = ({
|
|
|
1551
1627
|
rotation: Math.PI
|
|
1552
1628
|
}
|
|
1553
1629
|
),
|
|
1554
|
-
/* @__PURE__ */
|
|
1630
|
+
/* @__PURE__ */ jsx25(
|
|
1555
1631
|
PushButtonLeg,
|
|
1556
1632
|
{
|
|
1557
1633
|
thickness: innerDiameter / 3,
|
|
@@ -1562,7 +1638,7 @@ var PushButton = ({
|
|
|
1562
1638
|
rotation: Math.PI
|
|
1563
1639
|
}
|
|
1564
1640
|
),
|
|
1565
|
-
/* @__PURE__ */
|
|
1641
|
+
/* @__PURE__ */ jsx25(
|
|
1566
1642
|
PushButtonLeg,
|
|
1567
1643
|
{
|
|
1568
1644
|
thickness: innerDiameter / 3,
|
|
@@ -1594,7 +1670,7 @@ var PushButtonLeg = (props) => {
|
|
|
1594
1670
|
[0, 0]
|
|
1595
1671
|
];
|
|
1596
1672
|
const polygon = getExpandedStroke(points, thickness);
|
|
1597
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ jsx25(Colorize9, { color: "#f2f2f2", children: /* @__PURE__ */ jsx25(
|
|
1598
1674
|
Translate8,
|
|
1599
1675
|
{
|
|
1600
1676
|
offset: {
|
|
@@ -1602,13 +1678,13 @@ var PushButtonLeg = (props) => {
|
|
|
1602
1678
|
y: position?.y || 0,
|
|
1603
1679
|
z: position?.z || 0
|
|
1604
1680
|
},
|
|
1605
|
-
children: /* @__PURE__ */
|
|
1681
|
+
children: /* @__PURE__ */ jsx25(Rotate5, { rotation: [0, 55, rotation], children: /* @__PURE__ */ jsx25(ExtrudeLinear3, { height: width10, children: /* @__PURE__ */ jsx25(Polygon3, { points: polygon.map((p) => [p.y, p.x]) }) }) })
|
|
1606
1682
|
}
|
|
1607
1683
|
) });
|
|
1608
1684
|
};
|
|
1609
1685
|
|
|
1610
1686
|
// lib/SOIC.tsx
|
|
1611
|
-
import { Fragment as
|
|
1687
|
+
import { Fragment as Fragment22, jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1612
1688
|
var SOIC = ({
|
|
1613
1689
|
pinCount,
|
|
1614
1690
|
leadLength,
|
|
@@ -1624,8 +1700,8 @@ var SOIC = ({
|
|
|
1624
1700
|
const leadBodyOffset = leadLength * 0;
|
|
1625
1701
|
const fullLength10 = pitch * (sidePinCount - 1) + leadWidth + 0.2;
|
|
1626
1702
|
const bodyWidthAdjusted = bodyWidth * 0.55;
|
|
1627
|
-
return /* @__PURE__ */
|
|
1628
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1703
|
+
return /* @__PURE__ */ jsxs24(Fragment22, { children: [
|
|
1704
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx26(
|
|
1629
1705
|
SmdChipLead,
|
|
1630
1706
|
{
|
|
1631
1707
|
position: {
|
|
@@ -1641,7 +1717,7 @@ var SOIC = ({
|
|
|
1641
1717
|
},
|
|
1642
1718
|
i
|
|
1643
1719
|
)),
|
|
1644
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1720
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx26(
|
|
1645
1721
|
SmdChipLead,
|
|
1646
1722
|
{
|
|
1647
1723
|
rotation: Math.PI,
|
|
@@ -1658,7 +1734,7 @@ var SOIC = ({
|
|
|
1658
1734
|
},
|
|
1659
1735
|
i
|
|
1660
1736
|
)),
|
|
1661
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ jsx26(
|
|
1662
1738
|
ChipBody,
|
|
1663
1739
|
{
|
|
1664
1740
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -1671,7 +1747,7 @@ var SOIC = ({
|
|
|
1671
1747
|
};
|
|
1672
1748
|
|
|
1673
1749
|
// lib/VSSOP.tsx
|
|
1674
|
-
import { Fragment as
|
|
1750
|
+
import { Fragment as Fragment23, jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1675
1751
|
var VSSOP = ({
|
|
1676
1752
|
pinCount,
|
|
1677
1753
|
pitch,
|
|
@@ -1701,8 +1777,8 @@ var VSSOP = ({
|
|
|
1701
1777
|
const componentFullWidth = 4.5;
|
|
1702
1778
|
const leadBodyDistance = (componentFullWidth - _bodyWidth) / 2;
|
|
1703
1779
|
const padContactLength = leadBodyDistance * 0.5;
|
|
1704
|
-
return /* @__PURE__ */
|
|
1705
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsxs25(Fragment23, { children: [
|
|
1781
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx27(
|
|
1706
1782
|
SmdChipLead,
|
|
1707
1783
|
{
|
|
1708
1784
|
position: {
|
|
@@ -1718,7 +1794,7 @@ var VSSOP = ({
|
|
|
1718
1794
|
},
|
|
1719
1795
|
`left-${i}`
|
|
1720
1796
|
)),
|
|
1721
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1797
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx27(
|
|
1722
1798
|
SmdChipLead,
|
|
1723
1799
|
{
|
|
1724
1800
|
rotation: Math.PI,
|
|
@@ -1735,7 +1811,7 @@ var VSSOP = ({
|
|
|
1735
1811
|
},
|
|
1736
1812
|
`right-${i}`
|
|
1737
1813
|
)),
|
|
1738
|
-
/* @__PURE__ */
|
|
1814
|
+
/* @__PURE__ */ jsx27(
|
|
1739
1815
|
ChipBody,
|
|
1740
1816
|
{
|
|
1741
1817
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -1749,7 +1825,7 @@ var VSSOP = ({
|
|
|
1749
1825
|
|
|
1750
1826
|
// lib/SOD523.tsx
|
|
1751
1827
|
import { Colorize as Colorize10, Cuboid as Cuboid18, Hull as Hull4, Translate as Translate9, Union as Union5 } from "jscad-fiber";
|
|
1752
|
-
import { Fragment as
|
|
1828
|
+
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1753
1829
|
var SOD523 = () => {
|
|
1754
1830
|
const fullWidth = 2.15;
|
|
1755
1831
|
const bodyLength10 = 0.8;
|
|
@@ -1762,8 +1838,8 @@ var SOD523 = () => {
|
|
|
1762
1838
|
const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
|
|
1763
1839
|
const taperOffset = 0.2;
|
|
1764
1840
|
const straightHeight = bodyHeight * 0.5;
|
|
1765
|
-
return /* @__PURE__ */
|
|
1766
|
-
/* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsxs26(Fragment24, { children: [
|
|
1842
|
+
/* @__PURE__ */ jsx28(
|
|
1767
1843
|
Cuboid18,
|
|
1768
1844
|
{
|
|
1769
1845
|
color: "#ccc",
|
|
@@ -1771,7 +1847,7 @@ var SOD523 = () => {
|
|
|
1771
1847
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
1772
1848
|
}
|
|
1773
1849
|
),
|
|
1774
|
-
/* @__PURE__ */
|
|
1850
|
+
/* @__PURE__ */ jsx28(
|
|
1775
1851
|
Cuboid18,
|
|
1776
1852
|
{
|
|
1777
1853
|
color: "#ccc",
|
|
@@ -1779,11 +1855,11 @@ var SOD523 = () => {
|
|
|
1779
1855
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1780
1856
|
}
|
|
1781
1857
|
),
|
|
1782
|
-
/* @__PURE__ */
|
|
1783
|
-
/* @__PURE__ */
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ jsx28(Colorize10, { color: "#222", children: /* @__PURE__ */ jsxs26(Union5, { children: [
|
|
1859
|
+
/* @__PURE__ */ jsx28(Translate9, { z: straightHeight / 2, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1860
|
+
/* @__PURE__ */ jsxs26(Hull4, { children: [
|
|
1861
|
+
/* @__PURE__ */ jsx28(Translate9, { z: straightHeight, children: /* @__PURE__ */ jsx28(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1862
|
+
/* @__PURE__ */ jsx28(Translate9, { z: bodyHeight, children: /* @__PURE__ */ jsx28(
|
|
1787
1863
|
Cuboid18,
|
|
1788
1864
|
{
|
|
1789
1865
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -1796,7 +1872,7 @@ var SOD523 = () => {
|
|
|
1796
1872
|
|
|
1797
1873
|
// lib/SOD882.tsx
|
|
1798
1874
|
import { Colorize as Colorize11, Cuboid as Cuboid19, Translate as Translate10 } from "jscad-fiber";
|
|
1799
|
-
import { Fragment as
|
|
1875
|
+
import { Fragment as Fragment25, jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1800
1876
|
var SOD882 = () => {
|
|
1801
1877
|
const bodyLength10 = 0.98;
|
|
1802
1878
|
const bodyHeight = 0.47;
|
|
@@ -1807,8 +1883,8 @@ var SOD882 = () => {
|
|
|
1807
1883
|
const bodyWidth = 0.58;
|
|
1808
1884
|
const leftPadCenterX = -pitch / 2;
|
|
1809
1885
|
const rightPadCenterX = pitch / 2;
|
|
1810
|
-
return /* @__PURE__ */
|
|
1811
|
-
/* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsxs27(Fragment25, { children: [
|
|
1887
|
+
/* @__PURE__ */ jsx29(
|
|
1812
1888
|
Cuboid19,
|
|
1813
1889
|
{
|
|
1814
1890
|
color: "#ccc",
|
|
@@ -1816,7 +1892,7 @@ var SOD882 = () => {
|
|
|
1816
1892
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
1817
1893
|
}
|
|
1818
1894
|
),
|
|
1819
|
-
/* @__PURE__ */
|
|
1895
|
+
/* @__PURE__ */ jsx29(
|
|
1820
1896
|
Cuboid19,
|
|
1821
1897
|
{
|
|
1822
1898
|
color: "#ccc",
|
|
@@ -1824,8 +1900,8 @@ var SOD882 = () => {
|
|
|
1824
1900
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1825
1901
|
}
|
|
1826
1902
|
),
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1903
|
+
/* @__PURE__ */ jsx29(Colorize11, { color: "#222", children: /* @__PURE__ */ jsx29(Translate10, { z: bodyHeight / 2 + 0.02, children: /* @__PURE__ */ jsx29(Cuboid19, { size: [bodyLength10, bodyWidth, bodyHeight] }) }) }),
|
|
1904
|
+
/* @__PURE__ */ jsx29(
|
|
1829
1905
|
Cuboid19,
|
|
1830
1906
|
{
|
|
1831
1907
|
color: "#ccc",
|
|
@@ -1833,7 +1909,7 @@ var SOD882 = () => {
|
|
|
1833
1909
|
center: [0, padLength / 2, bodyHeight / 4]
|
|
1834
1910
|
}
|
|
1835
1911
|
),
|
|
1836
|
-
/* @__PURE__ */
|
|
1912
|
+
/* @__PURE__ */ jsx29(
|
|
1837
1913
|
Cuboid19,
|
|
1838
1914
|
{
|
|
1839
1915
|
color: "#ccc",
|
|
@@ -1841,7 +1917,7 @@ var SOD882 = () => {
|
|
|
1841
1917
|
center: [0, -padLength / 2, bodyHeight / 4]
|
|
1842
1918
|
}
|
|
1843
1919
|
),
|
|
1844
|
-
/* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ jsx29(
|
|
1845
1921
|
Cuboid19,
|
|
1846
1922
|
{
|
|
1847
1923
|
color: "#ccc",
|
|
@@ -1849,7 +1925,7 @@ var SOD882 = () => {
|
|
|
1849
1925
|
center: [pitch / 2, 0, bodyHeight / 4]
|
|
1850
1926
|
}
|
|
1851
1927
|
),
|
|
1852
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ jsx29(
|
|
1853
1929
|
Cuboid19,
|
|
1854
1930
|
{
|
|
1855
1931
|
color: "#ccc",
|
|
@@ -1862,7 +1938,7 @@ var SOD882 = () => {
|
|
|
1862
1938
|
|
|
1863
1939
|
// lib/SMA.tsx
|
|
1864
1940
|
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union7, Hull as Hull6, Translate as Translate11 } from "jscad-fiber";
|
|
1865
|
-
import { Fragment as
|
|
1941
|
+
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1866
1942
|
var SMA = () => {
|
|
1867
1943
|
const bodyWidth = 4.4;
|
|
1868
1944
|
const bodyLength10 = 3.4;
|
|
@@ -1873,19 +1949,19 @@ var SMA = () => {
|
|
|
1873
1949
|
const leadHeight = 1.14;
|
|
1874
1950
|
const taperOffset = 0.4;
|
|
1875
1951
|
const straightHeight = bodyHeight * 0.5;
|
|
1876
|
-
const Body = /* @__PURE__ */
|
|
1877
|
-
/* @__PURE__ */
|
|
1878
|
-
/* @__PURE__ */
|
|
1952
|
+
const Body = /* @__PURE__ */ jsx30(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(Union7, { children: [
|
|
1953
|
+
/* @__PURE__ */ jsxs28(Hull6, { children: [
|
|
1954
|
+
/* @__PURE__ */ jsx30(Translate11, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx30(
|
|
1879
1955
|
Cuboid20,
|
|
1880
1956
|
{
|
|
1881
1957
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1882
1958
|
}
|
|
1883
1959
|
) }),
|
|
1884
|
-
/* @__PURE__ */
|
|
1960
|
+
/* @__PURE__ */ jsx30(Translate11, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1885
1961
|
] }),
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1962
|
+
/* @__PURE__ */ jsxs28(Hull6, { children: [
|
|
1963
|
+
/* @__PURE__ */ jsx30(Translate11, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1964
|
+
/* @__PURE__ */ jsx30(Translate11, { z: bodyHeight, children: /* @__PURE__ */ jsx30(
|
|
1889
1965
|
Cuboid20,
|
|
1890
1966
|
{
|
|
1891
1967
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -1901,22 +1977,22 @@ var SMA = () => {
|
|
|
1901
1977
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1902
1978
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1903
1979
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1904
|
-
return /* @__PURE__ */
|
|
1905
|
-
/* @__PURE__ */
|
|
1980
|
+
return /* @__PURE__ */ jsx30(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs28(Union7, { children: [
|
|
1981
|
+
/* @__PURE__ */ jsx30(
|
|
1906
1982
|
Cuboid20,
|
|
1907
1983
|
{
|
|
1908
1984
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1909
1985
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
1910
1986
|
}
|
|
1911
1987
|
),
|
|
1912
|
-
/* @__PURE__ */
|
|
1988
|
+
/* @__PURE__ */ jsx30(
|
|
1913
1989
|
Cuboid20,
|
|
1914
1990
|
{
|
|
1915
1991
|
size: [leadThickness, padWidth, leadHeight],
|
|
1916
1992
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1917
1993
|
}
|
|
1918
1994
|
),
|
|
1919
|
-
/* @__PURE__ */
|
|
1995
|
+
/* @__PURE__ */ jsx30(
|
|
1920
1996
|
Cuboid20,
|
|
1921
1997
|
{
|
|
1922
1998
|
size: [bridgeLength, padWidth, leadThickness],
|
|
@@ -1925,16 +2001,16 @@ var SMA = () => {
|
|
|
1925
2001
|
)
|
|
1926
2002
|
] }) });
|
|
1927
2003
|
};
|
|
1928
|
-
return /* @__PURE__ */
|
|
1929
|
-
/* @__PURE__ */
|
|
1930
|
-
/* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ jsxs28(Fragment26, { children: [
|
|
2005
|
+
/* @__PURE__ */ jsx30(Lead, { xDir: 1 }),
|
|
2006
|
+
/* @__PURE__ */ jsx30(Lead, { xDir: -1 }),
|
|
1931
2007
|
Body
|
|
1932
2008
|
] });
|
|
1933
2009
|
};
|
|
1934
2010
|
|
|
1935
2011
|
// lib/SMB.tsx
|
|
1936
2012
|
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union8, Hull as Hull7, Translate as Translate12 } from "jscad-fiber";
|
|
1937
|
-
import { Fragment as
|
|
2013
|
+
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1938
2014
|
var SMB = () => {
|
|
1939
2015
|
const bodyWidth = 4.4;
|
|
1940
2016
|
const bodyLength10 = 3.4;
|
|
@@ -1945,19 +2021,19 @@ var SMB = () => {
|
|
|
1945
2021
|
const leadHeight = 1.14;
|
|
1946
2022
|
const taperOffset = 0.4;
|
|
1947
2023
|
const straightHeight = bodyHeight * 0.5;
|
|
1948
|
-
const Body = /* @__PURE__ */
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
2024
|
+
const Body = /* @__PURE__ */ jsx31(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(Union8, { children: [
|
|
2025
|
+
/* @__PURE__ */ jsxs29(Hull7, { children: [
|
|
2026
|
+
/* @__PURE__ */ jsx31(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx31(
|
|
1951
2027
|
Cuboid21,
|
|
1952
2028
|
{
|
|
1953
2029
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1954
2030
|
}
|
|
1955
2031
|
) }),
|
|
1956
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ jsx31(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1957
2033
|
] }),
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ jsxs29(Hull7, { children: [
|
|
2035
|
+
/* @__PURE__ */ jsx31(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2036
|
+
/* @__PURE__ */ jsx31(Translate12, { z: bodyHeight, children: /* @__PURE__ */ jsx31(
|
|
1961
2037
|
Cuboid21,
|
|
1962
2038
|
{
|
|
1963
2039
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -1973,22 +2049,22 @@ var SMB = () => {
|
|
|
1973
2049
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1974
2050
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1975
2051
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1976
|
-
return /* @__PURE__ */
|
|
1977
|
-
/* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ jsx31(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(Union8, { children: [
|
|
2053
|
+
/* @__PURE__ */ jsx31(
|
|
1978
2054
|
Cuboid21,
|
|
1979
2055
|
{
|
|
1980
2056
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1981
2057
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
1982
2058
|
}
|
|
1983
2059
|
),
|
|
1984
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ jsx31(
|
|
1985
2061
|
Cuboid21,
|
|
1986
2062
|
{
|
|
1987
2063
|
size: [leadThickness, padWidth, leadHeight],
|
|
1988
2064
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1989
2065
|
}
|
|
1990
2066
|
),
|
|
1991
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ jsx31(
|
|
1992
2068
|
Cuboid21,
|
|
1993
2069
|
{
|
|
1994
2070
|
size: [bridgeLength, padWidth, leadThickness],
|
|
@@ -1997,16 +2073,16 @@ var SMB = () => {
|
|
|
1997
2073
|
)
|
|
1998
2074
|
] }) });
|
|
1999
2075
|
};
|
|
2000
|
-
return /* @__PURE__ */
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
2076
|
+
return /* @__PURE__ */ jsxs29(Fragment27, { children: [
|
|
2077
|
+
/* @__PURE__ */ jsx31(Lead, { xDir: 1 }),
|
|
2078
|
+
/* @__PURE__ */ jsx31(Lead, { xDir: -1 }),
|
|
2003
2079
|
Body
|
|
2004
2080
|
] });
|
|
2005
2081
|
};
|
|
2006
2082
|
|
|
2007
2083
|
// lib/SMC.tsx
|
|
2008
2084
|
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as Union9, Hull as Hull8, Translate as Translate13 } from "jscad-fiber";
|
|
2009
|
-
import { Fragment as
|
|
2085
|
+
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2010
2086
|
var SMC = () => {
|
|
2011
2087
|
const bodyWidth = 6.8;
|
|
2012
2088
|
const bodyLength10 = 6;
|
|
@@ -2017,19 +2093,19 @@ var SMC = () => {
|
|
|
2017
2093
|
const leadHeight = 1.14;
|
|
2018
2094
|
const taperOffset = 0.4;
|
|
2019
2095
|
const straightHeight = bodyHeight * 0.5;
|
|
2020
|
-
const Body = /* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2096
|
+
const Body = /* @__PURE__ */ jsx32(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(Union9, { children: [
|
|
2097
|
+
/* @__PURE__ */ jsxs30(Hull8, { children: [
|
|
2098
|
+
/* @__PURE__ */ jsx32(Translate13, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx32(
|
|
2023
2099
|
Cuboid22,
|
|
2024
2100
|
{
|
|
2025
2101
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2026
2102
|
}
|
|
2027
2103
|
) }),
|
|
2028
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ jsx32(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx32(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2029
2105
|
] }),
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ jsxs30(Hull8, { children: [
|
|
2107
|
+
/* @__PURE__ */ jsx32(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx32(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2108
|
+
/* @__PURE__ */ jsx32(Translate13, { z: bodyHeight, children: /* @__PURE__ */ jsx32(
|
|
2033
2109
|
Cuboid22,
|
|
2034
2110
|
{
|
|
2035
2111
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2045,22 +2121,22 @@ var SMC = () => {
|
|
|
2045
2121
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2046
2122
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2047
2123
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ jsx32(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs30(Union9, { children: [
|
|
2125
|
+
/* @__PURE__ */ jsx32(
|
|
2050
2126
|
Cuboid22,
|
|
2051
2127
|
{
|
|
2052
2128
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
2053
2129
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
2054
2130
|
}
|
|
2055
2131
|
),
|
|
2056
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ jsx32(
|
|
2057
2133
|
Cuboid22,
|
|
2058
2134
|
{
|
|
2059
2135
|
size: [leadThickness, padWidth, leadHeight],
|
|
2060
2136
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
2061
2137
|
}
|
|
2062
2138
|
),
|
|
2063
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ jsx32(
|
|
2064
2140
|
Cuboid22,
|
|
2065
2141
|
{
|
|
2066
2142
|
size: [bridgeLength, padWidth, leadThickness],
|
|
@@ -2069,16 +2145,16 @@ var SMC = () => {
|
|
|
2069
2145
|
)
|
|
2070
2146
|
] }) });
|
|
2071
2147
|
};
|
|
2072
|
-
return /* @__PURE__ */
|
|
2073
|
-
/* @__PURE__ */
|
|
2074
|
-
/* @__PURE__ */
|
|
2148
|
+
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2149
|
+
/* @__PURE__ */ jsx32(Lead, { xDir: 1 }),
|
|
2150
|
+
/* @__PURE__ */ jsx32(Lead, { xDir: -1 }),
|
|
2075
2151
|
Body
|
|
2076
2152
|
] });
|
|
2077
2153
|
};
|
|
2078
2154
|
|
|
2079
2155
|
// lib/SMF.tsx
|
|
2080
2156
|
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as Union10 } from "jscad-fiber";
|
|
2081
|
-
import { Fragment as
|
|
2157
|
+
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2082
2158
|
var SMF = () => {
|
|
2083
2159
|
const fullWidth = 2.9;
|
|
2084
2160
|
const bodyLength10 = 1.9;
|
|
@@ -2091,11 +2167,11 @@ var SMF = () => {
|
|
|
2091
2167
|
const rightPadCenterX = 1.3;
|
|
2092
2168
|
const taperOffset = 0.2;
|
|
2093
2169
|
const straightHeight = bodyHeight * 0.5;
|
|
2094
|
-
const Body = /* @__PURE__ */
|
|
2095
|
-
/* @__PURE__ */
|
|
2096
|
-
/* @__PURE__ */
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
/* @__PURE__ */
|
|
2170
|
+
const Body = /* @__PURE__ */ jsx33(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs31(Union10, { children: [
|
|
2171
|
+
/* @__PURE__ */ jsx33(Translate14, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2172
|
+
/* @__PURE__ */ jsxs31(Hull9, { children: [
|
|
2173
|
+
/* @__PURE__ */ jsx33(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2174
|
+
/* @__PURE__ */ jsx33(Translate14, { z: bodyHeight, children: /* @__PURE__ */ jsx33(
|
|
2099
2175
|
Cuboid23,
|
|
2100
2176
|
{
|
|
2101
2177
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2103,8 +2179,8 @@ var SMF = () => {
|
|
|
2103
2179
|
) })
|
|
2104
2180
|
] })
|
|
2105
2181
|
] }) });
|
|
2106
|
-
return /* @__PURE__ */
|
|
2107
|
-
/* @__PURE__ */
|
|
2182
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2183
|
+
/* @__PURE__ */ jsx33(
|
|
2108
2184
|
Cuboid23,
|
|
2109
2185
|
{
|
|
2110
2186
|
color: "#ccc",
|
|
@@ -2112,7 +2188,7 @@ var SMF = () => {
|
|
|
2112
2188
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2113
2189
|
}
|
|
2114
2190
|
),
|
|
2115
|
-
/* @__PURE__ */
|
|
2191
|
+
/* @__PURE__ */ jsx33(
|
|
2116
2192
|
Cuboid23,
|
|
2117
2193
|
{
|
|
2118
2194
|
color: "#ccc",
|
|
@@ -2126,7 +2202,7 @@ var SMF = () => {
|
|
|
2126
2202
|
|
|
2127
2203
|
// lib/sod-123F.tsx
|
|
2128
2204
|
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union11 } from "jscad-fiber";
|
|
2129
|
-
import { Fragment as
|
|
2205
|
+
import { Fragment as Fragment30, jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2130
2206
|
var SOD123F = () => {
|
|
2131
2207
|
const fullWidth = 2.7;
|
|
2132
2208
|
const bodyLength10 = 1.6;
|
|
@@ -2138,8 +2214,8 @@ var SOD123F = () => {
|
|
|
2138
2214
|
const rightPadCenterX = 1.3;
|
|
2139
2215
|
const taperOffset = 0.2;
|
|
2140
2216
|
const straightHeight = bodyHeight * 0.5;
|
|
2141
|
-
return /* @__PURE__ */
|
|
2142
|
-
/* @__PURE__ */
|
|
2217
|
+
return /* @__PURE__ */ jsxs32(Fragment30, { children: [
|
|
2218
|
+
/* @__PURE__ */ jsx34(
|
|
2143
2219
|
Cuboid24,
|
|
2144
2220
|
{
|
|
2145
2221
|
color: "#ccc",
|
|
@@ -2147,7 +2223,7 @@ var SOD123F = () => {
|
|
|
2147
2223
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2148
2224
|
}
|
|
2149
2225
|
),
|
|
2150
|
-
/* @__PURE__ */
|
|
2226
|
+
/* @__PURE__ */ jsx34(
|
|
2151
2227
|
Cuboid24,
|
|
2152
2228
|
{
|
|
2153
2229
|
color: "#ccc",
|
|
@@ -2155,11 +2231,11 @@ var SOD123F = () => {
|
|
|
2155
2231
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2156
2232
|
}
|
|
2157
2233
|
),
|
|
2158
|
-
/* @__PURE__ */
|
|
2159
|
-
/* @__PURE__ */
|
|
2160
|
-
/* @__PURE__ */
|
|
2161
|
-
/* @__PURE__ */
|
|
2162
|
-
/* @__PURE__ */
|
|
2234
|
+
/* @__PURE__ */ jsx34(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(Union11, { children: [
|
|
2235
|
+
/* @__PURE__ */ jsx34(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2236
|
+
/* @__PURE__ */ jsxs32(Hull10, { children: [
|
|
2237
|
+
/* @__PURE__ */ jsx34(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2238
|
+
/* @__PURE__ */ jsx34(Translate15, { z: bodyHeight, children: /* @__PURE__ */ jsx34(
|
|
2163
2239
|
Cuboid24,
|
|
2164
2240
|
{
|
|
2165
2241
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2172,7 +2248,7 @@ var SOD123F = () => {
|
|
|
2172
2248
|
|
|
2173
2249
|
// lib/sod-123FL.tsx
|
|
2174
2250
|
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as Union12 } from "jscad-fiber";
|
|
2175
|
-
import { Fragment as
|
|
2251
|
+
import { Fragment as Fragment31, jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2176
2252
|
var SOD123FL = () => {
|
|
2177
2253
|
const fullWidth = 2.75;
|
|
2178
2254
|
const bodyLength10 = 1.8;
|
|
@@ -2184,8 +2260,8 @@ var SOD123FL = () => {
|
|
|
2184
2260
|
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2185
2261
|
const taperOffset = 0.4;
|
|
2186
2262
|
const straightHeight = bodyHeight * 0.2;
|
|
2187
|
-
return /* @__PURE__ */
|
|
2188
|
-
/* @__PURE__ */
|
|
2263
|
+
return /* @__PURE__ */ jsxs33(Fragment31, { children: [
|
|
2264
|
+
/* @__PURE__ */ jsx35(
|
|
2189
2265
|
Cuboid25,
|
|
2190
2266
|
{
|
|
2191
2267
|
color: "#ccc",
|
|
@@ -2193,7 +2269,7 @@ var SOD123FL = () => {
|
|
|
2193
2269
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2194
2270
|
}
|
|
2195
2271
|
),
|
|
2196
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsx35(
|
|
2197
2273
|
Cuboid25,
|
|
2198
2274
|
{
|
|
2199
2275
|
color: "#ccc",
|
|
@@ -2201,11 +2277,11 @@ var SOD123FL = () => {
|
|
|
2201
2277
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2202
2278
|
}
|
|
2203
2279
|
),
|
|
2204
|
-
/* @__PURE__ */
|
|
2205
|
-
/* @__PURE__ */
|
|
2206
|
-
/* @__PURE__ */
|
|
2207
|
-
/* @__PURE__ */
|
|
2208
|
-
/* @__PURE__ */
|
|
2280
|
+
/* @__PURE__ */ jsx35(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(Union12, { children: [
|
|
2281
|
+
/* @__PURE__ */ jsx35(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2282
|
+
/* @__PURE__ */ jsxs33(Hull11, { children: [
|
|
2283
|
+
/* @__PURE__ */ jsx35(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2284
|
+
/* @__PURE__ */ jsx35(Translate16, { z: bodyHeight, children: /* @__PURE__ */ jsx35(
|
|
2209
2285
|
Cuboid25,
|
|
2210
2286
|
{
|
|
2211
2287
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2213,7 +2289,7 @@ var SOD123FL = () => {
|
|
|
2213
2289
|
) })
|
|
2214
2290
|
] })
|
|
2215
2291
|
] }) }),
|
|
2216
|
-
/* @__PURE__ */
|
|
2292
|
+
/* @__PURE__ */ jsx35(
|
|
2217
2293
|
Cuboid25,
|
|
2218
2294
|
{
|
|
2219
2295
|
color: "#777",
|
|
@@ -2224,9 +2300,85 @@ var SOD123FL = () => {
|
|
|
2224
2300
|
] });
|
|
2225
2301
|
};
|
|
2226
2302
|
|
|
2227
|
-
// lib/
|
|
2303
|
+
// lib/sod-128.tsx
|
|
2228
2304
|
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as Union13 } from "jscad-fiber";
|
|
2229
|
-
import { Fragment as
|
|
2305
|
+
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2306
|
+
var SOD128 = () => {
|
|
2307
|
+
const fullWidth = 3.8;
|
|
2308
|
+
const bodyLength10 = 2.5;
|
|
2309
|
+
const bodyHeight = 1;
|
|
2310
|
+
const padWidth = 1.75;
|
|
2311
|
+
const padLength = 0.9;
|
|
2312
|
+
const padThickness = 0.2;
|
|
2313
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2314
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2315
|
+
const taperOffset = 0.4;
|
|
2316
|
+
const lowerTaperOffset = 0.05;
|
|
2317
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2318
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2319
|
+
/* @__PURE__ */ jsx36(
|
|
2320
|
+
Cuboid26,
|
|
2321
|
+
{
|
|
2322
|
+
color: "#ccc",
|
|
2323
|
+
size: [padLength, padWidth, padThickness],
|
|
2324
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2325
|
+
}
|
|
2326
|
+
),
|
|
2327
|
+
/* @__PURE__ */ jsx36(
|
|
2328
|
+
Cuboid26,
|
|
2329
|
+
{
|
|
2330
|
+
color: "#ccc",
|
|
2331
|
+
size: [padLength, padWidth, padThickness],
|
|
2332
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2333
|
+
}
|
|
2334
|
+
),
|
|
2335
|
+
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union13, { children: [
|
|
2336
|
+
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2337
|
+
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(
|
|
2338
|
+
Cuboid26,
|
|
2339
|
+
{
|
|
2340
|
+
size: [
|
|
2341
|
+
fullWidth - lowerTaperOffset / 2,
|
|
2342
|
+
bodyLength10 - lowerTaperOffset / 2,
|
|
2343
|
+
0.01
|
|
2344
|
+
]
|
|
2345
|
+
}
|
|
2346
|
+
) }),
|
|
2347
|
+
/* @__PURE__ */ jsx36(Translate17, { z: 0.01, children: /* @__PURE__ */ jsx36(
|
|
2348
|
+
Cuboid26,
|
|
2349
|
+
{
|
|
2350
|
+
size: [
|
|
2351
|
+
fullWidth - lowerTaperOffset,
|
|
2352
|
+
bodyLength10 - lowerTaperOffset,
|
|
2353
|
+
0.01
|
|
2354
|
+
]
|
|
2355
|
+
}
|
|
2356
|
+
) })
|
|
2357
|
+
] }),
|
|
2358
|
+
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2359
|
+
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(Cuboid26, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2360
|
+
/* @__PURE__ */ jsx36(Translate17, { z: bodyHeight, children: /* @__PURE__ */ jsx36(
|
|
2361
|
+
Cuboid26,
|
|
2362
|
+
{
|
|
2363
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2364
|
+
}
|
|
2365
|
+
) })
|
|
2366
|
+
] })
|
|
2367
|
+
] }) }),
|
|
2368
|
+
/* @__PURE__ */ jsx36(
|
|
2369
|
+
Cuboid26,
|
|
2370
|
+
{
|
|
2371
|
+
color: "#777",
|
|
2372
|
+
size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
|
|
2373
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2374
|
+
}
|
|
2375
|
+
)
|
|
2376
|
+
] });
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
// lib/SOD-923.tsx
|
|
2380
|
+
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as Union14 } from "jscad-fiber";
|
|
2381
|
+
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2230
2382
|
var SOD923 = () => {
|
|
2231
2383
|
const fullWidth = 0.8;
|
|
2232
2384
|
const bodyLength10 = 0.6;
|
|
@@ -2238,29 +2390,29 @@ var SOD923 = () => {
|
|
|
2238
2390
|
const rightPadCenterX = fullWidth / 2;
|
|
2239
2391
|
const taperOffset = 0.1;
|
|
2240
2392
|
const straightHeight = padThickness;
|
|
2241
|
-
return /* @__PURE__ */
|
|
2242
|
-
/* @__PURE__ */
|
|
2243
|
-
|
|
2393
|
+
return /* @__PURE__ */ jsxs35(Fragment33, { children: [
|
|
2394
|
+
/* @__PURE__ */ jsx37(
|
|
2395
|
+
Cuboid27,
|
|
2244
2396
|
{
|
|
2245
2397
|
color: "#ccc",
|
|
2246
2398
|
size: [padLength, padWidth, padThickness],
|
|
2247
2399
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2248
2400
|
}
|
|
2249
2401
|
),
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
|
|
2402
|
+
/* @__PURE__ */ jsx37(
|
|
2403
|
+
Cuboid27,
|
|
2252
2404
|
{
|
|
2253
2405
|
color: "#ccc",
|
|
2254
2406
|
size: [padLength, padWidth, padThickness],
|
|
2255
2407
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2256
2408
|
}
|
|
2257
2409
|
),
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
2260
|
-
/* @__PURE__ */
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
/* @__PURE__ */
|
|
2263
|
-
|
|
2410
|
+
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union14, { children: [
|
|
2411
|
+
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight / 2, children: /* @__PURE__ */ jsx37(Cuboid27, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2412
|
+
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2413
|
+
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx37(Cuboid27, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2414
|
+
/* @__PURE__ */ jsx37(Translate18, { z: bodyHeight, children: /* @__PURE__ */ jsx37(
|
|
2415
|
+
Cuboid27,
|
|
2264
2416
|
{
|
|
2265
2417
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2266
2418
|
}
|
|
@@ -2271,7 +2423,7 @@ var SOD923 = () => {
|
|
|
2271
2423
|
};
|
|
2272
2424
|
|
|
2273
2425
|
// lib/SOT-223.tsx
|
|
2274
|
-
import { Fragment as
|
|
2426
|
+
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2275
2427
|
var SOT223 = () => {
|
|
2276
2428
|
const fullWidth = 6.6;
|
|
2277
2429
|
const bodyWidth = 3.5;
|
|
@@ -2284,8 +2436,8 @@ var SOT223 = () => {
|
|
|
2284
2436
|
const padContactLength = 0.5;
|
|
2285
2437
|
const padPitch = 2.3;
|
|
2286
2438
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2287
|
-
return /* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ jsxs36(Fragment34, { children: [
|
|
2440
|
+
/* @__PURE__ */ jsx38(
|
|
2289
2441
|
SmdChipLead,
|
|
2290
2442
|
{
|
|
2291
2443
|
rotation: Math.PI,
|
|
@@ -2302,7 +2454,7 @@ var SOT223 = () => {
|
|
|
2302
2454
|
},
|
|
2303
2455
|
4
|
|
2304
2456
|
),
|
|
2305
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ jsx38(
|
|
2306
2458
|
SmdChipLead,
|
|
2307
2459
|
{
|
|
2308
2460
|
position: {
|
|
@@ -2318,7 +2470,7 @@ var SOT223 = () => {
|
|
|
2318
2470
|
},
|
|
2319
2471
|
3
|
|
2320
2472
|
),
|
|
2321
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ jsx38(
|
|
2322
2474
|
SmdChipLead,
|
|
2323
2475
|
{
|
|
2324
2476
|
position: {
|
|
@@ -2334,7 +2486,7 @@ var SOT223 = () => {
|
|
|
2334
2486
|
},
|
|
2335
2487
|
1
|
|
2336
2488
|
),
|
|
2337
|
-
/* @__PURE__ */
|
|
2489
|
+
/* @__PURE__ */ jsx38(
|
|
2338
2490
|
SmdChipLead,
|
|
2339
2491
|
{
|
|
2340
2492
|
position: {
|
|
@@ -2350,7 +2502,7 @@ var SOT223 = () => {
|
|
|
2350
2502
|
},
|
|
2351
2503
|
2
|
|
2352
2504
|
),
|
|
2353
|
-
/* @__PURE__ */
|
|
2505
|
+
/* @__PURE__ */ jsx38(
|
|
2354
2506
|
ChipBody,
|
|
2355
2507
|
{
|
|
2356
2508
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2366,7 +2518,7 @@ var SOT223 = () => {
|
|
|
2366
2518
|
};
|
|
2367
2519
|
|
|
2368
2520
|
// lib/tqfp.tsx
|
|
2369
|
-
import { Fragment as
|
|
2521
|
+
import { Fragment as Fragment35, jsx as jsx39, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2370
2522
|
var TQFP = () => {
|
|
2371
2523
|
const pinCount = 64;
|
|
2372
2524
|
const pitch = 0.5;
|
|
@@ -2381,8 +2533,8 @@ var TQFP = () => {
|
|
|
2381
2533
|
const leadHeight = 0.65;
|
|
2382
2534
|
const leadThickness = 0.25;
|
|
2383
2535
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2384
|
-
return /* @__PURE__ */
|
|
2385
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2536
|
+
return /* @__PURE__ */ jsxs37(Fragment35, { children: [
|
|
2537
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2386
2538
|
SmdChipLead,
|
|
2387
2539
|
{
|
|
2388
2540
|
position: {
|
|
@@ -2398,7 +2550,7 @@ var TQFP = () => {
|
|
|
2398
2550
|
},
|
|
2399
2551
|
`left-${i}`
|
|
2400
2552
|
)),
|
|
2401
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2553
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2402
2554
|
SmdChipLead,
|
|
2403
2555
|
{
|
|
2404
2556
|
rotation: Math.PI,
|
|
@@ -2415,7 +2567,7 @@ var TQFP = () => {
|
|
|
2415
2567
|
},
|
|
2416
2568
|
`right-${i}`
|
|
2417
2569
|
)),
|
|
2418
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2570
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2419
2571
|
SmdChipLead,
|
|
2420
2572
|
{
|
|
2421
2573
|
rotation: Math.PI / 2,
|
|
@@ -2432,7 +2584,7 @@ var TQFP = () => {
|
|
|
2432
2584
|
},
|
|
2433
2585
|
`bottom-${i}`
|
|
2434
2586
|
)),
|
|
2435
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2587
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2436
2588
|
SmdChipLead,
|
|
2437
2589
|
{
|
|
2438
2590
|
rotation: -Math.PI / 2,
|
|
@@ -2449,7 +2601,7 @@ var TQFP = () => {
|
|
|
2449
2601
|
},
|
|
2450
2602
|
`top-${i}`
|
|
2451
2603
|
)),
|
|
2452
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ jsx39(
|
|
2453
2605
|
ChipBody,
|
|
2454
2606
|
{
|
|
2455
2607
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2467,7 +2619,7 @@ var TQFP = () => {
|
|
|
2467
2619
|
var tqfp_default = TQFP;
|
|
2468
2620
|
|
|
2469
2621
|
// lib/SOT-323.tsx
|
|
2470
|
-
import { Fragment as
|
|
2622
|
+
import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2471
2623
|
var SOT323 = () => {
|
|
2472
2624
|
const fullWidth = 2.05;
|
|
2473
2625
|
const bodyWidth = 1.25;
|
|
@@ -2479,8 +2631,8 @@ var SOT323 = () => {
|
|
|
2479
2631
|
const padContactLength = 0.2;
|
|
2480
2632
|
const padPitch = 0.65;
|
|
2481
2633
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2482
|
-
return /* @__PURE__ */
|
|
2483
|
-
/* @__PURE__ */
|
|
2634
|
+
return /* @__PURE__ */ jsxs38(Fragment36, { children: [
|
|
2635
|
+
/* @__PURE__ */ jsx40(
|
|
2484
2636
|
SmdChipLead,
|
|
2485
2637
|
{
|
|
2486
2638
|
rotation: Math.PI,
|
|
@@ -2497,7 +2649,7 @@ var SOT323 = () => {
|
|
|
2497
2649
|
},
|
|
2498
2650
|
4
|
|
2499
2651
|
),
|
|
2500
|
-
/* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ jsx40(
|
|
2501
2653
|
SmdChipLead,
|
|
2502
2654
|
{
|
|
2503
2655
|
position: {
|
|
@@ -2513,7 +2665,7 @@ var SOT323 = () => {
|
|
|
2513
2665
|
},
|
|
2514
2666
|
1
|
|
2515
2667
|
),
|
|
2516
|
-
/* @__PURE__ */
|
|
2668
|
+
/* @__PURE__ */ jsx40(
|
|
2517
2669
|
SmdChipLead,
|
|
2518
2670
|
{
|
|
2519
2671
|
position: {
|
|
@@ -2529,7 +2681,7 @@ var SOT323 = () => {
|
|
|
2529
2681
|
},
|
|
2530
2682
|
2
|
|
2531
2683
|
),
|
|
2532
|
-
/* @__PURE__ */
|
|
2684
|
+
/* @__PURE__ */ jsx40(
|
|
2533
2685
|
ChipBody,
|
|
2534
2686
|
{
|
|
2535
2687
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2546,7 +2698,7 @@ var SOT323 = () => {
|
|
|
2546
2698
|
};
|
|
2547
2699
|
|
|
2548
2700
|
// lib/lqfp.tsx
|
|
2549
|
-
import { Fragment as
|
|
2701
|
+
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2550
2702
|
var LQFP = ({
|
|
2551
2703
|
pinCount,
|
|
2552
2704
|
pitch,
|
|
@@ -2569,8 +2721,8 @@ var LQFP = ({
|
|
|
2569
2721
|
const leadHeight = 0.8;
|
|
2570
2722
|
const leadThickness = 0.2;
|
|
2571
2723
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
|
|
2572
|
-
return /* @__PURE__ */
|
|
2573
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ jsxs39(Fragment37, { children: [
|
|
2725
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2574
2726
|
SmdChipLead,
|
|
2575
2727
|
{
|
|
2576
2728
|
position: {
|
|
@@ -2586,7 +2738,7 @@ var LQFP = ({
|
|
|
2586
2738
|
},
|
|
2587
2739
|
`left-${i}`
|
|
2588
2740
|
)),
|
|
2589
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2741
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2590
2742
|
SmdChipLead,
|
|
2591
2743
|
{
|
|
2592
2744
|
rotation: Math.PI,
|
|
@@ -2603,7 +2755,7 @@ var LQFP = ({
|
|
|
2603
2755
|
},
|
|
2604
2756
|
`right-${i}`
|
|
2605
2757
|
)),
|
|
2606
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2758
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2607
2759
|
SmdChipLead,
|
|
2608
2760
|
{
|
|
2609
2761
|
rotation: Math.PI / 2,
|
|
@@ -2620,7 +2772,7 @@ var LQFP = ({
|
|
|
2620
2772
|
},
|
|
2621
2773
|
`bottom-${i}`
|
|
2622
2774
|
)),
|
|
2623
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2775
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2624
2776
|
SmdChipLead,
|
|
2625
2777
|
{
|
|
2626
2778
|
rotation: -Math.PI / 2,
|
|
@@ -2637,7 +2789,7 @@ var LQFP = ({
|
|
|
2637
2789
|
},
|
|
2638
2790
|
`top-${i}`
|
|
2639
2791
|
)),
|
|
2640
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ jsx41(
|
|
2641
2793
|
ChipBody,
|
|
2642
2794
|
{
|
|
2643
2795
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2659,8 +2811,8 @@ var LQFP = ({
|
|
|
2659
2811
|
};
|
|
2660
2812
|
|
|
2661
2813
|
// lib/SOT-723.tsx
|
|
2662
|
-
import { Cuboid as
|
|
2663
|
-
import { Fragment as
|
|
2814
|
+
import { Cuboid as Cuboid28, Translate as Translate19, Colorize as Colorize20, Hull as Hull14, Union as Union15 } from "jscad-fiber";
|
|
2815
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2664
2816
|
var SOT723 = () => {
|
|
2665
2817
|
const bodyWidth = 0.85;
|
|
2666
2818
|
const bodyLength10 = 1.2;
|
|
@@ -2677,43 +2829,43 @@ var SOT723 = () => {
|
|
|
2677
2829
|
const leftTopPadCenterY = 0.4;
|
|
2678
2830
|
const leftBottomPadCenterX = -0.55;
|
|
2679
2831
|
const leftBottomPadCenterY = -0.4;
|
|
2680
|
-
return /* @__PURE__ */
|
|
2681
|
-
/* @__PURE__ */
|
|
2682
|
-
/* @__PURE__ */
|
|
2683
|
-
|
|
2832
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2833
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs40(Union15, { children: [
|
|
2834
|
+
/* @__PURE__ */ jsx42(
|
|
2835
|
+
Cuboid28,
|
|
2684
2836
|
{
|
|
2685
2837
|
size: [bodyWidth, bodyLength10, straightHeight],
|
|
2686
2838
|
center: [0, 0, straightHeight / 2]
|
|
2687
2839
|
}
|
|
2688
2840
|
),
|
|
2689
|
-
/* @__PURE__ */
|
|
2690
|
-
/* @__PURE__ */
|
|
2691
|
-
/* @__PURE__ */
|
|
2692
|
-
|
|
2841
|
+
/* @__PURE__ */ jsxs40(Hull14, { children: [
|
|
2842
|
+
/* @__PURE__ */ jsx42(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx42(Cuboid28, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2843
|
+
/* @__PURE__ */ jsx42(Translate19, { z: bodyHeight, children: /* @__PURE__ */ jsx42(
|
|
2844
|
+
Cuboid28,
|
|
2693
2845
|
{
|
|
2694
2846
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2695
2847
|
}
|
|
2696
2848
|
) })
|
|
2697
2849
|
] })
|
|
2698
2850
|
] }) }),
|
|
2699
|
-
/* @__PURE__ */
|
|
2700
|
-
|
|
2851
|
+
/* @__PURE__ */ jsx42(
|
|
2852
|
+
Cuboid28,
|
|
2701
2853
|
{
|
|
2702
2854
|
color: "#ccc",
|
|
2703
2855
|
size: [padLength, rightPadWidth, padThickness],
|
|
2704
2856
|
center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
|
|
2705
2857
|
}
|
|
2706
2858
|
),
|
|
2707
|
-
/* @__PURE__ */
|
|
2708
|
-
|
|
2859
|
+
/* @__PURE__ */ jsx42(
|
|
2860
|
+
Cuboid28,
|
|
2709
2861
|
{
|
|
2710
2862
|
color: "#ccc",
|
|
2711
2863
|
size: [padLength, leftPadWidth, padThickness],
|
|
2712
2864
|
center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
|
|
2713
2865
|
}
|
|
2714
2866
|
),
|
|
2715
|
-
/* @__PURE__ */
|
|
2716
|
-
|
|
2867
|
+
/* @__PURE__ */ jsx42(
|
|
2868
|
+
Cuboid28,
|
|
2717
2869
|
{
|
|
2718
2870
|
color: "#ccc",
|
|
2719
2871
|
size: [padLength, leftPadWidth, padThickness],
|
|
@@ -2724,8 +2876,8 @@ var SOT723 = () => {
|
|
|
2724
2876
|
};
|
|
2725
2877
|
|
|
2726
2878
|
// lib/dfn.tsx
|
|
2727
|
-
import { Cuboid as
|
|
2728
|
-
import { Fragment as
|
|
2879
|
+
import { Cuboid as Cuboid29 } from "jscad-fiber";
|
|
2880
|
+
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2729
2881
|
var DFN = ({
|
|
2730
2882
|
num_pins,
|
|
2731
2883
|
bodyWidth = 5.3,
|
|
@@ -2752,8 +2904,8 @@ var DFN = ({
|
|
|
2752
2904
|
const pinNumber = i + 1;
|
|
2753
2905
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
2754
2906
|
}
|
|
2755
|
-
return /* @__PURE__ */
|
|
2756
|
-
/* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2908
|
+
/* @__PURE__ */ jsx43(
|
|
2757
2909
|
ChipBody,
|
|
2758
2910
|
{
|
|
2759
2911
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2771,16 +2923,16 @@ var DFN = ({
|
|
|
2771
2923
|
}
|
|
2772
2924
|
}
|
|
2773
2925
|
),
|
|
2774
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
2775
|
-
|
|
2926
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx43(
|
|
2927
|
+
Cuboid29,
|
|
2776
2928
|
{
|
|
2777
2929
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
2778
2930
|
size: [p.padSizeX, p.padSizeY, thermalPadThickness]
|
|
2779
2931
|
},
|
|
2780
2932
|
i
|
|
2781
2933
|
)),
|
|
2782
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
2783
|
-
|
|
2934
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx43(
|
|
2935
|
+
Cuboid29,
|
|
2784
2936
|
{
|
|
2785
2937
|
center: [0, 0, thermalPadThickness / 2],
|
|
2786
2938
|
size: [
|
|
@@ -2794,8 +2946,8 @@ var DFN = ({
|
|
|
2794
2946
|
};
|
|
2795
2947
|
|
|
2796
2948
|
// lib/hc49.tsx
|
|
2797
|
-
import { Colorize as
|
|
2798
|
-
import { Fragment as
|
|
2949
|
+
import { Colorize as Colorize21, Cylinder as Cylinder6, Hull as Hull15, RoundedCylinder } from "jscad-fiber";
|
|
2950
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2799
2951
|
var HC49 = ({
|
|
2800
2952
|
bodyLength: bodyLength10 = 10.2,
|
|
2801
2953
|
bodyWidth = 4.65,
|
|
@@ -2811,10 +2963,10 @@ var HC49 = ({
|
|
|
2811
2963
|
const endCenterX = halfLength - endRadius;
|
|
2812
2964
|
const leadCenterX = leadSpacing / 2;
|
|
2813
2965
|
const baseHeight = 0.85;
|
|
2814
|
-
return /* @__PURE__ */
|
|
2815
|
-
/* @__PURE__ */
|
|
2816
|
-
/* @__PURE__ */
|
|
2817
|
-
/* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2967
|
+
/* @__PURE__ */ jsxs42(Colorize21, { color, children: [
|
|
2968
|
+
/* @__PURE__ */ jsxs42(Hull15, { children: [
|
|
2969
|
+
/* @__PURE__ */ jsx44(
|
|
2818
2970
|
RoundedCylinder,
|
|
2819
2971
|
{
|
|
2820
2972
|
height: bodyHeight,
|
|
@@ -2823,7 +2975,7 @@ var HC49 = ({
|
|
|
2823
2975
|
center: [-endCenterX, 0, bodyHeight]
|
|
2824
2976
|
}
|
|
2825
2977
|
),
|
|
2826
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ jsx44(
|
|
2827
2979
|
RoundedCylinder,
|
|
2828
2980
|
{
|
|
2829
2981
|
height: bodyHeight,
|
|
@@ -2833,8 +2985,8 @@ var HC49 = ({
|
|
|
2833
2985
|
}
|
|
2834
2986
|
)
|
|
2835
2987
|
] }),
|
|
2836
|
-
/* @__PURE__ */
|
|
2837
|
-
/* @__PURE__ */
|
|
2988
|
+
/* @__PURE__ */ jsxs42(Hull15, { children: [
|
|
2989
|
+
/* @__PURE__ */ jsx44(
|
|
2838
2990
|
RoundedCylinder,
|
|
2839
2991
|
{
|
|
2840
2992
|
height: baseHeight,
|
|
@@ -2843,7 +2995,7 @@ var HC49 = ({
|
|
|
2843
2995
|
center: [-endCenterX, 0, bodyHeight / 2 + baseHeight / 2]
|
|
2844
2996
|
}
|
|
2845
2997
|
),
|
|
2846
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ jsx44(
|
|
2847
2999
|
RoundedCylinder,
|
|
2848
3000
|
{
|
|
2849
3001
|
height: baseHeight,
|
|
@@ -2854,8 +3006,8 @@ var HC49 = ({
|
|
|
2854
3006
|
)
|
|
2855
3007
|
] })
|
|
2856
3008
|
] }),
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
/* @__PURE__ */
|
|
3009
|
+
/* @__PURE__ */ jsxs42(Colorize21, { color: leadColor, children: [
|
|
3010
|
+
/* @__PURE__ */ jsx44(
|
|
2859
3011
|
Cylinder6,
|
|
2860
3012
|
{
|
|
2861
3013
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2863,7 +3015,7 @@ var HC49 = ({
|
|
|
2863
3015
|
center: [-leadCenterX + 0.06, 0, -(leadLength / 2) + bodyHeight / 2]
|
|
2864
3016
|
}
|
|
2865
3017
|
),
|
|
2866
|
-
/* @__PURE__ */
|
|
3018
|
+
/* @__PURE__ */ jsx44(
|
|
2867
3019
|
Cylinder6,
|
|
2868
3020
|
{
|
|
2869
3021
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2877,13 +3029,13 @@ var HC49 = ({
|
|
|
2877
3029
|
|
|
2878
3030
|
// lib/MicroMELF.tsx
|
|
2879
3031
|
import {
|
|
2880
|
-
Colorize as
|
|
3032
|
+
Colorize as Colorize22,
|
|
2881
3033
|
Cylinder as Cylinder7,
|
|
2882
3034
|
RoundedCylinder as RoundedCylinder2,
|
|
2883
3035
|
Rotate as Rotate6,
|
|
2884
3036
|
RoundedCuboid as RoundedCuboid2
|
|
2885
3037
|
} from "jscad-fiber";
|
|
2886
|
-
import { Fragment as
|
|
3038
|
+
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
2887
3039
|
var MicroMELF = ({
|
|
2888
3040
|
bodyLength: bodyLength10 = 1.4,
|
|
2889
3041
|
bodyDiameter = 1.1,
|
|
@@ -2892,9 +3044,9 @@ var MicroMELF = ({
|
|
|
2892
3044
|
cathodeIdentification = "#111"
|
|
2893
3045
|
}) => {
|
|
2894
3046
|
const padLength = 0.2;
|
|
2895
|
-
return /* @__PURE__ */
|
|
2896
|
-
/* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
3048
|
+
/* @__PURE__ */ jsx45(Colorize22, { color, children: /* @__PURE__ */ jsxs43(Rotate6, { rotation: [0, "90deg", 0], children: [
|
|
3049
|
+
/* @__PURE__ */ jsx45(
|
|
2898
3050
|
RoundedCuboid2,
|
|
2899
3051
|
{
|
|
2900
3052
|
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
@@ -2902,7 +3054,7 @@ var MicroMELF = ({
|
|
|
2902
3054
|
center: [-bodyDiameter / 2, 0, 0.05]
|
|
2903
3055
|
}
|
|
2904
3056
|
),
|
|
2905
|
-
/* @__PURE__ */
|
|
3057
|
+
/* @__PURE__ */ jsx45(
|
|
2906
3058
|
Cylinder7,
|
|
2907
3059
|
{
|
|
2908
3060
|
height: padLength / 2,
|
|
@@ -2911,7 +3063,7 @@ var MicroMELF = ({
|
|
|
2911
3063
|
}
|
|
2912
3064
|
)
|
|
2913
3065
|
] }) }),
|
|
2914
|
-
/* @__PURE__ */
|
|
3066
|
+
/* @__PURE__ */ jsx45(Colorize22, { color: cathodeIdentification, children: /* @__PURE__ */ jsx45(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
|
|
2915
3067
|
RoundedCuboid2,
|
|
2916
3068
|
{
|
|
2917
3069
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -2919,7 +3071,7 @@ var MicroMELF = ({
|
|
|
2919
3071
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
2920
3072
|
}
|
|
2921
3073
|
) }) }),
|
|
2922
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ jsx45(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
|
|
2923
3075
|
RoundedCylinder2,
|
|
2924
3076
|
{
|
|
2925
3077
|
height: padLength,
|
|
@@ -2928,7 +3080,7 @@ var MicroMELF = ({
|
|
|
2928
3080
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2929
3081
|
}
|
|
2930
3082
|
) }) }),
|
|
2931
|
-
/* @__PURE__ */
|
|
3083
|
+
/* @__PURE__ */ jsx45(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
|
|
2932
3084
|
RoundedCylinder2,
|
|
2933
3085
|
{
|
|
2934
3086
|
height: padLength,
|
|
@@ -2941,8 +3093,8 @@ var MicroMELF = ({
|
|
|
2941
3093
|
};
|
|
2942
3094
|
|
|
2943
3095
|
// lib/MINIMELF.tsx
|
|
2944
|
-
import { Colorize as
|
|
2945
|
-
import { Fragment as
|
|
3096
|
+
import { Colorize as Colorize23, RoundedCylinder as RoundedCylinder3, Rotate as Rotate7 } from "jscad-fiber";
|
|
3097
|
+
import { Fragment as Fragment42, jsx as jsx46, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
2946
3098
|
var MINIMELF = ({
|
|
2947
3099
|
bodyLength: bodyLength10 = 3.5,
|
|
2948
3100
|
bodyDiameter = 1.5,
|
|
@@ -2950,8 +3102,8 @@ var MINIMELF = ({
|
|
|
2950
3102
|
contactColor = "#c6c6c6"
|
|
2951
3103
|
}) => {
|
|
2952
3104
|
const padLength = 0.5;
|
|
2953
|
-
return /* @__PURE__ */
|
|
2954
|
-
/* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3106
|
+
/* @__PURE__ */ jsx46(Colorize23, { color, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
2955
3107
|
RoundedCylinder3,
|
|
2956
3108
|
{
|
|
2957
3109
|
height: bodyLength10,
|
|
@@ -2960,7 +3112,7 @@ var MINIMELF = ({
|
|
|
2960
3112
|
center: [-bodyDiameter / 2, 0, 0]
|
|
2961
3113
|
}
|
|
2962
3114
|
) }) }),
|
|
2963
|
-
/* @__PURE__ */
|
|
3115
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
2964
3116
|
RoundedCylinder3,
|
|
2965
3117
|
{
|
|
2966
3118
|
height: padLength,
|
|
@@ -2969,7 +3121,7 @@ var MINIMELF = ({
|
|
|
2969
3121
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2970
3122
|
}
|
|
2971
3123
|
) }) }),
|
|
2972
|
-
/* @__PURE__ */
|
|
3124
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
2973
3125
|
RoundedCylinder3,
|
|
2974
3126
|
{
|
|
2975
3127
|
height: padLength,
|
|
@@ -2982,8 +3134,8 @@ var MINIMELF = ({
|
|
|
2982
3134
|
};
|
|
2983
3135
|
|
|
2984
3136
|
// lib/MELF.tsx
|
|
2985
|
-
import { Colorize as
|
|
2986
|
-
import { Fragment as
|
|
3137
|
+
import { Colorize as Colorize24, RoundedCylinder as RoundedCylinder4, Rotate as Rotate8 } from "jscad-fiber";
|
|
3138
|
+
import { Fragment as Fragment43, jsx as jsx47, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
2987
3139
|
var MELF = ({
|
|
2988
3140
|
bodyLength: bodyLength10 = 3.9,
|
|
2989
3141
|
bodyDiameter = 2.5,
|
|
@@ -2991,8 +3143,8 @@ var MELF = ({
|
|
|
2991
3143
|
contactColor = "#c6c6c6"
|
|
2992
3144
|
}) => {
|
|
2993
3145
|
const padLength = 0.55;
|
|
2994
|
-
return /* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
3146
|
+
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3147
|
+
/* @__PURE__ */ jsx47(Colorize24, { color, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
2996
3148
|
RoundedCylinder4,
|
|
2997
3149
|
{
|
|
2998
3150
|
height: bodyLength10,
|
|
@@ -3001,7 +3153,7 @@ var MELF = ({
|
|
|
3001
3153
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3002
3154
|
}
|
|
3003
3155
|
) }) }),
|
|
3004
|
-
/* @__PURE__ */
|
|
3156
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3005
3157
|
RoundedCylinder4,
|
|
3006
3158
|
{
|
|
3007
3159
|
height: padLength,
|
|
@@ -3010,7 +3162,7 @@ var MELF = ({
|
|
|
3010
3162
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3011
3163
|
}
|
|
3012
3164
|
) }) }),
|
|
3013
|
-
/* @__PURE__ */
|
|
3165
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3014
3166
|
RoundedCylinder4,
|
|
3015
3167
|
{
|
|
3016
3168
|
height: padLength,
|
|
@@ -3023,7 +3175,7 @@ var MELF = ({
|
|
|
3023
3175
|
};
|
|
3024
3176
|
|
|
3025
3177
|
// lib/ms012.tsx
|
|
3026
|
-
import { Fragment as
|
|
3178
|
+
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3027
3179
|
var MS012 = ({
|
|
3028
3180
|
pinCount,
|
|
3029
3181
|
padContactLength = 0.6,
|
|
@@ -3038,8 +3190,8 @@ var MS012 = ({
|
|
|
3038
3190
|
const bodyLength10 = 3.9;
|
|
3039
3191
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3040
3192
|
const leadThickness = 0.2;
|
|
3041
|
-
return /* @__PURE__ */
|
|
3042
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3193
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3194
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx48(
|
|
3043
3195
|
SmdChipLead,
|
|
3044
3196
|
{
|
|
3045
3197
|
position: {
|
|
@@ -3055,7 +3207,7 @@ var MS012 = ({
|
|
|
3055
3207
|
},
|
|
3056
3208
|
i
|
|
3057
3209
|
)),
|
|
3058
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3210
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx48(
|
|
3059
3211
|
SmdChipLead,
|
|
3060
3212
|
{
|
|
3061
3213
|
rotation: Math.PI,
|
|
@@ -3072,7 +3224,7 @@ var MS012 = ({
|
|
|
3072
3224
|
},
|
|
3073
3225
|
`right-${i}`
|
|
3074
3226
|
)),
|
|
3075
|
-
/* @__PURE__ */
|
|
3227
|
+
/* @__PURE__ */ jsx48(
|
|
3076
3228
|
ChipBody,
|
|
3077
3229
|
{
|
|
3078
3230
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -3089,15 +3241,15 @@ var MS012 = ({
|
|
|
3089
3241
|
|
|
3090
3242
|
// lib/TO220.tsx
|
|
3091
3243
|
import {
|
|
3092
|
-
Colorize as
|
|
3093
|
-
Cuboid as
|
|
3094
|
-
Hull as
|
|
3244
|
+
Colorize as Colorize25,
|
|
3245
|
+
Cuboid as Cuboid32,
|
|
3246
|
+
Hull as Hull16,
|
|
3095
3247
|
Rotate as Rotate9,
|
|
3096
|
-
Translate as
|
|
3248
|
+
Translate as Translate20,
|
|
3097
3249
|
Cylinder as Cylinder8,
|
|
3098
3250
|
Subtract as Subtract4
|
|
3099
3251
|
} from "jscad-fiber";
|
|
3100
|
-
import { Fragment as
|
|
3252
|
+
import { Fragment as Fragment45, jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3101
3253
|
var TO220 = () => {
|
|
3102
3254
|
const fullLength10 = 20;
|
|
3103
3255
|
const bodyLength10 = 9.9;
|
|
@@ -3116,18 +3268,18 @@ var TO220 = () => {
|
|
|
3116
3268
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3117
3269
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3118
3270
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3119
|
-
return /* @__PURE__ */
|
|
3120
|
-
/* @__PURE__ */
|
|
3121
|
-
/* @__PURE__ */
|
|
3122
|
-
/* @__PURE__ */
|
|
3123
|
-
|
|
3271
|
+
return /* @__PURE__ */ jsx49(Translate20, { center: [0, 0, zOffset], children: /* @__PURE__ */ jsxs47(Fragment45, { children: [
|
|
3272
|
+
/* @__PURE__ */ jsxs47(Rotate9, { rotation: [0, 55, -55], children: [
|
|
3273
|
+
/* @__PURE__ */ jsxs47(Subtract4, { children: [
|
|
3274
|
+
/* @__PURE__ */ jsx49(
|
|
3275
|
+
Cuboid32,
|
|
3124
3276
|
{
|
|
3125
3277
|
color: "#ccc",
|
|
3126
3278
|
size: [padLength + 0.1, padWidth, padThickness],
|
|
3127
3279
|
center: [padCenterX, 0, padThickness - 2]
|
|
3128
3280
|
}
|
|
3129
3281
|
),
|
|
3130
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ jsx49(
|
|
3131
3283
|
Cylinder8,
|
|
3132
3284
|
{
|
|
3133
3285
|
color: "black",
|
|
@@ -3137,7 +3289,7 @@ var TO220 = () => {
|
|
|
3137
3289
|
}
|
|
3138
3290
|
)
|
|
3139
3291
|
] }),
|
|
3140
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx49(Colorize25, { color: "#222", children: /* @__PURE__ */ jsx49(
|
|
3141
3293
|
ChipBody,
|
|
3142
3294
|
{
|
|
3143
3295
|
width: bodyWidth,
|
|
@@ -3151,29 +3303,29 @@ var TO220 = () => {
|
|
|
3151
3303
|
}
|
|
3152
3304
|
) })
|
|
3153
3305
|
] }),
|
|
3154
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ jsx49(Rotate9, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3155
3307
|
const x = prongCenterX;
|
|
3156
3308
|
const y = (i - 1) * prongPitch;
|
|
3157
3309
|
const z = -prongHeight - 0.6;
|
|
3158
|
-
return /* @__PURE__ */
|
|
3159
|
-
/* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
3161
|
-
/* @__PURE__ */
|
|
3162
|
-
|
|
3310
|
+
return /* @__PURE__ */ jsxs47(Colorize25, { color: "gold", children: [
|
|
3311
|
+
/* @__PURE__ */ jsxs47(Hull16, { children: [
|
|
3312
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
3313
|
+
/* @__PURE__ */ jsx49(
|
|
3314
|
+
Translate20,
|
|
3163
3315
|
{
|
|
3164
3316
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3165
|
-
children: /* @__PURE__ */
|
|
3317
|
+
children: /* @__PURE__ */ jsx49(Cuboid32, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3166
3318
|
}
|
|
3167
3319
|
)
|
|
3168
3320
|
] }),
|
|
3169
|
-
/* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [x, y, z], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3170
3322
|
] }, `prong-${i}`);
|
|
3171
3323
|
}) })
|
|
3172
3324
|
] }) });
|
|
3173
3325
|
};
|
|
3174
3326
|
|
|
3175
3327
|
// lib/SOT-457.tsx
|
|
3176
|
-
import { Fragment as
|
|
3328
|
+
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3177
3329
|
var SOT457 = () => {
|
|
3178
3330
|
const fullWidth = 2.8;
|
|
3179
3331
|
const bodyWidth = 1.6;
|
|
@@ -3185,8 +3337,8 @@ var SOT457 = () => {
|
|
|
3185
3337
|
const padContactLength = 0.5;
|
|
3186
3338
|
const padPitch = 0.95;
|
|
3187
3339
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3188
|
-
return /* @__PURE__ */
|
|
3189
|
-
/* @__PURE__ */
|
|
3340
|
+
return /* @__PURE__ */ jsxs48(Fragment46, { children: [
|
|
3341
|
+
/* @__PURE__ */ jsx50(
|
|
3190
3342
|
SmdChipLead,
|
|
3191
3343
|
{
|
|
3192
3344
|
rotation: Math.PI,
|
|
@@ -3203,7 +3355,7 @@ var SOT457 = () => {
|
|
|
3203
3355
|
},
|
|
3204
3356
|
1
|
|
3205
3357
|
),
|
|
3206
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx50(
|
|
3207
3359
|
SmdChipLead,
|
|
3208
3360
|
{
|
|
3209
3361
|
rotation: Math.PI,
|
|
@@ -3220,7 +3372,7 @@ var SOT457 = () => {
|
|
|
3220
3372
|
},
|
|
3221
3373
|
2
|
|
3222
3374
|
),
|
|
3223
|
-
/* @__PURE__ */
|
|
3375
|
+
/* @__PURE__ */ jsx50(
|
|
3224
3376
|
SmdChipLead,
|
|
3225
3377
|
{
|
|
3226
3378
|
rotation: Math.PI,
|
|
@@ -3237,7 +3389,7 @@ var SOT457 = () => {
|
|
|
3237
3389
|
},
|
|
3238
3390
|
3
|
|
3239
3391
|
),
|
|
3240
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ jsx50(
|
|
3241
3393
|
SmdChipLead,
|
|
3242
3394
|
{
|
|
3243
3395
|
position: {
|
|
@@ -3253,7 +3405,7 @@ var SOT457 = () => {
|
|
|
3253
3405
|
},
|
|
3254
3406
|
3
|
|
3255
3407
|
),
|
|
3256
|
-
/* @__PURE__ */
|
|
3408
|
+
/* @__PURE__ */ jsx50(
|
|
3257
3409
|
SmdChipLead,
|
|
3258
3410
|
{
|
|
3259
3411
|
position: {
|
|
@@ -3269,7 +3421,7 @@ var SOT457 = () => {
|
|
|
3269
3421
|
},
|
|
3270
3422
|
1
|
|
3271
3423
|
),
|
|
3272
|
-
/* @__PURE__ */
|
|
3424
|
+
/* @__PURE__ */ jsx50(
|
|
3273
3425
|
SmdChipLead,
|
|
3274
3426
|
{
|
|
3275
3427
|
position: {
|
|
@@ -3285,7 +3437,7 @@ var SOT457 = () => {
|
|
|
3285
3437
|
},
|
|
3286
3438
|
2
|
|
3287
3439
|
),
|
|
3288
|
-
/* @__PURE__ */
|
|
3440
|
+
/* @__PURE__ */ jsx50(
|
|
3289
3441
|
ChipBody,
|
|
3290
3442
|
{
|
|
3291
3443
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3306,14 +3458,14 @@ var SOT457 = () => {
|
|
|
3306
3458
|
|
|
3307
3459
|
// lib/TO92.tsx
|
|
3308
3460
|
import {
|
|
3309
|
-
Colorize as
|
|
3310
|
-
Cuboid as
|
|
3311
|
-
Hull as
|
|
3312
|
-
Translate as
|
|
3461
|
+
Colorize as Colorize26,
|
|
3462
|
+
Cuboid as Cuboid33,
|
|
3463
|
+
Hull as Hull17,
|
|
3464
|
+
Translate as Translate21,
|
|
3313
3465
|
Cylinder as Cylinder9,
|
|
3314
3466
|
Subtract as Subtract5
|
|
3315
3467
|
} from "jscad-fiber";
|
|
3316
|
-
import { jsx as
|
|
3468
|
+
import { jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3317
3469
|
var TO92 = () => {
|
|
3318
3470
|
const bodyRadius = 2.4;
|
|
3319
3471
|
const bodyHeight = 4.5;
|
|
@@ -3334,24 +3486,24 @@ var TO92 = () => {
|
|
|
3334
3486
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3335
3487
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3336
3488
|
const sideLeadZ = -7.5;
|
|
3337
|
-
return /* @__PURE__ */
|
|
3338
|
-
/* @__PURE__ */
|
|
3339
|
-
/* @__PURE__ */
|
|
3340
|
-
/* @__PURE__ */
|
|
3489
|
+
return /* @__PURE__ */ jsxs49(Translate21, { center: [0, 1, 10.5], children: [
|
|
3490
|
+
/* @__PURE__ */ jsx51(Colorize26, { color: bodyColor, children: /* @__PURE__ */ jsxs49(Subtract5, { children: [
|
|
3491
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx51(Cylinder9, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3492
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3341
3493
|
] }) }),
|
|
3342
|
-
/* @__PURE__ */
|
|
3343
|
-
/* @__PURE__ */
|
|
3344
|
-
/* @__PURE__ */
|
|
3345
|
-
/* @__PURE__ */
|
|
3494
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadTipPos1, children: /* @__PURE__ */ jsx51(Cuboid33, { size: leadTipSize }) }),
|
|
3495
|
+
/* @__PURE__ */ jsxs49(Hull17, { children: [
|
|
3496
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadMidPosA, children: /* @__PURE__ */ jsx51(Cuboid33, { size: leadSmallSize }) }),
|
|
3497
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadMidPosB, children: /* @__PURE__ */ jsx51(Cuboid33, { size: leadSmallSize }) })
|
|
3346
3498
|
] }),
|
|
3347
|
-
/* @__PURE__ */
|
|
3348
|
-
/* @__PURE__ */
|
|
3349
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadTipPos2, children: /* @__PURE__ */ jsx51(Cuboid33, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3500
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [leadLength, legWidth, 15] }) }),
|
|
3501
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [leadLength, legWidth, 15] }) })
|
|
3350
3502
|
] });
|
|
3351
3503
|
};
|
|
3352
3504
|
|
|
3353
3505
|
// lib/SOT-363.tsx
|
|
3354
|
-
import { Fragment as
|
|
3506
|
+
import { Fragment as Fragment47, jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3355
3507
|
var SOT363 = () => {
|
|
3356
3508
|
const fullWidth = 2;
|
|
3357
3509
|
const bodyWidth = 1.25;
|
|
@@ -3362,8 +3514,8 @@ var SOT363 = () => {
|
|
|
3362
3514
|
const leadHeight = 0.85;
|
|
3363
3515
|
const padContactLength = 0.3;
|
|
3364
3516
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3365
|
-
return /* @__PURE__ */
|
|
3366
|
-
/* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ jsxs50(Fragment47, { children: [
|
|
3518
|
+
/* @__PURE__ */ jsx52(
|
|
3367
3519
|
SmdChipLead,
|
|
3368
3520
|
{
|
|
3369
3521
|
rotation: Math.PI,
|
|
@@ -3380,7 +3532,7 @@ var SOT363 = () => {
|
|
|
3380
3532
|
},
|
|
3381
3533
|
1
|
|
3382
3534
|
),
|
|
3383
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ jsx52(
|
|
3384
3536
|
SmdChipLead,
|
|
3385
3537
|
{
|
|
3386
3538
|
rotation: Math.PI,
|
|
@@ -3397,7 +3549,7 @@ var SOT363 = () => {
|
|
|
3397
3549
|
},
|
|
3398
3550
|
2
|
|
3399
3551
|
),
|
|
3400
|
-
/* @__PURE__ */
|
|
3552
|
+
/* @__PURE__ */ jsx52(
|
|
3401
3553
|
SmdChipLead,
|
|
3402
3554
|
{
|
|
3403
3555
|
rotation: Math.PI,
|
|
@@ -3414,7 +3566,7 @@ var SOT363 = () => {
|
|
|
3414
3566
|
},
|
|
3415
3567
|
3
|
|
3416
3568
|
),
|
|
3417
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ jsx52(
|
|
3418
3570
|
SmdChipLead,
|
|
3419
3571
|
{
|
|
3420
3572
|
position: {
|
|
@@ -3430,7 +3582,7 @@ var SOT363 = () => {
|
|
|
3430
3582
|
},
|
|
3431
3583
|
3
|
|
3432
3584
|
),
|
|
3433
|
-
/* @__PURE__ */
|
|
3585
|
+
/* @__PURE__ */ jsx52(
|
|
3434
3586
|
SmdChipLead,
|
|
3435
3587
|
{
|
|
3436
3588
|
position: {
|
|
@@ -3446,7 +3598,7 @@ var SOT363 = () => {
|
|
|
3446
3598
|
},
|
|
3447
3599
|
1
|
|
3448
3600
|
),
|
|
3449
|
-
/* @__PURE__ */
|
|
3601
|
+
/* @__PURE__ */ jsx52(
|
|
3450
3602
|
SmdChipLead,
|
|
3451
3603
|
{
|
|
3452
3604
|
position: {
|
|
@@ -3462,7 +3614,7 @@ var SOT363 = () => {
|
|
|
3462
3614
|
},
|
|
3463
3615
|
2
|
|
3464
3616
|
),
|
|
3465
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ jsx52(
|
|
3466
3618
|
ChipBody,
|
|
3467
3619
|
{
|
|
3468
3620
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3483,14 +3635,14 @@ var SOT363 = () => {
|
|
|
3483
3635
|
var SOT_363_default = SOT363;
|
|
3484
3636
|
|
|
3485
3637
|
// lib/Footprinter3d.tsx
|
|
3486
|
-
import { jsx as
|
|
3638
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
3487
3639
|
var Footprinter3d = ({ footprint }) => {
|
|
3488
3640
|
const fpJson = fp3.string(footprint).json();
|
|
3489
3641
|
switch (fpJson.fn) {
|
|
3490
3642
|
case "dip":
|
|
3491
|
-
return /* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsx53(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3492
3644
|
case "tssop":
|
|
3493
|
-
return /* @__PURE__ */
|
|
3645
|
+
return /* @__PURE__ */ jsx53(
|
|
3494
3646
|
Tssop,
|
|
3495
3647
|
{
|
|
3496
3648
|
pinCount: fpJson.num_pins,
|
|
@@ -3501,7 +3653,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3501
3653
|
}
|
|
3502
3654
|
);
|
|
3503
3655
|
case "msop":
|
|
3504
|
-
return /* @__PURE__ */
|
|
3656
|
+
return /* @__PURE__ */ jsx53(
|
|
3505
3657
|
MSOP,
|
|
3506
3658
|
{
|
|
3507
3659
|
pinCount: fpJson.num_pins,
|
|
@@ -3512,7 +3664,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3512
3664
|
}
|
|
3513
3665
|
);
|
|
3514
3666
|
case "vssop":
|
|
3515
|
-
return /* @__PURE__ */
|
|
3667
|
+
return /* @__PURE__ */ jsx53(
|
|
3516
3668
|
VSSOP,
|
|
3517
3669
|
{
|
|
3518
3670
|
pinCount: fpJson.num_pins,
|
|
@@ -3524,7 +3676,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3524
3676
|
}
|
|
3525
3677
|
);
|
|
3526
3678
|
case "qfp":
|
|
3527
|
-
return /* @__PURE__ */
|
|
3679
|
+
return /* @__PURE__ */ jsx53(
|
|
3528
3680
|
QFP,
|
|
3529
3681
|
{
|
|
3530
3682
|
pinCount: fpJson.num_pins,
|
|
@@ -3535,12 +3687,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3535
3687
|
}
|
|
3536
3688
|
);
|
|
3537
3689
|
case "tqfp":
|
|
3538
|
-
return /* @__PURE__ */
|
|
3690
|
+
return /* @__PURE__ */ jsx53(tqfp_default, {});
|
|
3539
3691
|
case "lqfp":
|
|
3540
|
-
return /* @__PURE__ */
|
|
3692
|
+
return /* @__PURE__ */ jsx53(LQFP, { pinCount: fpJson.num_pins });
|
|
3541
3693
|
case "qfn": {
|
|
3542
3694
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3543
|
-
return /* @__PURE__ */
|
|
3695
|
+
return /* @__PURE__ */ jsx53(
|
|
3544
3696
|
qfn_default,
|
|
3545
3697
|
{
|
|
3546
3698
|
num_pins: fpJson.num_pins,
|
|
@@ -3558,7 +3710,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3558
3710
|
}
|
|
3559
3711
|
case "dfn": {
|
|
3560
3712
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3561
|
-
return /* @__PURE__ */
|
|
3713
|
+
return /* @__PURE__ */ jsx53(
|
|
3562
3714
|
DFN,
|
|
3563
3715
|
{
|
|
3564
3716
|
num_pins: fpJson.num_pins,
|
|
@@ -3576,43 +3728,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3576
3728
|
}
|
|
3577
3729
|
case "pinrow":
|
|
3578
3730
|
if (fpJson.male)
|
|
3579
|
-
return /* @__PURE__ */
|
|
3731
|
+
return /* @__PURE__ */ jsx53(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3580
3732
|
if (fpJson.female)
|
|
3581
|
-
return /* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ jsx53(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3582
3734
|
case "cap": {
|
|
3583
3735
|
switch (fpJson.imperial) {
|
|
3584
3736
|
case "0402":
|
|
3585
|
-
return /* @__PURE__ */
|
|
3737
|
+
return /* @__PURE__ */ jsx53(A0402, { color: "#856c4d" });
|
|
3586
3738
|
case "0603":
|
|
3587
|
-
return /* @__PURE__ */
|
|
3739
|
+
return /* @__PURE__ */ jsx53(A0603, { color: "#856c4d" });
|
|
3588
3740
|
case "0805":
|
|
3589
|
-
return /* @__PURE__ */
|
|
3741
|
+
return /* @__PURE__ */ jsx53(A0805, { color: "#856c4d" });
|
|
3590
3742
|
case "0201":
|
|
3591
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ jsx53(A0201, { color: "#856c4d" });
|
|
3592
3744
|
case "01005":
|
|
3593
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx53(A01005, { color: "#856c4d" });
|
|
3594
3746
|
case "1206":
|
|
3595
|
-
return /* @__PURE__ */
|
|
3747
|
+
return /* @__PURE__ */ jsx53(A1206, { color: "#856c4d" });
|
|
3596
3748
|
case "1210":
|
|
3597
|
-
return /* @__PURE__ */
|
|
3749
|
+
return /* @__PURE__ */ jsx53(A1210, { color: "#856c4d" });
|
|
3598
3750
|
case "2010":
|
|
3599
|
-
return /* @__PURE__ */
|
|
3751
|
+
return /* @__PURE__ */ jsx53(A2010, { color: "#856c4d" });
|
|
3600
3752
|
case "2512":
|
|
3601
|
-
return /* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsx53(A2512, { color: "#856c4d" });
|
|
3602
3754
|
}
|
|
3603
3755
|
}
|
|
3604
3756
|
case "sot235":
|
|
3605
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ jsx53(SOT_235_default, {});
|
|
3606
3758
|
case "sot457":
|
|
3607
|
-
return /* @__PURE__ */
|
|
3759
|
+
return /* @__PURE__ */ jsx53(SOT457, {});
|
|
3608
3760
|
case "sot223":
|
|
3609
|
-
return /* @__PURE__ */
|
|
3761
|
+
return /* @__PURE__ */ jsx53(SOT223, {});
|
|
3762
|
+
case "sot23w":
|
|
3763
|
+
return /* @__PURE__ */ jsx53(SOT23W, {});
|
|
3610
3764
|
case "sot323":
|
|
3611
|
-
return /* @__PURE__ */
|
|
3765
|
+
return /* @__PURE__ */ jsx53(SOT323, {});
|
|
3612
3766
|
case "sot363":
|
|
3613
|
-
return /* @__PURE__ */
|
|
3767
|
+
return /* @__PURE__ */ jsx53(SOT_363_default, {});
|
|
3614
3768
|
case "pushbutton":
|
|
3615
|
-
return /* @__PURE__ */
|
|
3769
|
+
return /* @__PURE__ */ jsx53(
|
|
3616
3770
|
PushButton,
|
|
3617
3771
|
{
|
|
3618
3772
|
width: fpJson.w,
|
|
@@ -3621,7 +3775,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3621
3775
|
}
|
|
3622
3776
|
);
|
|
3623
3777
|
case "soic":
|
|
3624
|
-
return /* @__PURE__ */
|
|
3778
|
+
return /* @__PURE__ */ jsx53(
|
|
3625
3779
|
SOIC,
|
|
3626
3780
|
{
|
|
3627
3781
|
pinCount: fpJson.num_pins,
|
|
@@ -3632,33 +3786,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3632
3786
|
}
|
|
3633
3787
|
);
|
|
3634
3788
|
case "sod523":
|
|
3635
|
-
return /* @__PURE__ */
|
|
3789
|
+
return /* @__PURE__ */ jsx53(SOD523, {});
|
|
3636
3790
|
case "sod882":
|
|
3637
|
-
return /* @__PURE__ */
|
|
3791
|
+
return /* @__PURE__ */ jsx53(SOD882, {});
|
|
3638
3792
|
case "sma":
|
|
3639
|
-
return /* @__PURE__ */
|
|
3793
|
+
return /* @__PURE__ */ jsx53(SMA, {});
|
|
3640
3794
|
case "smb":
|
|
3641
|
-
return /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ jsx53(SMB, {});
|
|
3642
3796
|
case "smc":
|
|
3643
|
-
return /* @__PURE__ */
|
|
3797
|
+
return /* @__PURE__ */ jsx53(SMC, {});
|
|
3644
3798
|
case "smf":
|
|
3645
|
-
return /* @__PURE__ */
|
|
3799
|
+
return /* @__PURE__ */ jsx53(SMF, {});
|
|
3646
3800
|
case "sod123f":
|
|
3647
|
-
return /* @__PURE__ */
|
|
3801
|
+
return /* @__PURE__ */ jsx53(SOD123F, {});
|
|
3648
3802
|
case "sod123fl":
|
|
3649
|
-
return /* @__PURE__ */
|
|
3803
|
+
return /* @__PURE__ */ jsx53(SOD123FL, {});
|
|
3804
|
+
case "sod128":
|
|
3805
|
+
return /* @__PURE__ */ jsx53(SOD128, {});
|
|
3650
3806
|
case "sod923":
|
|
3651
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ jsx53(SOD923, {});
|
|
3652
3808
|
case "hc49":
|
|
3653
|
-
return /* @__PURE__ */
|
|
3809
|
+
return /* @__PURE__ */ jsx53(HC49, {});
|
|
3654
3810
|
case "micromelf":
|
|
3655
|
-
return /* @__PURE__ */
|
|
3811
|
+
return /* @__PURE__ */ jsx53(MicroMELF, {});
|
|
3656
3812
|
case "minimelf":
|
|
3657
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx53(MINIMELF, {});
|
|
3658
3814
|
case "melf":
|
|
3659
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsx53(MELF, {});
|
|
3660
3816
|
case "ms012":
|
|
3661
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx53(
|
|
3662
3818
|
MS012,
|
|
3663
3819
|
{
|
|
3664
3820
|
pinCount: fpJson.num_pins,
|
|
@@ -3668,39 +3824,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3668
3824
|
}
|
|
3669
3825
|
);
|
|
3670
3826
|
case "sot723":
|
|
3671
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ jsx53(SOT723, {});
|
|
3672
3828
|
case "to220":
|
|
3673
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ jsx53(TO220, {});
|
|
3674
3830
|
case "to92":
|
|
3675
|
-
return /* @__PURE__ */
|
|
3831
|
+
return /* @__PURE__ */ jsx53(TO92, {});
|
|
3676
3832
|
}
|
|
3677
3833
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3678
3834
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3679
3835
|
switch (fpJson.imperial) {
|
|
3680
3836
|
case "0402":
|
|
3681
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ jsx53(A0402, { color });
|
|
3682
3838
|
case "0603":
|
|
3683
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx53(A0603, { color });
|
|
3684
3840
|
case "0805":
|
|
3685
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsx53(A0805, { color });
|
|
3686
3842
|
case "0201":
|
|
3687
|
-
return /* @__PURE__ */
|
|
3843
|
+
return /* @__PURE__ */ jsx53(A0201, { color });
|
|
3688
3844
|
case "01005":
|
|
3689
|
-
return /* @__PURE__ */
|
|
3845
|
+
return /* @__PURE__ */ jsx53(A01005, { color });
|
|
3690
3846
|
case "1206":
|
|
3691
|
-
return /* @__PURE__ */
|
|
3847
|
+
return /* @__PURE__ */ jsx53(A1206, { color });
|
|
3692
3848
|
case "1210":
|
|
3693
|
-
return /* @__PURE__ */
|
|
3849
|
+
return /* @__PURE__ */ jsx53(A1210, { color });
|
|
3694
3850
|
case "2010":
|
|
3695
|
-
return /* @__PURE__ */
|
|
3851
|
+
return /* @__PURE__ */ jsx53(A2010, { color });
|
|
3696
3852
|
case "2512":
|
|
3697
|
-
return /* @__PURE__ */
|
|
3853
|
+
return /* @__PURE__ */ jsx53(A2512, { color });
|
|
3698
3854
|
}
|
|
3699
3855
|
return null;
|
|
3700
3856
|
};
|
|
3701
3857
|
|
|
3702
3858
|
// lib/SOT-23-3P.tsx
|
|
3703
|
-
import { Fragment as
|
|
3859
|
+
import { Fragment as Fragment48, jsx as jsx54, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3704
3860
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3705
3861
|
const bodyWidth = 1.3;
|
|
3706
3862
|
const bodyLength10 = 2.9;
|
|
@@ -3711,8 +3867,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3711
3867
|
const padContactLength = 0.4;
|
|
3712
3868
|
const padThickness = leadThickness / 2;
|
|
3713
3869
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3714
|
-
return /* @__PURE__ */
|
|
3715
|
-
/* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsxs51(Fragment48, { children: [
|
|
3871
|
+
/* @__PURE__ */ jsx54(
|
|
3716
3872
|
SmdChipLead,
|
|
3717
3873
|
{
|
|
3718
3874
|
rotation: Math.PI,
|
|
@@ -3729,7 +3885,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3729
3885
|
},
|
|
3730
3886
|
1
|
|
3731
3887
|
),
|
|
3732
|
-
/* @__PURE__ */
|
|
3888
|
+
/* @__PURE__ */ jsx54(
|
|
3733
3889
|
SmdChipLead,
|
|
3734
3890
|
{
|
|
3735
3891
|
rotation: Math.PI,
|
|
@@ -3746,7 +3902,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3746
3902
|
},
|
|
3747
3903
|
2
|
|
3748
3904
|
),
|
|
3749
|
-
/* @__PURE__ */
|
|
3905
|
+
/* @__PURE__ */ jsx54(
|
|
3750
3906
|
SmdChipLead,
|
|
3751
3907
|
{
|
|
3752
3908
|
position: {
|
|
@@ -3762,7 +3918,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3762
3918
|
},
|
|
3763
3919
|
3
|
|
3764
3920
|
),
|
|
3765
|
-
/* @__PURE__ */
|
|
3921
|
+
/* @__PURE__ */ jsx54(
|
|
3766
3922
|
ChipBody,
|
|
3767
3923
|
{
|
|
3768
3924
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3775,8 +3931,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3775
3931
|
};
|
|
3776
3932
|
|
|
3777
3933
|
// lib/SOT-563.tsx
|
|
3778
|
-
import { Cuboid as
|
|
3779
|
-
import { Fragment as
|
|
3934
|
+
import { Cuboid as Cuboid34, Translate as Translate22, Rotate as Rotate10, Colorize as Colorize27 } from "jscad-fiber";
|
|
3935
|
+
import { Fragment as Fragment49, jsx as jsx55, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3780
3936
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3781
3937
|
const bodyWidth = 1.2;
|
|
3782
3938
|
const bodyLength10 = 1.6;
|
|
@@ -3786,28 +3942,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3786
3942
|
const leadHeight = 0.13;
|
|
3787
3943
|
const leadSpacing = 0.5;
|
|
3788
3944
|
const bodyZOffset = -0.4;
|
|
3789
|
-
return /* @__PURE__ */
|
|
3790
|
-
/* @__PURE__ */
|
|
3945
|
+
return /* @__PURE__ */ jsxs52(Fragment49, { children: [
|
|
3946
|
+
/* @__PURE__ */ jsx55(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx55(Translate22, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx55(Colorize27, { color: "grey", children: /* @__PURE__ */ jsx55(Cuboid34, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3791
3947
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3792
3948
|
// Left lead
|
|
3793
|
-
/* @__PURE__ */
|
|
3794
|
-
|
|
3949
|
+
/* @__PURE__ */ jsx55(
|
|
3950
|
+
Translate22,
|
|
3795
3951
|
{
|
|
3796
3952
|
center: [
|
|
3797
3953
|
-bodyWidth / 2 - 0.03,
|
|
3798
3954
|
yOffset * leadSpacing,
|
|
3799
3955
|
leadHeight / 2
|
|
3800
3956
|
],
|
|
3801
|
-
children: /* @__PURE__ */
|
|
3957
|
+
children: /* @__PURE__ */ jsx55(Cuboid34, { size: [leadLength, leadWidth, leadHeight] })
|
|
3802
3958
|
},
|
|
3803
3959
|
`left-${index}`
|
|
3804
3960
|
),
|
|
3805
3961
|
// Right lead
|
|
3806
|
-
/* @__PURE__ */
|
|
3807
|
-
|
|
3962
|
+
/* @__PURE__ */ jsx55(
|
|
3963
|
+
Translate22,
|
|
3808
3964
|
{
|
|
3809
3965
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3810
|
-
children: /* @__PURE__ */
|
|
3966
|
+
children: /* @__PURE__ */ jsx55(Cuboid34, { size: [leadLength, leadWidth, leadHeight] })
|
|
3811
3967
|
},
|
|
3812
3968
|
`right-${index}`
|
|
3813
3969
|
)
|
|
@@ -3816,7 +3972,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3816
3972
|
};
|
|
3817
3973
|
|
|
3818
3974
|
// lib/sod-123.tsx
|
|
3819
|
-
import { Fragment as
|
|
3975
|
+
import { Fragment as Fragment50, jsx as jsx56, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3820
3976
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3821
3977
|
const bodyWidth = 2.9;
|
|
3822
3978
|
const bodyLength10 = 1.3;
|
|
@@ -3827,8 +3983,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3827
3983
|
const padContactLength = 0.4;
|
|
3828
3984
|
const padThickness = leadThickness / 2;
|
|
3829
3985
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3830
|
-
return /* @__PURE__ */
|
|
3831
|
-
/* @__PURE__ */
|
|
3986
|
+
return /* @__PURE__ */ jsxs53(Fragment50, { children: [
|
|
3987
|
+
/* @__PURE__ */ jsx56(
|
|
3832
3988
|
SmdChipLead,
|
|
3833
3989
|
{
|
|
3834
3990
|
position: {
|
|
@@ -3844,7 +4000,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3844
4000
|
},
|
|
3845
4001
|
1
|
|
3846
4002
|
),
|
|
3847
|
-
/* @__PURE__ */
|
|
4003
|
+
/* @__PURE__ */ jsx56(
|
|
3848
4004
|
SmdChipLead,
|
|
3849
4005
|
{
|
|
3850
4006
|
rotation: Math.PI,
|
|
@@ -3861,7 +4017,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3861
4017
|
},
|
|
3862
4018
|
2
|
|
3863
4019
|
),
|
|
3864
|
-
/* @__PURE__ */
|
|
4020
|
+
/* @__PURE__ */ jsx56(
|
|
3865
4021
|
ChipBody,
|
|
3866
4022
|
{
|
|
3867
4023
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3906,11 +4062,13 @@ export {
|
|
|
3906
4062
|
SOD123,
|
|
3907
4063
|
SOD123F,
|
|
3908
4064
|
SOD123FL,
|
|
4065
|
+
SOD128,
|
|
3909
4066
|
SOD523,
|
|
3910
4067
|
SOD882,
|
|
3911
4068
|
SOD923,
|
|
3912
4069
|
SOT223,
|
|
3913
4070
|
SOT233P,
|
|
4071
|
+
SOT23W,
|
|
3914
4072
|
SOT323,
|
|
3915
4073
|
SOT363,
|
|
3916
4074
|
SOT457,
|