jscad-electronics 0.0.98 → 0.0.99
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 +154 -79
- 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
|
@@ -240,6 +240,8 @@ declare const SOD123W: () => react_jsx_runtime.JSX.Element;
|
|
|
240
240
|
|
|
241
241
|
declare const SOD128: () => react_jsx_runtime.JSX.Element;
|
|
242
242
|
|
|
243
|
+
declare const SOD323: () => react_jsx_runtime.JSX.Element;
|
|
244
|
+
|
|
243
245
|
declare const SOD923: () => react_jsx_runtime.JSX.Element;
|
|
244
246
|
|
|
245
247
|
declare const SOT223: () => react_jsx_runtime.JSX.Element;
|
|
@@ -315,4 +317,4 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
315
317
|
|
|
316
318
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
317
319
|
|
|
318
|
-
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, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -3779,15 +3779,87 @@ var SOT363 = () => {
|
|
|
3779
3779
|
};
|
|
3780
3780
|
var SOT_363_default = SOT363;
|
|
3781
3781
|
|
|
3782
|
+
// lib/sod-323.tsx
|
|
3783
|
+
import { Colorize as Colorize28, Cuboid as Cuboid35 } from "jscad-fiber";
|
|
3784
|
+
import { Fragment as Fragment50, jsx as jsx55, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3785
|
+
var SOD323 = () => {
|
|
3786
|
+
const fullWidth = 2.5;
|
|
3787
|
+
const bodyLength10 = 1.25;
|
|
3788
|
+
const bodyWidth = 1.7;
|
|
3789
|
+
const bodyHeight = 0.95;
|
|
3790
|
+
const leadWidth = 0.3;
|
|
3791
|
+
const leadThickness = 0.175;
|
|
3792
|
+
const padContactLength = 0.3;
|
|
3793
|
+
const padCenterX = bodyWidth / 2;
|
|
3794
|
+
const bodyDistance = 0.45;
|
|
3795
|
+
const leadHeight = 0.7;
|
|
3796
|
+
return /* @__PURE__ */ jsxs53(Fragment50, { children: [
|
|
3797
|
+
/* @__PURE__ */ jsx55(
|
|
3798
|
+
SmdChipLead,
|
|
3799
|
+
{
|
|
3800
|
+
position: {
|
|
3801
|
+
x: -fullWidth / 2,
|
|
3802
|
+
y: 0,
|
|
3803
|
+
z: leadThickness / 2
|
|
3804
|
+
},
|
|
3805
|
+
width: leadWidth,
|
|
3806
|
+
thickness: leadThickness,
|
|
3807
|
+
padContactLength,
|
|
3808
|
+
bodyDistance,
|
|
3809
|
+
height: leadHeight
|
|
3810
|
+
},
|
|
3811
|
+
1
|
|
3812
|
+
),
|
|
3813
|
+
/* @__PURE__ */ jsx55(
|
|
3814
|
+
SmdChipLead,
|
|
3815
|
+
{
|
|
3816
|
+
rotation: Math.PI,
|
|
3817
|
+
position: {
|
|
3818
|
+
x: fullWidth / 2,
|
|
3819
|
+
y: 0,
|
|
3820
|
+
z: leadThickness / 2
|
|
3821
|
+
},
|
|
3822
|
+
width: leadWidth,
|
|
3823
|
+
thickness: leadThickness,
|
|
3824
|
+
padContactLength,
|
|
3825
|
+
bodyDistance,
|
|
3826
|
+
height: leadHeight
|
|
3827
|
+
},
|
|
3828
|
+
1
|
|
3829
|
+
),
|
|
3830
|
+
/* @__PURE__ */ jsx55(Colorize28, { color: "#222", children: /* @__PURE__ */ jsx55(
|
|
3831
|
+
ChipBody,
|
|
3832
|
+
{
|
|
3833
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3834
|
+
width: bodyWidth,
|
|
3835
|
+
length: bodyLength10,
|
|
3836
|
+
height: bodyHeight,
|
|
3837
|
+
includeNotch: false,
|
|
3838
|
+
taperRatio: 0.06,
|
|
3839
|
+
straightHeightRatio: 0.7,
|
|
3840
|
+
heightAboveSurface: 0.05
|
|
3841
|
+
}
|
|
3842
|
+
) }),
|
|
3843
|
+
/* @__PURE__ */ jsx55(
|
|
3844
|
+
Cuboid35,
|
|
3845
|
+
{
|
|
3846
|
+
color: "#777",
|
|
3847
|
+
size: [bodyWidth / 3, bodyLength10 - 0.075, 0.02],
|
|
3848
|
+
center: [-padCenterX * 2 / 3 + 0.035, 0, bodyHeight + 0.05]
|
|
3849
|
+
}
|
|
3850
|
+
)
|
|
3851
|
+
] });
|
|
3852
|
+
};
|
|
3853
|
+
|
|
3782
3854
|
// lib/Footprinter3d.tsx
|
|
3783
|
-
import { jsx as
|
|
3855
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
3784
3856
|
var Footprinter3d = ({ footprint }) => {
|
|
3785
3857
|
const fpJson = fp3.string(footprint).json();
|
|
3786
3858
|
switch (fpJson.fn) {
|
|
3787
3859
|
case "dip":
|
|
3788
|
-
return /* @__PURE__ */
|
|
3860
|
+
return /* @__PURE__ */ jsx56(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3789
3861
|
case "tssop":
|
|
3790
|
-
return /* @__PURE__ */
|
|
3862
|
+
return /* @__PURE__ */ jsx56(
|
|
3791
3863
|
Tssop,
|
|
3792
3864
|
{
|
|
3793
3865
|
pinCount: fpJson.num_pins,
|
|
@@ -3798,7 +3870,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3798
3870
|
}
|
|
3799
3871
|
);
|
|
3800
3872
|
case "msop":
|
|
3801
|
-
return /* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsx56(
|
|
3802
3874
|
MSOP,
|
|
3803
3875
|
{
|
|
3804
3876
|
pinCount: fpJson.num_pins,
|
|
@@ -3809,7 +3881,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3809
3881
|
}
|
|
3810
3882
|
);
|
|
3811
3883
|
case "vssop":
|
|
3812
|
-
return /* @__PURE__ */
|
|
3884
|
+
return /* @__PURE__ */ jsx56(
|
|
3813
3885
|
VSSOP,
|
|
3814
3886
|
{
|
|
3815
3887
|
pinCount: fpJson.num_pins,
|
|
@@ -3821,7 +3893,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3821
3893
|
}
|
|
3822
3894
|
);
|
|
3823
3895
|
case "qfp":
|
|
3824
|
-
return /* @__PURE__ */
|
|
3896
|
+
return /* @__PURE__ */ jsx56(
|
|
3825
3897
|
QFP,
|
|
3826
3898
|
{
|
|
3827
3899
|
pinCount: fpJson.num_pins,
|
|
@@ -3832,12 +3904,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3832
3904
|
}
|
|
3833
3905
|
);
|
|
3834
3906
|
case "tqfp":
|
|
3835
|
-
return /* @__PURE__ */
|
|
3907
|
+
return /* @__PURE__ */ jsx56(tqfp_default, {});
|
|
3836
3908
|
case "lqfp":
|
|
3837
|
-
return /* @__PURE__ */
|
|
3909
|
+
return /* @__PURE__ */ jsx56(LQFP, { pinCount: fpJson.num_pins });
|
|
3838
3910
|
case "qfn": {
|
|
3839
3911
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3840
|
-
return /* @__PURE__ */
|
|
3912
|
+
return /* @__PURE__ */ jsx56(
|
|
3841
3913
|
qfn_default,
|
|
3842
3914
|
{
|
|
3843
3915
|
num_pins: fpJson.num_pins,
|
|
@@ -3855,7 +3927,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3855
3927
|
}
|
|
3856
3928
|
case "dfn": {
|
|
3857
3929
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3858
|
-
return /* @__PURE__ */
|
|
3930
|
+
return /* @__PURE__ */ jsx56(
|
|
3859
3931
|
DFN,
|
|
3860
3932
|
{
|
|
3861
3933
|
num_pins: fpJson.num_pins,
|
|
@@ -3873,45 +3945,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3873
3945
|
}
|
|
3874
3946
|
case "pinrow":
|
|
3875
3947
|
if (fpJson.male)
|
|
3876
|
-
return /* @__PURE__ */
|
|
3948
|
+
return /* @__PURE__ */ jsx56(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3877
3949
|
if (fpJson.female)
|
|
3878
|
-
return /* @__PURE__ */
|
|
3950
|
+
return /* @__PURE__ */ jsx56(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3879
3951
|
case "cap": {
|
|
3880
3952
|
switch (fpJson.imperial) {
|
|
3881
3953
|
case "0402":
|
|
3882
|
-
return /* @__PURE__ */
|
|
3954
|
+
return /* @__PURE__ */ jsx56(A0402, { color: "#856c4d" });
|
|
3883
3955
|
case "0603":
|
|
3884
|
-
return /* @__PURE__ */
|
|
3956
|
+
return /* @__PURE__ */ jsx56(A0603, { color: "#856c4d" });
|
|
3885
3957
|
case "0805":
|
|
3886
|
-
return /* @__PURE__ */
|
|
3958
|
+
return /* @__PURE__ */ jsx56(A0805, { color: "#856c4d" });
|
|
3887
3959
|
case "0201":
|
|
3888
|
-
return /* @__PURE__ */
|
|
3960
|
+
return /* @__PURE__ */ jsx56(A0201, { color: "#856c4d" });
|
|
3889
3961
|
case "01005":
|
|
3890
|
-
return /* @__PURE__ */
|
|
3962
|
+
return /* @__PURE__ */ jsx56(A01005, { color: "#856c4d" });
|
|
3891
3963
|
case "1206":
|
|
3892
|
-
return /* @__PURE__ */
|
|
3964
|
+
return /* @__PURE__ */ jsx56(A1206, { color: "#856c4d" });
|
|
3893
3965
|
case "1210":
|
|
3894
|
-
return /* @__PURE__ */
|
|
3966
|
+
return /* @__PURE__ */ jsx56(A1210, { color: "#856c4d" });
|
|
3895
3967
|
case "2010":
|
|
3896
|
-
return /* @__PURE__ */
|
|
3968
|
+
return /* @__PURE__ */ jsx56(A2010, { color: "#856c4d" });
|
|
3897
3969
|
case "2512":
|
|
3898
|
-
return /* @__PURE__ */
|
|
3970
|
+
return /* @__PURE__ */ jsx56(A2512, { color: "#856c4d" });
|
|
3899
3971
|
}
|
|
3900
3972
|
}
|
|
3901
3973
|
case "sot235":
|
|
3902
|
-
return /* @__PURE__ */
|
|
3974
|
+
return /* @__PURE__ */ jsx56(SOT_235_default, {});
|
|
3903
3975
|
case "sot457":
|
|
3904
|
-
return /* @__PURE__ */
|
|
3976
|
+
return /* @__PURE__ */ jsx56(SOT457, {});
|
|
3905
3977
|
case "sot223":
|
|
3906
|
-
return /* @__PURE__ */
|
|
3978
|
+
return /* @__PURE__ */ jsx56(SOT223, {});
|
|
3907
3979
|
case "sot23w":
|
|
3908
|
-
return /* @__PURE__ */
|
|
3980
|
+
return /* @__PURE__ */ jsx56(SOT23W, {});
|
|
3909
3981
|
case "sot323":
|
|
3910
|
-
return /* @__PURE__ */
|
|
3982
|
+
return /* @__PURE__ */ jsx56(SOT323, {});
|
|
3911
3983
|
case "sot363":
|
|
3912
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ jsx56(SOT_363_default, {});
|
|
3913
3985
|
case "pushbutton":
|
|
3914
|
-
return /* @__PURE__ */
|
|
3986
|
+
return /* @__PURE__ */ jsx56(
|
|
3915
3987
|
PushButton,
|
|
3916
3988
|
{
|
|
3917
3989
|
width: fpJson.w,
|
|
@@ -3920,7 +3992,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3920
3992
|
}
|
|
3921
3993
|
);
|
|
3922
3994
|
case "soic":
|
|
3923
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ jsx56(
|
|
3924
3996
|
SOIC,
|
|
3925
3997
|
{
|
|
3926
3998
|
pinCount: fpJson.num_pins,
|
|
@@ -3931,37 +4003,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3931
4003
|
}
|
|
3932
4004
|
);
|
|
3933
4005
|
case "sod523":
|
|
3934
|
-
return /* @__PURE__ */
|
|
4006
|
+
return /* @__PURE__ */ jsx56(SOD523, {});
|
|
3935
4007
|
case "sod882":
|
|
3936
|
-
return /* @__PURE__ */
|
|
4008
|
+
return /* @__PURE__ */ jsx56(SOD882, {});
|
|
3937
4009
|
case "sma":
|
|
3938
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx56(SMA, {});
|
|
3939
4011
|
case "smb":
|
|
3940
|
-
return /* @__PURE__ */
|
|
4012
|
+
return /* @__PURE__ */ jsx56(SMB, {});
|
|
3941
4013
|
case "smc":
|
|
3942
|
-
return /* @__PURE__ */
|
|
4014
|
+
return /* @__PURE__ */ jsx56(SMC, {});
|
|
3943
4015
|
case "smf":
|
|
3944
|
-
return /* @__PURE__ */
|
|
4016
|
+
return /* @__PURE__ */ jsx56(SMF, {});
|
|
3945
4017
|
case "sod123f":
|
|
3946
|
-
return /* @__PURE__ */
|
|
4018
|
+
return /* @__PURE__ */ jsx56(SOD123F, {});
|
|
3947
4019
|
case "sod123fl":
|
|
3948
|
-
return /* @__PURE__ */
|
|
4020
|
+
return /* @__PURE__ */ jsx56(SOD123FL, {});
|
|
3949
4021
|
case "sod123w":
|
|
3950
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ jsx56(SOD123W, {});
|
|
3951
4023
|
case "sod128":
|
|
3952
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ jsx56(SOD128, {});
|
|
4025
|
+
case "sod323":
|
|
4026
|
+
return /* @__PURE__ */ jsx56(SOD323, {});
|
|
3953
4027
|
case "sod923":
|
|
3954
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ jsx56(SOD923, {});
|
|
3955
4029
|
case "hc49":
|
|
3956
|
-
return /* @__PURE__ */
|
|
4030
|
+
return /* @__PURE__ */ jsx56(HC49, {});
|
|
3957
4031
|
case "micromelf":
|
|
3958
|
-
return /* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsx56(MicroMELF, {});
|
|
3959
4033
|
case "minimelf":
|
|
3960
|
-
return /* @__PURE__ */
|
|
4034
|
+
return /* @__PURE__ */ jsx56(MINIMELF, {});
|
|
3961
4035
|
case "melf":
|
|
3962
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ jsx56(MELF, {});
|
|
3963
4037
|
case "ms012":
|
|
3964
|
-
return /* @__PURE__ */
|
|
4038
|
+
return /* @__PURE__ */ jsx56(
|
|
3965
4039
|
MS012,
|
|
3966
4040
|
{
|
|
3967
4041
|
pinCount: fpJson.num_pins,
|
|
@@ -3971,7 +4045,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3971
4045
|
}
|
|
3972
4046
|
);
|
|
3973
4047
|
case "ms013":
|
|
3974
|
-
return /* @__PURE__ */
|
|
4048
|
+
return /* @__PURE__ */ jsx56(
|
|
3975
4049
|
MS013,
|
|
3976
4050
|
{
|
|
3977
4051
|
pinCount: fpJson.num_pins,
|
|
@@ -3981,39 +4055,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3981
4055
|
}
|
|
3982
4056
|
);
|
|
3983
4057
|
case "sot723":
|
|
3984
|
-
return /* @__PURE__ */
|
|
4058
|
+
return /* @__PURE__ */ jsx56(SOT723, {});
|
|
3985
4059
|
case "to220":
|
|
3986
|
-
return /* @__PURE__ */
|
|
4060
|
+
return /* @__PURE__ */ jsx56(TO220, {});
|
|
3987
4061
|
case "to92":
|
|
3988
|
-
return /* @__PURE__ */
|
|
4062
|
+
return /* @__PURE__ */ jsx56(TO92, {});
|
|
3989
4063
|
}
|
|
3990
4064
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3991
4065
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3992
4066
|
switch (fpJson.imperial) {
|
|
3993
4067
|
case "0402":
|
|
3994
|
-
return /* @__PURE__ */
|
|
4068
|
+
return /* @__PURE__ */ jsx56(A0402, { color });
|
|
3995
4069
|
case "0603":
|
|
3996
|
-
return /* @__PURE__ */
|
|
4070
|
+
return /* @__PURE__ */ jsx56(A0603, { color });
|
|
3997
4071
|
case "0805":
|
|
3998
|
-
return /* @__PURE__ */
|
|
4072
|
+
return /* @__PURE__ */ jsx56(A0805, { color });
|
|
3999
4073
|
case "0201":
|
|
4000
|
-
return /* @__PURE__ */
|
|
4074
|
+
return /* @__PURE__ */ jsx56(A0201, { color });
|
|
4001
4075
|
case "01005":
|
|
4002
|
-
return /* @__PURE__ */
|
|
4076
|
+
return /* @__PURE__ */ jsx56(A01005, { color });
|
|
4003
4077
|
case "1206":
|
|
4004
|
-
return /* @__PURE__ */
|
|
4078
|
+
return /* @__PURE__ */ jsx56(A1206, { color });
|
|
4005
4079
|
case "1210":
|
|
4006
|
-
return /* @__PURE__ */
|
|
4080
|
+
return /* @__PURE__ */ jsx56(A1210, { color });
|
|
4007
4081
|
case "2010":
|
|
4008
|
-
return /* @__PURE__ */
|
|
4082
|
+
return /* @__PURE__ */ jsx56(A2010, { color });
|
|
4009
4083
|
case "2512":
|
|
4010
|
-
return /* @__PURE__ */
|
|
4084
|
+
return /* @__PURE__ */ jsx56(A2512, { color });
|
|
4011
4085
|
}
|
|
4012
4086
|
return null;
|
|
4013
4087
|
};
|
|
4014
4088
|
|
|
4015
4089
|
// lib/SOT-23-3P.tsx
|
|
4016
|
-
import { Fragment as
|
|
4090
|
+
import { Fragment as Fragment51, jsx as jsx57, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
4017
4091
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4018
4092
|
const bodyWidth = 1.3;
|
|
4019
4093
|
const bodyLength10 = 2.9;
|
|
@@ -4024,8 +4098,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4024
4098
|
const padContactLength = 0.4;
|
|
4025
4099
|
const padThickness = leadThickness / 2;
|
|
4026
4100
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4027
|
-
return /* @__PURE__ */
|
|
4028
|
-
/* @__PURE__ */
|
|
4101
|
+
return /* @__PURE__ */ jsxs54(Fragment51, { children: [
|
|
4102
|
+
/* @__PURE__ */ jsx57(
|
|
4029
4103
|
SmdChipLead,
|
|
4030
4104
|
{
|
|
4031
4105
|
rotation: Math.PI,
|
|
@@ -4042,7 +4116,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4042
4116
|
},
|
|
4043
4117
|
1
|
|
4044
4118
|
),
|
|
4045
|
-
/* @__PURE__ */
|
|
4119
|
+
/* @__PURE__ */ jsx57(
|
|
4046
4120
|
SmdChipLead,
|
|
4047
4121
|
{
|
|
4048
4122
|
rotation: Math.PI,
|
|
@@ -4059,7 +4133,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4059
4133
|
},
|
|
4060
4134
|
2
|
|
4061
4135
|
),
|
|
4062
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ jsx57(
|
|
4063
4137
|
SmdChipLead,
|
|
4064
4138
|
{
|
|
4065
4139
|
position: {
|
|
@@ -4075,7 +4149,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4075
4149
|
},
|
|
4076
4150
|
3
|
|
4077
4151
|
),
|
|
4078
|
-
/* @__PURE__ */
|
|
4152
|
+
/* @__PURE__ */ jsx57(
|
|
4079
4153
|
ChipBody,
|
|
4080
4154
|
{
|
|
4081
4155
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4088,8 +4162,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4088
4162
|
};
|
|
4089
4163
|
|
|
4090
4164
|
// lib/SOT-563.tsx
|
|
4091
|
-
import { Cuboid as
|
|
4092
|
-
import { Fragment as
|
|
4165
|
+
import { Cuboid as Cuboid36, Translate as Translate24, Rotate as Rotate10, Colorize as Colorize29 } from "jscad-fiber";
|
|
4166
|
+
import { Fragment as Fragment52, jsx as jsx58, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4093
4167
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
4094
4168
|
const bodyWidth = 1.2;
|
|
4095
4169
|
const bodyLength10 = 1.6;
|
|
@@ -4099,28 +4173,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4099
4173
|
const leadHeight = 0.13;
|
|
4100
4174
|
const leadSpacing = 0.5;
|
|
4101
4175
|
const bodyZOffset = -0.4;
|
|
4102
|
-
return /* @__PURE__ */
|
|
4103
|
-
/* @__PURE__ */
|
|
4176
|
+
return /* @__PURE__ */ jsxs55(Fragment52, { children: [
|
|
4177
|
+
/* @__PURE__ */ jsx58(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx58(Translate24, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx58(Colorize29, { color: "grey", children: /* @__PURE__ */ jsx58(Cuboid36, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
4104
4178
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
4105
4179
|
// Left lead
|
|
4106
|
-
/* @__PURE__ */
|
|
4107
|
-
|
|
4180
|
+
/* @__PURE__ */ jsx58(
|
|
4181
|
+
Translate24,
|
|
4108
4182
|
{
|
|
4109
4183
|
center: [
|
|
4110
4184
|
-bodyWidth / 2 - 0.03,
|
|
4111
4185
|
yOffset * leadSpacing,
|
|
4112
4186
|
leadHeight / 2
|
|
4113
4187
|
],
|
|
4114
|
-
children: /* @__PURE__ */
|
|
4188
|
+
children: /* @__PURE__ */ jsx58(Cuboid36, { size: [leadLength, leadWidth, leadHeight] })
|
|
4115
4189
|
},
|
|
4116
4190
|
`left-${index}`
|
|
4117
4191
|
),
|
|
4118
4192
|
// Right lead
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
|
|
4193
|
+
/* @__PURE__ */ jsx58(
|
|
4194
|
+
Translate24,
|
|
4121
4195
|
{
|
|
4122
4196
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
4123
|
-
children: /* @__PURE__ */
|
|
4197
|
+
children: /* @__PURE__ */ jsx58(Cuboid36, { size: [leadLength, leadWidth, leadHeight] })
|
|
4124
4198
|
},
|
|
4125
4199
|
`right-${index}`
|
|
4126
4200
|
)
|
|
@@ -4129,7 +4203,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4129
4203
|
};
|
|
4130
4204
|
|
|
4131
4205
|
// lib/sod-123.tsx
|
|
4132
|
-
import { Fragment as
|
|
4206
|
+
import { Fragment as Fragment53, jsx as jsx59, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4133
4207
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
4134
4208
|
const bodyWidth = 2.9;
|
|
4135
4209
|
const bodyLength10 = 1.3;
|
|
@@ -4140,8 +4214,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4140
4214
|
const padContactLength = 0.4;
|
|
4141
4215
|
const padThickness = leadThickness / 2;
|
|
4142
4216
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
4143
|
-
return /* @__PURE__ */
|
|
4144
|
-
/* @__PURE__ */
|
|
4217
|
+
return /* @__PURE__ */ jsxs56(Fragment53, { children: [
|
|
4218
|
+
/* @__PURE__ */ jsx59(
|
|
4145
4219
|
SmdChipLead,
|
|
4146
4220
|
{
|
|
4147
4221
|
position: {
|
|
@@ -4157,7 +4231,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4157
4231
|
},
|
|
4158
4232
|
1
|
|
4159
4233
|
),
|
|
4160
|
-
/* @__PURE__ */
|
|
4234
|
+
/* @__PURE__ */ jsx59(
|
|
4161
4235
|
SmdChipLead,
|
|
4162
4236
|
{
|
|
4163
4237
|
rotation: Math.PI,
|
|
@@ -4174,7 +4248,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4174
4248
|
},
|
|
4175
4249
|
2
|
|
4176
4250
|
),
|
|
4177
|
-
/* @__PURE__ */
|
|
4251
|
+
/* @__PURE__ */ jsx59(
|
|
4178
4252
|
ChipBody,
|
|
4179
4253
|
{
|
|
4180
4254
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4222,6 +4296,7 @@ export {
|
|
|
4222
4296
|
SOD123FL,
|
|
4223
4297
|
SOD123W,
|
|
4224
4298
|
SOD128,
|
|
4299
|
+
SOD323,
|
|
4225
4300
|
SOD523,
|
|
4226
4301
|
SOD882,
|
|
4227
4302
|
SOD923,
|