jscad-electronics 0.0.84 → 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 +341 -269
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +72 -3
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -947,7 +947,8 @@ var QFP = ({
|
|
|
947
947
|
x: bodyLength10 / 2 - 1.5,
|
|
948
948
|
y: bodyWidth / 2 - 1.5,
|
|
949
949
|
z: 1.5
|
|
950
|
-
}
|
|
950
|
+
},
|
|
951
|
+
notchRadius: 1.5 / 2
|
|
951
952
|
}
|
|
952
953
|
)
|
|
953
954
|
] });
|
|
@@ -1790,9 +1791,75 @@ var SOD523 = () => {
|
|
|
1790
1791
|
] });
|
|
1791
1792
|
};
|
|
1792
1793
|
|
|
1793
|
-
// lib/
|
|
1794
|
-
import {
|
|
1794
|
+
// lib/SOD882.tsx
|
|
1795
|
+
import { Colorize as Colorize11, Cuboid as Cuboid19, Translate as Translate10 } from "jscad-fiber";
|
|
1795
1796
|
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1797
|
+
var SOD882 = () => {
|
|
1798
|
+
const bodyLength10 = 0.98;
|
|
1799
|
+
const bodyHeight = 0.47;
|
|
1800
|
+
const pitch = 0.65;
|
|
1801
|
+
const padWidth = 0.51;
|
|
1802
|
+
const padLength = 0.26;
|
|
1803
|
+
const padThickness = 0.12;
|
|
1804
|
+
const bodyWidth = 0.58;
|
|
1805
|
+
const leftPadCenterX = -pitch / 2;
|
|
1806
|
+
const rightPadCenterX = pitch / 2;
|
|
1807
|
+
return /* @__PURE__ */ jsxs26(Fragment24, { children: [
|
|
1808
|
+
/* @__PURE__ */ jsx28(
|
|
1809
|
+
Cuboid19,
|
|
1810
|
+
{
|
|
1811
|
+
color: "#ccc",
|
|
1812
|
+
size: [padLength, padWidth, padThickness],
|
|
1813
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
1814
|
+
}
|
|
1815
|
+
),
|
|
1816
|
+
/* @__PURE__ */ jsx28(
|
|
1817
|
+
Cuboid19,
|
|
1818
|
+
{
|
|
1819
|
+
color: "#ccc",
|
|
1820
|
+
size: [padLength, padWidth, padThickness],
|
|
1821
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1822
|
+
}
|
|
1823
|
+
),
|
|
1824
|
+
/* @__PURE__ */ jsx28(Colorize11, { color: "#222", children: /* @__PURE__ */ jsx28(Translate10, { z: bodyHeight / 2 + 0.02, children: /* @__PURE__ */ jsx28(Cuboid19, { size: [bodyLength10, bodyWidth, bodyHeight] }) }) }),
|
|
1825
|
+
/* @__PURE__ */ jsx28(
|
|
1826
|
+
Cuboid19,
|
|
1827
|
+
{
|
|
1828
|
+
color: "#ccc",
|
|
1829
|
+
size: [bodyLength10 + 1e-3, padLength / 2, padLength / 4],
|
|
1830
|
+
center: [0, padLength / 2, bodyHeight / 4]
|
|
1831
|
+
}
|
|
1832
|
+
),
|
|
1833
|
+
/* @__PURE__ */ jsx28(
|
|
1834
|
+
Cuboid19,
|
|
1835
|
+
{
|
|
1836
|
+
color: "#ccc",
|
|
1837
|
+
size: [bodyLength10 + 1e-3, padLength / 2, padLength / 4],
|
|
1838
|
+
center: [0, -padLength / 2, bodyHeight / 4]
|
|
1839
|
+
}
|
|
1840
|
+
),
|
|
1841
|
+
/* @__PURE__ */ jsx28(
|
|
1842
|
+
Cuboid19,
|
|
1843
|
+
{
|
|
1844
|
+
color: "#ccc",
|
|
1845
|
+
size: [padLength / 1.5, bodyWidth + 1e-3, padLength / 4],
|
|
1846
|
+
center: [pitch / 2, 0, bodyHeight / 4]
|
|
1847
|
+
}
|
|
1848
|
+
),
|
|
1849
|
+
/* @__PURE__ */ jsx28(
|
|
1850
|
+
Cuboid19,
|
|
1851
|
+
{
|
|
1852
|
+
color: "#ccc",
|
|
1853
|
+
size: [padLength / 1.5, bodyWidth + 1e-3, padLength / 4],
|
|
1854
|
+
center: [-pitch / 2, 0, bodyHeight / 4]
|
|
1855
|
+
}
|
|
1856
|
+
)
|
|
1857
|
+
] });
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
// lib/SMA.tsx
|
|
1861
|
+
import { Cuboid as Cuboid20, Colorize as Colorize12, Union as Union7, Hull as Hull6, Translate as Translate11 } from "jscad-fiber";
|
|
1862
|
+
import { Fragment as Fragment25, jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1796
1863
|
var SMA = () => {
|
|
1797
1864
|
const bodyWidth = 4.4;
|
|
1798
1865
|
const bodyLength10 = 3.4;
|
|
@@ -1803,20 +1870,20 @@ var SMA = () => {
|
|
|
1803
1870
|
const leadHeight = 1.14;
|
|
1804
1871
|
const taperOffset = 0.4;
|
|
1805
1872
|
const straightHeight = bodyHeight * 0.5;
|
|
1806
|
-
const Body = /* @__PURE__ */
|
|
1807
|
-
/* @__PURE__ */
|
|
1808
|
-
/* @__PURE__ */
|
|
1809
|
-
|
|
1873
|
+
const Body = /* @__PURE__ */ jsx29(Colorize12, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs27(Union7, { children: [
|
|
1874
|
+
/* @__PURE__ */ jsxs27(Hull6, { children: [
|
|
1875
|
+
/* @__PURE__ */ jsx29(Translate11, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx29(
|
|
1876
|
+
Cuboid20,
|
|
1810
1877
|
{
|
|
1811
1878
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1812
1879
|
}
|
|
1813
1880
|
) }),
|
|
1814
|
-
/* @__PURE__ */
|
|
1881
|
+
/* @__PURE__ */ jsx29(Translate11, { z: straightHeight, children: /* @__PURE__ */ jsx29(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1815
1882
|
] }),
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
/* @__PURE__ */
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
|
|
1883
|
+
/* @__PURE__ */ jsxs27(Hull6, { children: [
|
|
1884
|
+
/* @__PURE__ */ jsx29(Translate11, { z: straightHeight, children: /* @__PURE__ */ jsx29(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1885
|
+
/* @__PURE__ */ jsx29(Translate11, { z: bodyHeight, children: /* @__PURE__ */ jsx29(
|
|
1886
|
+
Cuboid20,
|
|
1820
1887
|
{
|
|
1821
1888
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1822
1889
|
}
|
|
@@ -1831,23 +1898,23 @@ var SMA = () => {
|
|
|
1831
1898
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1832
1899
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1833
1900
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
|
|
1901
|
+
return /* @__PURE__ */ jsx29(Colorize12, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs27(Union7, { children: [
|
|
1902
|
+
/* @__PURE__ */ jsx29(
|
|
1903
|
+
Cuboid20,
|
|
1837
1904
|
{
|
|
1838
1905
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1839
1906
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
1840
1907
|
}
|
|
1841
1908
|
),
|
|
1842
|
-
/* @__PURE__ */
|
|
1843
|
-
|
|
1909
|
+
/* @__PURE__ */ jsx29(
|
|
1910
|
+
Cuboid20,
|
|
1844
1911
|
{
|
|
1845
1912
|
size: [leadThickness, padWidth, leadHeight],
|
|
1846
1913
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1847
1914
|
}
|
|
1848
1915
|
),
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
|
|
1916
|
+
/* @__PURE__ */ jsx29(
|
|
1917
|
+
Cuboid20,
|
|
1851
1918
|
{
|
|
1852
1919
|
size: [bridgeLength, padWidth, leadThickness],
|
|
1853
1920
|
center: [bridgeCenterX, 0, leadThickness / 2 + leadHeight]
|
|
@@ -1855,16 +1922,16 @@ var SMA = () => {
|
|
|
1855
1922
|
)
|
|
1856
1923
|
] }) });
|
|
1857
1924
|
};
|
|
1858
|
-
return /* @__PURE__ */
|
|
1859
|
-
/* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1925
|
+
return /* @__PURE__ */ jsxs27(Fragment25, { children: [
|
|
1926
|
+
/* @__PURE__ */ jsx29(Lead, { xDir: 1 }),
|
|
1927
|
+
/* @__PURE__ */ jsx29(Lead, { xDir: -1 }),
|
|
1861
1928
|
Body
|
|
1862
1929
|
] });
|
|
1863
1930
|
};
|
|
1864
1931
|
|
|
1865
1932
|
// lib/SMB.tsx
|
|
1866
|
-
import { Cuboid as
|
|
1867
|
-
import { Fragment as
|
|
1933
|
+
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union8, Hull as Hull7, Translate as Translate12 } from "jscad-fiber";
|
|
1934
|
+
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1868
1935
|
var SMB = () => {
|
|
1869
1936
|
const bodyWidth = 4.4;
|
|
1870
1937
|
const bodyLength10 = 3.4;
|
|
@@ -1875,20 +1942,20 @@ var SMB = () => {
|
|
|
1875
1942
|
const leadHeight = 1.14;
|
|
1876
1943
|
const taperOffset = 0.4;
|
|
1877
1944
|
const straightHeight = bodyHeight * 0.5;
|
|
1878
|
-
const Body = /* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
|
|
1945
|
+
const Body = /* @__PURE__ */ jsx30(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs28(Union8, { children: [
|
|
1946
|
+
/* @__PURE__ */ jsxs28(Hull7, { children: [
|
|
1947
|
+
/* @__PURE__ */ jsx30(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx30(
|
|
1948
|
+
Cuboid21,
|
|
1882
1949
|
{
|
|
1883
1950
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1884
1951
|
}
|
|
1885
1952
|
) }),
|
|
1886
|
-
/* @__PURE__ */
|
|
1953
|
+
/* @__PURE__ */ jsx30(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1887
1954
|
] }),
|
|
1888
|
-
/* @__PURE__ */
|
|
1889
|
-
/* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
|
|
1955
|
+
/* @__PURE__ */ jsxs28(Hull7, { children: [
|
|
1956
|
+
/* @__PURE__ */ jsx30(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1957
|
+
/* @__PURE__ */ jsx30(Translate12, { z: bodyHeight, children: /* @__PURE__ */ jsx30(
|
|
1958
|
+
Cuboid21,
|
|
1892
1959
|
{
|
|
1893
1960
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1894
1961
|
}
|
|
@@ -1903,23 +1970,23 @@ var SMB = () => {
|
|
|
1903
1970
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1904
1971
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1905
1972
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1906
|
-
return /* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
|
|
1973
|
+
return /* @__PURE__ */ jsx30(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs28(Union8, { children: [
|
|
1974
|
+
/* @__PURE__ */ jsx30(
|
|
1975
|
+
Cuboid21,
|
|
1909
1976
|
{
|
|
1910
1977
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1911
1978
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
1912
1979
|
}
|
|
1913
1980
|
),
|
|
1914
|
-
/* @__PURE__ */
|
|
1915
|
-
|
|
1981
|
+
/* @__PURE__ */ jsx30(
|
|
1982
|
+
Cuboid21,
|
|
1916
1983
|
{
|
|
1917
1984
|
size: [leadThickness, padWidth, leadHeight],
|
|
1918
1985
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1919
1986
|
}
|
|
1920
1987
|
),
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
|
|
1988
|
+
/* @__PURE__ */ jsx30(
|
|
1989
|
+
Cuboid21,
|
|
1923
1990
|
{
|
|
1924
1991
|
size: [bridgeLength, padWidth, leadThickness],
|
|
1925
1992
|
center: [bridgeCenterX, 0, leadThickness / 2 + leadHeight]
|
|
@@ -1927,16 +1994,16 @@ var SMB = () => {
|
|
|
1927
1994
|
)
|
|
1928
1995
|
] }) });
|
|
1929
1996
|
};
|
|
1930
|
-
return /* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
1932
|
-
/* @__PURE__ */
|
|
1997
|
+
return /* @__PURE__ */ jsxs28(Fragment26, { children: [
|
|
1998
|
+
/* @__PURE__ */ jsx30(Lead, { xDir: 1 }),
|
|
1999
|
+
/* @__PURE__ */ jsx30(Lead, { xDir: -1 }),
|
|
1933
2000
|
Body
|
|
1934
2001
|
] });
|
|
1935
2002
|
};
|
|
1936
2003
|
|
|
1937
2004
|
// lib/SMC.tsx
|
|
1938
|
-
import { Cuboid as
|
|
1939
|
-
import { Fragment as
|
|
2005
|
+
import { Cuboid as Cuboid22, Colorize as Colorize14, Union as Union9, Hull as Hull8, Translate as Translate13 } from "jscad-fiber";
|
|
2006
|
+
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1940
2007
|
var SMC = () => {
|
|
1941
2008
|
const bodyWidth = 6.8;
|
|
1942
2009
|
const bodyLength10 = 6;
|
|
@@ -1947,20 +2014,20 @@ var SMC = () => {
|
|
|
1947
2014
|
const leadHeight = 1.14;
|
|
1948
2015
|
const taperOffset = 0.4;
|
|
1949
2016
|
const straightHeight = bodyHeight * 0.5;
|
|
1950
|
-
const Body = /* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
1952
|
-
/* @__PURE__ */
|
|
1953
|
-
|
|
2017
|
+
const Body = /* @__PURE__ */ jsx31(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(Union9, { children: [
|
|
2018
|
+
/* @__PURE__ */ jsxs29(Hull8, { children: [
|
|
2019
|
+
/* @__PURE__ */ jsx31(Translate13, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx31(
|
|
2020
|
+
Cuboid22,
|
|
1954
2021
|
{
|
|
1955
2022
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1956
2023
|
}
|
|
1957
2024
|
) }),
|
|
1958
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ jsx31(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1959
2026
|
] }),
|
|
1960
|
-
/* @__PURE__ */
|
|
1961
|
-
/* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
|
|
2027
|
+
/* @__PURE__ */ jsxs29(Hull8, { children: [
|
|
2028
|
+
/* @__PURE__ */ jsx31(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2029
|
+
/* @__PURE__ */ jsx31(Translate13, { z: bodyHeight, children: /* @__PURE__ */ jsx31(
|
|
2030
|
+
Cuboid22,
|
|
1964
2031
|
{
|
|
1965
2032
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1966
2033
|
}
|
|
@@ -1975,23 +2042,23 @@ var SMC = () => {
|
|
|
1975
2042
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1976
2043
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1977
2044
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1978
|
-
return /* @__PURE__ */
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
|
|
2045
|
+
return /* @__PURE__ */ jsx31(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(Union9, { children: [
|
|
2046
|
+
/* @__PURE__ */ jsx31(
|
|
2047
|
+
Cuboid22,
|
|
1981
2048
|
{
|
|
1982
2049
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1983
2050
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
1984
2051
|
}
|
|
1985
2052
|
),
|
|
1986
|
-
/* @__PURE__ */
|
|
1987
|
-
|
|
2053
|
+
/* @__PURE__ */ jsx31(
|
|
2054
|
+
Cuboid22,
|
|
1988
2055
|
{
|
|
1989
2056
|
size: [leadThickness, padWidth, leadHeight],
|
|
1990
2057
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1991
2058
|
}
|
|
1992
2059
|
),
|
|
1993
|
-
/* @__PURE__ */
|
|
1994
|
-
|
|
2060
|
+
/* @__PURE__ */ jsx31(
|
|
2061
|
+
Cuboid22,
|
|
1995
2062
|
{
|
|
1996
2063
|
size: [bridgeLength, padWidth, leadThickness],
|
|
1997
2064
|
center: [bridgeCenterX, 0, leadThickness / 2 + leadHeight]
|
|
@@ -1999,16 +2066,16 @@ var SMC = () => {
|
|
|
1999
2066
|
)
|
|
2000
2067
|
] }) });
|
|
2001
2068
|
};
|
|
2002
|
-
return /* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */
|
|
2069
|
+
return /* @__PURE__ */ jsxs29(Fragment27, { children: [
|
|
2070
|
+
/* @__PURE__ */ jsx31(Lead, { xDir: 1 }),
|
|
2071
|
+
/* @__PURE__ */ jsx31(Lead, { xDir: -1 }),
|
|
2005
2072
|
Body
|
|
2006
2073
|
] });
|
|
2007
2074
|
};
|
|
2008
2075
|
|
|
2009
2076
|
// lib/SMF.tsx
|
|
2010
|
-
import { Colorize as
|
|
2011
|
-
import { Fragment as
|
|
2077
|
+
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as Union10 } from "jscad-fiber";
|
|
2078
|
+
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2012
2079
|
var SMF = () => {
|
|
2013
2080
|
const fullWidth = 2.9;
|
|
2014
2081
|
const bodyLength10 = 1.9;
|
|
@@ -2021,29 +2088,29 @@ var SMF = () => {
|
|
|
2021
2088
|
const rightPadCenterX = 1.3;
|
|
2022
2089
|
const taperOffset = 0.2;
|
|
2023
2090
|
const straightHeight = bodyHeight * 0.5;
|
|
2024
|
-
const Body = /* @__PURE__ */
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__PURE__ */
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
|
|
2091
|
+
const Body = /* @__PURE__ */ jsx32(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs30(Union10, { children: [
|
|
2092
|
+
/* @__PURE__ */ jsx32(Translate14, { z: straightHeight / 2, children: /* @__PURE__ */ jsx32(Cuboid23, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2093
|
+
/* @__PURE__ */ jsxs30(Hull9, { children: [
|
|
2094
|
+
/* @__PURE__ */ jsx32(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx32(Cuboid23, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2095
|
+
/* @__PURE__ */ jsx32(Translate14, { z: bodyHeight, children: /* @__PURE__ */ jsx32(
|
|
2096
|
+
Cuboid23,
|
|
2030
2097
|
{
|
|
2031
2098
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2032
2099
|
}
|
|
2033
2100
|
) })
|
|
2034
2101
|
] })
|
|
2035
2102
|
] }) });
|
|
2036
|
-
return /* @__PURE__ */
|
|
2037
|
-
/* @__PURE__ */
|
|
2038
|
-
|
|
2103
|
+
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2104
|
+
/* @__PURE__ */ jsx32(
|
|
2105
|
+
Cuboid23,
|
|
2039
2106
|
{
|
|
2040
2107
|
color: "#ccc",
|
|
2041
2108
|
size: [padLength, padWidth, padThickness],
|
|
2042
2109
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2043
2110
|
}
|
|
2044
2111
|
),
|
|
2045
|
-
/* @__PURE__ */
|
|
2046
|
-
|
|
2112
|
+
/* @__PURE__ */ jsx32(
|
|
2113
|
+
Cuboid23,
|
|
2047
2114
|
{
|
|
2048
2115
|
color: "#ccc",
|
|
2049
2116
|
size: [padLength, padWidth, padThickness],
|
|
@@ -2055,8 +2122,8 @@ var SMF = () => {
|
|
|
2055
2122
|
};
|
|
2056
2123
|
|
|
2057
2124
|
// lib/sod-123F.tsx
|
|
2058
|
-
import { Colorize as
|
|
2059
|
-
import { Fragment as
|
|
2125
|
+
import { Colorize as Colorize16, Cuboid as Cuboid24, Hull as Hull10, Translate as Translate15, Union as Union11 } from "jscad-fiber";
|
|
2126
|
+
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2060
2127
|
var SOD123F = () => {
|
|
2061
2128
|
const fullWidth = 2.7;
|
|
2062
2129
|
const bodyLength10 = 1.6;
|
|
@@ -2068,29 +2135,29 @@ var SOD123F = () => {
|
|
|
2068
2135
|
const rightPadCenterX = 1.3;
|
|
2069
2136
|
const taperOffset = 0.2;
|
|
2070
2137
|
const straightHeight = bodyHeight * 0.5;
|
|
2071
|
-
return /* @__PURE__ */
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
|
|
2138
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2139
|
+
/* @__PURE__ */ jsx33(
|
|
2140
|
+
Cuboid24,
|
|
2074
2141
|
{
|
|
2075
2142
|
color: "#ccc",
|
|
2076
2143
|
size: [padLength, padWidth, padThickness],
|
|
2077
2144
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2078
2145
|
}
|
|
2079
2146
|
),
|
|
2080
|
-
/* @__PURE__ */
|
|
2081
|
-
|
|
2147
|
+
/* @__PURE__ */ jsx33(
|
|
2148
|
+
Cuboid24,
|
|
2082
2149
|
{
|
|
2083
2150
|
color: "#ccc",
|
|
2084
2151
|
size: [padLength, padWidth, padThickness],
|
|
2085
2152
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2086
2153
|
}
|
|
2087
2154
|
),
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
|
|
2155
|
+
/* @__PURE__ */ jsx33(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs31(Union11, { children: [
|
|
2156
|
+
/* @__PURE__ */ jsx33(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx33(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2157
|
+
/* @__PURE__ */ jsxs31(Hull10, { children: [
|
|
2158
|
+
/* @__PURE__ */ jsx33(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2159
|
+
/* @__PURE__ */ jsx33(Translate15, { z: bodyHeight, children: /* @__PURE__ */ jsx33(
|
|
2160
|
+
Cuboid24,
|
|
2094
2161
|
{
|
|
2095
2162
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2096
2163
|
}
|
|
@@ -2101,8 +2168,8 @@ var SOD123F = () => {
|
|
|
2101
2168
|
};
|
|
2102
2169
|
|
|
2103
2170
|
// lib/sod-123FL.tsx
|
|
2104
|
-
import { Colorize as
|
|
2105
|
-
import { Fragment as
|
|
2171
|
+
import { Colorize as Colorize17, Cuboid as Cuboid25, Hull as Hull11, Translate as Translate16, Union as Union12 } from "jscad-fiber";
|
|
2172
|
+
import { Fragment as Fragment30, jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2106
2173
|
var SOD123FL = () => {
|
|
2107
2174
|
const fullWidth = 2.75;
|
|
2108
2175
|
const bodyLength10 = 1.8;
|
|
@@ -2114,37 +2181,37 @@ var SOD123FL = () => {
|
|
|
2114
2181
|
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2115
2182
|
const taperOffset = 0.4;
|
|
2116
2183
|
const straightHeight = bodyHeight * 0.2;
|
|
2117
|
-
return /* @__PURE__ */
|
|
2118
|
-
/* @__PURE__ */
|
|
2119
|
-
|
|
2184
|
+
return /* @__PURE__ */ jsxs32(Fragment30, { children: [
|
|
2185
|
+
/* @__PURE__ */ jsx34(
|
|
2186
|
+
Cuboid25,
|
|
2120
2187
|
{
|
|
2121
2188
|
color: "#ccc",
|
|
2122
2189
|
size: [padLength, padWidth, padThickness],
|
|
2123
2190
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2124
2191
|
}
|
|
2125
2192
|
),
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
|
|
2193
|
+
/* @__PURE__ */ jsx34(
|
|
2194
|
+
Cuboid25,
|
|
2128
2195
|
{
|
|
2129
2196
|
color: "#ccc",
|
|
2130
2197
|
size: [padLength, padWidth, padThickness],
|
|
2131
2198
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2132
2199
|
}
|
|
2133
2200
|
),
|
|
2134
|
-
/* @__PURE__ */
|
|
2135
|
-
/* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
/* @__PURE__ */
|
|
2139
|
-
|
|
2201
|
+
/* @__PURE__ */ jsx34(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs32(Union12, { children: [
|
|
2202
|
+
/* @__PURE__ */ jsx34(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx34(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2203
|
+
/* @__PURE__ */ jsxs32(Hull11, { children: [
|
|
2204
|
+
/* @__PURE__ */ jsx34(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2205
|
+
/* @__PURE__ */ jsx34(Translate16, { z: bodyHeight, children: /* @__PURE__ */ jsx34(
|
|
2206
|
+
Cuboid25,
|
|
2140
2207
|
{
|
|
2141
2208
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2142
2209
|
}
|
|
2143
2210
|
) })
|
|
2144
2211
|
] })
|
|
2145
2212
|
] }) }),
|
|
2146
|
-
/* @__PURE__ */
|
|
2147
|
-
|
|
2213
|
+
/* @__PURE__ */ jsx34(
|
|
2214
|
+
Cuboid25,
|
|
2148
2215
|
{
|
|
2149
2216
|
color: "#777",
|
|
2150
2217
|
size: [padThickness, bodyLength10 - taperOffset, 0.01],
|
|
@@ -2155,8 +2222,8 @@ var SOD123FL = () => {
|
|
|
2155
2222
|
};
|
|
2156
2223
|
|
|
2157
2224
|
// lib/SOD-923.tsx
|
|
2158
|
-
import { Colorize as
|
|
2159
|
-
import { Fragment as
|
|
2225
|
+
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as Union13 } from "jscad-fiber";
|
|
2226
|
+
import { Fragment as Fragment31, jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2160
2227
|
var SOD923 = () => {
|
|
2161
2228
|
const fullWidth = 0.8;
|
|
2162
2229
|
const bodyLength10 = 0.6;
|
|
@@ -2168,29 +2235,29 @@ var SOD923 = () => {
|
|
|
2168
2235
|
const rightPadCenterX = fullWidth / 2;
|
|
2169
2236
|
const taperOffset = 0.1;
|
|
2170
2237
|
const straightHeight = padThickness;
|
|
2171
|
-
return /* @__PURE__ */
|
|
2172
|
-
/* @__PURE__ */
|
|
2173
|
-
|
|
2238
|
+
return /* @__PURE__ */ jsxs33(Fragment31, { children: [
|
|
2239
|
+
/* @__PURE__ */ jsx35(
|
|
2240
|
+
Cuboid26,
|
|
2174
2241
|
{
|
|
2175
2242
|
color: "#ccc",
|
|
2176
2243
|
size: [padLength, padWidth, padThickness],
|
|
2177
2244
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2178
2245
|
}
|
|
2179
2246
|
),
|
|
2180
|
-
/* @__PURE__ */
|
|
2181
|
-
|
|
2247
|
+
/* @__PURE__ */ jsx35(
|
|
2248
|
+
Cuboid26,
|
|
2182
2249
|
{
|
|
2183
2250
|
color: "#ccc",
|
|
2184
2251
|
size: [padLength, padWidth, padThickness],
|
|
2185
2252
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2186
2253
|
}
|
|
2187
2254
|
),
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
/* @__PURE__ */
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
/* @__PURE__ */
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
|
|
2255
|
+
/* @__PURE__ */ jsx35(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs33(Union13, { children: [
|
|
2256
|
+
/* @__PURE__ */ jsx35(Translate17, { z: straightHeight / 2, children: /* @__PURE__ */ jsx35(Cuboid26, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2257
|
+
/* @__PURE__ */ jsxs33(Hull12, { children: [
|
|
2258
|
+
/* @__PURE__ */ jsx35(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid26, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2259
|
+
/* @__PURE__ */ jsx35(Translate17, { z: bodyHeight, children: /* @__PURE__ */ jsx35(
|
|
2260
|
+
Cuboid26,
|
|
2194
2261
|
{
|
|
2195
2262
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2196
2263
|
}
|
|
@@ -2201,7 +2268,7 @@ var SOD923 = () => {
|
|
|
2201
2268
|
};
|
|
2202
2269
|
|
|
2203
2270
|
// lib/SOT-223.tsx
|
|
2204
|
-
import { Fragment as
|
|
2271
|
+
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2205
2272
|
var SOT223 = () => {
|
|
2206
2273
|
const fullWidth = 6.6;
|
|
2207
2274
|
const bodyWidth = 3.5;
|
|
@@ -2214,8 +2281,8 @@ var SOT223 = () => {
|
|
|
2214
2281
|
const padContactLength = 0.5;
|
|
2215
2282
|
const padPitch = 2.3;
|
|
2216
2283
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2217
|
-
return /* @__PURE__ */
|
|
2218
|
-
/* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2285
|
+
/* @__PURE__ */ jsx36(
|
|
2219
2286
|
SmdChipLead,
|
|
2220
2287
|
{
|
|
2221
2288
|
rotation: Math.PI,
|
|
@@ -2232,7 +2299,7 @@ var SOT223 = () => {
|
|
|
2232
2299
|
},
|
|
2233
2300
|
4
|
|
2234
2301
|
),
|
|
2235
|
-
/* @__PURE__ */
|
|
2302
|
+
/* @__PURE__ */ jsx36(
|
|
2236
2303
|
SmdChipLead,
|
|
2237
2304
|
{
|
|
2238
2305
|
position: {
|
|
@@ -2248,7 +2315,7 @@ var SOT223 = () => {
|
|
|
2248
2315
|
},
|
|
2249
2316
|
3
|
|
2250
2317
|
),
|
|
2251
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ jsx36(
|
|
2252
2319
|
SmdChipLead,
|
|
2253
2320
|
{
|
|
2254
2321
|
position: {
|
|
@@ -2264,7 +2331,7 @@ var SOT223 = () => {
|
|
|
2264
2331
|
},
|
|
2265
2332
|
1
|
|
2266
2333
|
),
|
|
2267
|
-
/* @__PURE__ */
|
|
2334
|
+
/* @__PURE__ */ jsx36(
|
|
2268
2335
|
SmdChipLead,
|
|
2269
2336
|
{
|
|
2270
2337
|
position: {
|
|
@@ -2280,7 +2347,7 @@ var SOT223 = () => {
|
|
|
2280
2347
|
},
|
|
2281
2348
|
2
|
|
2282
2349
|
),
|
|
2283
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ jsx36(
|
|
2284
2351
|
ChipBody,
|
|
2285
2352
|
{
|
|
2286
2353
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2296,7 +2363,7 @@ var SOT223 = () => {
|
|
|
2296
2363
|
};
|
|
2297
2364
|
|
|
2298
2365
|
// lib/tqfp.tsx
|
|
2299
|
-
import { Fragment as
|
|
2366
|
+
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2300
2367
|
var TQFP = () => {
|
|
2301
2368
|
const pinCount = 64;
|
|
2302
2369
|
const pitch = 0.5;
|
|
@@ -2311,8 +2378,8 @@ var TQFP = () => {
|
|
|
2311
2378
|
const leadHeight = 0.8;
|
|
2312
2379
|
const leadThickness = 0.25;
|
|
2313
2380
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2314
|
-
return /* @__PURE__ */
|
|
2315
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2381
|
+
return /* @__PURE__ */ jsxs35(Fragment33, { children: [
|
|
2382
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx37(
|
|
2316
2383
|
SmdChipLead,
|
|
2317
2384
|
{
|
|
2318
2385
|
position: {
|
|
@@ -2328,7 +2395,7 @@ var TQFP = () => {
|
|
|
2328
2395
|
},
|
|
2329
2396
|
`left-${i}`
|
|
2330
2397
|
)),
|
|
2331
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2398
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx37(
|
|
2332
2399
|
SmdChipLead,
|
|
2333
2400
|
{
|
|
2334
2401
|
rotation: Math.PI,
|
|
@@ -2345,7 +2412,7 @@ var TQFP = () => {
|
|
|
2345
2412
|
},
|
|
2346
2413
|
`right-${i}`
|
|
2347
2414
|
)),
|
|
2348
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2415
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx37(
|
|
2349
2416
|
SmdChipLead,
|
|
2350
2417
|
{
|
|
2351
2418
|
rotation: Math.PI / 2,
|
|
@@ -2362,7 +2429,7 @@ var TQFP = () => {
|
|
|
2362
2429
|
},
|
|
2363
2430
|
`bottom-${i}`
|
|
2364
2431
|
)),
|
|
2365
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2432
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx37(
|
|
2366
2433
|
SmdChipLead,
|
|
2367
2434
|
{
|
|
2368
2435
|
rotation: -Math.PI / 2,
|
|
@@ -2379,7 +2446,7 @@ var TQFP = () => {
|
|
|
2379
2446
|
},
|
|
2380
2447
|
`top-${i}`
|
|
2381
2448
|
)),
|
|
2382
|
-
/* @__PURE__ */
|
|
2449
|
+
/* @__PURE__ */ jsx37(
|
|
2383
2450
|
ChipBody,
|
|
2384
2451
|
{
|
|
2385
2452
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -2388,7 +2455,8 @@ var TQFP = () => {
|
|
|
2388
2455
|
height: 1.2,
|
|
2389
2456
|
chamferSize: 0.6,
|
|
2390
2457
|
taperRatio: 0.05,
|
|
2391
|
-
notchPosition: { x: 3.5, y: 3.5, z: 1.2 }
|
|
2458
|
+
notchPosition: { x: 3.5, y: 3.5, z: 1.2 },
|
|
2459
|
+
notchRadius: 1.2 / 2
|
|
2392
2460
|
}
|
|
2393
2461
|
)
|
|
2394
2462
|
] });
|
|
@@ -2396,7 +2464,7 @@ var TQFP = () => {
|
|
|
2396
2464
|
var tqfp_default = TQFP;
|
|
2397
2465
|
|
|
2398
2466
|
// lib/SOT-323.tsx
|
|
2399
|
-
import { Fragment as
|
|
2467
|
+
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2400
2468
|
var SOT323 = () => {
|
|
2401
2469
|
const fullWidth = 2.05;
|
|
2402
2470
|
const bodyWidth = 1.25;
|
|
@@ -2408,8 +2476,8 @@ var SOT323 = () => {
|
|
|
2408
2476
|
const padContactLength = 0.2;
|
|
2409
2477
|
const padPitch = 0.65;
|
|
2410
2478
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2411
|
-
return /* @__PURE__ */
|
|
2412
|
-
/* @__PURE__ */
|
|
2479
|
+
return /* @__PURE__ */ jsxs36(Fragment34, { children: [
|
|
2480
|
+
/* @__PURE__ */ jsx38(
|
|
2413
2481
|
SmdChipLead,
|
|
2414
2482
|
{
|
|
2415
2483
|
rotation: Math.PI,
|
|
@@ -2426,7 +2494,7 @@ var SOT323 = () => {
|
|
|
2426
2494
|
},
|
|
2427
2495
|
4
|
|
2428
2496
|
),
|
|
2429
|
-
/* @__PURE__ */
|
|
2497
|
+
/* @__PURE__ */ jsx38(
|
|
2430
2498
|
SmdChipLead,
|
|
2431
2499
|
{
|
|
2432
2500
|
position: {
|
|
@@ -2442,7 +2510,7 @@ var SOT323 = () => {
|
|
|
2442
2510
|
},
|
|
2443
2511
|
1
|
|
2444
2512
|
),
|
|
2445
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ jsx38(
|
|
2446
2514
|
SmdChipLead,
|
|
2447
2515
|
{
|
|
2448
2516
|
position: {
|
|
@@ -2458,7 +2526,7 @@ var SOT323 = () => {
|
|
|
2458
2526
|
},
|
|
2459
2527
|
2
|
|
2460
2528
|
),
|
|
2461
|
-
/* @__PURE__ */
|
|
2529
|
+
/* @__PURE__ */ jsx38(
|
|
2462
2530
|
ChipBody,
|
|
2463
2531
|
{
|
|
2464
2532
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2475,7 +2543,7 @@ var SOT323 = () => {
|
|
|
2475
2543
|
};
|
|
2476
2544
|
|
|
2477
2545
|
// lib/lqfp.tsx
|
|
2478
|
-
import { Fragment as
|
|
2546
|
+
import { Fragment as Fragment35, jsx as jsx39, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2479
2547
|
var LQFP = ({
|
|
2480
2548
|
pinCount,
|
|
2481
2549
|
pitch,
|
|
@@ -2498,8 +2566,8 @@ var LQFP = ({
|
|
|
2498
2566
|
const leadHeight = 0.8;
|
|
2499
2567
|
const leadThickness = 0.2;
|
|
2500
2568
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2501
|
-
return /* @__PURE__ */
|
|
2502
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2569
|
+
return /* @__PURE__ */ jsxs37(Fragment35, { children: [
|
|
2570
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2503
2571
|
SmdChipLead,
|
|
2504
2572
|
{
|
|
2505
2573
|
position: {
|
|
@@ -2515,7 +2583,7 @@ var LQFP = ({
|
|
|
2515
2583
|
},
|
|
2516
2584
|
`left-${i}`
|
|
2517
2585
|
)),
|
|
2518
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2586
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2519
2587
|
SmdChipLead,
|
|
2520
2588
|
{
|
|
2521
2589
|
rotation: Math.PI,
|
|
@@ -2532,7 +2600,7 @@ var LQFP = ({
|
|
|
2532
2600
|
},
|
|
2533
2601
|
`right-${i}`
|
|
2534
2602
|
)),
|
|
2535
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2603
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2536
2604
|
SmdChipLead,
|
|
2537
2605
|
{
|
|
2538
2606
|
rotation: Math.PI / 2,
|
|
@@ -2549,7 +2617,7 @@ var LQFP = ({
|
|
|
2549
2617
|
},
|
|
2550
2618
|
`bottom-${i}`
|
|
2551
2619
|
)),
|
|
2552
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2620
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2553
2621
|
SmdChipLead,
|
|
2554
2622
|
{
|
|
2555
2623
|
rotation: -Math.PI / 2,
|
|
@@ -2566,7 +2634,7 @@ var LQFP = ({
|
|
|
2566
2634
|
},
|
|
2567
2635
|
`top-${i}`
|
|
2568
2636
|
)),
|
|
2569
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ jsx39(
|
|
2570
2638
|
ChipBody,
|
|
2571
2639
|
{
|
|
2572
2640
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -2580,15 +2648,16 @@ var LQFP = ({
|
|
|
2580
2648
|
x: bodyLength10 / 2 - 1.5,
|
|
2581
2649
|
y: bodyLength10 / 2 - 1.5,
|
|
2582
2650
|
z: 1.5
|
|
2583
|
-
}
|
|
2651
|
+
},
|
|
2652
|
+
notchRadius: 1.5 / 2
|
|
2584
2653
|
}
|
|
2585
2654
|
)
|
|
2586
2655
|
] });
|
|
2587
2656
|
};
|
|
2588
2657
|
|
|
2589
2658
|
// lib/dfn.tsx
|
|
2590
|
-
import { Cuboid as
|
|
2591
|
-
import { Fragment as
|
|
2659
|
+
import { Cuboid as Cuboid27 } from "jscad-fiber";
|
|
2660
|
+
import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2592
2661
|
var DFN = ({
|
|
2593
2662
|
num_pins,
|
|
2594
2663
|
bodyWidth = 5.3,
|
|
@@ -2615,8 +2684,8 @@ var DFN = ({
|
|
|
2615
2684
|
const pinNumber = i + 1;
|
|
2616
2685
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
2617
2686
|
}
|
|
2618
|
-
return /* @__PURE__ */
|
|
2619
|
-
/* @__PURE__ */
|
|
2687
|
+
return /* @__PURE__ */ jsxs38(Fragment36, { children: [
|
|
2688
|
+
/* @__PURE__ */ jsx40(
|
|
2620
2689
|
ChipBody,
|
|
2621
2690
|
{
|
|
2622
2691
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2634,16 +2703,16 @@ var DFN = ({
|
|
|
2634
2703
|
}
|
|
2635
2704
|
}
|
|
2636
2705
|
),
|
|
2637
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
2638
|
-
|
|
2706
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx40(
|
|
2707
|
+
Cuboid27,
|
|
2639
2708
|
{
|
|
2640
2709
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
2641
2710
|
size: [p.padSizeX, p.padSizeY, thermalPadThickness]
|
|
2642
2711
|
},
|
|
2643
2712
|
i
|
|
2644
2713
|
)),
|
|
2645
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
2646
|
-
|
|
2714
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx40(
|
|
2715
|
+
Cuboid27,
|
|
2647
2716
|
{
|
|
2648
2717
|
center: [0, 0, thermalPadThickness / 2],
|
|
2649
2718
|
size: [
|
|
@@ -2657,8 +2726,8 @@ var DFN = ({
|
|
|
2657
2726
|
};
|
|
2658
2727
|
|
|
2659
2728
|
// lib/hc49.tsx
|
|
2660
|
-
import { Colorize as
|
|
2661
|
-
import { Fragment as
|
|
2729
|
+
import { Colorize as Colorize19, Cylinder as Cylinder6, Hull as Hull13, RoundedCylinder } from "jscad-fiber";
|
|
2730
|
+
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2662
2731
|
var HC49 = ({
|
|
2663
2732
|
bodyLength: bodyLength10 = 10.2,
|
|
2664
2733
|
bodyWidth = 4.65,
|
|
@@ -2674,10 +2743,10 @@ var HC49 = ({
|
|
|
2674
2743
|
const endCenterX = halfLength - endRadius;
|
|
2675
2744
|
const leadCenterX = leadSpacing / 2;
|
|
2676
2745
|
const baseHeight = 0.85;
|
|
2677
|
-
return /* @__PURE__ */
|
|
2678
|
-
/* @__PURE__ */
|
|
2679
|
-
/* @__PURE__ */
|
|
2680
|
-
/* @__PURE__ */
|
|
2746
|
+
return /* @__PURE__ */ jsxs39(Fragment37, { children: [
|
|
2747
|
+
/* @__PURE__ */ jsxs39(Colorize19, { color, children: [
|
|
2748
|
+
/* @__PURE__ */ jsxs39(Hull13, { children: [
|
|
2749
|
+
/* @__PURE__ */ jsx41(
|
|
2681
2750
|
RoundedCylinder,
|
|
2682
2751
|
{
|
|
2683
2752
|
height: bodyHeight,
|
|
@@ -2686,7 +2755,7 @@ var HC49 = ({
|
|
|
2686
2755
|
center: [-endCenterX, 0, bodyHeight]
|
|
2687
2756
|
}
|
|
2688
2757
|
),
|
|
2689
|
-
/* @__PURE__ */
|
|
2758
|
+
/* @__PURE__ */ jsx41(
|
|
2690
2759
|
RoundedCylinder,
|
|
2691
2760
|
{
|
|
2692
2761
|
height: bodyHeight,
|
|
@@ -2696,8 +2765,8 @@ var HC49 = ({
|
|
|
2696
2765
|
}
|
|
2697
2766
|
)
|
|
2698
2767
|
] }),
|
|
2699
|
-
/* @__PURE__ */
|
|
2700
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ jsxs39(Hull13, { children: [
|
|
2769
|
+
/* @__PURE__ */ jsx41(
|
|
2701
2770
|
RoundedCylinder,
|
|
2702
2771
|
{
|
|
2703
2772
|
height: baseHeight,
|
|
@@ -2706,7 +2775,7 @@ var HC49 = ({
|
|
|
2706
2775
|
center: [-endCenterX, 0, bodyHeight / 2 + baseHeight / 2]
|
|
2707
2776
|
}
|
|
2708
2777
|
),
|
|
2709
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ jsx41(
|
|
2710
2779
|
RoundedCylinder,
|
|
2711
2780
|
{
|
|
2712
2781
|
height: baseHeight,
|
|
@@ -2717,8 +2786,8 @@ var HC49 = ({
|
|
|
2717
2786
|
)
|
|
2718
2787
|
] })
|
|
2719
2788
|
] }),
|
|
2720
|
-
/* @__PURE__ */
|
|
2721
|
-
/* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ jsxs39(Colorize19, { color: leadColor, children: [
|
|
2790
|
+
/* @__PURE__ */ jsx41(
|
|
2722
2791
|
Cylinder6,
|
|
2723
2792
|
{
|
|
2724
2793
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2726,7 +2795,7 @@ var HC49 = ({
|
|
|
2726
2795
|
center: [-leadCenterX + 0.06, 0, -(leadLength / 2) + bodyHeight / 2]
|
|
2727
2796
|
}
|
|
2728
2797
|
),
|
|
2729
|
-
/* @__PURE__ */
|
|
2798
|
+
/* @__PURE__ */ jsx41(
|
|
2730
2799
|
Cylinder6,
|
|
2731
2800
|
{
|
|
2732
2801
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2740,13 +2809,13 @@ var HC49 = ({
|
|
|
2740
2809
|
|
|
2741
2810
|
// lib/MicroMELF.tsx
|
|
2742
2811
|
import {
|
|
2743
|
-
Colorize as
|
|
2812
|
+
Colorize as Colorize20,
|
|
2744
2813
|
Cylinder as Cylinder7,
|
|
2745
2814
|
RoundedCylinder as RoundedCylinder2,
|
|
2746
2815
|
Rotate as Rotate6,
|
|
2747
2816
|
RoundedCuboid as RoundedCuboid2
|
|
2748
2817
|
} from "jscad-fiber";
|
|
2749
|
-
import { Fragment as
|
|
2818
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2750
2819
|
var MicroMELF = ({
|
|
2751
2820
|
bodyLength: bodyLength10 = 1.4,
|
|
2752
2821
|
bodyDiameter = 1.1,
|
|
@@ -2755,9 +2824,9 @@ var MicroMELF = ({
|
|
|
2755
2824
|
cathodeIdentification = "#111"
|
|
2756
2825
|
}) => {
|
|
2757
2826
|
const padLength = 0.2;
|
|
2758
|
-
return /* @__PURE__ */
|
|
2759
|
-
/* @__PURE__ */
|
|
2760
|
-
/* @__PURE__ */
|
|
2827
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2828
|
+
/* @__PURE__ */ jsx42(Colorize20, { color, children: /* @__PURE__ */ jsxs40(Rotate6, { rotation: [0, "90deg", 0], children: [
|
|
2829
|
+
/* @__PURE__ */ jsx42(
|
|
2761
2830
|
RoundedCuboid2,
|
|
2762
2831
|
{
|
|
2763
2832
|
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
@@ -2765,7 +2834,7 @@ var MicroMELF = ({
|
|
|
2765
2834
|
center: [-bodyDiameter / 2, 0, 0.05]
|
|
2766
2835
|
}
|
|
2767
2836
|
),
|
|
2768
|
-
/* @__PURE__ */
|
|
2837
|
+
/* @__PURE__ */ jsx42(
|
|
2769
2838
|
Cylinder7,
|
|
2770
2839
|
{
|
|
2771
2840
|
height: padLength / 2,
|
|
@@ -2774,7 +2843,7 @@ var MicroMELF = ({
|
|
|
2774
2843
|
}
|
|
2775
2844
|
)
|
|
2776
2845
|
] }) }),
|
|
2777
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: cathodeIdentification, children: /* @__PURE__ */ jsx42(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2778
2847
|
RoundedCuboid2,
|
|
2779
2848
|
{
|
|
2780
2849
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -2782,7 +2851,7 @@ var MicroMELF = ({
|
|
|
2782
2851
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
2783
2852
|
}
|
|
2784
2853
|
) }) }),
|
|
2785
|
-
/* @__PURE__ */
|
|
2854
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: contactColor, children: /* @__PURE__ */ jsx42(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2786
2855
|
RoundedCylinder2,
|
|
2787
2856
|
{
|
|
2788
2857
|
height: padLength,
|
|
@@ -2791,7 +2860,7 @@ var MicroMELF = ({
|
|
|
2791
2860
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2792
2861
|
}
|
|
2793
2862
|
) }) }),
|
|
2794
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: contactColor, children: /* @__PURE__ */ jsx42(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2795
2864
|
RoundedCylinder2,
|
|
2796
2865
|
{
|
|
2797
2866
|
height: padLength,
|
|
@@ -2804,8 +2873,8 @@ var MicroMELF = ({
|
|
|
2804
2873
|
};
|
|
2805
2874
|
|
|
2806
2875
|
// lib/MINIMELF.tsx
|
|
2807
|
-
import { Colorize as
|
|
2808
|
-
import { Fragment as
|
|
2876
|
+
import { Colorize as Colorize21, RoundedCylinder as RoundedCylinder3, Rotate as Rotate7 } from "jscad-fiber";
|
|
2877
|
+
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2809
2878
|
var MINIMELF = ({
|
|
2810
2879
|
bodyLength: bodyLength10 = 3.5,
|
|
2811
2880
|
bodyDiameter = 1.5,
|
|
@@ -2813,8 +2882,8 @@ var MINIMELF = ({
|
|
|
2813
2882
|
contactColor = "#c6c6c6"
|
|
2814
2883
|
}) => {
|
|
2815
2884
|
const padLength = 0.5;
|
|
2816
|
-
return /* @__PURE__ */
|
|
2817
|
-
/* @__PURE__ */
|
|
2885
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2886
|
+
/* @__PURE__ */ jsx43(Colorize21, { color, children: /* @__PURE__ */ jsx43(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2818
2887
|
RoundedCylinder3,
|
|
2819
2888
|
{
|
|
2820
2889
|
height: bodyLength10,
|
|
@@ -2823,7 +2892,7 @@ var MINIMELF = ({
|
|
|
2823
2892
|
center: [-bodyDiameter / 2, 0, 0]
|
|
2824
2893
|
}
|
|
2825
2894
|
) }) }),
|
|
2826
|
-
/* @__PURE__ */
|
|
2895
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2827
2896
|
RoundedCylinder3,
|
|
2828
2897
|
{
|
|
2829
2898
|
height: padLength,
|
|
@@ -2832,7 +2901,7 @@ var MINIMELF = ({
|
|
|
2832
2901
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2833
2902
|
}
|
|
2834
2903
|
) }) }),
|
|
2835
|
-
/* @__PURE__ */
|
|
2904
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2836
2905
|
RoundedCylinder3,
|
|
2837
2906
|
{
|
|
2838
2907
|
height: padLength,
|
|
@@ -2845,8 +2914,8 @@ var MINIMELF = ({
|
|
|
2845
2914
|
};
|
|
2846
2915
|
|
|
2847
2916
|
// lib/MELF.tsx
|
|
2848
|
-
import { Colorize as
|
|
2849
|
-
import { Fragment as
|
|
2917
|
+
import { Colorize as Colorize22, RoundedCylinder as RoundedCylinder4, Rotate as Rotate8 } from "jscad-fiber";
|
|
2918
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2850
2919
|
var MELF = ({
|
|
2851
2920
|
bodyLength: bodyLength10 = 3.9,
|
|
2852
2921
|
bodyDiameter = 2.5,
|
|
@@ -2854,8 +2923,8 @@ var MELF = ({
|
|
|
2854
2923
|
contactColor = "#c6c6c6"
|
|
2855
2924
|
}) => {
|
|
2856
2925
|
const padLength = 0.55;
|
|
2857
|
-
return /* @__PURE__ */
|
|
2858
|
-
/* @__PURE__ */
|
|
2926
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2927
|
+
/* @__PURE__ */ jsx44(Colorize22, { color, children: /* @__PURE__ */ jsx44(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
|
|
2859
2928
|
RoundedCylinder4,
|
|
2860
2929
|
{
|
|
2861
2930
|
height: bodyLength10,
|
|
@@ -2864,7 +2933,7 @@ var MELF = ({
|
|
|
2864
2933
|
center: [-bodyDiameter / 2, 0, 0]
|
|
2865
2934
|
}
|
|
2866
2935
|
) }) }),
|
|
2867
|
-
/* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ jsx44(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx44(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
|
|
2868
2937
|
RoundedCylinder4,
|
|
2869
2938
|
{
|
|
2870
2939
|
height: padLength,
|
|
@@ -2873,7 +2942,7 @@ var MELF = ({
|
|
|
2873
2942
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2874
2943
|
}
|
|
2875
2944
|
) }) }),
|
|
2876
|
-
/* @__PURE__ */
|
|
2945
|
+
/* @__PURE__ */ jsx44(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx44(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
|
|
2877
2946
|
RoundedCylinder4,
|
|
2878
2947
|
{
|
|
2879
2948
|
height: padLength,
|
|
@@ -2886,7 +2955,7 @@ var MELF = ({
|
|
|
2886
2955
|
};
|
|
2887
2956
|
|
|
2888
2957
|
// lib/ms012.tsx
|
|
2889
|
-
import { Fragment as
|
|
2958
|
+
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
2890
2959
|
var MS012 = ({
|
|
2891
2960
|
pinCount,
|
|
2892
2961
|
padContactLength = 0.6,
|
|
@@ -2901,8 +2970,8 @@ var MS012 = ({
|
|
|
2901
2970
|
const bodyLength10 = 3.9;
|
|
2902
2971
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
2903
2972
|
const leadThickness = 0.2;
|
|
2904
|
-
return /* @__PURE__ */
|
|
2905
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
2974
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx45(
|
|
2906
2975
|
SmdChipLead,
|
|
2907
2976
|
{
|
|
2908
2977
|
position: {
|
|
@@ -2918,7 +2987,7 @@ var MS012 = ({
|
|
|
2918
2987
|
},
|
|
2919
2988
|
i
|
|
2920
2989
|
)),
|
|
2921
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2990
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx45(
|
|
2922
2991
|
SmdChipLead,
|
|
2923
2992
|
{
|
|
2924
2993
|
rotation: Math.PI,
|
|
@@ -2935,7 +3004,7 @@ var MS012 = ({
|
|
|
2935
3004
|
},
|
|
2936
3005
|
`right-${i}`
|
|
2937
3006
|
)),
|
|
2938
|
-
/* @__PURE__ */
|
|
3007
|
+
/* @__PURE__ */ jsx45(
|
|
2939
3008
|
ChipBody,
|
|
2940
3009
|
{
|
|
2941
3010
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -2951,14 +3020,14 @@ var MS012 = ({
|
|
|
2951
3020
|
};
|
|
2952
3021
|
|
|
2953
3022
|
// lib/Footprinter3d.tsx
|
|
2954
|
-
import { jsx as
|
|
3023
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2955
3024
|
var Footprinter3d = ({ footprint }) => {
|
|
2956
3025
|
const fpJson = fp3.string(footprint).json();
|
|
2957
3026
|
switch (fpJson.fn) {
|
|
2958
3027
|
case "dip":
|
|
2959
|
-
return /* @__PURE__ */
|
|
3028
|
+
return /* @__PURE__ */ jsx46(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
2960
3029
|
case "tssop":
|
|
2961
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */ jsx46(
|
|
2962
3031
|
Tssop,
|
|
2963
3032
|
{
|
|
2964
3033
|
pinCount: fpJson.num_pins,
|
|
@@ -2969,7 +3038,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2969
3038
|
}
|
|
2970
3039
|
);
|
|
2971
3040
|
case "msop":
|
|
2972
|
-
return /* @__PURE__ */
|
|
3041
|
+
return /* @__PURE__ */ jsx46(
|
|
2973
3042
|
MSOP,
|
|
2974
3043
|
{
|
|
2975
3044
|
pinCount: fpJson.num_pins,
|
|
@@ -2980,7 +3049,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2980
3049
|
}
|
|
2981
3050
|
);
|
|
2982
3051
|
case "vssop":
|
|
2983
|
-
return /* @__PURE__ */
|
|
3052
|
+
return /* @__PURE__ */ jsx46(
|
|
2984
3053
|
VSSOP,
|
|
2985
3054
|
{
|
|
2986
3055
|
pinCount: fpJson.num_pins,
|
|
@@ -2992,7 +3061,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2992
3061
|
}
|
|
2993
3062
|
);
|
|
2994
3063
|
case "qfp":
|
|
2995
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ jsx46(
|
|
2996
3065
|
QFP,
|
|
2997
3066
|
{
|
|
2998
3067
|
pinCount: fpJson.num_pins,
|
|
@@ -3003,12 +3072,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3003
3072
|
}
|
|
3004
3073
|
);
|
|
3005
3074
|
case "tqfp":
|
|
3006
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ jsx46(tqfp_default, {});
|
|
3007
3076
|
case "lqfp":
|
|
3008
|
-
return /* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx46(LQFP, { pinCount: fpJson.num_pins });
|
|
3009
3078
|
case "qfn": {
|
|
3010
3079
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3011
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsx46(
|
|
3012
3081
|
qfn_default,
|
|
3013
3082
|
{
|
|
3014
3083
|
num_pins: fpJson.num_pins,
|
|
@@ -3026,7 +3095,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3026
3095
|
}
|
|
3027
3096
|
case "dfn": {
|
|
3028
3097
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3029
|
-
return /* @__PURE__ */
|
|
3098
|
+
return /* @__PURE__ */ jsx46(
|
|
3030
3099
|
DFN,
|
|
3031
3100
|
{
|
|
3032
3101
|
num_pins: fpJson.num_pins,
|
|
@@ -3044,39 +3113,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3044
3113
|
}
|
|
3045
3114
|
case "pinrow":
|
|
3046
3115
|
if (fpJson.male)
|
|
3047
|
-
return /* @__PURE__ */
|
|
3116
|
+
return /* @__PURE__ */ jsx46(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3048
3117
|
if (fpJson.female)
|
|
3049
|
-
return /* @__PURE__ */
|
|
3118
|
+
return /* @__PURE__ */ jsx46(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3050
3119
|
case "cap": {
|
|
3051
3120
|
switch (fpJson.imperial) {
|
|
3052
3121
|
case "0402":
|
|
3053
|
-
return /* @__PURE__ */
|
|
3122
|
+
return /* @__PURE__ */ jsx46(A0402, { color: "#856c4d" });
|
|
3054
3123
|
case "0603":
|
|
3055
|
-
return /* @__PURE__ */
|
|
3124
|
+
return /* @__PURE__ */ jsx46(A0603, { color: "#856c4d" });
|
|
3056
3125
|
case "0805":
|
|
3057
|
-
return /* @__PURE__ */
|
|
3126
|
+
return /* @__PURE__ */ jsx46(A0805, { color: "#856c4d" });
|
|
3058
3127
|
case "0201":
|
|
3059
|
-
return /* @__PURE__ */
|
|
3128
|
+
return /* @__PURE__ */ jsx46(A0201, { color: "#856c4d" });
|
|
3060
3129
|
case "01005":
|
|
3061
|
-
return /* @__PURE__ */
|
|
3130
|
+
return /* @__PURE__ */ jsx46(A01005, { color: "#856c4d" });
|
|
3062
3131
|
case "1206":
|
|
3063
|
-
return /* @__PURE__ */
|
|
3132
|
+
return /* @__PURE__ */ jsx46(A1206, { color: "#856c4d" });
|
|
3064
3133
|
case "1210":
|
|
3065
|
-
return /* @__PURE__ */
|
|
3134
|
+
return /* @__PURE__ */ jsx46(A1210, { color: "#856c4d" });
|
|
3066
3135
|
case "2010":
|
|
3067
|
-
return /* @__PURE__ */
|
|
3136
|
+
return /* @__PURE__ */ jsx46(A2010, { color: "#856c4d" });
|
|
3068
3137
|
case "2512":
|
|
3069
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ jsx46(A2512, { color: "#856c4d" });
|
|
3070
3139
|
}
|
|
3071
3140
|
}
|
|
3072
3141
|
case "sot235":
|
|
3073
|
-
return /* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ jsx46(SOT_235_default, {});
|
|
3074
3143
|
case "sot223":
|
|
3075
|
-
return /* @__PURE__ */
|
|
3144
|
+
return /* @__PURE__ */ jsx46(SOT223, {});
|
|
3076
3145
|
case "sot323":
|
|
3077
|
-
return /* @__PURE__ */
|
|
3146
|
+
return /* @__PURE__ */ jsx46(SOT323, {});
|
|
3078
3147
|
case "pushbutton":
|
|
3079
|
-
return /* @__PURE__ */
|
|
3148
|
+
return /* @__PURE__ */ jsx46(
|
|
3080
3149
|
PushButton,
|
|
3081
3150
|
{
|
|
3082
3151
|
width: fpJson.w,
|
|
@@ -3085,7 +3154,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3085
3154
|
}
|
|
3086
3155
|
);
|
|
3087
3156
|
case "soic":
|
|
3088
|
-
return /* @__PURE__ */
|
|
3157
|
+
return /* @__PURE__ */ jsx46(
|
|
3089
3158
|
SOIC,
|
|
3090
3159
|
{
|
|
3091
3160
|
pinCount: fpJson.num_pins,
|
|
@@ -3096,31 +3165,33 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3096
3165
|
}
|
|
3097
3166
|
);
|
|
3098
3167
|
case "sod523":
|
|
3099
|
-
return /* @__PURE__ */
|
|
3168
|
+
return /* @__PURE__ */ jsx46(SOD523, {});
|
|
3169
|
+
case "sod882":
|
|
3170
|
+
return /* @__PURE__ */ jsx46(SOD882, {});
|
|
3100
3171
|
case "sma":
|
|
3101
|
-
return /* @__PURE__ */
|
|
3172
|
+
return /* @__PURE__ */ jsx46(SMA, {});
|
|
3102
3173
|
case "smb":
|
|
3103
|
-
return /* @__PURE__ */
|
|
3174
|
+
return /* @__PURE__ */ jsx46(SMB, {});
|
|
3104
3175
|
case "smc":
|
|
3105
|
-
return /* @__PURE__ */
|
|
3176
|
+
return /* @__PURE__ */ jsx46(SMC, {});
|
|
3106
3177
|
case "smf":
|
|
3107
|
-
return /* @__PURE__ */
|
|
3178
|
+
return /* @__PURE__ */ jsx46(SMF, {});
|
|
3108
3179
|
case "sod123f":
|
|
3109
|
-
return /* @__PURE__ */
|
|
3180
|
+
return /* @__PURE__ */ jsx46(SOD123F, {});
|
|
3110
3181
|
case "sod123fl":
|
|
3111
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ jsx46(SOD123FL, {});
|
|
3112
3183
|
case "sod923":
|
|
3113
|
-
return /* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ jsx46(SOD923, {});
|
|
3114
3185
|
case "hc49":
|
|
3115
|
-
return /* @__PURE__ */
|
|
3186
|
+
return /* @__PURE__ */ jsx46(HC49, {});
|
|
3116
3187
|
case "micromelf":
|
|
3117
|
-
return /* @__PURE__ */
|
|
3188
|
+
return /* @__PURE__ */ jsx46(MicroMELF, {});
|
|
3118
3189
|
case "minimelf":
|
|
3119
|
-
return /* @__PURE__ */
|
|
3190
|
+
return /* @__PURE__ */ jsx46(MINIMELF, {});
|
|
3120
3191
|
case "melf":
|
|
3121
|
-
return /* @__PURE__ */
|
|
3192
|
+
return /* @__PURE__ */ jsx46(MELF, {});
|
|
3122
3193
|
case "ms012":
|
|
3123
|
-
return /* @__PURE__ */
|
|
3194
|
+
return /* @__PURE__ */ jsx46(
|
|
3124
3195
|
MS012,
|
|
3125
3196
|
{
|
|
3126
3197
|
pinCount: fpJson.num_pins,
|
|
@@ -3134,29 +3205,29 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3134
3205
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3135
3206
|
switch (fpJson.imperial) {
|
|
3136
3207
|
case "0402":
|
|
3137
|
-
return /* @__PURE__ */
|
|
3208
|
+
return /* @__PURE__ */ jsx46(A0402, { color });
|
|
3138
3209
|
case "0603":
|
|
3139
|
-
return /* @__PURE__ */
|
|
3210
|
+
return /* @__PURE__ */ jsx46(A0603, { color });
|
|
3140
3211
|
case "0805":
|
|
3141
|
-
return /* @__PURE__ */
|
|
3212
|
+
return /* @__PURE__ */ jsx46(A0805, { color });
|
|
3142
3213
|
case "0201":
|
|
3143
|
-
return /* @__PURE__ */
|
|
3214
|
+
return /* @__PURE__ */ jsx46(A0201, { color });
|
|
3144
3215
|
case "01005":
|
|
3145
|
-
return /* @__PURE__ */
|
|
3216
|
+
return /* @__PURE__ */ jsx46(A01005, { color });
|
|
3146
3217
|
case "1206":
|
|
3147
|
-
return /* @__PURE__ */
|
|
3218
|
+
return /* @__PURE__ */ jsx46(A1206, { color });
|
|
3148
3219
|
case "1210":
|
|
3149
|
-
return /* @__PURE__ */
|
|
3220
|
+
return /* @__PURE__ */ jsx46(A1210, { color });
|
|
3150
3221
|
case "2010":
|
|
3151
|
-
return /* @__PURE__ */
|
|
3222
|
+
return /* @__PURE__ */ jsx46(A2010, { color });
|
|
3152
3223
|
case "2512":
|
|
3153
|
-
return /* @__PURE__ */
|
|
3224
|
+
return /* @__PURE__ */ jsx46(A2512, { color });
|
|
3154
3225
|
}
|
|
3155
3226
|
return null;
|
|
3156
3227
|
};
|
|
3157
3228
|
|
|
3158
3229
|
// lib/SOT-23-3P.tsx
|
|
3159
|
-
import { Fragment as
|
|
3230
|
+
import { Fragment as Fragment42, jsx as jsx47, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3160
3231
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3161
3232
|
const bodyWidth = 1.3;
|
|
3162
3233
|
const bodyLength10 = 2.9;
|
|
@@ -3167,8 +3238,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3167
3238
|
const padContactLength = 0.4;
|
|
3168
3239
|
const padThickness = leadThickness / 2;
|
|
3169
3240
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3170
|
-
return /* @__PURE__ */
|
|
3171
|
-
/* @__PURE__ */
|
|
3241
|
+
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3242
|
+
/* @__PURE__ */ jsx47(
|
|
3172
3243
|
SmdChipLead,
|
|
3173
3244
|
{
|
|
3174
3245
|
rotation: Math.PI,
|
|
@@ -3185,7 +3256,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3185
3256
|
},
|
|
3186
3257
|
1
|
|
3187
3258
|
),
|
|
3188
|
-
/* @__PURE__ */
|
|
3259
|
+
/* @__PURE__ */ jsx47(
|
|
3189
3260
|
SmdChipLead,
|
|
3190
3261
|
{
|
|
3191
3262
|
rotation: Math.PI,
|
|
@@ -3202,7 +3273,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3202
3273
|
},
|
|
3203
3274
|
2
|
|
3204
3275
|
),
|
|
3205
|
-
/* @__PURE__ */
|
|
3276
|
+
/* @__PURE__ */ jsx47(
|
|
3206
3277
|
SmdChipLead,
|
|
3207
3278
|
{
|
|
3208
3279
|
position: {
|
|
@@ -3218,7 +3289,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3218
3289
|
},
|
|
3219
3290
|
3
|
|
3220
3291
|
),
|
|
3221
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx47(
|
|
3222
3293
|
ChipBody,
|
|
3223
3294
|
{
|
|
3224
3295
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3231,8 +3302,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3231
3302
|
};
|
|
3232
3303
|
|
|
3233
3304
|
// lib/SOT-563.tsx
|
|
3234
|
-
import { Cuboid as
|
|
3235
|
-
import { Fragment as
|
|
3305
|
+
import { Cuboid as Cuboid30, Translate as Translate18, Rotate as Rotate9, Colorize as Colorize23 } from "jscad-fiber";
|
|
3306
|
+
import { Fragment as Fragment43, jsx as jsx48, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3236
3307
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3237
3308
|
const bodyWidth = 1.2;
|
|
3238
3309
|
const bodyLength10 = 1.6;
|
|
@@ -3242,28 +3313,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3242
3313
|
const leadHeight = 0.13;
|
|
3243
3314
|
const leadSpacing = 0.5;
|
|
3244
3315
|
const bodyZOffset = -0.4;
|
|
3245
|
-
return /* @__PURE__ */
|
|
3246
|
-
/* @__PURE__ */
|
|
3316
|
+
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3317
|
+
/* @__PURE__ */ jsx48(Rotate9, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx48(Translate18, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx48(Colorize23, { color: "grey", children: /* @__PURE__ */ jsx48(Cuboid30, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3247
3318
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3248
3319
|
// Left lead
|
|
3249
|
-
/* @__PURE__ */
|
|
3250
|
-
|
|
3320
|
+
/* @__PURE__ */ jsx48(
|
|
3321
|
+
Translate18,
|
|
3251
3322
|
{
|
|
3252
3323
|
center: [
|
|
3253
3324
|
-bodyWidth / 2 - 0.03,
|
|
3254
3325
|
yOffset * leadSpacing,
|
|
3255
3326
|
leadHeight / 2
|
|
3256
3327
|
],
|
|
3257
|
-
children: /* @__PURE__ */
|
|
3328
|
+
children: /* @__PURE__ */ jsx48(Cuboid30, { size: [leadLength, leadWidth, leadHeight] })
|
|
3258
3329
|
},
|
|
3259
3330
|
`left-${index}`
|
|
3260
3331
|
),
|
|
3261
3332
|
// Right lead
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
|
|
3333
|
+
/* @__PURE__ */ jsx48(
|
|
3334
|
+
Translate18,
|
|
3264
3335
|
{
|
|
3265
3336
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3266
|
-
children: /* @__PURE__ */
|
|
3337
|
+
children: /* @__PURE__ */ jsx48(Cuboid30, { size: [leadLength, leadWidth, leadHeight] })
|
|
3267
3338
|
},
|
|
3268
3339
|
`right-${index}`
|
|
3269
3340
|
)
|
|
@@ -3272,8 +3343,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3272
3343
|
};
|
|
3273
3344
|
|
|
3274
3345
|
// lib/SOT-723.tsx
|
|
3275
|
-
import { Cuboid as
|
|
3276
|
-
import { Fragment as
|
|
3346
|
+
import { Cuboid as Cuboid31, Translate as Translate19, Rotate as Rotate10, Colorize as Colorize24 } from "jscad-fiber";
|
|
3347
|
+
import { Fragment as Fragment44, jsx as jsx49, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3277
3348
|
var getCcwSot723Coords = (pn) => {
|
|
3278
3349
|
if (pn === 1) {
|
|
3279
3350
|
return { x: 0, y: 0 };
|
|
@@ -3291,12 +3362,12 @@ var SOT723 = () => {
|
|
|
3291
3362
|
const leadLength = 0.3;
|
|
3292
3363
|
const leadHeight = 0.1;
|
|
3293
3364
|
const centerLeadWidth = 0.42;
|
|
3294
|
-
return /* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3365
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3366
|
+
/* @__PURE__ */ jsx49(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx49(Translate19, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx49(Colorize24, { color: "grey", children: /* @__PURE__ */ jsx49(Cuboid31, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3296
3367
|
[1, 2, 3].map((pn) => {
|
|
3297
3368
|
const { x, y } = getCcwSot723Coords(pn);
|
|
3298
|
-
return /* @__PURE__ */
|
|
3299
|
-
|
|
3369
|
+
return /* @__PURE__ */ jsx49(Translate19, { center: [x, y, 0.05], children: /* @__PURE__ */ jsx49(
|
|
3370
|
+
Cuboid31,
|
|
3300
3371
|
{
|
|
3301
3372
|
size: [
|
|
3302
3373
|
leadLength,
|
|
@@ -3310,7 +3381,7 @@ var SOT723 = () => {
|
|
|
3310
3381
|
};
|
|
3311
3382
|
|
|
3312
3383
|
// lib/sod-123.tsx
|
|
3313
|
-
import { Fragment as
|
|
3384
|
+
import { Fragment as Fragment45, jsx as jsx50, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3314
3385
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3315
3386
|
const bodyWidth = 2.9;
|
|
3316
3387
|
const bodyLength10 = 1.3;
|
|
@@ -3321,8 +3392,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3321
3392
|
const padContactLength = 0.4;
|
|
3322
3393
|
const padThickness = leadThickness / 2;
|
|
3323
3394
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3324
|
-
return /* @__PURE__ */
|
|
3325
|
-
/* @__PURE__ */
|
|
3395
|
+
return /* @__PURE__ */ jsxs47(Fragment45, { children: [
|
|
3396
|
+
/* @__PURE__ */ jsx50(
|
|
3326
3397
|
SmdChipLead,
|
|
3327
3398
|
{
|
|
3328
3399
|
position: {
|
|
@@ -3338,7 +3409,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3338
3409
|
},
|
|
3339
3410
|
1
|
|
3340
3411
|
),
|
|
3341
|
-
/* @__PURE__ */
|
|
3412
|
+
/* @__PURE__ */ jsx50(
|
|
3342
3413
|
SmdChipLead,
|
|
3343
3414
|
{
|
|
3344
3415
|
rotation: Math.PI,
|
|
@@ -3355,7 +3426,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3355
3426
|
},
|
|
3356
3427
|
2
|
|
3357
3428
|
),
|
|
3358
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ jsx50(
|
|
3359
3430
|
ChipBody,
|
|
3360
3431
|
{
|
|
3361
3432
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3401,6 +3472,7 @@ export {
|
|
|
3401
3472
|
SOD123F,
|
|
3402
3473
|
SOD123FL,
|
|
3403
3474
|
SOD523,
|
|
3475
|
+
SOD882,
|
|
3404
3476
|
SOD923,
|
|
3405
3477
|
SOT223,
|
|
3406
3478
|
SOT233P,
|