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