jscad-electronics 0.0.56 → 0.0.58
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 +5 -1
- package/dist/index.js +207 -57
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +145 -1
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -169,4 +169,8 @@ 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
|
+
declare const SMB: () => react_jsx_runtime.JSX.Element;
|
|
175
|
+
|
|
176
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, PinRow, QFN, QFP, SMA, SMB, SOD123, SOD523, SOT233P, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -1679,15 +1679,159 @@ 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
|
+
|
|
1754
|
+
// lib/SMB.tsx
|
|
1755
|
+
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union7, Hull as Hull6, Translate as Translate11 } from "jscad-fiber";
|
|
1756
|
+
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1757
|
+
var SMB = () => {
|
|
1758
|
+
const bodyWidth = 4.4;
|
|
1759
|
+
const bodyLength10 = 3.4;
|
|
1760
|
+
const bodyHeight = 2.3;
|
|
1761
|
+
const padWidth = 1.45;
|
|
1762
|
+
const padThickness = 0.12;
|
|
1763
|
+
const leadThickness = 0.2;
|
|
1764
|
+
const leadHeight = 1.14;
|
|
1765
|
+
const taperOffset = 0.4;
|
|
1766
|
+
const straightHeight = bodyHeight * 0.5;
|
|
1767
|
+
const Body = /* @__PURE__ */ jsx28(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs26(Union7, { children: [
|
|
1768
|
+
/* @__PURE__ */ jsxs26(Hull6, { children: [
|
|
1769
|
+
/* @__PURE__ */ jsx28(Translate11, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx28(
|
|
1770
|
+
Cuboid20,
|
|
1771
|
+
{
|
|
1772
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1773
|
+
}
|
|
1774
|
+
) }),
|
|
1775
|
+
/* @__PURE__ */ jsx28(Translate11, { z: straightHeight, children: /* @__PURE__ */ jsx28(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1776
|
+
] }),
|
|
1777
|
+
/* @__PURE__ */ jsxs26(Hull6, { children: [
|
|
1778
|
+
/* @__PURE__ */ jsx28(Translate11, { z: straightHeight, children: /* @__PURE__ */ jsx28(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1779
|
+
/* @__PURE__ */ jsx28(Translate11, { z: bodyHeight, children: /* @__PURE__ */ jsx28(
|
|
1780
|
+
Cuboid20,
|
|
1781
|
+
{
|
|
1782
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1783
|
+
}
|
|
1784
|
+
) })
|
|
1785
|
+
] })
|
|
1786
|
+
] }) });
|
|
1787
|
+
const Lead = ({ xDir }) => {
|
|
1788
|
+
const verticalGap = 1;
|
|
1789
|
+
const lowerPadGap = 1;
|
|
1790
|
+
const lowerPadX = xDir * (bodyLength10 / 2 - bodyHeight * 0.8 / 2 + lowerPadGap);
|
|
1791
|
+
const verticalLeadX = xDir * (bodyLength10 / 2 - leadThickness / 2 + verticalGap);
|
|
1792
|
+
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1793
|
+
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1794
|
+
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1795
|
+
return /* @__PURE__ */ jsx28(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs26(Union7, { children: [
|
|
1796
|
+
/* @__PURE__ */ jsx28(
|
|
1797
|
+
Cuboid20,
|
|
1798
|
+
{
|
|
1799
|
+
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1800
|
+
center: [lowerPadX, 0, leadThickness / 2]
|
|
1801
|
+
}
|
|
1802
|
+
),
|
|
1803
|
+
/* @__PURE__ */ jsx28(
|
|
1804
|
+
Cuboid20,
|
|
1805
|
+
{
|
|
1806
|
+
size: [leadThickness, padWidth, leadHeight],
|
|
1807
|
+
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1808
|
+
}
|
|
1809
|
+
),
|
|
1810
|
+
/* @__PURE__ */ jsx28(
|
|
1811
|
+
Cuboid20,
|
|
1812
|
+
{
|
|
1813
|
+
size: [bridgeLength, padWidth, leadThickness],
|
|
1814
|
+
center: [bridgeCenterX, 0, leadThickness / 2 + leadHeight]
|
|
1815
|
+
}
|
|
1816
|
+
)
|
|
1817
|
+
] }) });
|
|
1818
|
+
};
|
|
1819
|
+
return /* @__PURE__ */ jsxs26(Fragment24, { children: [
|
|
1820
|
+
/* @__PURE__ */ jsx28(Lead, { xDir: 1 }),
|
|
1821
|
+
/* @__PURE__ */ jsx28(Lead, { xDir: -1 }),
|
|
1822
|
+
Body
|
|
1823
|
+
] });
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1682
1826
|
// lib/Footprinter3d.tsx
|
|
1683
|
-
import { jsx as
|
|
1827
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1684
1828
|
var Footprinter3d = ({ footprint }) => {
|
|
1685
1829
|
const fpJson = fp3.string(footprint).json();
|
|
1686
1830
|
switch (fpJson.fn) {
|
|
1687
1831
|
case "dip":
|
|
1688
|
-
return /* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ jsx29(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
1689
1833
|
case "tssop":
|
|
1690
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ jsx29(
|
|
1691
1835
|
Tssop,
|
|
1692
1836
|
{
|
|
1693
1837
|
pinCount: fpJson.num_pins,
|
|
@@ -1698,7 +1842,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1698
1842
|
}
|
|
1699
1843
|
);
|
|
1700
1844
|
case "vssop":
|
|
1701
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx29(
|
|
1702
1846
|
VSSOP,
|
|
1703
1847
|
{
|
|
1704
1848
|
pinCount: fpJson.num_pins,
|
|
@@ -1710,7 +1854,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1710
1854
|
}
|
|
1711
1855
|
);
|
|
1712
1856
|
case "qfp":
|
|
1713
|
-
return /* @__PURE__ */
|
|
1857
|
+
return /* @__PURE__ */ jsx29(
|
|
1714
1858
|
QFP,
|
|
1715
1859
|
{
|
|
1716
1860
|
pinCount: fpJson.num_pins,
|
|
@@ -1722,7 +1866,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1722
1866
|
);
|
|
1723
1867
|
case "qfn":
|
|
1724
1868
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
1725
|
-
return /* @__PURE__ */
|
|
1869
|
+
return /* @__PURE__ */ jsx29(
|
|
1726
1870
|
qfn_default,
|
|
1727
1871
|
{
|
|
1728
1872
|
num_pins: fpJson.num_pins,
|
|
@@ -1739,35 +1883,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1739
1883
|
);
|
|
1740
1884
|
case "pinrow":
|
|
1741
1885
|
if (fpJson.male)
|
|
1742
|
-
return /* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ jsx29(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1743
1887
|
if (fpJson.female)
|
|
1744
|
-
return /* @__PURE__ */
|
|
1888
|
+
return /* @__PURE__ */ jsx29(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1745
1889
|
case "cap": {
|
|
1746
1890
|
switch (fpJson.imperial) {
|
|
1747
1891
|
case "0402":
|
|
1748
|
-
return /* @__PURE__ */
|
|
1892
|
+
return /* @__PURE__ */ jsx29(A0402, { color: "#856c4d" });
|
|
1749
1893
|
case "0603":
|
|
1750
|
-
return /* @__PURE__ */
|
|
1894
|
+
return /* @__PURE__ */ jsx29(A0603, { color: "#856c4d" });
|
|
1751
1895
|
case "0805":
|
|
1752
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ jsx29(A0805, { color: "#856c4d" });
|
|
1753
1897
|
case "0201":
|
|
1754
|
-
return /* @__PURE__ */
|
|
1898
|
+
return /* @__PURE__ */ jsx29(A0201, { color: "#856c4d" });
|
|
1755
1899
|
case "01005":
|
|
1756
|
-
return /* @__PURE__ */
|
|
1900
|
+
return /* @__PURE__ */ jsx29(A01005, { color: "#856c4d" });
|
|
1757
1901
|
case "1206":
|
|
1758
|
-
return /* @__PURE__ */
|
|
1902
|
+
return /* @__PURE__ */ jsx29(A1206, { color: "#856c4d" });
|
|
1759
1903
|
case "1210":
|
|
1760
|
-
return /* @__PURE__ */
|
|
1904
|
+
return /* @__PURE__ */ jsx29(A1210, { color: "#856c4d" });
|
|
1761
1905
|
case "2010":
|
|
1762
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ jsx29(A2010, { color: "#856c4d" });
|
|
1763
1907
|
case "2512":
|
|
1764
|
-
return /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ jsx29(A2512, { color: "#856c4d" });
|
|
1765
1909
|
}
|
|
1766
1910
|
}
|
|
1767
1911
|
case "sot235":
|
|
1768
|
-
return /* @__PURE__ */
|
|
1912
|
+
return /* @__PURE__ */ jsx29(SOT_235_default, {});
|
|
1769
1913
|
case "pushbutton":
|
|
1770
|
-
return /* @__PURE__ */
|
|
1914
|
+
return /* @__PURE__ */ jsx29(
|
|
1771
1915
|
PushButton,
|
|
1772
1916
|
{
|
|
1773
1917
|
width: fpJson.w,
|
|
@@ -1776,7 +1920,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1776
1920
|
}
|
|
1777
1921
|
);
|
|
1778
1922
|
case "soic":
|
|
1779
|
-
return /* @__PURE__ */
|
|
1923
|
+
return /* @__PURE__ */ jsx29(
|
|
1780
1924
|
SOIC,
|
|
1781
1925
|
{
|
|
1782
1926
|
pinCount: fpJson.num_pins,
|
|
@@ -1787,35 +1931,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1787
1931
|
}
|
|
1788
1932
|
);
|
|
1789
1933
|
case "sod523":
|
|
1790
|
-
return /* @__PURE__ */
|
|
1934
|
+
return /* @__PURE__ */ jsx29(SOD523, {});
|
|
1935
|
+
case "sma":
|
|
1936
|
+
return /* @__PURE__ */ jsx29(SMA, {});
|
|
1937
|
+
case "smb":
|
|
1938
|
+
return /* @__PURE__ */ jsx29(SMB, {});
|
|
1791
1939
|
}
|
|
1792
1940
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
1793
1941
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
1794
1942
|
switch (fpJson.imperial) {
|
|
1795
1943
|
case "0402":
|
|
1796
|
-
return /* @__PURE__ */
|
|
1944
|
+
return /* @__PURE__ */ jsx29(A0402, { color });
|
|
1797
1945
|
case "0603":
|
|
1798
|
-
return /* @__PURE__ */
|
|
1946
|
+
return /* @__PURE__ */ jsx29(A0603, { color });
|
|
1799
1947
|
case "0805":
|
|
1800
|
-
return /* @__PURE__ */
|
|
1948
|
+
return /* @__PURE__ */ jsx29(A0805, { color });
|
|
1801
1949
|
case "0201":
|
|
1802
|
-
return /* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ jsx29(A0201, { color });
|
|
1803
1951
|
case "01005":
|
|
1804
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsx29(A01005, { color });
|
|
1805
1953
|
case "1206":
|
|
1806
|
-
return /* @__PURE__ */
|
|
1954
|
+
return /* @__PURE__ */ jsx29(A1206, { color });
|
|
1807
1955
|
case "1210":
|
|
1808
|
-
return /* @__PURE__ */
|
|
1956
|
+
return /* @__PURE__ */ jsx29(A1210, { color });
|
|
1809
1957
|
case "2010":
|
|
1810
|
-
return /* @__PURE__ */
|
|
1958
|
+
return /* @__PURE__ */ jsx29(A2010, { color });
|
|
1811
1959
|
case "2512":
|
|
1812
|
-
return /* @__PURE__ */
|
|
1960
|
+
return /* @__PURE__ */ jsx29(A2512, { color });
|
|
1813
1961
|
}
|
|
1814
1962
|
return null;
|
|
1815
1963
|
};
|
|
1816
1964
|
|
|
1817
1965
|
// lib/SOT-23-3P.tsx
|
|
1818
|
-
import { Fragment as
|
|
1966
|
+
import { Fragment as Fragment25, jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1819
1967
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
1820
1968
|
const bodyWidth = 1.3;
|
|
1821
1969
|
const bodyLength10 = 2.9;
|
|
@@ -1826,8 +1974,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1826
1974
|
const padContactLength = 0.4;
|
|
1827
1975
|
const padThickness = leadThickness / 2;
|
|
1828
1976
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
1829
|
-
return /* @__PURE__ */
|
|
1830
|
-
/* @__PURE__ */
|
|
1977
|
+
return /* @__PURE__ */ jsxs27(Fragment25, { children: [
|
|
1978
|
+
/* @__PURE__ */ jsx30(
|
|
1831
1979
|
SmdChipLead,
|
|
1832
1980
|
{
|
|
1833
1981
|
rotation: Math.PI,
|
|
@@ -1844,7 +1992,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1844
1992
|
},
|
|
1845
1993
|
1
|
|
1846
1994
|
),
|
|
1847
|
-
/* @__PURE__ */
|
|
1995
|
+
/* @__PURE__ */ jsx30(
|
|
1848
1996
|
SmdChipLead,
|
|
1849
1997
|
{
|
|
1850
1998
|
rotation: Math.PI,
|
|
@@ -1861,7 +2009,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1861
2009
|
},
|
|
1862
2010
|
2
|
|
1863
2011
|
),
|
|
1864
|
-
/* @__PURE__ */
|
|
2012
|
+
/* @__PURE__ */ jsx30(
|
|
1865
2013
|
SmdChipLead,
|
|
1866
2014
|
{
|
|
1867
2015
|
position: {
|
|
@@ -1877,7 +2025,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1877
2025
|
},
|
|
1878
2026
|
3
|
|
1879
2027
|
),
|
|
1880
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx30(
|
|
1881
2029
|
ChipBody,
|
|
1882
2030
|
{
|
|
1883
2031
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -1890,8 +2038,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1890
2038
|
};
|
|
1891
2039
|
|
|
1892
2040
|
// lib/SOT-563.tsx
|
|
1893
|
-
import { Cuboid as
|
|
1894
|
-
import { Fragment as
|
|
2041
|
+
import { Cuboid as Cuboid21, Translate as Translate12, Rotate as Rotate6, Colorize as Colorize13 } from "jscad-fiber";
|
|
2042
|
+
import { Fragment as Fragment26, jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1895
2043
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
1896
2044
|
const bodyWidth = 1.2;
|
|
1897
2045
|
const bodyLength10 = 1.6;
|
|
@@ -1901,28 +2049,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1901
2049
|
const leadHeight = 0.13;
|
|
1902
2050
|
const leadSpacing = 0.5;
|
|
1903
2051
|
const bodyZOffset = -0.4;
|
|
1904
|
-
return /* @__PURE__ */
|
|
1905
|
-
/* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ jsxs28(Fragment26, { children: [
|
|
2053
|
+
/* @__PURE__ */ jsx31(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx31(Translate12, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx31(Colorize13, { color: "grey", children: /* @__PURE__ */ jsx31(Cuboid21, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
1906
2054
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
1907
2055
|
// Left lead
|
|
1908
|
-
/* @__PURE__ */
|
|
1909
|
-
|
|
2056
|
+
/* @__PURE__ */ jsx31(
|
|
2057
|
+
Translate12,
|
|
1910
2058
|
{
|
|
1911
2059
|
center: [
|
|
1912
2060
|
-bodyWidth / 2 - 0.03,
|
|
1913
2061
|
yOffset * leadSpacing,
|
|
1914
2062
|
leadHeight / 2
|
|
1915
2063
|
],
|
|
1916
|
-
children: /* @__PURE__ */
|
|
2064
|
+
children: /* @__PURE__ */ jsx31(Cuboid21, { size: [leadLength, leadWidth, leadHeight] })
|
|
1917
2065
|
},
|
|
1918
2066
|
`left-${index}`
|
|
1919
2067
|
),
|
|
1920
2068
|
// Right lead
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
|
|
2069
|
+
/* @__PURE__ */ jsx31(
|
|
2070
|
+
Translate12,
|
|
1923
2071
|
{
|
|
1924
2072
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
1925
|
-
children: /* @__PURE__ */
|
|
2073
|
+
children: /* @__PURE__ */ jsx31(Cuboid21, { size: [leadLength, leadWidth, leadHeight] })
|
|
1926
2074
|
},
|
|
1927
2075
|
`right-${index}`
|
|
1928
2076
|
)
|
|
@@ -1931,8 +2079,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1931
2079
|
};
|
|
1932
2080
|
|
|
1933
2081
|
// lib/SOT-723.tsx
|
|
1934
|
-
import { Cuboid as
|
|
1935
|
-
import { Fragment as
|
|
2082
|
+
import { Cuboid as Cuboid22, Translate as Translate13, Rotate as Rotate7, Colorize as Colorize14 } from "jscad-fiber";
|
|
2083
|
+
import { Fragment as Fragment27, jsx as jsx32, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1936
2084
|
var getCcwSot723Coords = (pn) => {
|
|
1937
2085
|
if (pn === 1) {
|
|
1938
2086
|
return { x: 0, y: 0 };
|
|
@@ -1950,12 +2098,12 @@ var SOT723 = () => {
|
|
|
1950
2098
|
const leadLength = 0.3;
|
|
1951
2099
|
const leadHeight = 0.1;
|
|
1952
2100
|
const centerLeadWidth = 0.42;
|
|
1953
|
-
return /* @__PURE__ */
|
|
1954
|
-
/* @__PURE__ */
|
|
2101
|
+
return /* @__PURE__ */ jsxs29(Fragment27, { children: [
|
|
2102
|
+
/* @__PURE__ */ jsx32(Rotate7, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx32(Translate13, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx32(Colorize14, { color: "grey", children: /* @__PURE__ */ jsx32(Cuboid22, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
1955
2103
|
[1, 2, 3].map((pn) => {
|
|
1956
2104
|
const { x, y } = getCcwSot723Coords(pn);
|
|
1957
|
-
return /* @__PURE__ */
|
|
1958
|
-
|
|
2105
|
+
return /* @__PURE__ */ jsx32(Translate13, { center: [x, y, 0], children: /* @__PURE__ */ jsx32(
|
|
2106
|
+
Cuboid22,
|
|
1959
2107
|
{
|
|
1960
2108
|
size: [
|
|
1961
2109
|
leadLength,
|
|
@@ -1969,7 +2117,7 @@ var SOT723 = () => {
|
|
|
1969
2117
|
};
|
|
1970
2118
|
|
|
1971
2119
|
// lib/sod-123.tsx
|
|
1972
|
-
import { Fragment as
|
|
2120
|
+
import { Fragment as Fragment28, jsx as jsx33, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1973
2121
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
1974
2122
|
const bodyWidth = 2.9;
|
|
1975
2123
|
const bodyLength10 = 1.3;
|
|
@@ -1980,8 +2128,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1980
2128
|
const padContactLength = 0.4;
|
|
1981
2129
|
const padThickness = leadThickness / 2;
|
|
1982
2130
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
1983
|
-
return /* @__PURE__ */
|
|
1984
|
-
/* @__PURE__ */
|
|
2131
|
+
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2132
|
+
/* @__PURE__ */ jsx33(
|
|
1985
2133
|
SmdChipLead,
|
|
1986
2134
|
{
|
|
1987
2135
|
position: {
|
|
@@ -1997,7 +2145,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
1997
2145
|
},
|
|
1998
2146
|
1
|
|
1999
2147
|
),
|
|
2000
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ jsx33(
|
|
2001
2149
|
SmdChipLead,
|
|
2002
2150
|
{
|
|
2003
2151
|
rotation: Math.PI,
|
|
@@ -2014,7 +2162,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2014
2162
|
},
|
|
2015
2163
|
2
|
|
2016
2164
|
),
|
|
2017
|
-
/* @__PURE__ */
|
|
2165
|
+
/* @__PURE__ */ jsx33(
|
|
2018
2166
|
ChipBody,
|
|
2019
2167
|
{
|
|
2020
2168
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2044,6 +2192,8 @@ export {
|
|
|
2044
2192
|
PinRow,
|
|
2045
2193
|
QFN,
|
|
2046
2194
|
QFP,
|
|
2195
|
+
SMA,
|
|
2196
|
+
SMB,
|
|
2047
2197
|
SOD123,
|
|
2048
2198
|
SOD523,
|
|
2049
2199
|
SOT233P,
|