jscad-electronics 0.0.98 → 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 +5 -1
- package/dist/index.js +211 -79
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +126 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -240,6 +240,10 @@ 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
|
+
|
|
245
|
+
declare const SOD323F: () => react_jsx_runtime.JSX.Element;
|
|
246
|
+
|
|
243
247
|
declare const SOD923: () => react_jsx_runtime.JSX.Element;
|
|
244
248
|
|
|
245
249
|
declare const SOT223: () => react_jsx_runtime.JSX.Element;
|
|
@@ -315,4 +319,4 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
315
319
|
|
|
316
320
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
317
321
|
|
|
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 };
|
|
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
|
@@ -3779,15 +3779,141 @@ 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
|
+
|
|
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
|
+
|
|
3782
3908
|
// lib/Footprinter3d.tsx
|
|
3783
|
-
import { jsx as
|
|
3909
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3784
3910
|
var Footprinter3d = ({ footprint }) => {
|
|
3785
3911
|
const fpJson = fp3.string(footprint).json();
|
|
3786
3912
|
switch (fpJson.fn) {
|
|
3787
3913
|
case "dip":
|
|
3788
|
-
return /* @__PURE__ */
|
|
3914
|
+
return /* @__PURE__ */ jsx57(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3789
3915
|
case "tssop":
|
|
3790
|
-
return /* @__PURE__ */
|
|
3916
|
+
return /* @__PURE__ */ jsx57(
|
|
3791
3917
|
Tssop,
|
|
3792
3918
|
{
|
|
3793
3919
|
pinCount: fpJson.num_pins,
|
|
@@ -3798,7 +3924,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3798
3924
|
}
|
|
3799
3925
|
);
|
|
3800
3926
|
case "msop":
|
|
3801
|
-
return /* @__PURE__ */
|
|
3927
|
+
return /* @__PURE__ */ jsx57(
|
|
3802
3928
|
MSOP,
|
|
3803
3929
|
{
|
|
3804
3930
|
pinCount: fpJson.num_pins,
|
|
@@ -3809,7 +3935,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3809
3935
|
}
|
|
3810
3936
|
);
|
|
3811
3937
|
case "vssop":
|
|
3812
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx57(
|
|
3813
3939
|
VSSOP,
|
|
3814
3940
|
{
|
|
3815
3941
|
pinCount: fpJson.num_pins,
|
|
@@ -3821,7 +3947,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3821
3947
|
}
|
|
3822
3948
|
);
|
|
3823
3949
|
case "qfp":
|
|
3824
|
-
return /* @__PURE__ */
|
|
3950
|
+
return /* @__PURE__ */ jsx57(
|
|
3825
3951
|
QFP,
|
|
3826
3952
|
{
|
|
3827
3953
|
pinCount: fpJson.num_pins,
|
|
@@ -3832,12 +3958,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3832
3958
|
}
|
|
3833
3959
|
);
|
|
3834
3960
|
case "tqfp":
|
|
3835
|
-
return /* @__PURE__ */
|
|
3961
|
+
return /* @__PURE__ */ jsx57(tqfp_default, {});
|
|
3836
3962
|
case "lqfp":
|
|
3837
|
-
return /* @__PURE__ */
|
|
3963
|
+
return /* @__PURE__ */ jsx57(LQFP, { pinCount: fpJson.num_pins });
|
|
3838
3964
|
case "qfn": {
|
|
3839
3965
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3840
|
-
return /* @__PURE__ */
|
|
3966
|
+
return /* @__PURE__ */ jsx57(
|
|
3841
3967
|
qfn_default,
|
|
3842
3968
|
{
|
|
3843
3969
|
num_pins: fpJson.num_pins,
|
|
@@ -3855,7 +3981,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3855
3981
|
}
|
|
3856
3982
|
case "dfn": {
|
|
3857
3983
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3858
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ jsx57(
|
|
3859
3985
|
DFN,
|
|
3860
3986
|
{
|
|
3861
3987
|
num_pins: fpJson.num_pins,
|
|
@@ -3873,45 +3999,47 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3873
3999
|
}
|
|
3874
4000
|
case "pinrow":
|
|
3875
4001
|
if (fpJson.male)
|
|
3876
|
-
return /* @__PURE__ */
|
|
4002
|
+
return /* @__PURE__ */ jsx57(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3877
4003
|
if (fpJson.female)
|
|
3878
|
-
return /* @__PURE__ */
|
|
4004
|
+
return /* @__PURE__ */ jsx57(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3879
4005
|
case "cap": {
|
|
3880
4006
|
switch (fpJson.imperial) {
|
|
3881
4007
|
case "0402":
|
|
3882
|
-
return /* @__PURE__ */
|
|
4008
|
+
return /* @__PURE__ */ jsx57(A0402, { color: "#856c4d" });
|
|
3883
4009
|
case "0603":
|
|
3884
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx57(A0603, { color: "#856c4d" });
|
|
3885
4011
|
case "0805":
|
|
3886
|
-
return /* @__PURE__ */
|
|
4012
|
+
return /* @__PURE__ */ jsx57(A0805, { color: "#856c4d" });
|
|
3887
4013
|
case "0201":
|
|
3888
|
-
return /* @__PURE__ */
|
|
4014
|
+
return /* @__PURE__ */ jsx57(A0201, { color: "#856c4d" });
|
|
3889
4015
|
case "01005":
|
|
3890
|
-
return /* @__PURE__ */
|
|
4016
|
+
return /* @__PURE__ */ jsx57(A01005, { color: "#856c4d" });
|
|
3891
4017
|
case "1206":
|
|
3892
|
-
return /* @__PURE__ */
|
|
4018
|
+
return /* @__PURE__ */ jsx57(A1206, { color: "#856c4d" });
|
|
3893
4019
|
case "1210":
|
|
3894
|
-
return /* @__PURE__ */
|
|
4020
|
+
return /* @__PURE__ */ jsx57(A1210, { color: "#856c4d" });
|
|
3895
4021
|
case "2010":
|
|
3896
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ jsx57(A2010, { color: "#856c4d" });
|
|
3897
4023
|
case "2512":
|
|
3898
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ jsx57(A2512, { color: "#856c4d" });
|
|
3899
4025
|
}
|
|
3900
4026
|
}
|
|
3901
4027
|
case "sot235":
|
|
3902
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ jsx57(SOT_235_default, {});
|
|
3903
4029
|
case "sot457":
|
|
3904
|
-
return /* @__PURE__ */
|
|
4030
|
+
return /* @__PURE__ */ jsx57(SOT457, {});
|
|
3905
4031
|
case "sot223":
|
|
3906
|
-
return /* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsx57(SOT223, {});
|
|
3907
4033
|
case "sot23w":
|
|
3908
|
-
return /* @__PURE__ */
|
|
4034
|
+
return /* @__PURE__ */ jsx57(SOT23W, {});
|
|
3909
4035
|
case "sot323":
|
|
3910
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ jsx57(SOT323, {});
|
|
4037
|
+
case "sod323f":
|
|
4038
|
+
return /* @__PURE__ */ jsx57(SOD323F, {});
|
|
3911
4039
|
case "sot363":
|
|
3912
|
-
return /* @__PURE__ */
|
|
4040
|
+
return /* @__PURE__ */ jsx57(SOT_363_default, {});
|
|
3913
4041
|
case "pushbutton":
|
|
3914
|
-
return /* @__PURE__ */
|
|
4042
|
+
return /* @__PURE__ */ jsx57(
|
|
3915
4043
|
PushButton,
|
|
3916
4044
|
{
|
|
3917
4045
|
width: fpJson.w,
|
|
@@ -3920,7 +4048,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3920
4048
|
}
|
|
3921
4049
|
);
|
|
3922
4050
|
case "soic":
|
|
3923
|
-
return /* @__PURE__ */
|
|
4051
|
+
return /* @__PURE__ */ jsx57(
|
|
3924
4052
|
SOIC,
|
|
3925
4053
|
{
|
|
3926
4054
|
pinCount: fpJson.num_pins,
|
|
@@ -3931,37 +4059,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3931
4059
|
}
|
|
3932
4060
|
);
|
|
3933
4061
|
case "sod523":
|
|
3934
|
-
return /* @__PURE__ */
|
|
4062
|
+
return /* @__PURE__ */ jsx57(SOD523, {});
|
|
3935
4063
|
case "sod882":
|
|
3936
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsx57(SOD882, {});
|
|
3937
4065
|
case "sma":
|
|
3938
|
-
return /* @__PURE__ */
|
|
4066
|
+
return /* @__PURE__ */ jsx57(SMA, {});
|
|
3939
4067
|
case "smb":
|
|
3940
|
-
return /* @__PURE__ */
|
|
4068
|
+
return /* @__PURE__ */ jsx57(SMB, {});
|
|
3941
4069
|
case "smc":
|
|
3942
|
-
return /* @__PURE__ */
|
|
4070
|
+
return /* @__PURE__ */ jsx57(SMC, {});
|
|
3943
4071
|
case "smf":
|
|
3944
|
-
return /* @__PURE__ */
|
|
4072
|
+
return /* @__PURE__ */ jsx57(SMF, {});
|
|
3945
4073
|
case "sod123f":
|
|
3946
|
-
return /* @__PURE__ */
|
|
4074
|
+
return /* @__PURE__ */ jsx57(SOD123F, {});
|
|
3947
4075
|
case "sod123fl":
|
|
3948
|
-
return /* @__PURE__ */
|
|
4076
|
+
return /* @__PURE__ */ jsx57(SOD123FL, {});
|
|
3949
4077
|
case "sod123w":
|
|
3950
|
-
return /* @__PURE__ */
|
|
4078
|
+
return /* @__PURE__ */ jsx57(SOD123W, {});
|
|
3951
4079
|
case "sod128":
|
|
3952
|
-
return /* @__PURE__ */
|
|
4080
|
+
return /* @__PURE__ */ jsx57(SOD128, {});
|
|
4081
|
+
case "sod323":
|
|
4082
|
+
return /* @__PURE__ */ jsx57(SOD323, {});
|
|
3953
4083
|
case "sod923":
|
|
3954
|
-
return /* @__PURE__ */
|
|
4084
|
+
return /* @__PURE__ */ jsx57(SOD923, {});
|
|
3955
4085
|
case "hc49":
|
|
3956
|
-
return /* @__PURE__ */
|
|
4086
|
+
return /* @__PURE__ */ jsx57(HC49, {});
|
|
3957
4087
|
case "micromelf":
|
|
3958
|
-
return /* @__PURE__ */
|
|
4088
|
+
return /* @__PURE__ */ jsx57(MicroMELF, {});
|
|
3959
4089
|
case "minimelf":
|
|
3960
|
-
return /* @__PURE__ */
|
|
4090
|
+
return /* @__PURE__ */ jsx57(MINIMELF, {});
|
|
3961
4091
|
case "melf":
|
|
3962
|
-
return /* @__PURE__ */
|
|
4092
|
+
return /* @__PURE__ */ jsx57(MELF, {});
|
|
3963
4093
|
case "ms012":
|
|
3964
|
-
return /* @__PURE__ */
|
|
4094
|
+
return /* @__PURE__ */ jsx57(
|
|
3965
4095
|
MS012,
|
|
3966
4096
|
{
|
|
3967
4097
|
pinCount: fpJson.num_pins,
|
|
@@ -3971,7 +4101,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3971
4101
|
}
|
|
3972
4102
|
);
|
|
3973
4103
|
case "ms013":
|
|
3974
|
-
return /* @__PURE__ */
|
|
4104
|
+
return /* @__PURE__ */ jsx57(
|
|
3975
4105
|
MS013,
|
|
3976
4106
|
{
|
|
3977
4107
|
pinCount: fpJson.num_pins,
|
|
@@ -3981,39 +4111,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3981
4111
|
}
|
|
3982
4112
|
);
|
|
3983
4113
|
case "sot723":
|
|
3984
|
-
return /* @__PURE__ */
|
|
4114
|
+
return /* @__PURE__ */ jsx57(SOT723, {});
|
|
3985
4115
|
case "to220":
|
|
3986
|
-
return /* @__PURE__ */
|
|
4116
|
+
return /* @__PURE__ */ jsx57(TO220, {});
|
|
3987
4117
|
case "to92":
|
|
3988
|
-
return /* @__PURE__ */
|
|
4118
|
+
return /* @__PURE__ */ jsx57(TO92, {});
|
|
3989
4119
|
}
|
|
3990
4120
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3991
4121
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3992
4122
|
switch (fpJson.imperial) {
|
|
3993
4123
|
case "0402":
|
|
3994
|
-
return /* @__PURE__ */
|
|
4124
|
+
return /* @__PURE__ */ jsx57(A0402, { color });
|
|
3995
4125
|
case "0603":
|
|
3996
|
-
return /* @__PURE__ */
|
|
4126
|
+
return /* @__PURE__ */ jsx57(A0603, { color });
|
|
3997
4127
|
case "0805":
|
|
3998
|
-
return /* @__PURE__ */
|
|
4128
|
+
return /* @__PURE__ */ jsx57(A0805, { color });
|
|
3999
4129
|
case "0201":
|
|
4000
|
-
return /* @__PURE__ */
|
|
4130
|
+
return /* @__PURE__ */ jsx57(A0201, { color });
|
|
4001
4131
|
case "01005":
|
|
4002
|
-
return /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ jsx57(A01005, { color });
|
|
4003
4133
|
case "1206":
|
|
4004
|
-
return /* @__PURE__ */
|
|
4134
|
+
return /* @__PURE__ */ jsx57(A1206, { color });
|
|
4005
4135
|
case "1210":
|
|
4006
|
-
return /* @__PURE__ */
|
|
4136
|
+
return /* @__PURE__ */ jsx57(A1210, { color });
|
|
4007
4137
|
case "2010":
|
|
4008
|
-
return /* @__PURE__ */
|
|
4138
|
+
return /* @__PURE__ */ jsx57(A2010, { color });
|
|
4009
4139
|
case "2512":
|
|
4010
|
-
return /* @__PURE__ */
|
|
4140
|
+
return /* @__PURE__ */ jsx57(A2512, { color });
|
|
4011
4141
|
}
|
|
4012
4142
|
return null;
|
|
4013
4143
|
};
|
|
4014
4144
|
|
|
4015
4145
|
// lib/SOT-23-3P.tsx
|
|
4016
|
-
import { Fragment as
|
|
4146
|
+
import { Fragment as Fragment52, jsx as jsx58, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4017
4147
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4018
4148
|
const bodyWidth = 1.3;
|
|
4019
4149
|
const bodyLength10 = 2.9;
|
|
@@ -4024,8 +4154,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4024
4154
|
const padContactLength = 0.4;
|
|
4025
4155
|
const padThickness = leadThickness / 2;
|
|
4026
4156
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4027
|
-
return /* @__PURE__ */
|
|
4028
|
-
/* @__PURE__ */
|
|
4157
|
+
return /* @__PURE__ */ jsxs55(Fragment52, { children: [
|
|
4158
|
+
/* @__PURE__ */ jsx58(
|
|
4029
4159
|
SmdChipLead,
|
|
4030
4160
|
{
|
|
4031
4161
|
rotation: Math.PI,
|
|
@@ -4042,7 +4172,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4042
4172
|
},
|
|
4043
4173
|
1
|
|
4044
4174
|
),
|
|
4045
|
-
/* @__PURE__ */
|
|
4175
|
+
/* @__PURE__ */ jsx58(
|
|
4046
4176
|
SmdChipLead,
|
|
4047
4177
|
{
|
|
4048
4178
|
rotation: Math.PI,
|
|
@@ -4059,7 +4189,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4059
4189
|
},
|
|
4060
4190
|
2
|
|
4061
4191
|
),
|
|
4062
|
-
/* @__PURE__ */
|
|
4192
|
+
/* @__PURE__ */ jsx58(
|
|
4063
4193
|
SmdChipLead,
|
|
4064
4194
|
{
|
|
4065
4195
|
position: {
|
|
@@ -4075,7 +4205,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4075
4205
|
},
|
|
4076
4206
|
3
|
|
4077
4207
|
),
|
|
4078
|
-
/* @__PURE__ */
|
|
4208
|
+
/* @__PURE__ */ jsx58(
|
|
4079
4209
|
ChipBody,
|
|
4080
4210
|
{
|
|
4081
4211
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4088,8 +4218,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4088
4218
|
};
|
|
4089
4219
|
|
|
4090
4220
|
// lib/SOT-563.tsx
|
|
4091
|
-
import { Cuboid as
|
|
4092
|
-
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";
|
|
4093
4223
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
4094
4224
|
const bodyWidth = 1.2;
|
|
4095
4225
|
const bodyLength10 = 1.6;
|
|
@@ -4099,28 +4229,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4099
4229
|
const leadHeight = 0.13;
|
|
4100
4230
|
const leadSpacing = 0.5;
|
|
4101
4231
|
const bodyZOffset = -0.4;
|
|
4102
|
-
return /* @__PURE__ */
|
|
4103
|
-
/* @__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] }) }) }) }),
|
|
4104
4234
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
4105
4235
|
// Left lead
|
|
4106
|
-
/* @__PURE__ */
|
|
4107
|
-
|
|
4236
|
+
/* @__PURE__ */ jsx59(
|
|
4237
|
+
Translate25,
|
|
4108
4238
|
{
|
|
4109
4239
|
center: [
|
|
4110
4240
|
-bodyWidth / 2 - 0.03,
|
|
4111
4241
|
yOffset * leadSpacing,
|
|
4112
4242
|
leadHeight / 2
|
|
4113
4243
|
],
|
|
4114
|
-
children: /* @__PURE__ */
|
|
4244
|
+
children: /* @__PURE__ */ jsx59(Cuboid37, { size: [leadLength, leadWidth, leadHeight] })
|
|
4115
4245
|
},
|
|
4116
4246
|
`left-${index}`
|
|
4117
4247
|
),
|
|
4118
4248
|
// Right lead
|
|
4119
|
-
/* @__PURE__ */
|
|
4120
|
-
|
|
4249
|
+
/* @__PURE__ */ jsx59(
|
|
4250
|
+
Translate25,
|
|
4121
4251
|
{
|
|
4122
4252
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
4123
|
-
children: /* @__PURE__ */
|
|
4253
|
+
children: /* @__PURE__ */ jsx59(Cuboid37, { size: [leadLength, leadWidth, leadHeight] })
|
|
4124
4254
|
},
|
|
4125
4255
|
`right-${index}`
|
|
4126
4256
|
)
|
|
@@ -4129,7 +4259,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4129
4259
|
};
|
|
4130
4260
|
|
|
4131
4261
|
// lib/sod-123.tsx
|
|
4132
|
-
import { Fragment as
|
|
4262
|
+
import { Fragment as Fragment54, jsx as jsx60, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
4133
4263
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
4134
4264
|
const bodyWidth = 2.9;
|
|
4135
4265
|
const bodyLength10 = 1.3;
|
|
@@ -4140,8 +4270,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4140
4270
|
const padContactLength = 0.4;
|
|
4141
4271
|
const padThickness = leadThickness / 2;
|
|
4142
4272
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
4143
|
-
return /* @__PURE__ */
|
|
4144
|
-
/* @__PURE__ */
|
|
4273
|
+
return /* @__PURE__ */ jsxs57(Fragment54, { children: [
|
|
4274
|
+
/* @__PURE__ */ jsx60(
|
|
4145
4275
|
SmdChipLead,
|
|
4146
4276
|
{
|
|
4147
4277
|
position: {
|
|
@@ -4157,7 +4287,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4157
4287
|
},
|
|
4158
4288
|
1
|
|
4159
4289
|
),
|
|
4160
|
-
/* @__PURE__ */
|
|
4290
|
+
/* @__PURE__ */ jsx60(
|
|
4161
4291
|
SmdChipLead,
|
|
4162
4292
|
{
|
|
4163
4293
|
rotation: Math.PI,
|
|
@@ -4174,7 +4304,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4174
4304
|
},
|
|
4175
4305
|
2
|
|
4176
4306
|
),
|
|
4177
|
-
/* @__PURE__ */
|
|
4307
|
+
/* @__PURE__ */ jsx60(
|
|
4178
4308
|
ChipBody,
|
|
4179
4309
|
{
|
|
4180
4310
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4222,6 +4352,8 @@ export {
|
|
|
4222
4352
|
SOD123FL,
|
|
4223
4353
|
SOD123W,
|
|
4224
4354
|
SOD128,
|
|
4355
|
+
SOD323,
|
|
4356
|
+
SOD323F,
|
|
4225
4357
|
SOD523,
|
|
4226
4358
|
SOD882,
|
|
4227
4359
|
SOD923,
|