jscad-electronics 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +335 -266
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +66 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -1653,6 +1653,70 @@ var SOD523 = () => {
|
|
|
1653
1653
|
] });
|
|
1654
1654
|
};
|
|
1655
1655
|
|
|
1656
|
+
// lib/SOD882.tsx
|
|
1657
|
+
var SOD882 = () => {
|
|
1658
|
+
const bodyLength10 = 0.98;
|
|
1659
|
+
const bodyHeight = 0.47;
|
|
1660
|
+
const pitch = 0.65;
|
|
1661
|
+
const padWidth = 0.51;
|
|
1662
|
+
const padLength = 0.26;
|
|
1663
|
+
const padThickness = 0.12;
|
|
1664
|
+
const bodyWidth = 0.58;
|
|
1665
|
+
const leftPadCenterX = -pitch / 2;
|
|
1666
|
+
const rightPadCenterX = pitch / 2;
|
|
1667
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
1668
|
+
/* @__PURE__ */ jsx(
|
|
1669
|
+
Cuboid,
|
|
1670
|
+
{
|
|
1671
|
+
color: "#ccc",
|
|
1672
|
+
size: [padLength, padWidth, padThickness],
|
|
1673
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
1674
|
+
}
|
|
1675
|
+
),
|
|
1676
|
+
/* @__PURE__ */ jsx(
|
|
1677
|
+
Cuboid,
|
|
1678
|
+
{
|
|
1679
|
+
color: "#ccc",
|
|
1680
|
+
size: [padLength, padWidth, padThickness],
|
|
1681
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1682
|
+
}
|
|
1683
|
+
),
|
|
1684
|
+
/* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsx(Translate, { z: bodyHeight / 2 + 0.02, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyLength10, bodyWidth, bodyHeight] }) }) }),
|
|
1685
|
+
/* @__PURE__ */ jsx(
|
|
1686
|
+
Cuboid,
|
|
1687
|
+
{
|
|
1688
|
+
color: "#ccc",
|
|
1689
|
+
size: [bodyLength10 + 1e-3, padLength / 2, padLength / 4],
|
|
1690
|
+
center: [0, padLength / 2, bodyHeight / 4]
|
|
1691
|
+
}
|
|
1692
|
+
),
|
|
1693
|
+
/* @__PURE__ */ jsx(
|
|
1694
|
+
Cuboid,
|
|
1695
|
+
{
|
|
1696
|
+
color: "#ccc",
|
|
1697
|
+
size: [bodyLength10 + 1e-3, padLength / 2, padLength / 4],
|
|
1698
|
+
center: [0, -padLength / 2, bodyHeight / 4]
|
|
1699
|
+
}
|
|
1700
|
+
),
|
|
1701
|
+
/* @__PURE__ */ jsx(
|
|
1702
|
+
Cuboid,
|
|
1703
|
+
{
|
|
1704
|
+
color: "#ccc",
|
|
1705
|
+
size: [padLength / 1.5, bodyWidth + 1e-3, padLength / 4],
|
|
1706
|
+
center: [pitch / 2, 0, bodyHeight / 4]
|
|
1707
|
+
}
|
|
1708
|
+
),
|
|
1709
|
+
/* @__PURE__ */ jsx(
|
|
1710
|
+
Cuboid,
|
|
1711
|
+
{
|
|
1712
|
+
color: "#ccc",
|
|
1713
|
+
size: [padLength / 1.5, bodyWidth + 1e-3, padLength / 4],
|
|
1714
|
+
center: [-pitch / 2, 0, bodyHeight / 4]
|
|
1715
|
+
}
|
|
1716
|
+
)
|
|
1717
|
+
] });
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1656
1720
|
// lib/SMA.tsx
|
|
1657
1721
|
var SMA = () => {
|
|
1658
1722
|
const bodyWidth = 4.4;
|
|
@@ -2926,6 +2990,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2926
2990
|
);
|
|
2927
2991
|
case "sod523":
|
|
2928
2992
|
return /* @__PURE__ */ jsx(SOD523, {});
|
|
2993
|
+
case "sod882":
|
|
2994
|
+
return /* @__PURE__ */ jsx(SOD882, {});
|
|
2929
2995
|
case "sma":
|
|
2930
2996
|
return /* @__PURE__ */ jsx(SMA, {});
|
|
2931
2997
|
case "smb":
|