jscad-electronics 0.0.82 → 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 +26 -1
- package/dist/index.js +231 -75
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +141 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -235,6 +235,31 @@ declare const SOT223: () => react_jsx_runtime.JSX.Element;
|
|
|
235
235
|
|
|
236
236
|
declare const SOT323: () => react_jsx_runtime.JSX.Element;
|
|
237
237
|
|
|
238
|
+
interface MINIMELFProps {
|
|
239
|
+
bodyLength?: number;
|
|
240
|
+
bodyDiameter?: number;
|
|
241
|
+
color?: string;
|
|
242
|
+
contactColor?: string;
|
|
243
|
+
}
|
|
244
|
+
declare const MINIMELF: ({ bodyLength, bodyDiameter, color, contactColor, }: MINIMELFProps) => react_jsx_runtime.JSX.Element;
|
|
245
|
+
|
|
246
|
+
interface MELFProps {
|
|
247
|
+
bodyLength?: number;
|
|
248
|
+
bodyDiameter?: number;
|
|
249
|
+
color?: string;
|
|
250
|
+
contactColor?: string;
|
|
251
|
+
}
|
|
252
|
+
declare const MELF: ({ bodyLength, bodyDiameter, color, contactColor, }: MELFProps) => react_jsx_runtime.JSX.Element;
|
|
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
|
+
|
|
238
263
|
interface HC49Props {
|
|
239
264
|
/** overall body length (mm) */
|
|
240
265
|
bodyLength?: number;
|
|
@@ -264,4 +289,4 @@ declare const MS012: ({ pinCount, padContactLength, leadWidth, pitch, }: {
|
|
|
264
289
|
padContactLength?: number;
|
|
265
290
|
}) => react_jsx_runtime.JSX.Element;
|
|
266
291
|
|
|
267
|
-
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, DFN, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, 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,8 +2738,155 @@ var HC49 = ({
|
|
|
2738
2738
|
] });
|
|
2739
2739
|
};
|
|
2740
2740
|
|
|
2741
|
-
// lib/
|
|
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";
|
|
2742
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";
|
|
2809
|
+
var MINIMELF = ({
|
|
2810
|
+
bodyLength: bodyLength10 = 3.5,
|
|
2811
|
+
bodyDiameter = 1.5,
|
|
2812
|
+
color = "#3a3a3aff",
|
|
2813
|
+
contactColor = "#c6c6c6"
|
|
2814
|
+
}) => {
|
|
2815
|
+
const padLength = 0.5;
|
|
2816
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2817
|
+
/* @__PURE__ */ jsx42(Colorize20, { color, children: /* @__PURE__ */ jsx42(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2818
|
+
RoundedCylinder3,
|
|
2819
|
+
{
|
|
2820
|
+
height: bodyLength10,
|
|
2821
|
+
radius: bodyDiameter / 2,
|
|
2822
|
+
roundRadius: 0.3,
|
|
2823
|
+
center: [-bodyDiameter / 2, 0, 0]
|
|
2824
|
+
}
|
|
2825
|
+
) }) }),
|
|
2826
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: contactColor, children: /* @__PURE__ */ jsx42(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2827
|
+
RoundedCylinder3,
|
|
2828
|
+
{
|
|
2829
|
+
height: padLength,
|
|
2830
|
+
radius: bodyDiameter / 2,
|
|
2831
|
+
roundRadius: 0.2,
|
|
2832
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2833
|
+
}
|
|
2834
|
+
) }) }),
|
|
2835
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: contactColor, children: /* @__PURE__ */ jsx42(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx42(
|
|
2836
|
+
RoundedCylinder3,
|
|
2837
|
+
{
|
|
2838
|
+
height: padLength,
|
|
2839
|
+
radius: bodyDiameter / 2,
|
|
2840
|
+
roundRadius: 0.2,
|
|
2841
|
+
center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
|
|
2842
|
+
}
|
|
2843
|
+
) }) })
|
|
2844
|
+
] });
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
// lib/MELF.tsx
|
|
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";
|
|
2850
|
+
var MELF = ({
|
|
2851
|
+
bodyLength: bodyLength10 = 3.9,
|
|
2852
|
+
bodyDiameter = 2.5,
|
|
2853
|
+
color = "#3a3a3aff",
|
|
2854
|
+
contactColor = "#c6c6c6"
|
|
2855
|
+
}) => {
|
|
2856
|
+
const padLength = 0.55;
|
|
2857
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2858
|
+
/* @__PURE__ */ jsx43(Colorize21, { color, children: /* @__PURE__ */ jsx43(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2859
|
+
RoundedCylinder4,
|
|
2860
|
+
{
|
|
2861
|
+
height: bodyLength10,
|
|
2862
|
+
radius: bodyDiameter / 2,
|
|
2863
|
+
roundRadius: 0.3,
|
|
2864
|
+
center: [-bodyDiameter / 2, 0, 0]
|
|
2865
|
+
}
|
|
2866
|
+
) }) }),
|
|
2867
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2868
|
+
RoundedCylinder4,
|
|
2869
|
+
{
|
|
2870
|
+
height: padLength,
|
|
2871
|
+
radius: bodyDiameter / 2,
|
|
2872
|
+
roundRadius: 0.2,
|
|
2873
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2874
|
+
}
|
|
2875
|
+
) }) }),
|
|
2876
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
|
|
2877
|
+
RoundedCylinder4,
|
|
2878
|
+
{
|
|
2879
|
+
height: padLength,
|
|
2880
|
+
radius: bodyDiameter / 2,
|
|
2881
|
+
roundRadius: 0.2,
|
|
2882
|
+
center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
|
|
2883
|
+
}
|
|
2884
|
+
) }) })
|
|
2885
|
+
] });
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
// lib/ms012.tsx
|
|
2889
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2743
2890
|
var MS012 = ({
|
|
2744
2891
|
pinCount,
|
|
2745
2892
|
padContactLength = 0.6,
|
|
@@ -2754,8 +2901,8 @@ var MS012 = ({
|
|
|
2754
2901
|
const bodyLength10 = 3.9;
|
|
2755
2902
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
2756
2903
|
const leadThickness = 0.2;
|
|
2757
|
-
return /* @__PURE__ */
|
|
2758
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2904
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2905
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx44(
|
|
2759
2906
|
SmdChipLead,
|
|
2760
2907
|
{
|
|
2761
2908
|
position: {
|
|
@@ -2771,7 +2918,7 @@ var MS012 = ({
|
|
|
2771
2918
|
},
|
|
2772
2919
|
i
|
|
2773
2920
|
)),
|
|
2774
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2921
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx44(
|
|
2775
2922
|
SmdChipLead,
|
|
2776
2923
|
{
|
|
2777
2924
|
rotation: Math.PI,
|
|
@@ -2788,7 +2935,7 @@ var MS012 = ({
|
|
|
2788
2935
|
},
|
|
2789
2936
|
`right-${i}`
|
|
2790
2937
|
)),
|
|
2791
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ jsx44(
|
|
2792
2939
|
ChipBody,
|
|
2793
2940
|
{
|
|
2794
2941
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -2804,14 +2951,14 @@ var MS012 = ({
|
|
|
2804
2951
|
};
|
|
2805
2952
|
|
|
2806
2953
|
// lib/Footprinter3d.tsx
|
|
2807
|
-
import { jsx as
|
|
2954
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2808
2955
|
var Footprinter3d = ({ footprint }) => {
|
|
2809
2956
|
const fpJson = fp3.string(footprint).json();
|
|
2810
2957
|
switch (fpJson.fn) {
|
|
2811
2958
|
case "dip":
|
|
2812
|
-
return /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ jsx45(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
2813
2960
|
case "tssop":
|
|
2814
|
-
return /* @__PURE__ */
|
|
2961
|
+
return /* @__PURE__ */ jsx45(
|
|
2815
2962
|
Tssop,
|
|
2816
2963
|
{
|
|
2817
2964
|
pinCount: fpJson.num_pins,
|
|
@@ -2822,7 +2969,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2822
2969
|
}
|
|
2823
2970
|
);
|
|
2824
2971
|
case "msop":
|
|
2825
|
-
return /* @__PURE__ */
|
|
2972
|
+
return /* @__PURE__ */ jsx45(
|
|
2826
2973
|
MSOP,
|
|
2827
2974
|
{
|
|
2828
2975
|
pinCount: fpJson.num_pins,
|
|
@@ -2833,7 +2980,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2833
2980
|
}
|
|
2834
2981
|
);
|
|
2835
2982
|
case "vssop":
|
|
2836
|
-
return /* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsx45(
|
|
2837
2984
|
VSSOP,
|
|
2838
2985
|
{
|
|
2839
2986
|
pinCount: fpJson.num_pins,
|
|
@@ -2845,7 +2992,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2845
2992
|
}
|
|
2846
2993
|
);
|
|
2847
2994
|
case "qfp":
|
|
2848
|
-
return /* @__PURE__ */
|
|
2995
|
+
return /* @__PURE__ */ jsx45(
|
|
2849
2996
|
QFP,
|
|
2850
2997
|
{
|
|
2851
2998
|
pinCount: fpJson.num_pins,
|
|
@@ -2856,12 +3003,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2856
3003
|
}
|
|
2857
3004
|
);
|
|
2858
3005
|
case "tqfp":
|
|
2859
|
-
return /* @__PURE__ */
|
|
3006
|
+
return /* @__PURE__ */ jsx45(tqfp_default, {});
|
|
2860
3007
|
case "lqfp":
|
|
2861
|
-
return /* @__PURE__ */
|
|
3008
|
+
return /* @__PURE__ */ jsx45(LQFP, { pinCount: fpJson.num_pins });
|
|
2862
3009
|
case "qfn": {
|
|
2863
3010
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2864
|
-
return /* @__PURE__ */
|
|
3011
|
+
return /* @__PURE__ */ jsx45(
|
|
2865
3012
|
qfn_default,
|
|
2866
3013
|
{
|
|
2867
3014
|
num_pins: fpJson.num_pins,
|
|
@@ -2879,7 +3026,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2879
3026
|
}
|
|
2880
3027
|
case "dfn": {
|
|
2881
3028
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
2882
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ jsx45(
|
|
2883
3030
|
DFN,
|
|
2884
3031
|
{
|
|
2885
3032
|
num_pins: fpJson.num_pins,
|
|
@@ -2897,39 +3044,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2897
3044
|
}
|
|
2898
3045
|
case "pinrow":
|
|
2899
3046
|
if (fpJson.male)
|
|
2900
|
-
return /* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ jsx45(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2901
3048
|
if (fpJson.female)
|
|
2902
|
-
return /* @__PURE__ */
|
|
3049
|
+
return /* @__PURE__ */ jsx45(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
2903
3050
|
case "cap": {
|
|
2904
3051
|
switch (fpJson.imperial) {
|
|
2905
3052
|
case "0402":
|
|
2906
|
-
return /* @__PURE__ */
|
|
3053
|
+
return /* @__PURE__ */ jsx45(A0402, { color: "#856c4d" });
|
|
2907
3054
|
case "0603":
|
|
2908
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx45(A0603, { color: "#856c4d" });
|
|
2909
3056
|
case "0805":
|
|
2910
|
-
return /* @__PURE__ */
|
|
3057
|
+
return /* @__PURE__ */ jsx45(A0805, { color: "#856c4d" });
|
|
2911
3058
|
case "0201":
|
|
2912
|
-
return /* @__PURE__ */
|
|
3059
|
+
return /* @__PURE__ */ jsx45(A0201, { color: "#856c4d" });
|
|
2913
3060
|
case "01005":
|
|
2914
|
-
return /* @__PURE__ */
|
|
3061
|
+
return /* @__PURE__ */ jsx45(A01005, { color: "#856c4d" });
|
|
2915
3062
|
case "1206":
|
|
2916
|
-
return /* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ jsx45(A1206, { color: "#856c4d" });
|
|
2917
3064
|
case "1210":
|
|
2918
|
-
return /* @__PURE__ */
|
|
3065
|
+
return /* @__PURE__ */ jsx45(A1210, { color: "#856c4d" });
|
|
2919
3066
|
case "2010":
|
|
2920
|
-
return /* @__PURE__ */
|
|
3067
|
+
return /* @__PURE__ */ jsx45(A2010, { color: "#856c4d" });
|
|
2921
3068
|
case "2512":
|
|
2922
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ jsx45(A2512, { color: "#856c4d" });
|
|
2923
3070
|
}
|
|
2924
3071
|
}
|
|
2925
3072
|
case "sot235":
|
|
2926
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ jsx45(SOT_235_default, {});
|
|
2927
3074
|
case "sot223":
|
|
2928
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ jsx45(SOT223, {});
|
|
2929
3076
|
case "sot323":
|
|
2930
|
-
return /* @__PURE__ */
|
|
3077
|
+
return /* @__PURE__ */ jsx45(SOT323, {});
|
|
2931
3078
|
case "pushbutton":
|
|
2932
|
-
return /* @__PURE__ */
|
|
3079
|
+
return /* @__PURE__ */ jsx45(
|
|
2933
3080
|
PushButton,
|
|
2934
3081
|
{
|
|
2935
3082
|
width: fpJson.w,
|
|
@@ -2938,7 +3085,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2938
3085
|
}
|
|
2939
3086
|
);
|
|
2940
3087
|
case "soic":
|
|
2941
|
-
return /* @__PURE__ */
|
|
3088
|
+
return /* @__PURE__ */ jsx45(
|
|
2942
3089
|
SOIC,
|
|
2943
3090
|
{
|
|
2944
3091
|
pinCount: fpJson.num_pins,
|
|
@@ -2949,25 +3096,31 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2949
3096
|
}
|
|
2950
3097
|
);
|
|
2951
3098
|
case "sod523":
|
|
2952
|
-
return /* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ jsx45(SOD523, {});
|
|
2953
3100
|
case "sma":
|
|
2954
|
-
return /* @__PURE__ */
|
|
3101
|
+
return /* @__PURE__ */ jsx45(SMA, {});
|
|
2955
3102
|
case "smb":
|
|
2956
|
-
return /* @__PURE__ */
|
|
3103
|
+
return /* @__PURE__ */ jsx45(SMB, {});
|
|
2957
3104
|
case "smc":
|
|
2958
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx45(SMC, {});
|
|
2959
3106
|
case "smf":
|
|
2960
|
-
return /* @__PURE__ */
|
|
3107
|
+
return /* @__PURE__ */ jsx45(SMF, {});
|
|
2961
3108
|
case "sod123f":
|
|
2962
|
-
return /* @__PURE__ */
|
|
3109
|
+
return /* @__PURE__ */ jsx45(SOD123F, {});
|
|
2963
3110
|
case "sod123fl":
|
|
2964
|
-
return /* @__PURE__ */
|
|
3111
|
+
return /* @__PURE__ */ jsx45(SOD123FL, {});
|
|
2965
3112
|
case "sod923":
|
|
2966
|
-
return /* @__PURE__ */
|
|
3113
|
+
return /* @__PURE__ */ jsx45(SOD923, {});
|
|
2967
3114
|
case "hc49":
|
|
2968
|
-
return /* @__PURE__ */
|
|
3115
|
+
return /* @__PURE__ */ jsx45(HC49, {});
|
|
3116
|
+
case "micromelf":
|
|
3117
|
+
return /* @__PURE__ */ jsx45(MicroMELF, {});
|
|
3118
|
+
case "minimelf":
|
|
3119
|
+
return /* @__PURE__ */ jsx45(MINIMELF, {});
|
|
3120
|
+
case "melf":
|
|
3121
|
+
return /* @__PURE__ */ jsx45(MELF, {});
|
|
2969
3122
|
case "ms012":
|
|
2970
|
-
return /* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ jsx45(
|
|
2971
3124
|
MS012,
|
|
2972
3125
|
{
|
|
2973
3126
|
pinCount: fpJson.num_pins,
|
|
@@ -2981,29 +3134,29 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2981
3134
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
2982
3135
|
switch (fpJson.imperial) {
|
|
2983
3136
|
case "0402":
|
|
2984
|
-
return /* @__PURE__ */
|
|
3137
|
+
return /* @__PURE__ */ jsx45(A0402, { color });
|
|
2985
3138
|
case "0603":
|
|
2986
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsx45(A0603, { color });
|
|
2987
3140
|
case "0805":
|
|
2988
|
-
return /* @__PURE__ */
|
|
3141
|
+
return /* @__PURE__ */ jsx45(A0805, { color });
|
|
2989
3142
|
case "0201":
|
|
2990
|
-
return /* @__PURE__ */
|
|
3143
|
+
return /* @__PURE__ */ jsx45(A0201, { color });
|
|
2991
3144
|
case "01005":
|
|
2992
|
-
return /* @__PURE__ */
|
|
3145
|
+
return /* @__PURE__ */ jsx45(A01005, { color });
|
|
2993
3146
|
case "1206":
|
|
2994
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsx45(A1206, { color });
|
|
2995
3148
|
case "1210":
|
|
2996
|
-
return /* @__PURE__ */
|
|
3149
|
+
return /* @__PURE__ */ jsx45(A1210, { color });
|
|
2997
3150
|
case "2010":
|
|
2998
|
-
return /* @__PURE__ */
|
|
3151
|
+
return /* @__PURE__ */ jsx45(A2010, { color });
|
|
2999
3152
|
case "2512":
|
|
3000
|
-
return /* @__PURE__ */
|
|
3153
|
+
return /* @__PURE__ */ jsx45(A2512, { color });
|
|
3001
3154
|
}
|
|
3002
3155
|
return null;
|
|
3003
3156
|
};
|
|
3004
3157
|
|
|
3005
3158
|
// lib/SOT-23-3P.tsx
|
|
3006
|
-
import { Fragment as
|
|
3159
|
+
import { Fragment as Fragment41, jsx as jsx46, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3007
3160
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3008
3161
|
const bodyWidth = 1.3;
|
|
3009
3162
|
const bodyLength10 = 2.9;
|
|
@@ -3014,8 +3167,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3014
3167
|
const padContactLength = 0.4;
|
|
3015
3168
|
const padThickness = leadThickness / 2;
|
|
3016
3169
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3017
|
-
return /* @__PURE__ */
|
|
3018
|
-
/* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
3171
|
+
/* @__PURE__ */ jsx46(
|
|
3019
3172
|
SmdChipLead,
|
|
3020
3173
|
{
|
|
3021
3174
|
rotation: Math.PI,
|
|
@@ -3032,7 +3185,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3032
3185
|
},
|
|
3033
3186
|
1
|
|
3034
3187
|
),
|
|
3035
|
-
/* @__PURE__ */
|
|
3188
|
+
/* @__PURE__ */ jsx46(
|
|
3036
3189
|
SmdChipLead,
|
|
3037
3190
|
{
|
|
3038
3191
|
rotation: Math.PI,
|
|
@@ -3049,7 +3202,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3049
3202
|
},
|
|
3050
3203
|
2
|
|
3051
3204
|
),
|
|
3052
|
-
/* @__PURE__ */
|
|
3205
|
+
/* @__PURE__ */ jsx46(
|
|
3053
3206
|
SmdChipLead,
|
|
3054
3207
|
{
|
|
3055
3208
|
position: {
|
|
@@ -3065,7 +3218,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3065
3218
|
},
|
|
3066
3219
|
3
|
|
3067
3220
|
),
|
|
3068
|
-
/* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsx46(
|
|
3069
3222
|
ChipBody,
|
|
3070
3223
|
{
|
|
3071
3224
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3078,8 +3231,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3078
3231
|
};
|
|
3079
3232
|
|
|
3080
3233
|
// lib/SOT-563.tsx
|
|
3081
|
-
import { Cuboid as
|
|
3082
|
-
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";
|
|
3083
3236
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3084
3237
|
const bodyWidth = 1.2;
|
|
3085
3238
|
const bodyLength10 = 1.6;
|
|
@@ -3089,11 +3242,11 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3089
3242
|
const leadHeight = 0.13;
|
|
3090
3243
|
const leadSpacing = 0.5;
|
|
3091
3244
|
const bodyZOffset = -0.4;
|
|
3092
|
-
return /* @__PURE__ */
|
|
3093
|
-
/* @__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] }) }) }) }),
|
|
3094
3247
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3095
3248
|
// Left lead
|
|
3096
|
-
/* @__PURE__ */
|
|
3249
|
+
/* @__PURE__ */ jsx47(
|
|
3097
3250
|
Translate17,
|
|
3098
3251
|
{
|
|
3099
3252
|
center: [
|
|
@@ -3101,16 +3254,16 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3101
3254
|
yOffset * leadSpacing,
|
|
3102
3255
|
leadHeight / 2
|
|
3103
3256
|
],
|
|
3104
|
-
children: /* @__PURE__ */
|
|
3257
|
+
children: /* @__PURE__ */ jsx47(Cuboid29, { size: [leadLength, leadWidth, leadHeight] })
|
|
3105
3258
|
},
|
|
3106
3259
|
`left-${index}`
|
|
3107
3260
|
),
|
|
3108
3261
|
// Right lead
|
|
3109
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ jsx47(
|
|
3110
3263
|
Translate17,
|
|
3111
3264
|
{
|
|
3112
3265
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3113
|
-
children: /* @__PURE__ */
|
|
3266
|
+
children: /* @__PURE__ */ jsx47(Cuboid29, { size: [leadLength, leadWidth, leadHeight] })
|
|
3114
3267
|
},
|
|
3115
3268
|
`right-${index}`
|
|
3116
3269
|
)
|
|
@@ -3119,8 +3272,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3119
3272
|
};
|
|
3120
3273
|
|
|
3121
3274
|
// lib/SOT-723.tsx
|
|
3122
|
-
import { Cuboid as
|
|
3123
|
-
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";
|
|
3124
3277
|
var getCcwSot723Coords = (pn) => {
|
|
3125
3278
|
if (pn === 1) {
|
|
3126
3279
|
return { x: 0, y: 0 };
|
|
@@ -3138,12 +3291,12 @@ var SOT723 = () => {
|
|
|
3138
3291
|
const leadLength = 0.3;
|
|
3139
3292
|
const leadHeight = 0.1;
|
|
3140
3293
|
const centerLeadWidth = 0.42;
|
|
3141
|
-
return /* @__PURE__ */
|
|
3142
|
-
/* @__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] }) }) }) }),
|
|
3143
3296
|
[1, 2, 3].map((pn) => {
|
|
3144
3297
|
const { x, y } = getCcwSot723Coords(pn);
|
|
3145
|
-
return /* @__PURE__ */
|
|
3146
|
-
|
|
3298
|
+
return /* @__PURE__ */ jsx48(Translate18, { center: [x, y, 0.05], children: /* @__PURE__ */ jsx48(
|
|
3299
|
+
Cuboid30,
|
|
3147
3300
|
{
|
|
3148
3301
|
size: [
|
|
3149
3302
|
leadLength,
|
|
@@ -3157,7 +3310,7 @@ var SOT723 = () => {
|
|
|
3157
3310
|
};
|
|
3158
3311
|
|
|
3159
3312
|
// lib/sod-123.tsx
|
|
3160
|
-
import { Fragment as
|
|
3313
|
+
import { Fragment as Fragment44, jsx as jsx49, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3161
3314
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3162
3315
|
const bodyWidth = 2.9;
|
|
3163
3316
|
const bodyLength10 = 1.3;
|
|
@@ -3168,8 +3321,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3168
3321
|
const padContactLength = 0.4;
|
|
3169
3322
|
const padThickness = leadThickness / 2;
|
|
3170
3323
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3171
|
-
return /* @__PURE__ */
|
|
3172
|
-
/* @__PURE__ */
|
|
3324
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3325
|
+
/* @__PURE__ */ jsx49(
|
|
3173
3326
|
SmdChipLead,
|
|
3174
3327
|
{
|
|
3175
3328
|
position: {
|
|
@@ -3185,7 +3338,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3185
3338
|
},
|
|
3186
3339
|
1
|
|
3187
3340
|
),
|
|
3188
|
-
/* @__PURE__ */
|
|
3341
|
+
/* @__PURE__ */ jsx49(
|
|
3189
3342
|
SmdChipLead,
|
|
3190
3343
|
{
|
|
3191
3344
|
rotation: Math.PI,
|
|
@@ -3202,7 +3355,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3202
3355
|
},
|
|
3203
3356
|
2
|
|
3204
3357
|
),
|
|
3205
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx49(
|
|
3206
3359
|
ChipBody,
|
|
3207
3360
|
{
|
|
3208
3361
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3232,8 +3385,11 @@ export {
|
|
|
3232
3385
|
Footprinter3d,
|
|
3233
3386
|
HC49,
|
|
3234
3387
|
LQFP,
|
|
3388
|
+
MELF,
|
|
3389
|
+
MINIMELF,
|
|
3235
3390
|
MS012,
|
|
3236
3391
|
MSOP,
|
|
3392
|
+
MicroMELF,
|
|
3237
3393
|
PinRow,
|
|
3238
3394
|
QFN,
|
|
3239
3395
|
QFP,
|