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