jscad-electronics 0.0.94 → 0.0.96

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;
@@ -2072,6 +2147,80 @@ var SOD123FL = () => {
2072
2147
  ] });
2073
2148
  };
2074
2149
 
2150
+ // lib/sod-128.tsx
2151
+ var SOD128 = () => {
2152
+ const fullWidth = 3.8;
2153
+ const bodyLength10 = 2.5;
2154
+ const bodyHeight = 1;
2155
+ const padWidth = 1.75;
2156
+ const padLength = 0.9;
2157
+ const padThickness = 0.2;
2158
+ const leftPadCenterX = -(fullWidth / 2 - 0.075);
2159
+ const rightPadCenterX = fullWidth / 2 - 0.075;
2160
+ const taperOffset = 0.4;
2161
+ const lowerTaperOffset = 0.05;
2162
+ const straightHeight = bodyHeight * 0.2;
2163
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
2164
+ /* @__PURE__ */ jsx(
2165
+ Cuboid,
2166
+ {
2167
+ color: "#ccc",
2168
+ size: [padLength, padWidth, padThickness],
2169
+ center: [leftPadCenterX, 0, padThickness / 2]
2170
+ }
2171
+ ),
2172
+ /* @__PURE__ */ jsx(
2173
+ Cuboid,
2174
+ {
2175
+ color: "#ccc",
2176
+ size: [padLength, padWidth, padThickness],
2177
+ center: [rightPadCenterX, 0, padThickness / 2]
2178
+ }
2179
+ ),
2180
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
2181
+ /* @__PURE__ */ jsxs(Hull, { children: [
2182
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(
2183
+ Cuboid,
2184
+ {
2185
+ size: [
2186
+ fullWidth - lowerTaperOffset / 2,
2187
+ bodyLength10 - lowerTaperOffset / 2,
2188
+ 0.01
2189
+ ]
2190
+ }
2191
+ ) }),
2192
+ /* @__PURE__ */ jsx(Translate, { z: 0.01, children: /* @__PURE__ */ jsx(
2193
+ Cuboid,
2194
+ {
2195
+ size: [
2196
+ fullWidth - lowerTaperOffset,
2197
+ bodyLength10 - lowerTaperOffset,
2198
+ 0.01
2199
+ ]
2200
+ }
2201
+ ) })
2202
+ ] }),
2203
+ /* @__PURE__ */ jsxs(Hull, { children: [
2204
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
2205
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
2206
+ Cuboid,
2207
+ {
2208
+ size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
2209
+ }
2210
+ ) })
2211
+ ] })
2212
+ ] }) }),
2213
+ /* @__PURE__ */ jsx(
2214
+ Cuboid,
2215
+ {
2216
+ color: "#777",
2217
+ size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
2218
+ center: [leftPadCenterX + taperOffset, 0, bodyHeight]
2219
+ }
2220
+ )
2221
+ ] });
2222
+ };
2223
+
2075
2224
  // lib/SOD-923.tsx
2076
2225
  var SOD923 = () => {
2077
2226
  const fullWidth = 0.8;
@@ -3408,6 +3557,8 @@ var Footprinter3d = ({ footprint }) => {
3408
3557
  return /* @__PURE__ */ jsx(SOT457, {});
3409
3558
  case "sot223":
3410
3559
  return /* @__PURE__ */ jsx(SOT223, {});
3560
+ case "sot23w":
3561
+ return /* @__PURE__ */ jsx(SOT23W, {});
3411
3562
  case "sot323":
3412
3563
  return /* @__PURE__ */ jsx(SOT323, {});
3413
3564
  case "sot363":
@@ -3448,6 +3599,8 @@ var Footprinter3d = ({ footprint }) => {
3448
3599
  return /* @__PURE__ */ jsx(SOD123F, {});
3449
3600
  case "sod123fl":
3450
3601
  return /* @__PURE__ */ jsx(SOD123FL, {});
3602
+ case "sod128":
3603
+ return /* @__PURE__ */ jsx(SOD128, {});
3451
3604
  case "sod923":
3452
3605
  return /* @__PURE__ */ jsx(SOD923, {});
3453
3606
  case "hc49":