jscad-electronics 0.0.91 → 0.0.93

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/TO92.tsx
2989
+ var TO92 = () => {
2990
+ const bodyRadius = 2.4;
2991
+ const bodyHeight = 4.5;
2992
+ const flatCut = 1.1;
2993
+ const legWidth = 0.4;
2994
+ const legThickness = 0.25;
2995
+ const bodyZ = bodyHeight / 2;
2996
+ const bodyColor = "#222";
2997
+ const leadLength = 0.43;
2998
+ const leadTipSize = [leadLength, legWidth, 1.32];
2999
+ const leadSmallSize = [
3000
+ leadLength,
3001
+ legWidth,
3002
+ legThickness
3003
+ ];
3004
+ const leadTipPos1 = [0, 0, -0.66];
3005
+ const leadMidPosA = [0, 0, -1.32];
3006
+ const leadMidPosB = [0, 1.28, -2.72];
3007
+ const leadTipPos2 = [0, 1.28, -8.9];
3008
+ const sideLeadZ = -7.5;
3009
+ return /* @__PURE__ */ jsxs(Translate, { center: [0, 1, 10.5], children: [
3010
+ /* @__PURE__ */ jsx(Colorize, { color: bodyColor, children: /* @__PURE__ */ jsxs(Subtract, { children: [
3011
+ /* @__PURE__ */ jsx(Translate, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx(Cylinder, { radius: bodyRadius, height: bodyHeight }) }),
3012
+ /* @__PURE__ */ jsx(Translate, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
3013
+ ] }) }),
3014
+ /* @__PURE__ */ jsx(Translate, { center: leadTipPos1, children: /* @__PURE__ */ jsx(Cuboid, { size: leadTipSize }) }),
3015
+ /* @__PURE__ */ jsxs(Hull, { children: [
3016
+ /* @__PURE__ */ jsx(Translate, { center: leadMidPosA, children: /* @__PURE__ */ jsx(Cuboid, { size: leadSmallSize }) }),
3017
+ /* @__PURE__ */ jsx(Translate, { center: leadMidPosB, children: /* @__PURE__ */ jsx(Cuboid, { size: leadSmallSize }) })
3018
+ ] }),
3019
+ /* @__PURE__ */ jsx(Translate, { center: leadTipPos2, children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 12.2] }) }),
3020
+ /* @__PURE__ */ jsx(Translate, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 15] }) }),
3021
+ /* @__PURE__ */ jsx(Translate, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 15] }) })
3022
+ ] });
3023
+ };
3024
+
3025
+ // lib/SOT-363.tsx
3026
+ var SOT363 = () => {
3027
+ const fullWidth = 2;
3028
+ const bodyWidth = 1.25;
3029
+ const bodyLength10 = 2;
3030
+ const bodyHeight = 1.1;
3031
+ const leadWidth = 0.25;
3032
+ const leadThickness = 0.15;
3033
+ const leadHeight = 0.85;
3034
+ const padContactLength = 0.3;
3035
+ const extendedBodyDistance = fullWidth - bodyWidth;
3036
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
3037
+ /* @__PURE__ */ jsx(
3038
+ SmdChipLead,
3039
+ {
3040
+ rotation: Math.PI,
3041
+ position: {
3042
+ x: fullWidth / 2 + extendedBodyDistance / 4,
3043
+ y: -0.65,
3044
+ z: leadThickness / 2
3045
+ },
3046
+ width: leadWidth,
3047
+ thickness: leadThickness,
3048
+ padContactLength,
3049
+ bodyDistance: extendedBodyDistance,
3050
+ height: leadHeight
3051
+ },
3052
+ 1
3053
+ ),
3054
+ /* @__PURE__ */ jsx(
3055
+ SmdChipLead,
3056
+ {
3057
+ rotation: Math.PI,
3058
+ position: {
3059
+ x: fullWidth / 2 + extendedBodyDistance / 4,
3060
+ y: 0,
3061
+ z: leadThickness / 2
3062
+ },
3063
+ width: leadWidth,
3064
+ thickness: leadThickness,
3065
+ padContactLength,
3066
+ bodyDistance: extendedBodyDistance,
3067
+ height: leadHeight
3068
+ },
3069
+ 2
3070
+ ),
3071
+ /* @__PURE__ */ jsx(
3072
+ SmdChipLead,
3073
+ {
3074
+ rotation: Math.PI,
3075
+ position: {
3076
+ x: fullWidth / 2 + extendedBodyDistance / 4,
3077
+ y: 0.65,
3078
+ z: leadThickness / 2
3079
+ },
3080
+ width: leadWidth,
3081
+ thickness: leadThickness,
3082
+ padContactLength,
3083
+ bodyDistance: extendedBodyDistance,
3084
+ height: leadHeight
3085
+ },
3086
+ 3
3087
+ ),
3088
+ /* @__PURE__ */ jsx(
3089
+ SmdChipLead,
3090
+ {
3091
+ position: {
3092
+ x: -fullWidth / 2 - extendedBodyDistance / 4,
3093
+ y: 0,
3094
+ z: leadThickness / 2
3095
+ },
3096
+ width: leadWidth,
3097
+ thickness: leadThickness,
3098
+ padContactLength,
3099
+ bodyDistance: extendedBodyDistance,
3100
+ height: leadHeight
3101
+ },
3102
+ 3
3103
+ ),
3104
+ /* @__PURE__ */ jsx(
3105
+ SmdChipLead,
3106
+ {
3107
+ position: {
3108
+ x: -fullWidth / 2 - extendedBodyDistance / 4,
3109
+ y: -0.65,
3110
+ z: leadThickness / 2
3111
+ },
3112
+ width: leadWidth,
3113
+ thickness: leadThickness,
3114
+ padContactLength,
3115
+ bodyDistance: extendedBodyDistance,
3116
+ height: leadHeight
3117
+ },
3118
+ 1
3119
+ ),
3120
+ /* @__PURE__ */ jsx(
3121
+ SmdChipLead,
3122
+ {
3123
+ position: {
3124
+ x: -fullWidth / 2 - extendedBodyDistance / 4,
3125
+ y: 0.65,
3126
+ z: leadThickness / 2
3127
+ },
3128
+ width: leadWidth,
3129
+ thickness: leadThickness,
3130
+ padContactLength,
3131
+ bodyDistance: extendedBodyDistance,
3132
+ height: leadHeight
3133
+ },
3134
+ 2
3135
+ ),
3136
+ /* @__PURE__ */ jsx(
3137
+ ChipBody,
3138
+ {
3139
+ center: { x: 0, y: 0, z: 0 },
3140
+ width: bodyWidth,
3141
+ length: bodyLength10,
3142
+ height: bodyHeight,
3143
+ straightHeightRatio: 0.6,
3144
+ notchPosition: {
3145
+ x: bodyWidth / 2 - 0.25,
3146
+ y: bodyHeight / 2 + 0.2,
3147
+ z: bodyHeight
3148
+ },
3149
+ heightAboveSurface: 0.1
3150
+ }
3151
+ )
3152
+ ] });
3153
+ };
3154
+ var SOT_363_default = SOT363;
3155
+
2988
3156
  // lib/Footprinter3d.tsx
2989
3157
  var Footprinter3d = ({ footprint }) => {
2990
3158
  const fpJson = fp.string(footprint).json();
@@ -3109,6 +3277,8 @@ var Footprinter3d = ({ footprint }) => {
3109
3277
  return /* @__PURE__ */ jsx(SOT223, {});
3110
3278
  case "sot323":
3111
3279
  return /* @__PURE__ */ jsx(SOT323, {});
3280
+ case "sot363":
3281
+ return /* @__PURE__ */ jsx(SOT_363_default, {});
3112
3282
  case "pushbutton":
3113
3283
  return /* @__PURE__ */ jsx(
3114
3284
  PushButton,
@@ -3169,6 +3339,8 @@ var Footprinter3d = ({ footprint }) => {
3169
3339
  return /* @__PURE__ */ jsx(SOT723, {});
3170
3340
  case "to220":
3171
3341
  return /* @__PURE__ */ jsx(TO220, {});
3342
+ case "to92":
3343
+ return /* @__PURE__ */ jsx(TO92, {});
3172
3344
  }
3173
3345
  const colorMatch = footprint.match(/_color\(([^)]+)\)/);
3174
3346
  const color = colorMatch ? colorMatch[1] : void 0;