jscad-electronics 0.0.58 → 0.0.59
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 +134 -59
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +72 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -173,4 +173,6 @@ declare const SMA: () => react_jsx_runtime.JSX.Element;
|
|
|
173
173
|
|
|
174
174
|
declare const SMB: () => react_jsx_runtime.JSX.Element;
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
declare const SMC: () => react_jsx_runtime.JSX.Element;
|
|
177
|
+
|
|
178
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, PinRow, QFN, QFP, SMA, SMB, SMC, SOD123, SOD523, SOT233P, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -1823,15 +1823,87 @@ var SMB = () => {
|
|
|
1823
1823
|
] });
|
|
1824
1824
|
};
|
|
1825
1825
|
|
|
1826
|
+
// lib/SMC.tsx
|
|
1827
|
+
import { Cuboid as Cuboid21, Colorize as Colorize13, Union as Union8, Hull as Hull7, Translate as Translate12 } from "jscad-fiber";
|
|
1828
|
+
import { Fragment as Fragment25, jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1829
|
+
var SMC = () => {
|
|
1830
|
+
const bodyWidth = 6.8;
|
|
1831
|
+
const bodyLength10 = 6;
|
|
1832
|
+
const bodyHeight = 2.3;
|
|
1833
|
+
const padWidth = 2.95;
|
|
1834
|
+
const padThickness = 0.2;
|
|
1835
|
+
const leadThickness = 0.2;
|
|
1836
|
+
const leadHeight = 1.14;
|
|
1837
|
+
const taperOffset = 0.4;
|
|
1838
|
+
const straightHeight = bodyHeight * 0.5;
|
|
1839
|
+
const Body = /* @__PURE__ */ jsx29(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs27(Union8, { children: [
|
|
1840
|
+
/* @__PURE__ */ jsxs27(Hull7, { children: [
|
|
1841
|
+
/* @__PURE__ */ jsx29(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx29(
|
|
1842
|
+
Cuboid21,
|
|
1843
|
+
{
|
|
1844
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
1845
|
+
}
|
|
1846
|
+
) }),
|
|
1847
|
+
/* @__PURE__ */ jsx29(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx29(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
1848
|
+
] }),
|
|
1849
|
+
/* @__PURE__ */ jsxs27(Hull7, { children: [
|
|
1850
|
+
/* @__PURE__ */ jsx29(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx29(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1851
|
+
/* @__PURE__ */ jsx29(Translate12, { z: bodyHeight, children: /* @__PURE__ */ jsx29(
|
|
1852
|
+
Cuboid21,
|
|
1853
|
+
{
|
|
1854
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1855
|
+
}
|
|
1856
|
+
) })
|
|
1857
|
+
] })
|
|
1858
|
+
] }) });
|
|
1859
|
+
const Lead = ({ xDir }) => {
|
|
1860
|
+
const verticalGap = 1;
|
|
1861
|
+
const lowerPadGap = 1;
|
|
1862
|
+
const lowerPadX = xDir * (bodyLength10 / 2 - bodyHeight * 0.8 / 2 + lowerPadGap);
|
|
1863
|
+
const verticalLeadX = xDir * (bodyLength10 / 2 - leadThickness / 2 + verticalGap);
|
|
1864
|
+
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
1865
|
+
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
1866
|
+
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
1867
|
+
return /* @__PURE__ */ jsx29(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs27(Union8, { children: [
|
|
1868
|
+
/* @__PURE__ */ jsx29(
|
|
1869
|
+
Cuboid21,
|
|
1870
|
+
{
|
|
1871
|
+
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
1872
|
+
center: [lowerPadX, 0, leadThickness / 2]
|
|
1873
|
+
}
|
|
1874
|
+
),
|
|
1875
|
+
/* @__PURE__ */ jsx29(
|
|
1876
|
+
Cuboid21,
|
|
1877
|
+
{
|
|
1878
|
+
size: [leadThickness, padWidth, leadHeight],
|
|
1879
|
+
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
1880
|
+
}
|
|
1881
|
+
),
|
|
1882
|
+
/* @__PURE__ */ jsx29(
|
|
1883
|
+
Cuboid21,
|
|
1884
|
+
{
|
|
1885
|
+
size: [bridgeLength, padWidth, leadThickness],
|
|
1886
|
+
center: [bridgeCenterX, 0, leadThickness / 2 + leadHeight]
|
|
1887
|
+
}
|
|
1888
|
+
)
|
|
1889
|
+
] }) });
|
|
1890
|
+
};
|
|
1891
|
+
return /* @__PURE__ */ jsxs27(Fragment25, { children: [
|
|
1892
|
+
/* @__PURE__ */ jsx29(Lead, { xDir: 1 }),
|
|
1893
|
+
/* @__PURE__ */ jsx29(Lead, { xDir: -1 }),
|
|
1894
|
+
Body
|
|
1895
|
+
] });
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1826
1898
|
// lib/Footprinter3d.tsx
|
|
1827
|
-
import { jsx as
|
|
1899
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1828
1900
|
var Footprinter3d = ({ footprint }) => {
|
|
1829
1901
|
const fpJson = fp3.string(footprint).json();
|
|
1830
1902
|
switch (fpJson.fn) {
|
|
1831
1903
|
case "dip":
|
|
1832
|
-
return /* @__PURE__ */
|
|
1904
|
+
return /* @__PURE__ */ jsx30(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
1833
1905
|
case "tssop":
|
|
1834
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ jsx30(
|
|
1835
1907
|
Tssop,
|
|
1836
1908
|
{
|
|
1837
1909
|
pinCount: fpJson.num_pins,
|
|
@@ -1842,7 +1914,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1842
1914
|
}
|
|
1843
1915
|
);
|
|
1844
1916
|
case "vssop":
|
|
1845
|
-
return /* @__PURE__ */
|
|
1917
|
+
return /* @__PURE__ */ jsx30(
|
|
1846
1918
|
VSSOP,
|
|
1847
1919
|
{
|
|
1848
1920
|
pinCount: fpJson.num_pins,
|
|
@@ -1854,7 +1926,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1854
1926
|
}
|
|
1855
1927
|
);
|
|
1856
1928
|
case "qfp":
|
|
1857
|
-
return /* @__PURE__ */
|
|
1929
|
+
return /* @__PURE__ */ jsx30(
|
|
1858
1930
|
QFP,
|
|
1859
1931
|
{
|
|
1860
1932
|
pinCount: fpJson.num_pins,
|
|
@@ -1866,7 +1938,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1866
1938
|
);
|
|
1867
1939
|
case "qfn":
|
|
1868
1940
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
1869
|
-
return /* @__PURE__ */
|
|
1941
|
+
return /* @__PURE__ */ jsx30(
|
|
1870
1942
|
qfn_default,
|
|
1871
1943
|
{
|
|
1872
1944
|
num_pins: fpJson.num_pins,
|
|
@@ -1883,35 +1955,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1883
1955
|
);
|
|
1884
1956
|
case "pinrow":
|
|
1885
1957
|
if (fpJson.male)
|
|
1886
|
-
return /* @__PURE__ */
|
|
1958
|
+
return /* @__PURE__ */ jsx30(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1887
1959
|
if (fpJson.female)
|
|
1888
|
-
return /* @__PURE__ */
|
|
1960
|
+
return /* @__PURE__ */ jsx30(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1889
1961
|
case "cap": {
|
|
1890
1962
|
switch (fpJson.imperial) {
|
|
1891
1963
|
case "0402":
|
|
1892
|
-
return /* @__PURE__ */
|
|
1964
|
+
return /* @__PURE__ */ jsx30(A0402, { color: "#856c4d" });
|
|
1893
1965
|
case "0603":
|
|
1894
|
-
return /* @__PURE__ */
|
|
1966
|
+
return /* @__PURE__ */ jsx30(A0603, { color: "#856c4d" });
|
|
1895
1967
|
case "0805":
|
|
1896
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ jsx30(A0805, { color: "#856c4d" });
|
|
1897
1969
|
case "0201":
|
|
1898
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ jsx30(A0201, { color: "#856c4d" });
|
|
1899
1971
|
case "01005":
|
|
1900
|
-
return /* @__PURE__ */
|
|
1972
|
+
return /* @__PURE__ */ jsx30(A01005, { color: "#856c4d" });
|
|
1901
1973
|
case "1206":
|
|
1902
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ jsx30(A1206, { color: "#856c4d" });
|
|
1903
1975
|
case "1210":
|
|
1904
|
-
return /* @__PURE__ */
|
|
1976
|
+
return /* @__PURE__ */ jsx30(A1210, { color: "#856c4d" });
|
|
1905
1977
|
case "2010":
|
|
1906
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsx30(A2010, { color: "#856c4d" });
|
|
1907
1979
|
case "2512":
|
|
1908
|
-
return /* @__PURE__ */
|
|
1980
|
+
return /* @__PURE__ */ jsx30(A2512, { color: "#856c4d" });
|
|
1909
1981
|
}
|
|
1910
1982
|
}
|
|
1911
1983
|
case "sot235":
|
|
1912
|
-
return /* @__PURE__ */
|
|
1984
|
+
return /* @__PURE__ */ jsx30(SOT_235_default, {});
|
|
1913
1985
|
case "pushbutton":
|
|
1914
|
-
return /* @__PURE__ */
|
|
1986
|
+
return /* @__PURE__ */ jsx30(
|
|
1915
1987
|
PushButton,
|
|
1916
1988
|
{
|
|
1917
1989
|
width: fpJson.w,
|
|
@@ -1920,7 +1992,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1920
1992
|
}
|
|
1921
1993
|
);
|
|
1922
1994
|
case "soic":
|
|
1923
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ jsx30(
|
|
1924
1996
|
SOIC,
|
|
1925
1997
|
{
|
|
1926
1998
|
pinCount: fpJson.num_pins,
|
|
@@ -1931,39 +2003,41 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1931
2003
|
}
|
|
1932
2004
|
);
|
|
1933
2005
|
case "sod523":
|
|
1934
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ jsx30(SOD523, {});
|
|
1935
2007
|
case "sma":
|
|
1936
|
-
return /* @__PURE__ */
|
|
2008
|
+
return /* @__PURE__ */ jsx30(SMA, {});
|
|
1937
2009
|
case "smb":
|
|
1938
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ jsx30(SMB, {});
|
|
2011
|
+
case "smc":
|
|
2012
|
+
return /* @__PURE__ */ jsx30(SMC, {});
|
|
1939
2013
|
}
|
|
1940
2014
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
1941
2015
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
1942
2016
|
switch (fpJson.imperial) {
|
|
1943
2017
|
case "0402":
|
|
1944
|
-
return /* @__PURE__ */
|
|
2018
|
+
return /* @__PURE__ */ jsx30(A0402, { color });
|
|
1945
2019
|
case "0603":
|
|
1946
|
-
return /* @__PURE__ */
|
|
2020
|
+
return /* @__PURE__ */ jsx30(A0603, { color });
|
|
1947
2021
|
case "0805":
|
|
1948
|
-
return /* @__PURE__ */
|
|
2022
|
+
return /* @__PURE__ */ jsx30(A0805, { color });
|
|
1949
2023
|
case "0201":
|
|
1950
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ jsx30(A0201, { color });
|
|
1951
2025
|
case "01005":
|
|
1952
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ jsx30(A01005, { color });
|
|
1953
2027
|
case "1206":
|
|
1954
|
-
return /* @__PURE__ */
|
|
2028
|
+
return /* @__PURE__ */ jsx30(A1206, { color });
|
|
1955
2029
|
case "1210":
|
|
1956
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ jsx30(A1210, { color });
|
|
1957
2031
|
case "2010":
|
|
1958
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsx30(A2010, { color });
|
|
1959
2033
|
case "2512":
|
|
1960
|
-
return /* @__PURE__ */
|
|
2034
|
+
return /* @__PURE__ */ jsx30(A2512, { color });
|
|
1961
2035
|
}
|
|
1962
2036
|
return null;
|
|
1963
2037
|
};
|
|
1964
2038
|
|
|
1965
2039
|
// lib/SOT-23-3P.tsx
|
|
1966
|
-
import { Fragment as
|
|
2040
|
+
import { Fragment as Fragment26, jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1967
2041
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
1968
2042
|
const bodyWidth = 1.3;
|
|
1969
2043
|
const bodyLength10 = 2.9;
|
|
@@ -1974,8 +2048,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1974
2048
|
const padContactLength = 0.4;
|
|
1975
2049
|
const padThickness = leadThickness / 2;
|
|
1976
2050
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
1977
|
-
return /* @__PURE__ */
|
|
1978
|
-
/* @__PURE__ */
|
|
2051
|
+
return /* @__PURE__ */ jsxs28(Fragment26, { children: [
|
|
2052
|
+
/* @__PURE__ */ jsx31(
|
|
1979
2053
|
SmdChipLead,
|
|
1980
2054
|
{
|
|
1981
2055
|
rotation: Math.PI,
|
|
@@ -1992,7 +2066,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1992
2066
|
},
|
|
1993
2067
|
1
|
|
1994
2068
|
),
|
|
1995
|
-
/* @__PURE__ */
|
|
2069
|
+
/* @__PURE__ */ jsx31(
|
|
1996
2070
|
SmdChipLead,
|
|
1997
2071
|
{
|
|
1998
2072
|
rotation: Math.PI,
|
|
@@ -2009,7 +2083,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2009
2083
|
},
|
|
2010
2084
|
2
|
|
2011
2085
|
),
|
|
2012
|
-
/* @__PURE__ */
|
|
2086
|
+
/* @__PURE__ */ jsx31(
|
|
2013
2087
|
SmdChipLead,
|
|
2014
2088
|
{
|
|
2015
2089
|
position: {
|
|
@@ -2025,7 +2099,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2025
2099
|
},
|
|
2026
2100
|
3
|
|
2027
2101
|
),
|
|
2028
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx31(
|
|
2029
2103
|
ChipBody,
|
|
2030
2104
|
{
|
|
2031
2105
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2038,8 +2112,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2038
2112
|
};
|
|
2039
2113
|
|
|
2040
2114
|
// lib/SOT-563.tsx
|
|
2041
|
-
import { Cuboid as
|
|
2042
|
-
import { Fragment as
|
|
2115
|
+
import { Cuboid as Cuboid22, Translate as Translate13, Rotate as Rotate6, Colorize as Colorize14 } from "jscad-fiber";
|
|
2116
|
+
import { Fragment as Fragment27, jsx as jsx32, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2043
2117
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
2044
2118
|
const bodyWidth = 1.2;
|
|
2045
2119
|
const bodyLength10 = 1.6;
|
|
@@ -2049,28 +2123,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2049
2123
|
const leadHeight = 0.13;
|
|
2050
2124
|
const leadSpacing = 0.5;
|
|
2051
2125
|
const bodyZOffset = -0.4;
|
|
2052
|
-
return /* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2126
|
+
return /* @__PURE__ */ jsxs29(Fragment27, { children: [
|
|
2127
|
+
/* @__PURE__ */ jsx32(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx32(Translate13, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx32(Colorize14, { color: "grey", children: /* @__PURE__ */ jsx32(Cuboid22, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2054
2128
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
2055
2129
|
// Left lead
|
|
2056
|
-
/* @__PURE__ */
|
|
2057
|
-
|
|
2130
|
+
/* @__PURE__ */ jsx32(
|
|
2131
|
+
Translate13,
|
|
2058
2132
|
{
|
|
2059
2133
|
center: [
|
|
2060
2134
|
-bodyWidth / 2 - 0.03,
|
|
2061
2135
|
yOffset * leadSpacing,
|
|
2062
2136
|
leadHeight / 2
|
|
2063
2137
|
],
|
|
2064
|
-
children: /* @__PURE__ */
|
|
2138
|
+
children: /* @__PURE__ */ jsx32(Cuboid22, { size: [leadLength, leadWidth, leadHeight] })
|
|
2065
2139
|
},
|
|
2066
2140
|
`left-${index}`
|
|
2067
2141
|
),
|
|
2068
2142
|
// Right lead
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
|
|
2143
|
+
/* @__PURE__ */ jsx32(
|
|
2144
|
+
Translate13,
|
|
2071
2145
|
{
|
|
2072
2146
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
2073
|
-
children: /* @__PURE__ */
|
|
2147
|
+
children: /* @__PURE__ */ jsx32(Cuboid22, { size: [leadLength, leadWidth, leadHeight] })
|
|
2074
2148
|
},
|
|
2075
2149
|
`right-${index}`
|
|
2076
2150
|
)
|
|
@@ -2079,8 +2153,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2079
2153
|
};
|
|
2080
2154
|
|
|
2081
2155
|
// lib/SOT-723.tsx
|
|
2082
|
-
import { Cuboid as
|
|
2083
|
-
import { Fragment as
|
|
2156
|
+
import { Cuboid as Cuboid23, Translate as Translate14, Rotate as Rotate7, Colorize as Colorize15 } from "jscad-fiber";
|
|
2157
|
+
import { Fragment as Fragment28, jsx as jsx33, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2084
2158
|
var getCcwSot723Coords = (pn) => {
|
|
2085
2159
|
if (pn === 1) {
|
|
2086
2160
|
return { x: 0, y: 0 };
|
|
@@ -2098,12 +2172,12 @@ var SOT723 = () => {
|
|
|
2098
2172
|
const leadLength = 0.3;
|
|
2099
2173
|
const leadHeight = 0.1;
|
|
2100
2174
|
const centerLeadWidth = 0.42;
|
|
2101
|
-
return /* @__PURE__ */
|
|
2102
|
-
/* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2176
|
+
/* @__PURE__ */ jsx33(Rotate7, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx33(Translate14, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx33(Colorize15, { color: "grey", children: /* @__PURE__ */ jsx33(Cuboid23, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2103
2177
|
[1, 2, 3].map((pn) => {
|
|
2104
2178
|
const { x, y } = getCcwSot723Coords(pn);
|
|
2105
|
-
return /* @__PURE__ */
|
|
2106
|
-
|
|
2179
|
+
return /* @__PURE__ */ jsx33(Translate14, { center: [x, y, 0], children: /* @__PURE__ */ jsx33(
|
|
2180
|
+
Cuboid23,
|
|
2107
2181
|
{
|
|
2108
2182
|
size: [
|
|
2109
2183
|
leadLength,
|
|
@@ -2117,7 +2191,7 @@ var SOT723 = () => {
|
|
|
2117
2191
|
};
|
|
2118
2192
|
|
|
2119
2193
|
// lib/sod-123.tsx
|
|
2120
|
-
import { Fragment as
|
|
2194
|
+
import { Fragment as Fragment29, jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2121
2195
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
2122
2196
|
const bodyWidth = 2.9;
|
|
2123
2197
|
const bodyLength10 = 1.3;
|
|
@@ -2128,8 +2202,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2128
2202
|
const padContactLength = 0.4;
|
|
2129
2203
|
const padThickness = leadThickness / 2;
|
|
2130
2204
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
2131
|
-
return /* @__PURE__ */
|
|
2132
|
-
/* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2206
|
+
/* @__PURE__ */ jsx34(
|
|
2133
2207
|
SmdChipLead,
|
|
2134
2208
|
{
|
|
2135
2209
|
position: {
|
|
@@ -2145,7 +2219,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2145
2219
|
},
|
|
2146
2220
|
1
|
|
2147
2221
|
),
|
|
2148
|
-
/* @__PURE__ */
|
|
2222
|
+
/* @__PURE__ */ jsx34(
|
|
2149
2223
|
SmdChipLead,
|
|
2150
2224
|
{
|
|
2151
2225
|
rotation: Math.PI,
|
|
@@ -2162,7 +2236,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2162
2236
|
},
|
|
2163
2237
|
2
|
|
2164
2238
|
),
|
|
2165
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ jsx34(
|
|
2166
2240
|
ChipBody,
|
|
2167
2241
|
{
|
|
2168
2242
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2194,6 +2268,7 @@ export {
|
|
|
2194
2268
|
QFP,
|
|
2195
2269
|
SMA,
|
|
2196
2270
|
SMB,
|
|
2271
|
+
SMC,
|
|
2197
2272
|
SOD123,
|
|
2198
2273
|
SOD523,
|
|
2199
2274
|
SOT233P,
|