jscad-electronics 0.0.83 → 0.0.84
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 +10 -1
- package/dist/index.js +162 -94
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +59 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -251,6 +251,15 @@ interface MELFProps {
|
|
|
251
251
|
}
|
|
252
252
|
declare const MELF: ({ bodyLength, bodyDiameter, color, contactColor, }: MELFProps) => react_jsx_runtime.JSX.Element;
|
|
253
253
|
|
|
254
|
+
interface MicroMELFProps {
|
|
255
|
+
bodyLength?: number;
|
|
256
|
+
bodyDiameter?: number;
|
|
257
|
+
color?: string;
|
|
258
|
+
contactColor?: string;
|
|
259
|
+
cathodeIdentification?: string;
|
|
260
|
+
}
|
|
261
|
+
declare const MicroMELF: ({ bodyLength, bodyDiameter, color, contactColor, cathodeIdentification, }: MicroMELFProps) => react_jsx_runtime.JSX.Element;
|
|
262
|
+
|
|
254
263
|
interface HC49Props {
|
|
255
264
|
/** overall body length (mm) */
|
|
256
265
|
bodyLength?: number;
|
|
@@ -280,4 +289,4 @@ declare const MS012: ({ pinCount, padContactLength, leadWidth, pitch, }: {
|
|
|
280
289
|
padContactLength?: number;
|
|
281
290
|
}) => react_jsx_runtime.JSX.Element;
|
|
282
291
|
|
|
283
|
-
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, MSOP, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD523, SOD923, SOT223, SOT233P, SOT323, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TQFP, Tssop, VSSOP };
|
|
292
|
+
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, MSOP, MicroMELF, type MicroMELFProps, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD523, SOD923, SOT223, SOT233P, SOT323, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -2738,9 +2738,74 @@ var HC49 = ({
|
|
|
2738
2738
|
] });
|
|
2739
2739
|
};
|
|
2740
2740
|
|
|
2741
|
-
// lib/
|
|
2742
|
-
import {
|
|
2741
|
+
// lib/MicroMELF.tsx
|
|
2742
|
+
import {
|
|
2743
|
+
Colorize as Colorize19,
|
|
2744
|
+
Cylinder as Cylinder7,
|
|
2745
|
+
RoundedCylinder as RoundedCylinder2,
|
|
2746
|
+
Rotate as Rotate6,
|
|
2747
|
+
RoundedCuboid as RoundedCuboid2
|
|
2748
|
+
} from "jscad-fiber";
|
|
2743
2749
|
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2750
|
+
var MicroMELF = ({
|
|
2751
|
+
bodyLength: bodyLength10 = 1.4,
|
|
2752
|
+
bodyDiameter = 1.1,
|
|
2753
|
+
color = "#3a3a3aff",
|
|
2754
|
+
contactColor = "#c6c6c6",
|
|
2755
|
+
cathodeIdentification = "#111"
|
|
2756
|
+
}) => {
|
|
2757
|
+
const padLength = 0.2;
|
|
2758
|
+
return /* @__PURE__ */ jsxs39(Fragment37, { children: [
|
|
2759
|
+
/* @__PURE__ */ jsx41(Colorize19, { color, children: /* @__PURE__ */ jsxs39(Rotate6, { rotation: [0, "90deg", 0], children: [
|
|
2760
|
+
/* @__PURE__ */ jsx41(
|
|
2761
|
+
RoundedCuboid2,
|
|
2762
|
+
{
|
|
2763
|
+
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
2764
|
+
roundRadius: padLength,
|
|
2765
|
+
center: [-bodyDiameter / 2, 0, 0.05]
|
|
2766
|
+
}
|
|
2767
|
+
),
|
|
2768
|
+
/* @__PURE__ */ jsx41(
|
|
2769
|
+
Cylinder7,
|
|
2770
|
+
{
|
|
2771
|
+
height: padLength / 2,
|
|
2772
|
+
radius: bodyDiameter / 2 - padLength,
|
|
2773
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2 + padLength / 2]
|
|
2774
|
+
}
|
|
2775
|
+
)
|
|
2776
|
+
] }) }),
|
|
2777
|
+
/* @__PURE__ */ jsx41(Colorize19, { color: cathodeIdentification, children: /* @__PURE__ */ jsx41(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx41(
|
|
2778
|
+
RoundedCuboid2,
|
|
2779
|
+
{
|
|
2780
|
+
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
2781
|
+
roundRadius: padLength,
|
|
2782
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
2783
|
+
}
|
|
2784
|
+
) }) }),
|
|
2785
|
+
/* @__PURE__ */ jsx41(Colorize19, { color: contactColor, children: /* @__PURE__ */ jsx41(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx41(
|
|
2786
|
+
RoundedCylinder2,
|
|
2787
|
+
{
|
|
2788
|
+
height: padLength,
|
|
2789
|
+
radius: bodyDiameter / 2,
|
|
2790
|
+
roundRadius: padLength / 3,
|
|
2791
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2792
|
+
}
|
|
2793
|
+
) }) }),
|
|
2794
|
+
/* @__PURE__ */ jsx41(Colorize19, { color: contactColor, children: /* @__PURE__ */ jsx41(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx41(
|
|
2795
|
+
RoundedCylinder2,
|
|
2796
|
+
{
|
|
2797
|
+
height: padLength,
|
|
2798
|
+
radius: bodyDiameter / 2,
|
|
2799
|
+
roundRadius: padLength / 3,
|
|
2800
|
+
center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
|
|
2801
|
+
}
|
|
2802
|
+
) }) })
|
|
2803
|
+
] });
|
|
2804
|
+
};
|
|
2805
|
+
|
|
2806
|
+
// lib/MINIMELF.tsx
|
|
2807
|
+
import { Colorize as Colorize20, RoundedCylinder as RoundedCylinder3, Rotate as Rotate7 } from "jscad-fiber";
|
|
2808
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2744
2809
|
var MINIMELF = ({
|
|
2745
2810
|
bodyLength: bodyLength10 = 3.5,
|
|
2746
2811
|
bodyDiameter = 1.5,
|
|
@@ -2748,9 +2813,9 @@ var MINIMELF = ({
|
|
|
2748
2813
|
contactColor = "#c6c6c6"
|
|
2749
2814
|
}) => {
|
|
2750
2815
|
const padLength = 0.5;
|
|
2751
|
-
return /* @__PURE__ */
|
|
2752
|
-
/* @__PURE__ */
|
|
2753
|
-
|
|
2816
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2817
|
+
/* @__PURE__ */ jsx42(Colorize20, { color, children: /* @__PURE__ */ jsx42(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2818
|
+
RoundedCylinder3,
|
|
2754
2819
|
{
|
|
2755
2820
|
height: bodyLength10,
|
|
2756
2821
|
radius: bodyDiameter / 2,
|
|
@@ -2758,8 +2823,8 @@ var MINIMELF = ({
|
|
|
2758
2823
|
center: [-bodyDiameter / 2, 0, 0]
|
|
2759
2824
|
}
|
|
2760
2825
|
) }) }),
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
|
|
2826
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: contactColor, children: /* @__PURE__ */ jsx42(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2827
|
+
RoundedCylinder3,
|
|
2763
2828
|
{
|
|
2764
2829
|
height: padLength,
|
|
2765
2830
|
radius: bodyDiameter / 2,
|
|
@@ -2767,8 +2832,8 @@ var MINIMELF = ({
|
|
|
2767
2832
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2768
2833
|
}
|
|
2769
2834
|
) }) }),
|
|
2770
|
-
/* @__PURE__ */
|
|
2771
|
-
|
|
2835
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: contactColor, children: /* @__PURE__ */ jsx42(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2836
|
+
RoundedCylinder3,
|
|
2772
2837
|
{
|
|
2773
2838
|
height: padLength,
|
|
2774
2839
|
radius: bodyDiameter / 2,
|
|
@@ -2780,8 +2845,8 @@ var MINIMELF = ({
|
|
|
2780
2845
|
};
|
|
2781
2846
|
|
|
2782
2847
|
// lib/MELF.tsx
|
|
2783
|
-
import { Colorize as
|
|
2784
|
-
import { Fragment as
|
|
2848
|
+
import { Colorize as Colorize21, RoundedCylinder as RoundedCylinder4, Rotate as Rotate8 } from "jscad-fiber";
|
|
2849
|
+
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2785
2850
|
var MELF = ({
|
|
2786
2851
|
bodyLength: bodyLength10 = 3.9,
|
|
2787
2852
|
bodyDiameter = 2.5,
|
|
@@ -2789,9 +2854,9 @@ var MELF = ({
|
|
|
2789
2854
|
contactColor = "#c6c6c6"
|
|
2790
2855
|
}) => {
|
|
2791
2856
|
const padLength = 0.55;
|
|
2792
|
-
return /* @__PURE__ */
|
|
2793
|
-
/* @__PURE__ */
|
|
2794
|
-
|
|
2857
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2858
|
+
/* @__PURE__ */ jsx43(Colorize21, { color, children: /* @__PURE__ */ jsx43(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2859
|
+
RoundedCylinder4,
|
|
2795
2860
|
{
|
|
2796
2861
|
height: bodyLength10,
|
|
2797
2862
|
radius: bodyDiameter / 2,
|
|
@@ -2799,8 +2864,8 @@ var MELF = ({
|
|
|
2799
2864
|
center: [-bodyDiameter / 2, 0, 0]
|
|
2800
2865
|
}
|
|
2801
2866
|
) }) }),
|
|
2802
|
-
/* @__PURE__ */
|
|
2803
|
-
|
|
2867
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2868
|
+
RoundedCylinder4,
|
|
2804
2869
|
{
|
|
2805
2870
|
height: padLength,
|
|
2806
2871
|
radius: bodyDiameter / 2,
|
|
@@ -2808,8 +2873,8 @@ var MELF = ({
|
|
|
2808
2873
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2809
2874
|
}
|
|
2810
2875
|
) }) }),
|
|
2811
|
-
/* @__PURE__ */
|
|
2812
|
-
|
|
2876
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2877
|
+
RoundedCylinder4,
|
|
2813
2878
|
{
|
|
2814
2879
|
height: padLength,
|
|
2815
2880
|
radius: bodyDiameter / 2,
|
|
@@ -2821,7 +2886,7 @@ var MELF = ({
|
|
|
2821
2886
|
};
|
|
2822
2887
|
|
|
2823
2888
|
// lib/ms012.tsx
|
|
2824
|
-
import { Fragment as
|
|
2889
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2825
2890
|
var MS012 = ({
|
|
2826
2891
|
pinCount,
|
|
2827
2892
|
padContactLength = 0.6,
|
|
@@ -2836,8 +2901,8 @@ var MS012 = ({
|
|
|
2836
2901
|
const bodyLength10 = 3.9;
|
|
2837
2902
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
2838
2903
|
const leadThickness = 0.2;
|
|
2839
|
-
return /* @__PURE__ */
|
|
2840
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2904
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2905
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx44(
|
|
2841
2906
|
SmdChipLead,
|
|
2842
2907
|
{
|
|
2843
2908
|
position: {
|
|
@@ -2853,7 +2918,7 @@ var MS012 = ({
|
|
|
2853
2918
|
},
|
|
2854
2919
|
i
|
|
2855
2920
|
)),
|
|
2856
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2921
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx44(
|
|
2857
2922
|
SmdChipLead,
|
|
2858
2923
|
{
|
|
2859
2924
|
rotation: Math.PI,
|
|
@@ -2870,7 +2935,7 @@ var MS012 = ({
|
|
|
2870
2935
|
},
|
|
2871
2936
|
`right-${i}`
|
|
2872
2937
|
)),
|
|
2873
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ jsx44(
|
|
2874
2939
|
ChipBody,
|
|
2875
2940
|
{
|
|
2876
2941
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -2886,14 +2951,14 @@ var MS012 = ({
|
|
|
2886
2951
|
};
|
|
2887
2952
|
|
|
2888
2953
|
// lib/Footprinter3d.tsx
|
|
2889
|
-
import { jsx as
|
|
2954
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2890
2955
|
var Footprinter3d = ({ footprint }) => {
|
|
2891
2956
|
const fpJson = fp3.string(footprint).json();
|
|
2892
2957
|
switch (fpJson.fn) {
|
|
2893
2958
|
case "dip":
|
|
2894
|
-
return /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ jsx45(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
2895
2960
|
case "tssop":
|
|
2896
|
-
return /* @__PURE__ */
|
|
2961
|
+
return /* @__PURE__ */ jsx45(
|
|
2897
2962
|
Tssop,
|
|
2898
2963
|
{
|
|
2899
2964
|
pinCount: fpJson.num_pins,
|
|
@@ -2904,7 +2969,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2904
2969
|
}
|
|
2905
2970
|
);
|
|
2906
2971
|
case "msop":
|
|
2907
|
-
return /* @__PURE__ */
|
|
2972
|
+
return /* @__PURE__ */ jsx45(
|
|
2908
2973
|
MSOP,
|
|
2909
2974
|
{
|
|
2910
2975
|
pinCount: fpJson.num_pins,
|
|
@@ -2915,7 +2980,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2915
2980
|
}
|
|
2916
2981
|
);
|
|
2917
2982
|
case "vssop":
|
|
2918
|
-
return /* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsx45(
|
|
2919
2984
|
VSSOP,
|
|
2920
2985
|
{
|
|
2921
2986
|
pinCount: fpJson.num_pins,
|
|
@@ -2927,7 +2992,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2927
2992
|
}
|
|
2928
2993
|
);
|
|
2929
2994
|
case "qfp":
|
|
2930
|
-
return /* @__PURE__ */
|
|
2995
|
+
return /* @__PURE__ */ jsx45(
|
|
2931
2996
|
QFP,
|
|
2932
2997
|
{
|
|
2933
2998
|
pinCount: fpJson.num_pins,
|
|
@@ -2938,12 +3003,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2938
3003
|
}
|
|
2939
3004
|
);
|
|
2940
3005
|
case "tqfp":
|
|
2941
|
-
return /* @__PURE__ */
|
|
3006
|
+
return /* @__PURE__ */ jsx45(tqfp_default, {});
|
|
2942
3007
|
case "lqfp":
|
|
2943
|
-
return /* @__PURE__ */
|
|
3008
|
+
return /* @__PURE__ */ jsx45(LQFP, { pinCount: fpJson.num_pins });
|
|
2944
3009
|
case "qfn": {
|
|
2945
3010
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2946
|
-
return /* @__PURE__ */
|
|
3011
|
+
return /* @__PURE__ */ jsx45(
|
|
2947
3012
|
qfn_default,
|
|
2948
3013
|
{
|
|
2949
3014
|
num_pins: fpJson.num_pins,
|
|
@@ -2961,7 +3026,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2961
3026
|
}
|
|
2962
3027
|
case "dfn": {
|
|
2963
3028
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2964
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ jsx45(
|
|
2965
3030
|
DFN,
|
|
2966
3031
|
{
|
|
2967
3032
|
num_pins: fpJson.num_pins,
|
|
@@ -2979,39 +3044,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2979
3044
|
}
|
|
2980
3045
|
case "pinrow":
|
|
2981
3046
|
if (fpJson.male)
|
|
2982
|
-
return /* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ jsx45(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2983
3048
|
if (fpJson.female)
|
|
2984
|
-
return /* @__PURE__ */
|
|
3049
|
+
return /* @__PURE__ */ jsx45(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2985
3050
|
case "cap": {
|
|
2986
3051
|
switch (fpJson.imperial) {
|
|
2987
3052
|
case "0402":
|
|
2988
|
-
return /* @__PURE__ */
|
|
3053
|
+
return /* @__PURE__ */ jsx45(A0402, { color: "#856c4d" });
|
|
2989
3054
|
case "0603":
|
|
2990
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx45(A0603, { color: "#856c4d" });
|
|
2991
3056
|
case "0805":
|
|
2992
|
-
return /* @__PURE__ */
|
|
3057
|
+
return /* @__PURE__ */ jsx45(A0805, { color: "#856c4d" });
|
|
2993
3058
|
case "0201":
|
|
2994
|
-
return /* @__PURE__ */
|
|
3059
|
+
return /* @__PURE__ */ jsx45(A0201, { color: "#856c4d" });
|
|
2995
3060
|
case "01005":
|
|
2996
|
-
return /* @__PURE__ */
|
|
3061
|
+
return /* @__PURE__ */ jsx45(A01005, { color: "#856c4d" });
|
|
2997
3062
|
case "1206":
|
|
2998
|
-
return /* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ jsx45(A1206, { color: "#856c4d" });
|
|
2999
3064
|
case "1210":
|
|
3000
|
-
return /* @__PURE__ */
|
|
3065
|
+
return /* @__PURE__ */ jsx45(A1210, { color: "#856c4d" });
|
|
3001
3066
|
case "2010":
|
|
3002
|
-
return /* @__PURE__ */
|
|
3067
|
+
return /* @__PURE__ */ jsx45(A2010, { color: "#856c4d" });
|
|
3003
3068
|
case "2512":
|
|
3004
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ jsx45(A2512, { color: "#856c4d" });
|
|
3005
3070
|
}
|
|
3006
3071
|
}
|
|
3007
3072
|
case "sot235":
|
|
3008
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ jsx45(SOT_235_default, {});
|
|
3009
3074
|
case "sot223":
|
|
3010
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ jsx45(SOT223, {});
|
|
3011
3076
|
case "sot323":
|
|
3012
|
-
return /* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx45(SOT323, {});
|
|
3013
3078
|
case "pushbutton":
|
|
3014
|
-
return /* @__PURE__ */
|
|
3079
|
+
return /* @__PURE__ */ jsx45(
|
|
3015
3080
|
PushButton,
|
|
3016
3081
|
{
|
|
3017
3082
|
width: fpJson.w,
|
|
@@ -3020,7 +3085,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3020
3085
|
}
|
|
3021
3086
|
);
|
|
3022
3087
|
case "soic":
|
|
3023
|
-
return /* @__PURE__ */
|
|
3088
|
+
return /* @__PURE__ */ jsx45(
|
|
3024
3089
|
SOIC,
|
|
3025
3090
|
{
|
|
3026
3091
|
pinCount: fpJson.num_pins,
|
|
@@ -3031,29 +3096,31 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3031
3096
|
}
|
|
3032
3097
|
);
|
|
3033
3098
|
case "sod523":
|
|
3034
|
-
return /* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ jsx45(SOD523, {});
|
|
3035
3100
|
case "sma":
|
|
3036
|
-
return /* @__PURE__ */
|
|
3101
|
+
return /* @__PURE__ */ jsx45(SMA, {});
|
|
3037
3102
|
case "smb":
|
|
3038
|
-
return /* @__PURE__ */
|
|
3103
|
+
return /* @__PURE__ */ jsx45(SMB, {});
|
|
3039
3104
|
case "smc":
|
|
3040
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx45(SMC, {});
|
|
3041
3106
|
case "smf":
|
|
3042
|
-
return /* @__PURE__ */
|
|
3107
|
+
return /* @__PURE__ */ jsx45(SMF, {});
|
|
3043
3108
|
case "sod123f":
|
|
3044
|
-
return /* @__PURE__ */
|
|
3109
|
+
return /* @__PURE__ */ jsx45(SOD123F, {});
|
|
3045
3110
|
case "sod123fl":
|
|
3046
|
-
return /* @__PURE__ */
|
|
3111
|
+
return /* @__PURE__ */ jsx45(SOD123FL, {});
|
|
3047
3112
|
case "sod923":
|
|
3048
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */ jsx45(SOD923, {});
|
|
3049
3114
|
case "hc49":
|
|
3050
|
-
return /* @__PURE__ */
|
|
3115
|
+
return /* @__PURE__ */ jsx45(HC49, {});
|
|
3116
|
+
case "micromelf":
|
|
3117
|
+
return /* @__PURE__ */ jsx45(MicroMELF, {});
|
|
3051
3118
|
case "minimelf":
|
|
3052
|
-
return /* @__PURE__ */
|
|
3119
|
+
return /* @__PURE__ */ jsx45(MINIMELF, {});
|
|
3053
3120
|
case "melf":
|
|
3054
|
-
return /* @__PURE__ */
|
|
3121
|
+
return /* @__PURE__ */ jsx45(MELF, {});
|
|
3055
3122
|
case "ms012":
|
|
3056
|
-
return /* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ jsx45(
|
|
3057
3124
|
MS012,
|
|
3058
3125
|
{
|
|
3059
3126
|
pinCount: fpJson.num_pins,
|
|
@@ -3067,29 +3134,29 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3067
3134
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3068
3135
|
switch (fpJson.imperial) {
|
|
3069
3136
|
case "0402":
|
|
3070
|
-
return /* @__PURE__ */
|
|
3137
|
+
return /* @__PURE__ */ jsx45(A0402, { color });
|
|
3071
3138
|
case "0603":
|
|
3072
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsx45(A0603, { color });
|
|
3073
3140
|
case "0805":
|
|
3074
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ jsx45(A0805, { color });
|
|
3075
3142
|
case "0201":
|
|
3076
|
-
return /* @__PURE__ */
|
|
3143
|
+
return /* @__PURE__ */ jsx45(A0201, { color });
|
|
3077
3144
|
case "01005":
|
|
3078
|
-
return /* @__PURE__ */
|
|
3145
|
+
return /* @__PURE__ */ jsx45(A01005, { color });
|
|
3079
3146
|
case "1206":
|
|
3080
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsx45(A1206, { color });
|
|
3081
3148
|
case "1210":
|
|
3082
|
-
return /* @__PURE__ */
|
|
3149
|
+
return /* @__PURE__ */ jsx45(A1210, { color });
|
|
3083
3150
|
case "2010":
|
|
3084
|
-
return /* @__PURE__ */
|
|
3151
|
+
return /* @__PURE__ */ jsx45(A2010, { color });
|
|
3085
3152
|
case "2512":
|
|
3086
|
-
return /* @__PURE__ */
|
|
3153
|
+
return /* @__PURE__ */ jsx45(A2512, { color });
|
|
3087
3154
|
}
|
|
3088
3155
|
return null;
|
|
3089
3156
|
};
|
|
3090
3157
|
|
|
3091
3158
|
// lib/SOT-23-3P.tsx
|
|
3092
|
-
import { Fragment as
|
|
3159
|
+
import { Fragment as Fragment41, jsx as jsx46, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3093
3160
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3094
3161
|
const bodyWidth = 1.3;
|
|
3095
3162
|
const bodyLength10 = 2.9;
|
|
@@ -3100,8 +3167,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3100
3167
|
const padContactLength = 0.4;
|
|
3101
3168
|
const padThickness = leadThickness / 2;
|
|
3102
3169
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3103
|
-
return /* @__PURE__ */
|
|
3104
|
-
/* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
3171
|
+
/* @__PURE__ */ jsx46(
|
|
3105
3172
|
SmdChipLead,
|
|
3106
3173
|
{
|
|
3107
3174
|
rotation: Math.PI,
|
|
@@ -3118,7 +3185,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3118
3185
|
},
|
|
3119
3186
|
1
|
|
3120
3187
|
),
|
|
3121
|
-
/* @__PURE__ */
|
|
3188
|
+
/* @__PURE__ */ jsx46(
|
|
3122
3189
|
SmdChipLead,
|
|
3123
3190
|
{
|
|
3124
3191
|
rotation: Math.PI,
|
|
@@ -3135,7 +3202,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3135
3202
|
},
|
|
3136
3203
|
2
|
|
3137
3204
|
),
|
|
3138
|
-
/* @__PURE__ */
|
|
3205
|
+
/* @__PURE__ */ jsx46(
|
|
3139
3206
|
SmdChipLead,
|
|
3140
3207
|
{
|
|
3141
3208
|
position: {
|
|
@@ -3151,7 +3218,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3151
3218
|
},
|
|
3152
3219
|
3
|
|
3153
3220
|
),
|
|
3154
|
-
/* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsx46(
|
|
3155
3222
|
ChipBody,
|
|
3156
3223
|
{
|
|
3157
3224
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3164,8 +3231,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3164
3231
|
};
|
|
3165
3232
|
|
|
3166
3233
|
// lib/SOT-563.tsx
|
|
3167
|
-
import { Cuboid as Cuboid29, Translate as Translate17, Rotate as
|
|
3168
|
-
import { Fragment as
|
|
3234
|
+
import { Cuboid as Cuboid29, Translate as Translate17, Rotate as Rotate9, Colorize as Colorize22 } from "jscad-fiber";
|
|
3235
|
+
import { Fragment as Fragment42, jsx as jsx47, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3169
3236
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3170
3237
|
const bodyWidth = 1.2;
|
|
3171
3238
|
const bodyLength10 = 1.6;
|
|
@@ -3175,11 +3242,11 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3175
3242
|
const leadHeight = 0.13;
|
|
3176
3243
|
const leadSpacing = 0.5;
|
|
3177
3244
|
const bodyZOffset = -0.4;
|
|
3178
|
-
return /* @__PURE__ */
|
|
3179
|
-
/* @__PURE__ */
|
|
3245
|
+
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3246
|
+
/* @__PURE__ */ jsx47(Rotate9, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx47(Translate17, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx47(Colorize22, { color: "grey", children: /* @__PURE__ */ jsx47(Cuboid29, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3180
3247
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3181
3248
|
// Left lead
|
|
3182
|
-
/* @__PURE__ */
|
|
3249
|
+
/* @__PURE__ */ jsx47(
|
|
3183
3250
|
Translate17,
|
|
3184
3251
|
{
|
|
3185
3252
|
center: [
|
|
@@ -3187,16 +3254,16 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3187
3254
|
yOffset * leadSpacing,
|
|
3188
3255
|
leadHeight / 2
|
|
3189
3256
|
],
|
|
3190
|
-
children: /* @__PURE__ */
|
|
3257
|
+
children: /* @__PURE__ */ jsx47(Cuboid29, { size: [leadLength, leadWidth, leadHeight] })
|
|
3191
3258
|
},
|
|
3192
3259
|
`left-${index}`
|
|
3193
3260
|
),
|
|
3194
3261
|
// Right lead
|
|
3195
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ jsx47(
|
|
3196
3263
|
Translate17,
|
|
3197
3264
|
{
|
|
3198
3265
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3199
|
-
children: /* @__PURE__ */
|
|
3266
|
+
children: /* @__PURE__ */ jsx47(Cuboid29, { size: [leadLength, leadWidth, leadHeight] })
|
|
3200
3267
|
},
|
|
3201
3268
|
`right-${index}`
|
|
3202
3269
|
)
|
|
@@ -3205,8 +3272,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3205
3272
|
};
|
|
3206
3273
|
|
|
3207
3274
|
// lib/SOT-723.tsx
|
|
3208
|
-
import { Cuboid as Cuboid30, Translate as Translate18, Rotate as
|
|
3209
|
-
import { Fragment as
|
|
3275
|
+
import { Cuboid as Cuboid30, Translate as Translate18, Rotate as Rotate10, Colorize as Colorize23 } from "jscad-fiber";
|
|
3276
|
+
import { Fragment as Fragment43, jsx as jsx48, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3210
3277
|
var getCcwSot723Coords = (pn) => {
|
|
3211
3278
|
if (pn === 1) {
|
|
3212
3279
|
return { x: 0, y: 0 };
|
|
@@ -3224,11 +3291,11 @@ var SOT723 = () => {
|
|
|
3224
3291
|
const leadLength = 0.3;
|
|
3225
3292
|
const leadHeight = 0.1;
|
|
3226
3293
|
const centerLeadWidth = 0.42;
|
|
3227
|
-
return /* @__PURE__ */
|
|
3228
|
-
/* @__PURE__ */
|
|
3294
|
+
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3295
|
+
/* @__PURE__ */ jsx48(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx48(Translate18, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx48(Colorize23, { color: "grey", children: /* @__PURE__ */ jsx48(Cuboid30, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3229
3296
|
[1, 2, 3].map((pn) => {
|
|
3230
3297
|
const { x, y } = getCcwSot723Coords(pn);
|
|
3231
|
-
return /* @__PURE__ */
|
|
3298
|
+
return /* @__PURE__ */ jsx48(Translate18, { center: [x, y, 0.05], children: /* @__PURE__ */ jsx48(
|
|
3232
3299
|
Cuboid30,
|
|
3233
3300
|
{
|
|
3234
3301
|
size: [
|
|
@@ -3243,7 +3310,7 @@ var SOT723 = () => {
|
|
|
3243
3310
|
};
|
|
3244
3311
|
|
|
3245
3312
|
// lib/sod-123.tsx
|
|
3246
|
-
import { Fragment as
|
|
3313
|
+
import { Fragment as Fragment44, jsx as jsx49, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3247
3314
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3248
3315
|
const bodyWidth = 2.9;
|
|
3249
3316
|
const bodyLength10 = 1.3;
|
|
@@ -3254,8 +3321,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3254
3321
|
const padContactLength = 0.4;
|
|
3255
3322
|
const padThickness = leadThickness / 2;
|
|
3256
3323
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3257
|
-
return /* @__PURE__ */
|
|
3258
|
-
/* @__PURE__ */
|
|
3324
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3325
|
+
/* @__PURE__ */ jsx49(
|
|
3259
3326
|
SmdChipLead,
|
|
3260
3327
|
{
|
|
3261
3328
|
position: {
|
|
@@ -3271,7 +3338,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3271
3338
|
},
|
|
3272
3339
|
1
|
|
3273
3340
|
),
|
|
3274
|
-
/* @__PURE__ */
|
|
3341
|
+
/* @__PURE__ */ jsx49(
|
|
3275
3342
|
SmdChipLead,
|
|
3276
3343
|
{
|
|
3277
3344
|
rotation: Math.PI,
|
|
@@ -3288,7 +3355,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3288
3355
|
},
|
|
3289
3356
|
2
|
|
3290
3357
|
),
|
|
3291
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx49(
|
|
3292
3359
|
ChipBody,
|
|
3293
3360
|
{
|
|
3294
3361
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3322,6 +3389,7 @@ export {
|
|
|
3322
3389
|
MINIMELF,
|
|
3323
3390
|
MS012,
|
|
3324
3391
|
MSOP,
|
|
3392
|
+
MicroMELF,
|
|
3325
3393
|
PinRow,
|
|
3326
3394
|
QFN,
|
|
3327
3395
|
QFP,
|