jscad-electronics 0.0.99 → 0.0.100
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 +137 -80
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +54 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,8 @@ declare const SOD128: () => react_jsx_runtime.JSX.Element;
|
|
|
242
242
|
|
|
243
243
|
declare const SOD323: () => react_jsx_runtime.JSX.Element;
|
|
244
244
|
|
|
245
|
+
declare const SOD323F: () => react_jsx_runtime.JSX.Element;
|
|
246
|
+
|
|
245
247
|
declare const SOD923: () => react_jsx_runtime.JSX.Element;
|
|
246
248
|
|
|
247
249
|
declare const SOT223: () => react_jsx_runtime.JSX.Element;
|
|
@@ -317,4 +319,4 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
317
319
|
|
|
318
320
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
319
321
|
|
|
320
|
-
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, DFN, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, MicroMELF, type MicroMELFProps, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
|
322
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, DFN, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, MicroMELF, type MicroMELFProps, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD323F, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -3851,15 +3851,69 @@ var SOD323 = () => {
|
|
|
3851
3851
|
] });
|
|
3852
3852
|
};
|
|
3853
3853
|
|
|
3854
|
+
// lib/sod-323F.tsx
|
|
3855
|
+
import { Colorize as Colorize29, Cuboid as Cuboid36, Hull as Hull20, Translate as Translate24, Union as Union18 } from "jscad-fiber";
|
|
3856
|
+
import { Fragment as Fragment51, jsx as jsx56, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3857
|
+
var SOD323F = () => {
|
|
3858
|
+
const fullWidth = 1.7;
|
|
3859
|
+
const bodyLength10 = 1.25;
|
|
3860
|
+
const bodyHeight = 0.725;
|
|
3861
|
+
const padWidth = 0.325;
|
|
3862
|
+
const padLength = 0.4;
|
|
3863
|
+
const padThickness = 0.175;
|
|
3864
|
+
const leftPadCenterX = -fullWidth / 2 - padLength / 2;
|
|
3865
|
+
const rightPadCenterX = fullWidth / 2 + padLength / 2;
|
|
3866
|
+
const taperOffset = 0.2;
|
|
3867
|
+
const straightHeight = padThickness;
|
|
3868
|
+
return /* @__PURE__ */ jsxs54(Fragment51, { children: [
|
|
3869
|
+
/* @__PURE__ */ jsx56(
|
|
3870
|
+
Cuboid36,
|
|
3871
|
+
{
|
|
3872
|
+
color: "#ccc",
|
|
3873
|
+
size: [padLength, padWidth, padThickness],
|
|
3874
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
3875
|
+
}
|
|
3876
|
+
),
|
|
3877
|
+
/* @__PURE__ */ jsx56(
|
|
3878
|
+
Cuboid36,
|
|
3879
|
+
{
|
|
3880
|
+
color: "#ccc",
|
|
3881
|
+
size: [padLength, padWidth, padThickness],
|
|
3882
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
3883
|
+
}
|
|
3884
|
+
),
|
|
3885
|
+
/* @__PURE__ */ jsx56(Colorize29, { color: "#222", children: /* @__PURE__ */ jsxs54(Union18, { children: [
|
|
3886
|
+
/* @__PURE__ */ jsx56(Translate24, { z: straightHeight / 2, children: /* @__PURE__ */ jsx56(Cuboid36, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
3887
|
+
/* @__PURE__ */ jsxs54(Hull20, { children: [
|
|
3888
|
+
/* @__PURE__ */ jsx56(Translate24, { z: straightHeight, children: /* @__PURE__ */ jsx56(Cuboid36, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
3889
|
+
/* @__PURE__ */ jsx56(Translate24, { z: bodyHeight, children: /* @__PURE__ */ jsx56(
|
|
3890
|
+
Cuboid36,
|
|
3891
|
+
{
|
|
3892
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
3893
|
+
}
|
|
3894
|
+
) })
|
|
3895
|
+
] })
|
|
3896
|
+
] }) }),
|
|
3897
|
+
/* @__PURE__ */ jsx56(
|
|
3898
|
+
Cuboid36,
|
|
3899
|
+
{
|
|
3900
|
+
color: "#777",
|
|
3901
|
+
size: [fullWidth / 3, bodyLength10 - taperOffset, 0.02],
|
|
3902
|
+
center: [leftPadCenterX + fullWidth / 4.4 + taperOffset, 0, bodyHeight]
|
|
3903
|
+
}
|
|
3904
|
+
)
|
|
3905
|
+
] });
|
|
3906
|
+
};
|
|
3907
|
+
|
|
3854
3908
|
// lib/Footprinter3d.tsx
|
|
3855
|
-
import { jsx as
|
|
3909
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3856
3910
|
var Footprinter3d = ({ footprint }) => {
|
|
3857
3911
|
const fpJson = fp3.string(footprint).json();
|
|
3858
3912
|
switch (fpJson.fn) {
|
|
3859
3913
|
case "dip":
|
|
3860
|
-
return /* @__PURE__ */
|
|
3914
|
+
return /* @__PURE__ */ jsx57(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3861
3915
|
case "tssop":
|
|
3862
|
-
return /* @__PURE__ */
|
|
3916
|
+
return /* @__PURE__ */ jsx57(
|
|
3863
3917
|
Tssop,
|
|
3864
3918
|
{
|
|
3865
3919
|
pinCount: fpJson.num_pins,
|
|
@@ -3870,7 +3924,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3870
3924
|
}
|
|
3871
3925
|
);
|
|
3872
3926
|
case "msop":
|
|
3873
|
-
return /* @__PURE__ */
|
|
3927
|
+
return /* @__PURE__ */ jsx57(
|
|
3874
3928
|
MSOP,
|
|
3875
3929
|
{
|
|
3876
3930
|
pinCount: fpJson.num_pins,
|
|
@@ -3881,7 +3935,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3881
3935
|
}
|
|
3882
3936
|
);
|
|
3883
3937
|
case "vssop":
|
|
3884
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx57(
|
|
3885
3939
|
VSSOP,
|
|
3886
3940
|
{
|
|
3887
3941
|
pinCount: fpJson.num_pins,
|
|
@@ -3893,7 +3947,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3893
3947
|
}
|
|
3894
3948
|
);
|
|
3895
3949
|
case "qfp":
|
|
3896
|
-
return /* @__PURE__ */
|
|
3950
|
+
return /* @__PURE__ */ jsx57(
|
|
3897
3951
|
QFP,
|
|
3898
3952
|
{
|
|
3899
3953
|
pinCount: fpJson.num_pins,
|
|
@@ -3904,12 +3958,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3904
3958
|
}
|
|
3905
3959
|
);
|
|
3906
3960
|
case "tqfp":
|
|
3907
|
-
return /* @__PURE__ */
|
|
3961
|
+
return /* @__PURE__ */ jsx57(tqfp_default, {});
|
|
3908
3962
|
case "lqfp":
|
|
3909
|
-
return /* @__PURE__ */
|
|
3963
|
+
return /* @__PURE__ */ jsx57(LQFP, { pinCount: fpJson.num_pins });
|
|
3910
3964
|
case "qfn": {
|
|
3911
3965
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3912
|
-
return /* @__PURE__ */
|
|
3966
|
+
return /* @__PURE__ */ jsx57(
|
|
3913
3967
|
qfn_default,
|
|
3914
3968
|
{
|
|
3915
3969
|
num_pins: fpJson.num_pins,
|
|
@@ -3927,7 +3981,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3927
3981
|
}
|
|
3928
3982
|
case "dfn": {
|
|
3929
3983
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3930
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ jsx57(
|
|
3931
3985
|
DFN,
|
|
3932
3986
|
{
|
|
3933
3987
|
num_pins: fpJson.num_pins,
|
|
@@ -3945,45 +3999,47 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3945
3999
|
}
|
|
3946
4000
|
case "pinrow":
|
|
3947
4001
|
if (fpJson.male)
|
|
3948
|
-
return /* @__PURE__ */
|
|
4002
|
+
return /* @__PURE__ */ jsx57(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3949
4003
|
if (fpJson.female)
|
|
3950
|
-
return /* @__PURE__ */
|
|
4004
|
+
return /* @__PURE__ */ jsx57(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3951
4005
|
case "cap": {
|
|
3952
4006
|
switch (fpJson.imperial) {
|
|
3953
4007
|
case "0402":
|
|
3954
|
-
return /* @__PURE__ */
|
|
4008
|
+
return /* @__PURE__ */ jsx57(A0402, { color: "#856c4d" });
|
|
3955
4009
|
case "0603":
|
|
3956
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx57(A0603, { color: "#856c4d" });
|
|
3957
4011
|
case "0805":
|
|
3958
|
-
return /* @__PURE__ */
|
|
4012
|
+
return /* @__PURE__ */ jsx57(A0805, { color: "#856c4d" });
|
|
3959
4013
|
case "0201":
|
|
3960
|
-
return /* @__PURE__ */
|
|
4014
|
+
return /* @__PURE__ */ jsx57(A0201, { color: "#856c4d" });
|
|
3961
4015
|
case "01005":
|
|
3962
|
-
return /* @__PURE__ */
|
|
4016
|
+
return /* @__PURE__ */ jsx57(A01005, { color: "#856c4d" });
|
|
3963
4017
|
case "1206":
|
|
3964
|
-
return /* @__PURE__ */
|
|
4018
|
+
return /* @__PURE__ */ jsx57(A1206, { color: "#856c4d" });
|
|
3965
4019
|
case "1210":
|
|
3966
|
-
return /* @__PURE__ */
|
|
4020
|
+
return /* @__PURE__ */ jsx57(A1210, { color: "#856c4d" });
|
|
3967
4021
|
case "2010":
|
|
3968
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ jsx57(A2010, { color: "#856c4d" });
|
|
3969
4023
|
case "2512":
|
|
3970
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ jsx57(A2512, { color: "#856c4d" });
|
|
3971
4025
|
}
|
|
3972
4026
|
}
|
|
3973
4027
|
case "sot235":
|
|
3974
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ jsx57(SOT_235_default, {});
|
|
3975
4029
|
case "sot457":
|
|
3976
|
-
return /* @__PURE__ */
|
|
4030
|
+
return /* @__PURE__ */ jsx57(SOT457, {});
|
|
3977
4031
|
case "sot223":
|
|
3978
|
-
return /* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsx57(SOT223, {});
|
|
3979
4033
|
case "sot23w":
|
|
3980
|
-
return /* @__PURE__ */
|
|
4034
|
+
return /* @__PURE__ */ jsx57(SOT23W, {});
|
|
3981
4035
|
case "sot323":
|
|
3982
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ jsx57(SOT323, {});
|
|
4037
|
+
case "sod323f":
|
|
4038
|
+
return /* @__PURE__ */ jsx57(SOD323F, {});
|
|
3983
4039
|
case "sot363":
|
|
3984
|
-
return /* @__PURE__ */
|
|
4040
|
+
return /* @__PURE__ */ jsx57(SOT_363_default, {});
|
|
3985
4041
|
case "pushbutton":
|
|
3986
|
-
return /* @__PURE__ */
|
|
4042
|
+
return /* @__PURE__ */ jsx57(
|
|
3987
4043
|
PushButton,
|
|
3988
4044
|
{
|
|
3989
4045
|
width: fpJson.w,
|
|
@@ -3992,7 +4048,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3992
4048
|
}
|
|
3993
4049
|
);
|
|
3994
4050
|
case "soic":
|
|
3995
|
-
return /* @__PURE__ */
|
|
4051
|
+
return /* @__PURE__ */ jsx57(
|
|
3996
4052
|
SOIC,
|
|
3997
4053
|
{
|
|
3998
4054
|
pinCount: fpJson.num_pins,
|
|
@@ -4003,39 +4059,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4003
4059
|
}
|
|
4004
4060
|
);
|
|
4005
4061
|
case "sod523":
|
|
4006
|
-
return /* @__PURE__ */
|
|
4062
|
+
return /* @__PURE__ */ jsx57(SOD523, {});
|
|
4007
4063
|
case "sod882":
|
|
4008
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsx57(SOD882, {});
|
|
4009
4065
|
case "sma":
|
|
4010
|
-
return /* @__PURE__ */
|
|
4066
|
+
return /* @__PURE__ */ jsx57(SMA, {});
|
|
4011
4067
|
case "smb":
|
|
4012
|
-
return /* @__PURE__ */
|
|
4068
|
+
return /* @__PURE__ */ jsx57(SMB, {});
|
|
4013
4069
|
case "smc":
|
|
4014
|
-
return /* @__PURE__ */
|
|
4070
|
+
return /* @__PURE__ */ jsx57(SMC, {});
|
|
4015
4071
|
case "smf":
|
|
4016
|
-
return /* @__PURE__ */
|
|
4072
|
+
return /* @__PURE__ */ jsx57(SMF, {});
|
|
4017
4073
|
case "sod123f":
|
|
4018
|
-
return /* @__PURE__ */
|
|
4074
|
+
return /* @__PURE__ */ jsx57(SOD123F, {});
|
|
4019
4075
|
case "sod123fl":
|
|
4020
|
-
return /* @__PURE__ */
|
|
4076
|
+
return /* @__PURE__ */ jsx57(SOD123FL, {});
|
|
4021
4077
|
case "sod123w":
|
|
4022
|
-
return /* @__PURE__ */
|
|
4078
|
+
return /* @__PURE__ */ jsx57(SOD123W, {});
|
|
4023
4079
|
case "sod128":
|
|
4024
|
-
return /* @__PURE__ */
|
|
4080
|
+
return /* @__PURE__ */ jsx57(SOD128, {});
|
|
4025
4081
|
case "sod323":
|
|
4026
|
-
return /* @__PURE__ */
|
|
4082
|
+
return /* @__PURE__ */ jsx57(SOD323, {});
|
|
4027
4083
|
case "sod923":
|
|
4028
|
-
return /* @__PURE__ */
|
|
4084
|
+
return /* @__PURE__ */ jsx57(SOD923, {});
|
|
4029
4085
|
case "hc49":
|
|
4030
|
-
return /* @__PURE__ */
|
|
4086
|
+
return /* @__PURE__ */ jsx57(HC49, {});
|
|
4031
4087
|
case "micromelf":
|
|
4032
|
-
return /* @__PURE__ */
|
|
4088
|
+
return /* @__PURE__ */ jsx57(MicroMELF, {});
|
|
4033
4089
|
case "minimelf":
|
|
4034
|
-
return /* @__PURE__ */
|
|
4090
|
+
return /* @__PURE__ */ jsx57(MINIMELF, {});
|
|
4035
4091
|
case "melf":
|
|
4036
|
-
return /* @__PURE__ */
|
|
4092
|
+
return /* @__PURE__ */ jsx57(MELF, {});
|
|
4037
4093
|
case "ms012":
|
|
4038
|
-
return /* @__PURE__ */
|
|
4094
|
+
return /* @__PURE__ */ jsx57(
|
|
4039
4095
|
MS012,
|
|
4040
4096
|
{
|
|
4041
4097
|
pinCount: fpJson.num_pins,
|
|
@@ -4045,7 +4101,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4045
4101
|
}
|
|
4046
4102
|
);
|
|
4047
4103
|
case "ms013":
|
|
4048
|
-
return /* @__PURE__ */
|
|
4104
|
+
return /* @__PURE__ */ jsx57(
|
|
4049
4105
|
MS013,
|
|
4050
4106
|
{
|
|
4051
4107
|
pinCount: fpJson.num_pins,
|
|
@@ -4055,39 +4111,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4055
4111
|
}
|
|
4056
4112
|
);
|
|
4057
4113
|
case "sot723":
|
|
4058
|
-
return /* @__PURE__ */
|
|
4114
|
+
return /* @__PURE__ */ jsx57(SOT723, {});
|
|
4059
4115
|
case "to220":
|
|
4060
|
-
return /* @__PURE__ */
|
|
4116
|
+
return /* @__PURE__ */ jsx57(TO220, {});
|
|
4061
4117
|
case "to92":
|
|
4062
|
-
return /* @__PURE__ */
|
|
4118
|
+
return /* @__PURE__ */ jsx57(TO92, {});
|
|
4063
4119
|
}
|
|
4064
4120
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
4065
4121
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
4066
4122
|
switch (fpJson.imperial) {
|
|
4067
4123
|
case "0402":
|
|
4068
|
-
return /* @__PURE__ */
|
|
4124
|
+
return /* @__PURE__ */ jsx57(A0402, { color });
|
|
4069
4125
|
case "0603":
|
|
4070
|
-
return /* @__PURE__ */
|
|
4126
|
+
return /* @__PURE__ */ jsx57(A0603, { color });
|
|
4071
4127
|
case "0805":
|
|
4072
|
-
return /* @__PURE__ */
|
|
4128
|
+
return /* @__PURE__ */ jsx57(A0805, { color });
|
|
4073
4129
|
case "0201":
|
|
4074
|
-
return /* @__PURE__ */
|
|
4130
|
+
return /* @__PURE__ */ jsx57(A0201, { color });
|
|
4075
4131
|
case "01005":
|
|
4076
|
-
return /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ jsx57(A01005, { color });
|
|
4077
4133
|
case "1206":
|
|
4078
|
-
return /* @__PURE__ */
|
|
4134
|
+
return /* @__PURE__ */ jsx57(A1206, { color });
|
|
4079
4135
|
case "1210":
|
|
4080
|
-
return /* @__PURE__ */
|
|
4136
|
+
return /* @__PURE__ */ jsx57(A1210, { color });
|
|
4081
4137
|
case "2010":
|
|
4082
|
-
return /* @__PURE__ */
|
|
4138
|
+
return /* @__PURE__ */ jsx57(A2010, { color });
|
|
4083
4139
|
case "2512":
|
|
4084
|
-
return /* @__PURE__ */
|
|
4140
|
+
return /* @__PURE__ */ jsx57(A2512, { color });
|
|
4085
4141
|
}
|
|
4086
4142
|
return null;
|
|
4087
4143
|
};
|
|
4088
4144
|
|
|
4089
4145
|
// lib/SOT-23-3P.tsx
|
|
4090
|
-
import { Fragment as
|
|
4146
|
+
import { Fragment as Fragment52, jsx as jsx58, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4091
4147
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4092
4148
|
const bodyWidth = 1.3;
|
|
4093
4149
|
const bodyLength10 = 2.9;
|
|
@@ -4098,8 +4154,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4098
4154
|
const padContactLength = 0.4;
|
|
4099
4155
|
const padThickness = leadThickness / 2;
|
|
4100
4156
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4101
|
-
return /* @__PURE__ */
|
|
4102
|
-
/* @__PURE__ */
|
|
4157
|
+
return /* @__PURE__ */ jsxs55(Fragment52, { children: [
|
|
4158
|
+
/* @__PURE__ */ jsx58(
|
|
4103
4159
|
SmdChipLead,
|
|
4104
4160
|
{
|
|
4105
4161
|
rotation: Math.PI,
|
|
@@ -4116,7 +4172,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4116
4172
|
},
|
|
4117
4173
|
1
|
|
4118
4174
|
),
|
|
4119
|
-
/* @__PURE__ */
|
|
4175
|
+
/* @__PURE__ */ jsx58(
|
|
4120
4176
|
SmdChipLead,
|
|
4121
4177
|
{
|
|
4122
4178
|
rotation: Math.PI,
|
|
@@ -4133,7 +4189,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4133
4189
|
},
|
|
4134
4190
|
2
|
|
4135
4191
|
),
|
|
4136
|
-
/* @__PURE__ */
|
|
4192
|
+
/* @__PURE__ */ jsx58(
|
|
4137
4193
|
SmdChipLead,
|
|
4138
4194
|
{
|
|
4139
4195
|
position: {
|
|
@@ -4149,7 +4205,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4149
4205
|
},
|
|
4150
4206
|
3
|
|
4151
4207
|
),
|
|
4152
|
-
/* @__PURE__ */
|
|
4208
|
+
/* @__PURE__ */ jsx58(
|
|
4153
4209
|
ChipBody,
|
|
4154
4210
|
{
|
|
4155
4211
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4162,8 +4218,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4162
4218
|
};
|
|
4163
4219
|
|
|
4164
4220
|
// lib/SOT-563.tsx
|
|
4165
|
-
import { Cuboid as
|
|
4166
|
-
import { Fragment as
|
|
4221
|
+
import { Cuboid as Cuboid37, Translate as Translate25, Rotate as Rotate10, Colorize as Colorize30 } from "jscad-fiber";
|
|
4222
|
+
import { Fragment as Fragment53, jsx as jsx59, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4167
4223
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
4168
4224
|
const bodyWidth = 1.2;
|
|
4169
4225
|
const bodyLength10 = 1.6;
|
|
@@ -4173,28 +4229,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4173
4229
|
const leadHeight = 0.13;
|
|
4174
4230
|
const leadSpacing = 0.5;
|
|
4175
4231
|
const bodyZOffset = -0.4;
|
|
4176
|
-
return /* @__PURE__ */
|
|
4177
|
-
/* @__PURE__ */
|
|
4232
|
+
return /* @__PURE__ */ jsxs56(Fragment53, { children: [
|
|
4233
|
+
/* @__PURE__ */ jsx59(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx59(Translate25, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx59(Colorize30, { color: "grey", children: /* @__PURE__ */ jsx59(Cuboid37, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
4178
4234
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
4179
4235
|
// Left lead
|
|
4180
|
-
/* @__PURE__ */
|
|
4181
|
-
|
|
4236
|
+
/* @__PURE__ */ jsx59(
|
|
4237
|
+
Translate25,
|
|
4182
4238
|
{
|
|
4183
4239
|
center: [
|
|
4184
4240
|
-bodyWidth / 2 - 0.03,
|
|
4185
4241
|
yOffset * leadSpacing,
|
|
4186
4242
|
leadHeight / 2
|
|
4187
4243
|
],
|
|
4188
|
-
children: /* @__PURE__ */
|
|
4244
|
+
children: /* @__PURE__ */ jsx59(Cuboid37, { size: [leadLength, leadWidth, leadHeight] })
|
|
4189
4245
|
},
|
|
4190
4246
|
`left-${index}`
|
|
4191
4247
|
),
|
|
4192
4248
|
// Right lead
|
|
4193
|
-
/* @__PURE__ */
|
|
4194
|
-
|
|
4249
|
+
/* @__PURE__ */ jsx59(
|
|
4250
|
+
Translate25,
|
|
4195
4251
|
{
|
|
4196
4252
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
4197
|
-
children: /* @__PURE__ */
|
|
4253
|
+
children: /* @__PURE__ */ jsx59(Cuboid37, { size: [leadLength, leadWidth, leadHeight] })
|
|
4198
4254
|
},
|
|
4199
4255
|
`right-${index}`
|
|
4200
4256
|
)
|
|
@@ -4203,7 +4259,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4203
4259
|
};
|
|
4204
4260
|
|
|
4205
4261
|
// lib/sod-123.tsx
|
|
4206
|
-
import { Fragment as
|
|
4262
|
+
import { Fragment as Fragment54, jsx as jsx60, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
4207
4263
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
4208
4264
|
const bodyWidth = 2.9;
|
|
4209
4265
|
const bodyLength10 = 1.3;
|
|
@@ -4214,8 +4270,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4214
4270
|
const padContactLength = 0.4;
|
|
4215
4271
|
const padThickness = leadThickness / 2;
|
|
4216
4272
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
4217
|
-
return /* @__PURE__ */
|
|
4218
|
-
/* @__PURE__ */
|
|
4273
|
+
return /* @__PURE__ */ jsxs57(Fragment54, { children: [
|
|
4274
|
+
/* @__PURE__ */ jsx60(
|
|
4219
4275
|
SmdChipLead,
|
|
4220
4276
|
{
|
|
4221
4277
|
position: {
|
|
@@ -4231,7 +4287,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4231
4287
|
},
|
|
4232
4288
|
1
|
|
4233
4289
|
),
|
|
4234
|
-
/* @__PURE__ */
|
|
4290
|
+
/* @__PURE__ */ jsx60(
|
|
4235
4291
|
SmdChipLead,
|
|
4236
4292
|
{
|
|
4237
4293
|
rotation: Math.PI,
|
|
@@ -4248,7 +4304,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4248
4304
|
},
|
|
4249
4305
|
2
|
|
4250
4306
|
),
|
|
4251
|
-
/* @__PURE__ */
|
|
4307
|
+
/* @__PURE__ */ jsx60(
|
|
4252
4308
|
ChipBody,
|
|
4253
4309
|
{
|
|
4254
4310
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4297,6 +4353,7 @@ export {
|
|
|
4297
4353
|
SOD123W,
|
|
4298
4354
|
SOD128,
|
|
4299
4355
|
SOD323,
|
|
4356
|
+
SOD323F,
|
|
4300
4357
|
SOD523,
|
|
4301
4358
|
SOD882,
|
|
4302
4359
|
SOD923,
|