jscad-electronics 0.0.92 → 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/vanilla.js CHANGED
@@ -2985,6 +2985,174 @@ 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
+
3119
+ // lib/TO92.tsx
3120
+ var TO92 = () => {
3121
+ const bodyRadius = 2.4;
3122
+ const bodyHeight = 4.5;
3123
+ const flatCut = 1.1;
3124
+ const legWidth = 0.4;
3125
+ const legThickness = 0.25;
3126
+ const bodyZ = bodyHeight / 2;
3127
+ const bodyColor = "#222";
3128
+ const leadLength = 0.43;
3129
+ const leadTipSize = [leadLength, legWidth, 1.32];
3130
+ const leadSmallSize = [
3131
+ leadLength,
3132
+ legWidth,
3133
+ legThickness
3134
+ ];
3135
+ const leadTipPos1 = [0, 0, -0.66];
3136
+ const leadMidPosA = [0, 0, -1.32];
3137
+ const leadMidPosB = [0, 1.28, -2.72];
3138
+ const leadTipPos2 = [0, 1.28, -8.9];
3139
+ const sideLeadZ = -7.5;
3140
+ return /* @__PURE__ */ jsxs(Translate, { center: [0, 1, 10.5], children: [
3141
+ /* @__PURE__ */ jsx(Colorize, { color: bodyColor, children: /* @__PURE__ */ jsxs(Subtract, { children: [
3142
+ /* @__PURE__ */ jsx(Translate, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx(Cylinder, { radius: bodyRadius, height: bodyHeight }) }),
3143
+ /* @__PURE__ */ jsx(Translate, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
3144
+ ] }) }),
3145
+ /* @__PURE__ */ jsx(Translate, { center: leadTipPos1, children: /* @__PURE__ */ jsx(Cuboid, { size: leadTipSize }) }),
3146
+ /* @__PURE__ */ jsxs(Hull, { children: [
3147
+ /* @__PURE__ */ jsx(Translate, { center: leadMidPosA, children: /* @__PURE__ */ jsx(Cuboid, { size: leadSmallSize }) }),
3148
+ /* @__PURE__ */ jsx(Translate, { center: leadMidPosB, children: /* @__PURE__ */ jsx(Cuboid, { size: leadSmallSize }) })
3149
+ ] }),
3150
+ /* @__PURE__ */ jsx(Translate, { center: leadTipPos2, children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 12.2] }) }),
3151
+ /* @__PURE__ */ jsx(Translate, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 15] }) }),
3152
+ /* @__PURE__ */ jsx(Translate, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 15] }) })
3153
+ ] });
3154
+ };
3155
+
2988
3156
  // lib/SOT-363.tsx
2989
3157
  var SOT363 = () => {
2990
3158
  const fullWidth = 2;
@@ -3236,6 +3404,8 @@ var Footprinter3d = ({ footprint }) => {
3236
3404
  }
3237
3405
  case "sot235":
3238
3406
  return /* @__PURE__ */ jsx(SOT_235_default, {});
3407
+ case "sot457":
3408
+ return /* @__PURE__ */ jsx(SOT457, {});
3239
3409
  case "sot223":
3240
3410
  return /* @__PURE__ */ jsx(SOT223, {});
3241
3411
  case "sot323":
@@ -3302,6 +3472,8 @@ var Footprinter3d = ({ footprint }) => {
3302
3472
  return /* @__PURE__ */ jsx(SOT723, {});
3303
3473
  case "to220":
3304
3474
  return /* @__PURE__ */ jsx(TO220, {});
3475
+ case "to92":
3476
+ return /* @__PURE__ */ jsx(TO92, {});
3305
3477
  }
3306
3478
  const colorMatch = footprint.match(/_color\(([^)]+)\)/);
3307
3479
  const color = colorMatch ? colorMatch[1] : void 0;