jscad-electronics 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -1
- package/dist/index.js +160 -60
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +94 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -175,4 +175,8 @@ declare const SMB: () => react_jsx_runtime.JSX.Element;
|
|
|
175
175
|
|
|
176
176
|
declare const SMC: () => react_jsx_runtime.JSX.Element;
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
declare const SMF: () => react_jsx_runtime.JSX.Element;
|
|
179
|
+
|
|
180
|
+
declare const SOD123F: () => react_jsx_runtime.JSX.Element;
|
|
181
|
+
|
|
182
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD523, SOT233P, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -1895,15 +1895,109 @@ var SMC = () => {
|
|
|
1895
1895
|
] });
|
|
1896
1896
|
};
|
|
1897
1897
|
|
|
1898
|
+
// lib/SMF.tsx
|
|
1899
|
+
import { Colorize as Colorize14, Cuboid as Cuboid22, Hull as Hull8, Translate as Translate13, Union as Union9 } from "jscad-fiber";
|
|
1900
|
+
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1901
|
+
var SMF = () => {
|
|
1902
|
+
const fullWidth = 2.9;
|
|
1903
|
+
const bodyLength10 = 1.9;
|
|
1904
|
+
const bodyHeight = 1.08;
|
|
1905
|
+
const padWidth = 1.2;
|
|
1906
|
+
const padLength = 1;
|
|
1907
|
+
const padThickness = 0.25;
|
|
1908
|
+
const bodyWidth = fullWidth;
|
|
1909
|
+
const leftPadCenterX = -1.3;
|
|
1910
|
+
const rightPadCenterX = 1.3;
|
|
1911
|
+
const taperOffset = 0.2;
|
|
1912
|
+
const straightHeight = bodyHeight * 0.5;
|
|
1913
|
+
const Body = /* @__PURE__ */ jsx30(Colorize14, { color: "#222", children: /* @__PURE__ */ jsxs28(Union9, { children: [
|
|
1914
|
+
/* @__PURE__ */ jsx30(Translate13, { z: straightHeight / 2, children: /* @__PURE__ */ jsx30(Cuboid22, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
1915
|
+
/* @__PURE__ */ jsxs28(Hull8, { children: [
|
|
1916
|
+
/* @__PURE__ */ jsx30(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx30(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
1917
|
+
/* @__PURE__ */ jsx30(Translate13, { z: bodyHeight, children: /* @__PURE__ */ jsx30(
|
|
1918
|
+
Cuboid22,
|
|
1919
|
+
{
|
|
1920
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1921
|
+
}
|
|
1922
|
+
) })
|
|
1923
|
+
] })
|
|
1924
|
+
] }) });
|
|
1925
|
+
return /* @__PURE__ */ jsxs28(Fragment26, { children: [
|
|
1926
|
+
/* @__PURE__ */ jsx30(
|
|
1927
|
+
Cuboid22,
|
|
1928
|
+
{
|
|
1929
|
+
color: "#ccc",
|
|
1930
|
+
size: [padLength, padWidth, padThickness],
|
|
1931
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
1932
|
+
}
|
|
1933
|
+
),
|
|
1934
|
+
/* @__PURE__ */ jsx30(
|
|
1935
|
+
Cuboid22,
|
|
1936
|
+
{
|
|
1937
|
+
color: "#ccc",
|
|
1938
|
+
size: [padLength, padWidth, padThickness],
|
|
1939
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1940
|
+
}
|
|
1941
|
+
),
|
|
1942
|
+
Body
|
|
1943
|
+
] });
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
// lib/sod-123F.tsx
|
|
1947
|
+
import { Colorize as Colorize15, Cuboid as Cuboid23, Hull as Hull9, Translate as Translate14, Union as Union10 } from "jscad-fiber";
|
|
1948
|
+
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1949
|
+
var SOD123F = () => {
|
|
1950
|
+
const fullWidth = 2.7;
|
|
1951
|
+
const bodyLength10 = 1.6;
|
|
1952
|
+
const bodyHeight = 1.1;
|
|
1953
|
+
const padWidth = 0.6;
|
|
1954
|
+
const padLength = 1;
|
|
1955
|
+
const padThickness = 0.12;
|
|
1956
|
+
const leftPadCenterX = -1.3;
|
|
1957
|
+
const rightPadCenterX = 1.3;
|
|
1958
|
+
const taperOffset = 0.2;
|
|
1959
|
+
const straightHeight = bodyHeight * 0.5;
|
|
1960
|
+
return /* @__PURE__ */ jsxs29(Fragment27, { children: [
|
|
1961
|
+
/* @__PURE__ */ jsx31(
|
|
1962
|
+
Cuboid23,
|
|
1963
|
+
{
|
|
1964
|
+
color: "#ccc",
|
|
1965
|
+
size: [padLength, padWidth, padThickness],
|
|
1966
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
1967
|
+
}
|
|
1968
|
+
),
|
|
1969
|
+
/* @__PURE__ */ jsx31(
|
|
1970
|
+
Cuboid23,
|
|
1971
|
+
{
|
|
1972
|
+
color: "#ccc",
|
|
1973
|
+
size: [padLength, padWidth, padThickness],
|
|
1974
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
1975
|
+
}
|
|
1976
|
+
),
|
|
1977
|
+
/* @__PURE__ */ jsx31(Colorize15, { color: "#222", children: /* @__PURE__ */ jsxs29(Union10, { children: [
|
|
1978
|
+
/* @__PURE__ */ jsx31(Translate14, { z: straightHeight / 2, children: /* @__PURE__ */ jsx31(Cuboid23, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
1979
|
+
/* @__PURE__ */ jsxs29(Hull9, { children: [
|
|
1980
|
+
/* @__PURE__ */ jsx31(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid23, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
1981
|
+
/* @__PURE__ */ jsx31(Translate14, { z: bodyHeight, children: /* @__PURE__ */ jsx31(
|
|
1982
|
+
Cuboid23,
|
|
1983
|
+
{
|
|
1984
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
1985
|
+
}
|
|
1986
|
+
) })
|
|
1987
|
+
] })
|
|
1988
|
+
] }) })
|
|
1989
|
+
] });
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1898
1992
|
// lib/Footprinter3d.tsx
|
|
1899
|
-
import { jsx as
|
|
1993
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1900
1994
|
var Footprinter3d = ({ footprint }) => {
|
|
1901
1995
|
const fpJson = fp3.string(footprint).json();
|
|
1902
1996
|
switch (fpJson.fn) {
|
|
1903
1997
|
case "dip":
|
|
1904
|
-
return /* @__PURE__ */
|
|
1998
|
+
return /* @__PURE__ */ jsx32(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
1905
1999
|
case "tssop":
|
|
1906
|
-
return /* @__PURE__ */
|
|
2000
|
+
return /* @__PURE__ */ jsx32(
|
|
1907
2001
|
Tssop,
|
|
1908
2002
|
{
|
|
1909
2003
|
pinCount: fpJson.num_pins,
|
|
@@ -1914,7 +2008,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1914
2008
|
}
|
|
1915
2009
|
);
|
|
1916
2010
|
case "vssop":
|
|
1917
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ jsx32(
|
|
1918
2012
|
VSSOP,
|
|
1919
2013
|
{
|
|
1920
2014
|
pinCount: fpJson.num_pins,
|
|
@@ -1926,7 +2020,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1926
2020
|
}
|
|
1927
2021
|
);
|
|
1928
2022
|
case "qfp":
|
|
1929
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx32(
|
|
1930
2024
|
QFP,
|
|
1931
2025
|
{
|
|
1932
2026
|
pinCount: fpJson.num_pins,
|
|
@@ -1938,7 +2032,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1938
2032
|
);
|
|
1939
2033
|
case "qfn":
|
|
1940
2034
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
1941
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx32(
|
|
1942
2036
|
qfn_default,
|
|
1943
2037
|
{
|
|
1944
2038
|
num_pins: fpJson.num_pins,
|
|
@@ -1955,35 +2049,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1955
2049
|
);
|
|
1956
2050
|
case "pinrow":
|
|
1957
2051
|
if (fpJson.male)
|
|
1958
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ jsx32(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1959
2053
|
if (fpJson.female)
|
|
1960
|
-
return /* @__PURE__ */
|
|
2054
|
+
return /* @__PURE__ */ jsx32(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
1961
2055
|
case "cap": {
|
|
1962
2056
|
switch (fpJson.imperial) {
|
|
1963
2057
|
case "0402":
|
|
1964
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ jsx32(A0402, { color: "#856c4d" });
|
|
1965
2059
|
case "0603":
|
|
1966
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ jsx32(A0603, { color: "#856c4d" });
|
|
1967
2061
|
case "0805":
|
|
1968
|
-
return /* @__PURE__ */
|
|
2062
|
+
return /* @__PURE__ */ jsx32(A0805, { color: "#856c4d" });
|
|
1969
2063
|
case "0201":
|
|
1970
|
-
return /* @__PURE__ */
|
|
2064
|
+
return /* @__PURE__ */ jsx32(A0201, { color: "#856c4d" });
|
|
1971
2065
|
case "01005":
|
|
1972
|
-
return /* @__PURE__ */
|
|
2066
|
+
return /* @__PURE__ */ jsx32(A01005, { color: "#856c4d" });
|
|
1973
2067
|
case "1206":
|
|
1974
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx32(A1206, { color: "#856c4d" });
|
|
1975
2069
|
case "1210":
|
|
1976
|
-
return /* @__PURE__ */
|
|
2070
|
+
return /* @__PURE__ */ jsx32(A1210, { color: "#856c4d" });
|
|
1977
2071
|
case "2010":
|
|
1978
|
-
return /* @__PURE__ */
|
|
2072
|
+
return /* @__PURE__ */ jsx32(A2010, { color: "#856c4d" });
|
|
1979
2073
|
case "2512":
|
|
1980
|
-
return /* @__PURE__ */
|
|
2074
|
+
return /* @__PURE__ */ jsx32(A2512, { color: "#856c4d" });
|
|
1981
2075
|
}
|
|
1982
2076
|
}
|
|
1983
2077
|
case "sot235":
|
|
1984
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ jsx32(SOT_235_default, {});
|
|
1985
2079
|
case "pushbutton":
|
|
1986
|
-
return /* @__PURE__ */
|
|
2080
|
+
return /* @__PURE__ */ jsx32(
|
|
1987
2081
|
PushButton,
|
|
1988
2082
|
{
|
|
1989
2083
|
width: fpJson.w,
|
|
@@ -1992,7 +2086,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
1992
2086
|
}
|
|
1993
2087
|
);
|
|
1994
2088
|
case "soic":
|
|
1995
|
-
return /* @__PURE__ */
|
|
2089
|
+
return /* @__PURE__ */ jsx32(
|
|
1996
2090
|
SOIC,
|
|
1997
2091
|
{
|
|
1998
2092
|
pinCount: fpJson.num_pins,
|
|
@@ -2003,41 +2097,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2003
2097
|
}
|
|
2004
2098
|
);
|
|
2005
2099
|
case "sod523":
|
|
2006
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx32(SOD523, {});
|
|
2007
2101
|
case "sma":
|
|
2008
|
-
return /* @__PURE__ */
|
|
2102
|
+
return /* @__PURE__ */ jsx32(SMA, {});
|
|
2009
2103
|
case "smb":
|
|
2010
|
-
return /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ jsx32(SMB, {});
|
|
2011
2105
|
case "smc":
|
|
2012
|
-
return /* @__PURE__ */
|
|
2106
|
+
return /* @__PURE__ */ jsx32(SMC, {});
|
|
2107
|
+
case "smf":
|
|
2108
|
+
return /* @__PURE__ */ jsx32(SMF, {});
|
|
2109
|
+
case "sod123f":
|
|
2110
|
+
return /* @__PURE__ */ jsx32(SOD123F, {});
|
|
2013
2111
|
}
|
|
2014
2112
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
2015
2113
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
2016
2114
|
switch (fpJson.imperial) {
|
|
2017
2115
|
case "0402":
|
|
2018
|
-
return /* @__PURE__ */
|
|
2116
|
+
return /* @__PURE__ */ jsx32(A0402, { color });
|
|
2019
2117
|
case "0603":
|
|
2020
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ jsx32(A0603, { color });
|
|
2021
2119
|
case "0805":
|
|
2022
|
-
return /* @__PURE__ */
|
|
2120
|
+
return /* @__PURE__ */ jsx32(A0805, { color });
|
|
2023
2121
|
case "0201":
|
|
2024
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsx32(A0201, { color });
|
|
2025
2123
|
case "01005":
|
|
2026
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ jsx32(A01005, { color });
|
|
2027
2125
|
case "1206":
|
|
2028
|
-
return /* @__PURE__ */
|
|
2126
|
+
return /* @__PURE__ */ jsx32(A1206, { color });
|
|
2029
2127
|
case "1210":
|
|
2030
|
-
return /* @__PURE__ */
|
|
2128
|
+
return /* @__PURE__ */ jsx32(A1210, { color });
|
|
2031
2129
|
case "2010":
|
|
2032
|
-
return /* @__PURE__ */
|
|
2130
|
+
return /* @__PURE__ */ jsx32(A2010, { color });
|
|
2033
2131
|
case "2512":
|
|
2034
|
-
return /* @__PURE__ */
|
|
2132
|
+
return /* @__PURE__ */ jsx32(A2512, { color });
|
|
2035
2133
|
}
|
|
2036
2134
|
return null;
|
|
2037
2135
|
};
|
|
2038
2136
|
|
|
2039
2137
|
// lib/SOT-23-3P.tsx
|
|
2040
|
-
import { Fragment as
|
|
2138
|
+
import { Fragment as Fragment28, jsx as jsx33, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2041
2139
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
2042
2140
|
const bodyWidth = 1.3;
|
|
2043
2141
|
const bodyLength10 = 2.9;
|
|
@@ -2048,8 +2146,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2048
2146
|
const padContactLength = 0.4;
|
|
2049
2147
|
const padThickness = leadThickness / 2;
|
|
2050
2148
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
2051
|
-
return /* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2149
|
+
return /* @__PURE__ */ jsxs30(Fragment28, { children: [
|
|
2150
|
+
/* @__PURE__ */ jsx33(
|
|
2053
2151
|
SmdChipLead,
|
|
2054
2152
|
{
|
|
2055
2153
|
rotation: Math.PI,
|
|
@@ -2066,7 +2164,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2066
2164
|
},
|
|
2067
2165
|
1
|
|
2068
2166
|
),
|
|
2069
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx33(
|
|
2070
2168
|
SmdChipLead,
|
|
2071
2169
|
{
|
|
2072
2170
|
rotation: Math.PI,
|
|
@@ -2083,7 +2181,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2083
2181
|
},
|
|
2084
2182
|
2
|
|
2085
2183
|
),
|
|
2086
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx33(
|
|
2087
2185
|
SmdChipLead,
|
|
2088
2186
|
{
|
|
2089
2187
|
position: {
|
|
@@ -2099,7 +2197,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2099
2197
|
},
|
|
2100
2198
|
3
|
|
2101
2199
|
),
|
|
2102
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ jsx33(
|
|
2103
2201
|
ChipBody,
|
|
2104
2202
|
{
|
|
2105
2203
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2112,8 +2210,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
2112
2210
|
};
|
|
2113
2211
|
|
|
2114
2212
|
// lib/SOT-563.tsx
|
|
2115
|
-
import { Cuboid as
|
|
2116
|
-
import { Fragment as
|
|
2213
|
+
import { Cuboid as Cuboid24, Translate as Translate15, Rotate as Rotate6, Colorize as Colorize16 } from "jscad-fiber";
|
|
2214
|
+
import { Fragment as Fragment29, jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2117
2215
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
2118
2216
|
const bodyWidth = 1.2;
|
|
2119
2217
|
const bodyLength10 = 1.6;
|
|
@@ -2123,28 +2221,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2123
2221
|
const leadHeight = 0.13;
|
|
2124
2222
|
const leadSpacing = 0.5;
|
|
2125
2223
|
const bodyZOffset = -0.4;
|
|
2126
|
-
return /* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2224
|
+
return /* @__PURE__ */ jsxs31(Fragment29, { children: [
|
|
2225
|
+
/* @__PURE__ */ jsx34(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx34(Translate15, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx34(Colorize16, { color: "grey", children: /* @__PURE__ */ jsx34(Cuboid24, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2128
2226
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
2129
2227
|
// Left lead
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
|
|
2228
|
+
/* @__PURE__ */ jsx34(
|
|
2229
|
+
Translate15,
|
|
2132
2230
|
{
|
|
2133
2231
|
center: [
|
|
2134
2232
|
-bodyWidth / 2 - 0.03,
|
|
2135
2233
|
yOffset * leadSpacing,
|
|
2136
2234
|
leadHeight / 2
|
|
2137
2235
|
],
|
|
2138
|
-
children: /* @__PURE__ */
|
|
2236
|
+
children: /* @__PURE__ */ jsx34(Cuboid24, { size: [leadLength, leadWidth, leadHeight] })
|
|
2139
2237
|
},
|
|
2140
2238
|
`left-${index}`
|
|
2141
2239
|
),
|
|
2142
2240
|
// Right lead
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
|
|
2241
|
+
/* @__PURE__ */ jsx34(
|
|
2242
|
+
Translate15,
|
|
2145
2243
|
{
|
|
2146
2244
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
2147
|
-
children: /* @__PURE__ */
|
|
2245
|
+
children: /* @__PURE__ */ jsx34(Cuboid24, { size: [leadLength, leadWidth, leadHeight] })
|
|
2148
2246
|
},
|
|
2149
2247
|
`right-${index}`
|
|
2150
2248
|
)
|
|
@@ -2153,8 +2251,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2153
2251
|
};
|
|
2154
2252
|
|
|
2155
2253
|
// lib/SOT-723.tsx
|
|
2156
|
-
import { Cuboid as
|
|
2157
|
-
import { Fragment as
|
|
2254
|
+
import { Cuboid as Cuboid25, Translate as Translate16, Rotate as Rotate7, Colorize as Colorize17 } from "jscad-fiber";
|
|
2255
|
+
import { Fragment as Fragment30, jsx as jsx35, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2158
2256
|
var getCcwSot723Coords = (pn) => {
|
|
2159
2257
|
if (pn === 1) {
|
|
2160
2258
|
return { x: 0, y: 0 };
|
|
@@ -2172,12 +2270,12 @@ var SOT723 = () => {
|
|
|
2172
2270
|
const leadLength = 0.3;
|
|
2173
2271
|
const leadHeight = 0.1;
|
|
2174
2272
|
const centerLeadWidth = 0.42;
|
|
2175
|
-
return /* @__PURE__ */
|
|
2176
|
-
/* @__PURE__ */
|
|
2273
|
+
return /* @__PURE__ */ jsxs32(Fragment30, { children: [
|
|
2274
|
+
/* @__PURE__ */ jsx35(Rotate7, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx35(Translate16, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx35(Colorize17, { color: "grey", children: /* @__PURE__ */ jsx35(Cuboid25, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
2177
2275
|
[1, 2, 3].map((pn) => {
|
|
2178
2276
|
const { x, y } = getCcwSot723Coords(pn);
|
|
2179
|
-
return /* @__PURE__ */
|
|
2180
|
-
|
|
2277
|
+
return /* @__PURE__ */ jsx35(Translate16, { center: [x, y, 0], children: /* @__PURE__ */ jsx35(
|
|
2278
|
+
Cuboid25,
|
|
2181
2279
|
{
|
|
2182
2280
|
size: [
|
|
2183
2281
|
leadLength,
|
|
@@ -2191,7 +2289,7 @@ var SOT723 = () => {
|
|
|
2191
2289
|
};
|
|
2192
2290
|
|
|
2193
2291
|
// lib/sod-123.tsx
|
|
2194
|
-
import { Fragment as
|
|
2292
|
+
import { Fragment as Fragment31, jsx as jsx36, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2195
2293
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
2196
2294
|
const bodyWidth = 2.9;
|
|
2197
2295
|
const bodyLength10 = 1.3;
|
|
@@ -2202,8 +2300,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2202
2300
|
const padContactLength = 0.4;
|
|
2203
2301
|
const padThickness = leadThickness / 2;
|
|
2204
2302
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
2205
|
-
return /* @__PURE__ */
|
|
2206
|
-
/* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ jsxs33(Fragment31, { children: [
|
|
2304
|
+
/* @__PURE__ */ jsx36(
|
|
2207
2305
|
SmdChipLead,
|
|
2208
2306
|
{
|
|
2209
2307
|
position: {
|
|
@@ -2219,7 +2317,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2219
2317
|
},
|
|
2220
2318
|
1
|
|
2221
2319
|
),
|
|
2222
|
-
/* @__PURE__ */
|
|
2320
|
+
/* @__PURE__ */ jsx36(
|
|
2223
2321
|
SmdChipLead,
|
|
2224
2322
|
{
|
|
2225
2323
|
rotation: Math.PI,
|
|
@@ -2236,7 +2334,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
2236
2334
|
},
|
|
2237
2335
|
2
|
|
2238
2336
|
),
|
|
2239
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ jsx36(
|
|
2240
2338
|
ChipBody,
|
|
2241
2339
|
{
|
|
2242
2340
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2269,7 +2367,9 @@ export {
|
|
|
2269
2367
|
SMA,
|
|
2270
2368
|
SMB,
|
|
2271
2369
|
SMC,
|
|
2370
|
+
SMF,
|
|
2272
2371
|
SOD123,
|
|
2372
|
+
SOD123F,
|
|
2273
2373
|
SOD523,
|
|
2274
2374
|
SOT233P,
|
|
2275
2375
|
SOT563,
|