jscad-electronics 0.0.55 → 0.0.57
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 +135 -59
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +76 -3
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -169,4 +169,6 @@ declare const PinRow: ({ numberOfPins, pitch, longSidePinLength, }: {
|
|
|
169
169
|
|
|
170
170
|
declare const SOD523: () => react_jsx_runtime.JSX.Element;
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
declare const SMA: () => react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, PinRow, QFN, QFP, SMA, SOD123, SOD523, SOT233P, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -1679,15 +1679,87 @@ var SOD523 = () => {
|
|
|
1679
1679
|
] });
|
|
1680
1680
|
};
|
|
1681
1681
|
|
|
1682
|
+
// lib/SMA.tsx
|
|
1683
|
+
import { Cuboid as Cuboid19, Colorize as Colorize11, Union as Union6, Hull as Hull5, Translate as Translate10 } from "jscad-fiber";
|
|
1684
|
+
import { Fragment as Fragment23, jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1685
|
+
var SMA = () => {
|
|
1686
|
+
const bodyWidth = 4.4;
|
|
1687
|
+
const bodyLength10 = 3.4;
|
|
1688
|
+
const bodyHeight = 2.3;
|
|
1689
|
+
const padWidth = 1.45;
|
|
1690
|
+
const padThickness = 0.12;
|
|
1691
|
+
const leadThickness = 0.2;
|
|
1692
|
+
const leadHeight = 1.14;
|
|
1693
|
+
const taperOffset = 0.4;
|
|
1694
|
+
const straightHeight = bodyHeight * 0.5;
|
|
1695
|
+
const Body = /* @__PURE__ */ jsx27(Colorize11, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs25(Union6, { children: [
|
|
1696
|
+
/* @__PURE__ */ jsxs25(Hull5, { children: [
|
|
1697
|
+
/* @__PURE__ */ jsx27(Translate10, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx27(
|
|
1698
|
+
Cuboid19,
|
|
1699
|
+
{
|
|
1700
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1701
|
+
}
|
|
1702
|
+
) }),
|
|
1703
|
+
/* @__PURE__ */ jsx27(Translate10, { z: straightHeight, children: /* @__PURE__ */ jsx27(Cuboid19, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1704
|
+
] }),
|
|
1705
|
+
/* @__PURE__ */ jsxs25(Hull5, { children: [
|
|
1706
|
+
/* @__PURE__ */ jsx27(Translate10, { z: straightHeight, children: /* @__PURE__ */ jsx27(Cuboid19, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1707
|
+
/* @__PURE__ */ jsx27(Translate10, { z: bodyHeight, children: /* @__PURE__ */ jsx27(
|
|
1708
|
+
Cuboid19,
|
|
1709
|
+
{
|
|
1710
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1711
|
+
}
|
|
1712
|
+
) })
|
|
1713
|
+
] })
|
|
1714
|
+
] }) });
|
|
1715
|
+
const Lead = ({ xDir }) => {
|
|
1716
|
+
const verticalGap = 1;
|
|
1717
|
+
const lowerPadGap = 1;
|
|
1718
|
+
const lowerPadX = xDir * (bodyLength10 / 2 - bodyHeight * 0.8 / 2 + lowerPadGap);
|
|
1719
|
+
const verticalLeadX = xDir * (bodyLength10 / 2 - leadThickness / 2 + verticalGap);
|
|
1720
|
+
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1721
|
+
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1722
|
+
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1723
|
+
return /* @__PURE__ */ jsx27(Colorize11, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs25(Union6, { children: [
|
|
1724
|
+
/* @__PURE__ */ jsx27(
|
|
1725
|
+
Cuboid19,
|
|
1726
|
+
{
|
|
1727
|
+
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1728
|
+
center: [lowerPadX, 0, leadThickness / 2]
|
|
1729
|
+
}
|
|
1730
|
+
),
|
|
1731
|
+
/* @__PURE__ */ jsx27(
|
|
1732
|
+
Cuboid19,
|
|
1733
|
+
{
|
|
1734
|
+
size: [leadThickness, padWidth, leadHeight],
|
|
1735
|
+
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1736
|
+
}
|
|
1737
|
+
),
|
|
1738
|
+
/* @__PURE__ */ jsx27(
|
|
1739
|
+
Cuboid19,
|
|
1740
|
+
{
|
|
1741
|
+
size: [bridgeLength, padWidth, leadThickness],
|
|
1742
|
+
center: [bridgeCenterX, 0, leadThickness / 2 + leadHeight]
|
|
1743
|
+
}
|
|
1744
|
+
)
|
|
1745
|
+
] }) });
|
|
1746
|
+
};
|
|
1747
|
+
return /* @__PURE__ */ jsxs25(Fragment23, { children: [
|
|
1748
|
+
/* @__PURE__ */ jsx27(Lead, { xDir: 1 }),
|
|
1749
|
+
/* @__PURE__ */ jsx27(Lead, { xDir: -1 }),
|
|
1750
|
+
Body
|
|
1751
|
+
] });
|
|
1752
|
+
};
|
|
1753
|
+
|
|
1682
1754
|
// lib/Footprinter3d.tsx
|
|
1683
|
-
import { jsx as
|
|
1755
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1684
1756
|
var Footprinter3d = ({ footprint }) => {
|
|
1685
1757
|
const fpJson = fp3.string(footprint).json();
|
|
1686
1758
|
switch (fpJson.fn) {
|
|
1687
1759
|
case "dip":
|
|
1688
|
-
return /* @__PURE__ */
|
|
1760
|
+
return /* @__PURE__ */ jsx28(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
1689
1761
|
case "tssop":
|
|
1690
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ jsx28(
|
|
1691
1763
|
Tssop,
|
|
1692
1764
|
{
|
|
1693
1765
|
pinCount: fpJson.num_pins,
|
|
@@ -1698,7 +1770,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1698
1770
|
}
|
|
1699
1771
|
);
|
|
1700
1772
|
case "vssop":
|
|
1701
|
-
return /* @__PURE__ */
|
|
1773
|
+
return /* @__PURE__ */ jsx28(
|
|
1702
1774
|
VSSOP,
|
|
1703
1775
|
{
|
|
1704
1776
|
pinCount: fpJson.num_pins,
|
|
@@ -1710,7 +1782,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1710
1782
|
}
|
|
1711
1783
|
);
|
|
1712
1784
|
case "qfp":
|
|
1713
|
-
return /* @__PURE__ */
|
|
1785
|
+
return /* @__PURE__ */ jsx28(
|
|
1714
1786
|
QFP,
|
|
1715
1787
|
{
|
|
1716
1788
|
pinCount: fpJson.num_pins,
|
|
@@ -1721,7 +1793,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1721
1793
|
}
|
|
1722
1794
|
);
|
|
1723
1795
|
case "qfn":
|
|
1724
|
-
|
|
1796
|
+
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
1797
|
+
return /* @__PURE__ */ jsx28(
|
|
1725
1798
|
qfn_default,
|
|
1726
1799
|
{
|
|
1727
1800
|
num_pins: fpJson.num_pins,
|
|
@@ -1730,43 +1803,43 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1730
1803
|
pitch: fpJson.p,
|
|
1731
1804
|
padLength: fpJson.pl,
|
|
1732
1805
|
padWidth: fpJson.pw,
|
|
1733
|
-
thermalPadSize: {
|
|
1806
|
+
thermalPadSize: hasThermalPad ? {
|
|
1734
1807
|
width: fpJson.thermalpad.x,
|
|
1735
1808
|
length: fpJson.thermalpad.y
|
|
1736
|
-
}
|
|
1809
|
+
} : void 0
|
|
1737
1810
|
}
|
|
1738
1811
|
);
|
|
1739
1812
|
case "pinrow":
|
|
1740
1813
|
if (fpJson.male)
|
|
1741
|
-
return /* @__PURE__ */
|
|
1814
|
+
return /* @__PURE__ */ jsx28(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1742
1815
|
if (fpJson.female)
|
|
1743
|
-
return /* @__PURE__ */
|
|
1816
|
+
return /* @__PURE__ */ jsx28(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1744
1817
|
case "cap": {
|
|
1745
1818
|
switch (fpJson.imperial) {
|
|
1746
1819
|
case "0402":
|
|
1747
|
-
return /* @__PURE__ */
|
|
1820
|
+
return /* @__PURE__ */ jsx28(A0402, { color: "#856c4d" });
|
|
1748
1821
|
case "0603":
|
|
1749
|
-
return /* @__PURE__ */
|
|
1822
|
+
return /* @__PURE__ */ jsx28(A0603, { color: "#856c4d" });
|
|
1750
1823
|
case "0805":
|
|
1751
|
-
return /* @__PURE__ */
|
|
1824
|
+
return /* @__PURE__ */ jsx28(A0805, { color: "#856c4d" });
|
|
1752
1825
|
case "0201":
|
|
1753
|
-
return /* @__PURE__ */
|
|
1826
|
+
return /* @__PURE__ */ jsx28(A0201, { color: "#856c4d" });
|
|
1754
1827
|
case "01005":
|
|
1755
|
-
return /* @__PURE__ */
|
|
1828
|
+
return /* @__PURE__ */ jsx28(A01005, { color: "#856c4d" });
|
|
1756
1829
|
case "1206":
|
|
1757
|
-
return /* @__PURE__ */
|
|
1830
|
+
return /* @__PURE__ */ jsx28(A1206, { color: "#856c4d" });
|
|
1758
1831
|
case "1210":
|
|
1759
|
-
return /* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ jsx28(A1210, { color: "#856c4d" });
|
|
1760
1833
|
case "2010":
|
|
1761
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ jsx28(A2010, { color: "#856c4d" });
|
|
1762
1835
|
case "2512":
|
|
1763
|
-
return /* @__PURE__ */
|
|
1836
|
+
return /* @__PURE__ */ jsx28(A2512, { color: "#856c4d" });
|
|
1764
1837
|
}
|
|
1765
1838
|
}
|
|
1766
1839
|
case "sot235":
|
|
1767
|
-
return /* @__PURE__ */
|
|
1840
|
+
return /* @__PURE__ */ jsx28(SOT_235_default, {});
|
|
1768
1841
|
case "pushbutton":
|
|
1769
|
-
return /* @__PURE__ */
|
|
1842
|
+
return /* @__PURE__ */ jsx28(
|
|
1770
1843
|
PushButton,
|
|
1771
1844
|
{
|
|
1772
1845
|
width: fpJson.w,
|
|
@@ -1775,7 +1848,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1775
1848
|
}
|
|
1776
1849
|
);
|
|
1777
1850
|
case "soic":
|
|
1778
|
-
return /* @__PURE__ */
|
|
1851
|
+
return /* @__PURE__ */ jsx28(
|
|
1779
1852
|
SOIC,
|
|
1780
1853
|
{
|
|
1781
1854
|
pinCount: fpJson.num_pins,
|
|
@@ -1786,35 +1859,37 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1786
1859
|
}
|
|
1787
1860
|
);
|
|
1788
1861
|
case "sod523":
|
|
1789
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ jsx28(SOD523, {});
|
|
1863
|
+
case "sma":
|
|
1864
|
+
return /* @__PURE__ */ jsx28(SMA, {});
|
|
1790
1865
|
}
|
|
1791
1866
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
1792
1867
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
1793
1868
|
switch (fpJson.imperial) {
|
|
1794
1869
|
case "0402":
|
|
1795
|
-
return /* @__PURE__ */
|
|
1870
|
+
return /* @__PURE__ */ jsx28(A0402, { color });
|
|
1796
1871
|
case "0603":
|
|
1797
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ jsx28(A0603, { color });
|
|
1798
1873
|
case "0805":
|
|
1799
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ jsx28(A0805, { color });
|
|
1800
1875
|
case "0201":
|
|
1801
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ jsx28(A0201, { color });
|
|
1802
1877
|
case "01005":
|
|
1803
|
-
return /* @__PURE__ */
|
|
1878
|
+
return /* @__PURE__ */ jsx28(A01005, { color });
|
|
1804
1879
|
case "1206":
|
|
1805
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ jsx28(A1206, { color });
|
|
1806
1881
|
case "1210":
|
|
1807
|
-
return /* @__PURE__ */
|
|
1882
|
+
return /* @__PURE__ */ jsx28(A1210, { color });
|
|
1808
1883
|
case "2010":
|
|
1809
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ jsx28(A2010, { color });
|
|
1810
1885
|
case "2512":
|
|
1811
|
-
return /* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsx28(A2512, { color });
|
|
1812
1887
|
}
|
|
1813
1888
|
return null;
|
|
1814
1889
|
};
|
|
1815
1890
|
|
|
1816
1891
|
// lib/SOT-23-3P.tsx
|
|
1817
|
-
import { Fragment as
|
|
1892
|
+
import { Fragment as Fragment24, jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1818
1893
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
1819
1894
|
const bodyWidth = 1.3;
|
|
1820
1895
|
const bodyLength10 = 2.9;
|
|
@@ -1825,8 +1900,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1825
1900
|
const padContactLength = 0.4;
|
|
1826
1901
|
const padThickness = leadThickness / 2;
|
|
1827
1902
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
1828
|
-
return /* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ jsxs26(Fragment24, { children: [
|
|
1904
|
+
/* @__PURE__ */ jsx29(
|
|
1830
1905
|
SmdChipLead,
|
|
1831
1906
|
{
|
|
1832
1907
|
rotation: Math.PI,
|
|
@@ -1843,7 +1918,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1843
1918
|
},
|
|
1844
1919
|
1
|
|
1845
1920
|
),
|
|
1846
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ jsx29(
|
|
1847
1922
|
SmdChipLead,
|
|
1848
1923
|
{
|
|
1849
1924
|
rotation: Math.PI,
|
|
@@ -1860,7 +1935,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1860
1935
|
},
|
|
1861
1936
|
2
|
|
1862
1937
|
),
|
|
1863
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ jsx29(
|
|
1864
1939
|
SmdChipLead,
|
|
1865
1940
|
{
|
|
1866
1941
|
position: {
|
|
@@ -1876,7 +1951,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1876
1951
|
},
|
|
1877
1952
|
3
|
|
1878
1953
|
),
|
|
1879
|
-
/* @__PURE__ */
|
|
1954
|
+
/* @__PURE__ */ jsx29(
|
|
1880
1955
|
ChipBody,
|
|
1881
1956
|
{
|
|
1882
1957
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -1889,8 +1964,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1889
1964
|
};
|
|
1890
1965
|
|
|
1891
1966
|
// lib/SOT-563.tsx
|
|
1892
|
-
import { Cuboid as
|
|
1893
|
-
import { Fragment as
|
|
1967
|
+
import { Cuboid as Cuboid20, Translate as Translate11, Rotate as Rotate6, Colorize as Colorize12 } from "jscad-fiber";
|
|
1968
|
+
import { Fragment as Fragment25, jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1894
1969
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
1895
1970
|
const bodyWidth = 1.2;
|
|
1896
1971
|
const bodyLength10 = 1.6;
|
|
@@ -1900,28 +1975,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1900
1975
|
const leadHeight = 0.13;
|
|
1901
1976
|
const leadSpacing = 0.5;
|
|
1902
1977
|
const bodyZOffset = -0.4;
|
|
1903
|
-
return /* @__PURE__ */
|
|
1904
|
-
/* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsxs27(Fragment25, { children: [
|
|
1979
|
+
/* @__PURE__ */ jsx30(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx30(Translate11, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx30(Colorize12, { color: "grey", children: /* @__PURE__ */ jsx30(Cuboid20, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
1905
1980
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
1906
1981
|
// Left lead
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
|
|
1982
|
+
/* @__PURE__ */ jsx30(
|
|
1983
|
+
Translate11,
|
|
1909
1984
|
{
|
|
1910
1985
|
center: [
|
|
1911
1986
|
-bodyWidth / 2 - 0.03,
|
|
1912
1987
|
yOffset * leadSpacing,
|
|
1913
1988
|
leadHeight / 2
|
|
1914
1989
|
],
|
|
1915
|
-
children: /* @__PURE__ */
|
|
1990
|
+
children: /* @__PURE__ */ jsx30(Cuboid20, { size: [leadLength, leadWidth, leadHeight] })
|
|
1916
1991
|
},
|
|
1917
1992
|
`left-${index}`
|
|
1918
1993
|
),
|
|
1919
1994
|
// Right lead
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
|
|
1995
|
+
/* @__PURE__ */ jsx30(
|
|
1996
|
+
Translate11,
|
|
1922
1997
|
{
|
|
1923
1998
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
1924
|
-
children: /* @__PURE__ */
|
|
1999
|
+
children: /* @__PURE__ */ jsx30(Cuboid20, { size: [leadLength, leadWidth, leadHeight] })
|
|
1925
2000
|
},
|
|
1926
2001
|
`right-${index}`
|
|
1927
2002
|
)
|
|
@@ -1930,8 +2005,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1930
2005
|
};
|
|
1931
2006
|
|
|
1932
2007
|
// lib/SOT-723.tsx
|
|
1933
|
-
import { Cuboid as
|
|
1934
|
-
import { Fragment as
|
|
2008
|
+
import { Cuboid as Cuboid21, Translate as Translate12, Rotate as Rotate7, Colorize as Colorize13 } from "jscad-fiber";
|
|
2009
|
+
import { Fragment as Fragment26, jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1935
2010
|
var getCcwSot723Coords = (pn) => {
|
|
1936
2011
|
if (pn === 1) {
|
|
1937
2012
|
return { x: 0, y: 0 };
|
|
@@ -1949,12 +2024,12 @@ var SOT723 = () => {
|
|
|
1949
2024
|
const leadLength = 0.3;
|
|
1950
2025
|
const leadHeight = 0.1;
|
|
1951
2026
|
const centerLeadWidth = 0.42;
|
|
1952
|
-
return /* @__PURE__ */
|
|
1953
|
-
/* @__PURE__ */
|
|
2027
|
+
return /* @__PURE__ */ jsxs28(Fragment26, { children: [
|
|
2028
|
+
/* @__PURE__ */ jsx31(Rotate7, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx31(Translate12, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx31(Colorize13, { color: "grey", children: /* @__PURE__ */ jsx31(Cuboid21, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
1954
2029
|
[1, 2, 3].map((pn) => {
|
|
1955
2030
|
const { x, y } = getCcwSot723Coords(pn);
|
|
1956
|
-
return /* @__PURE__ */
|
|
1957
|
-
|
|
2031
|
+
return /* @__PURE__ */ jsx31(Translate12, { center: [x, y, 0], children: /* @__PURE__ */ jsx31(
|
|
2032
|
+
Cuboid21,
|
|
1958
2033
|
{
|
|
1959
2034
|
size: [
|
|
1960
2035
|
leadLength,
|
|
@@ -1968,7 +2043,7 @@ var SOT723 = () => {
|
|
|
1968
2043
|
};
|
|
1969
2044
|
|
|
1970
2045
|
// lib/sod-123.tsx
|
|
1971
|
-
import { Fragment as
|
|
2046
|
+
import { Fragment as Fragment27, jsx as jsx32, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1972
2047
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
1973
2048
|
const bodyWidth = 2.9;
|
|
1974
2049
|
const bodyLength10 = 1.3;
|
|
@@ -1979,8 +2054,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1979
2054
|
const padContactLength = 0.4;
|
|
1980
2055
|
const padThickness = leadThickness / 2;
|
|
1981
2056
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
1982
|
-
return /* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
2057
|
+
return /* @__PURE__ */ jsxs29(Fragment27, { children: [
|
|
2058
|
+
/* @__PURE__ */ jsx32(
|
|
1984
2059
|
SmdChipLead,
|
|
1985
2060
|
{
|
|
1986
2061
|
position: {
|
|
@@ -1996,7 +2071,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1996
2071
|
},
|
|
1997
2072
|
1
|
|
1998
2073
|
),
|
|
1999
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ jsx32(
|
|
2000
2075
|
SmdChipLead,
|
|
2001
2076
|
{
|
|
2002
2077
|
rotation: Math.PI,
|
|
@@ -2013,7 +2088,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2013
2088
|
},
|
|
2014
2089
|
2
|
|
2015
2090
|
),
|
|
2016
|
-
/* @__PURE__ */
|
|
2091
|
+
/* @__PURE__ */ jsx32(
|
|
2017
2092
|
ChipBody,
|
|
2018
2093
|
{
|
|
2019
2094
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2043,6 +2118,7 @@ export {
|
|
|
2043
2118
|
PinRow,
|
|
2044
2119
|
QFN,
|
|
2045
2120
|
QFP,
|
|
2121
|
+
SMA,
|
|
2046
2122
|
SOD123,
|
|
2047
2123
|
SOD523,
|
|
2048
2124
|
SOT233P,
|