jscad-electronics 0.0.93 → 0.0.95

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/vanilla.js CHANGED
@@ -1011,6 +1011,81 @@ var SOT235 = () => {
1011
1011
  };
1012
1012
  var SOT_235_default = SOT235;
1013
1013
 
1014
+ // lib/SOT-23W.tsx
1015
+ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
1016
+ const bodyWidth = 1.92;
1017
+ const bodyLength10 = 2.9;
1018
+ const bodyHeight = 1.1;
1019
+ const leadWidth = 0.4;
1020
+ const leadThickness = 0.15;
1021
+ const leadHeight = 0.45;
1022
+ const padContactLength = 0.25;
1023
+ const padThickness = leadThickness / 2;
1024
+ const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
1025
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
1026
+ /* @__PURE__ */ jsx(
1027
+ SmdChipLead,
1028
+ {
1029
+ rotation: Math.PI,
1030
+ position: {
1031
+ x: fullWidth / 2,
1032
+ y: 0,
1033
+ z: padThickness
1034
+ },
1035
+ width: leadWidth,
1036
+ thickness: leadThickness,
1037
+ padContactLength,
1038
+ bodyDistance: extendedBodyDistance,
1039
+ height: leadHeight
1040
+ },
1041
+ 1
1042
+ ),
1043
+ /* @__PURE__ */ jsx(
1044
+ SmdChipLead,
1045
+ {
1046
+ position: {
1047
+ x: -fullWidth / 2,
1048
+ y: -0.95,
1049
+ z: padThickness
1050
+ },
1051
+ width: leadWidth,
1052
+ thickness: leadThickness,
1053
+ padContactLength,
1054
+ bodyDistance: extendedBodyDistance,
1055
+ height: leadHeight
1056
+ },
1057
+ 2
1058
+ ),
1059
+ /* @__PURE__ */ jsx(
1060
+ SmdChipLead,
1061
+ {
1062
+ position: {
1063
+ x: -fullWidth / 2,
1064
+ y: 0.95,
1065
+ z: padThickness
1066
+ },
1067
+ width: leadWidth,
1068
+ thickness: leadThickness,
1069
+ padContactLength,
1070
+ bodyDistance: extendedBodyDistance,
1071
+ height: leadHeight
1072
+ },
1073
+ 3
1074
+ ),
1075
+ /* @__PURE__ */ jsx(
1076
+ ChipBody,
1077
+ {
1078
+ center: { x: 0, y: 0, z: 0 },
1079
+ width: bodyWidth,
1080
+ length: bodyLength10,
1081
+ height: bodyHeight,
1082
+ straightHeightRatio: 0.45,
1083
+ heightAboveSurface: 0.05
1084
+ }
1085
+ )
1086
+ ] });
1087
+ };
1088
+
1014
1089
  // lib/A0201.tsx
1015
1090
  var fullLength4 = 0.6;
1016
1091
  var width4 = 0.3;
@@ -2985,6 +3060,137 @@ var TO220 = () => {
2985
3060
  ] }) });
2986
3061
  };
2987
3062
 
3063
+ // lib/SOT-457.tsx
3064
+ var SOT457 = () => {
3065
+ const fullWidth = 2.8;
3066
+ const bodyWidth = 1.6;
3067
+ const bodyLength10 = 2.9;
3068
+ const bodyHeight = 1.2;
3069
+ const leadWidth = 0.4;
3070
+ const leadThickness = 0.15;
3071
+ const leadHeight = 0.95;
3072
+ const padContactLength = 0.5;
3073
+ const padPitch = 0.95;
3074
+ const extendedBodyDistance = fullWidth - bodyWidth;
3075
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
3076
+ /* @__PURE__ */ jsx(
3077
+ SmdChipLead,
3078
+ {
3079
+ rotation: Math.PI,
3080
+ position: {
3081
+ x: fullWidth / 2 + extendedBodyDistance / 4,
3082
+ y: -padPitch,
3083
+ z: leadThickness / 2
3084
+ },
3085
+ width: leadWidth,
3086
+ thickness: leadThickness,
3087
+ padContactLength,
3088
+ bodyDistance: extendedBodyDistance,
3089
+ height: leadHeight
3090
+ },
3091
+ 1
3092
+ ),
3093
+ /* @__PURE__ */ jsx(
3094
+ SmdChipLead,
3095
+ {
3096
+ rotation: Math.PI,
3097
+ position: {
3098
+ x: fullWidth / 2 + extendedBodyDistance / 4,
3099
+ y: 0,
3100
+ z: leadThickness / 2
3101
+ },
3102
+ width: leadWidth,
3103
+ thickness: leadThickness,
3104
+ padContactLength,
3105
+ bodyDistance: extendedBodyDistance,
3106
+ height: leadHeight
3107
+ },
3108
+ 2
3109
+ ),
3110
+ /* @__PURE__ */ jsx(
3111
+ SmdChipLead,
3112
+ {
3113
+ rotation: Math.PI,
3114
+ position: {
3115
+ x: fullWidth / 2 + extendedBodyDistance / 4,
3116
+ y: padPitch,
3117
+ z: leadThickness / 2
3118
+ },
3119
+ width: leadWidth,
3120
+ thickness: leadThickness,
3121
+ padContactLength,
3122
+ bodyDistance: extendedBodyDistance,
3123
+ height: leadHeight
3124
+ },
3125
+ 3
3126
+ ),
3127
+ /* @__PURE__ */ jsx(
3128
+ SmdChipLead,
3129
+ {
3130
+ position: {
3131
+ x: -fullWidth / 2 - extendedBodyDistance / 4,
3132
+ y: 0,
3133
+ z: leadThickness / 2
3134
+ },
3135
+ width: leadWidth,
3136
+ thickness: leadThickness,
3137
+ padContactLength,
3138
+ bodyDistance: extendedBodyDistance,
3139
+ height: leadHeight
3140
+ },
3141
+ 3
3142
+ ),
3143
+ /* @__PURE__ */ jsx(
3144
+ SmdChipLead,
3145
+ {
3146
+ position: {
3147
+ x: -fullWidth / 2 - extendedBodyDistance / 4,
3148
+ y: -padPitch,
3149
+ z: leadThickness / 2
3150
+ },
3151
+ width: leadWidth,
3152
+ thickness: leadThickness,
3153
+ padContactLength,
3154
+ bodyDistance: extendedBodyDistance,
3155
+ height: leadHeight
3156
+ },
3157
+ 1
3158
+ ),
3159
+ /* @__PURE__ */ jsx(
3160
+ SmdChipLead,
3161
+ {
3162
+ position: {
3163
+ x: -fullWidth / 2 - extendedBodyDistance / 4,
3164
+ y: padPitch,
3165
+ z: leadThickness / 2
3166
+ },
3167
+ width: leadWidth,
3168
+ thickness: leadThickness,
3169
+ padContactLength,
3170
+ bodyDistance: extendedBodyDistance,
3171
+ height: leadHeight
3172
+ },
3173
+ 2
3174
+ ),
3175
+ /* @__PURE__ */ jsx(
3176
+ ChipBody,
3177
+ {
3178
+ center: { x: 0, y: 0, z: 0 },
3179
+ width: bodyWidth,
3180
+ length: bodyLength10,
3181
+ height: bodyHeight,
3182
+ straightHeightRatio: 0.6,
3183
+ notchPosition: {
3184
+ x: bodyWidth / 2 - 0.4,
3185
+ y: bodyHeight / 2 + 0.4,
3186
+ z: bodyHeight + 0.05
3187
+ },
3188
+ notchRadius: 0.1
3189
+ }
3190
+ )
3191
+ ] });
3192
+ };
3193
+
2988
3194
  // lib/TO92.tsx
2989
3195
  var TO92 = () => {
2990
3196
  const bodyRadius = 2.4;
@@ -3273,8 +3479,12 @@ var Footprinter3d = ({ footprint }) => {
3273
3479
  }
3274
3480
  case "sot235":
3275
3481
  return /* @__PURE__ */ jsx(SOT_235_default, {});
3482
+ case "sot457":
3483
+ return /* @__PURE__ */ jsx(SOT457, {});
3276
3484
  case "sot223":
3277
3485
  return /* @__PURE__ */ jsx(SOT223, {});
3486
+ case "sot23w":
3487
+ return /* @__PURE__ */ jsx(SOT23W, {});
3278
3488
  case "sot323":
3279
3489
  return /* @__PURE__ */ jsx(SOT323, {});
3280
3490
  case "sot363":