jscad-electronics 0.0.93 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +227 -92
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +133 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -2985,6 +2985,137 @@ var TO220 = () => {
|
|
|
2985
2985
|
] }) });
|
|
2986
2986
|
};
|
|
2987
2987
|
|
|
2988
|
+
// lib/SOT-457.tsx
|
|
2989
|
+
var SOT457 = () => {
|
|
2990
|
+
const fullWidth = 2.8;
|
|
2991
|
+
const bodyWidth = 1.6;
|
|
2992
|
+
const bodyLength10 = 2.9;
|
|
2993
|
+
const bodyHeight = 1.2;
|
|
2994
|
+
const leadWidth = 0.4;
|
|
2995
|
+
const leadThickness = 0.15;
|
|
2996
|
+
const leadHeight = 0.95;
|
|
2997
|
+
const padContactLength = 0.5;
|
|
2998
|
+
const padPitch = 0.95;
|
|
2999
|
+
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3000
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
3001
|
+
/* @__PURE__ */ jsx(
|
|
3002
|
+
SmdChipLead,
|
|
3003
|
+
{
|
|
3004
|
+
rotation: Math.PI,
|
|
3005
|
+
position: {
|
|
3006
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3007
|
+
y: -padPitch,
|
|
3008
|
+
z: leadThickness / 2
|
|
3009
|
+
},
|
|
3010
|
+
width: leadWidth,
|
|
3011
|
+
thickness: leadThickness,
|
|
3012
|
+
padContactLength,
|
|
3013
|
+
bodyDistance: extendedBodyDistance,
|
|
3014
|
+
height: leadHeight
|
|
3015
|
+
},
|
|
3016
|
+
1
|
|
3017
|
+
),
|
|
3018
|
+
/* @__PURE__ */ jsx(
|
|
3019
|
+
SmdChipLead,
|
|
3020
|
+
{
|
|
3021
|
+
rotation: Math.PI,
|
|
3022
|
+
position: {
|
|
3023
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3024
|
+
y: 0,
|
|
3025
|
+
z: leadThickness / 2
|
|
3026
|
+
},
|
|
3027
|
+
width: leadWidth,
|
|
3028
|
+
thickness: leadThickness,
|
|
3029
|
+
padContactLength,
|
|
3030
|
+
bodyDistance: extendedBodyDistance,
|
|
3031
|
+
height: leadHeight
|
|
3032
|
+
},
|
|
3033
|
+
2
|
|
3034
|
+
),
|
|
3035
|
+
/* @__PURE__ */ jsx(
|
|
3036
|
+
SmdChipLead,
|
|
3037
|
+
{
|
|
3038
|
+
rotation: Math.PI,
|
|
3039
|
+
position: {
|
|
3040
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3041
|
+
y: padPitch,
|
|
3042
|
+
z: leadThickness / 2
|
|
3043
|
+
},
|
|
3044
|
+
width: leadWidth,
|
|
3045
|
+
thickness: leadThickness,
|
|
3046
|
+
padContactLength,
|
|
3047
|
+
bodyDistance: extendedBodyDistance,
|
|
3048
|
+
height: leadHeight
|
|
3049
|
+
},
|
|
3050
|
+
3
|
|
3051
|
+
),
|
|
3052
|
+
/* @__PURE__ */ jsx(
|
|
3053
|
+
SmdChipLead,
|
|
3054
|
+
{
|
|
3055
|
+
position: {
|
|
3056
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3057
|
+
y: 0,
|
|
3058
|
+
z: leadThickness / 2
|
|
3059
|
+
},
|
|
3060
|
+
width: leadWidth,
|
|
3061
|
+
thickness: leadThickness,
|
|
3062
|
+
padContactLength,
|
|
3063
|
+
bodyDistance: extendedBodyDistance,
|
|
3064
|
+
height: leadHeight
|
|
3065
|
+
},
|
|
3066
|
+
3
|
|
3067
|
+
),
|
|
3068
|
+
/* @__PURE__ */ jsx(
|
|
3069
|
+
SmdChipLead,
|
|
3070
|
+
{
|
|
3071
|
+
position: {
|
|
3072
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3073
|
+
y: -padPitch,
|
|
3074
|
+
z: leadThickness / 2
|
|
3075
|
+
},
|
|
3076
|
+
width: leadWidth,
|
|
3077
|
+
thickness: leadThickness,
|
|
3078
|
+
padContactLength,
|
|
3079
|
+
bodyDistance: extendedBodyDistance,
|
|
3080
|
+
height: leadHeight
|
|
3081
|
+
},
|
|
3082
|
+
1
|
|
3083
|
+
),
|
|
3084
|
+
/* @__PURE__ */ jsx(
|
|
3085
|
+
SmdChipLead,
|
|
3086
|
+
{
|
|
3087
|
+
position: {
|
|
3088
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3089
|
+
y: padPitch,
|
|
3090
|
+
z: leadThickness / 2
|
|
3091
|
+
},
|
|
3092
|
+
width: leadWidth,
|
|
3093
|
+
thickness: leadThickness,
|
|
3094
|
+
padContactLength,
|
|
3095
|
+
bodyDistance: extendedBodyDistance,
|
|
3096
|
+
height: leadHeight
|
|
3097
|
+
},
|
|
3098
|
+
2
|
|
3099
|
+
),
|
|
3100
|
+
/* @__PURE__ */ jsx(
|
|
3101
|
+
ChipBody,
|
|
3102
|
+
{
|
|
3103
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3104
|
+
width: bodyWidth,
|
|
3105
|
+
length: bodyLength10,
|
|
3106
|
+
height: bodyHeight,
|
|
3107
|
+
straightHeightRatio: 0.6,
|
|
3108
|
+
notchPosition: {
|
|
3109
|
+
x: bodyWidth / 2 - 0.4,
|
|
3110
|
+
y: bodyHeight / 2 + 0.4,
|
|
3111
|
+
z: bodyHeight + 0.05
|
|
3112
|
+
},
|
|
3113
|
+
notchRadius: 0.1
|
|
3114
|
+
}
|
|
3115
|
+
)
|
|
3116
|
+
] });
|
|
3117
|
+
};
|
|
3118
|
+
|
|
2988
3119
|
// lib/TO92.tsx
|
|
2989
3120
|
var TO92 = () => {
|
|
2990
3121
|
const bodyRadius = 2.4;
|
|
@@ -3273,6 +3404,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3273
3404
|
}
|
|
3274
3405
|
case "sot235":
|
|
3275
3406
|
return /* @__PURE__ */ jsx(SOT_235_default, {});
|
|
3407
|
+
case "sot457":
|
|
3408
|
+
return /* @__PURE__ */ jsx(SOT457, {});
|
|
3276
3409
|
case "sot223":
|
|
3277
3410
|
return /* @__PURE__ */ jsx(SOT223, {});
|
|
3278
3411
|
case "sot323":
|