jscad-electronics 0.0.146 → 0.0.147
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 +4 -3
- package/dist/index.js +623 -616
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +81 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -1232,6 +1232,84 @@ var SOT235 = () => {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
var SOT_235_default = SOT235;
|
|
1234
1234
|
|
|
1235
|
+
// lib/SOT-23-3P.tsx
|
|
1236
|
+
var SOT233P = ({
|
|
1237
|
+
fullWidth = 2.9,
|
|
1238
|
+
fullLength: fullLength10 = 2.8,
|
|
1239
|
+
color
|
|
1240
|
+
} = {}) => {
|
|
1241
|
+
const bodyWidth = 1.3;
|
|
1242
|
+
const bodyLength10 = 2.9;
|
|
1243
|
+
const bodyHeight = 1.1;
|
|
1244
|
+
const leadWidth = 0.4;
|
|
1245
|
+
const leadThickness = 0.15;
|
|
1246
|
+
const leadHeight = 0.95;
|
|
1247
|
+
const padContactLength = 0.4;
|
|
1248
|
+
const padThickness = leadThickness / 2;
|
|
1249
|
+
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
1250
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
1251
|
+
/* @__PURE__ */ jsx(
|
|
1252
|
+
SmdChipLead,
|
|
1253
|
+
{
|
|
1254
|
+
position: {
|
|
1255
|
+
x: -fullWidth / 2,
|
|
1256
|
+
y: 0.95,
|
|
1257
|
+
z: padThickness
|
|
1258
|
+
},
|
|
1259
|
+
width: leadWidth,
|
|
1260
|
+
thickness: leadThickness,
|
|
1261
|
+
padContactLength,
|
|
1262
|
+
bodyDistance: extendedBodyDistance,
|
|
1263
|
+
height: leadHeight
|
|
1264
|
+
},
|
|
1265
|
+
1
|
|
1266
|
+
),
|
|
1267
|
+
/* @__PURE__ */ jsx(
|
|
1268
|
+
SmdChipLead,
|
|
1269
|
+
{
|
|
1270
|
+
position: {
|
|
1271
|
+
x: -fullWidth / 2,
|
|
1272
|
+
y: -0.95,
|
|
1273
|
+
z: padThickness
|
|
1274
|
+
},
|
|
1275
|
+
width: leadWidth,
|
|
1276
|
+
thickness: leadThickness,
|
|
1277
|
+
padContactLength,
|
|
1278
|
+
bodyDistance: extendedBodyDistance,
|
|
1279
|
+
height: leadHeight
|
|
1280
|
+
},
|
|
1281
|
+
2
|
|
1282
|
+
),
|
|
1283
|
+
/* @__PURE__ */ jsx(
|
|
1284
|
+
SmdChipLead,
|
|
1285
|
+
{
|
|
1286
|
+
rotation: Math.PI,
|
|
1287
|
+
position: {
|
|
1288
|
+
x: fullWidth / 2,
|
|
1289
|
+
y: 0,
|
|
1290
|
+
z: padThickness
|
|
1291
|
+
},
|
|
1292
|
+
width: leadWidth,
|
|
1293
|
+
thickness: leadThickness,
|
|
1294
|
+
padContactLength,
|
|
1295
|
+
bodyDistance: extendedBodyDistance,
|
|
1296
|
+
height: leadHeight
|
|
1297
|
+
},
|
|
1298
|
+
3
|
|
1299
|
+
),
|
|
1300
|
+
/* @__PURE__ */ jsx(
|
|
1301
|
+
ChipBody,
|
|
1302
|
+
{
|
|
1303
|
+
center: { x: 0, y: 0, z: 0 },
|
|
1304
|
+
width: bodyWidth,
|
|
1305
|
+
length: bodyLength10,
|
|
1306
|
+
height: bodyHeight,
|
|
1307
|
+
color
|
|
1308
|
+
}
|
|
1309
|
+
)
|
|
1310
|
+
] });
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1235
1313
|
// lib/SOT-23W.tsx
|
|
1236
1314
|
var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
1237
1315
|
const bodyWidth = 1.92;
|
|
@@ -5854,6 +5932,9 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5854
5932
|
}
|
|
5855
5933
|
break;
|
|
5856
5934
|
}
|
|
5935
|
+
case "sot23":
|
|
5936
|
+
if (fpJson.num_pins === 3) return /* @__PURE__ */ jsx(SOT233P, { color });
|
|
5937
|
+
break;
|
|
5857
5938
|
case "sot235":
|
|
5858
5939
|
return /* @__PURE__ */ jsx(SOT_235_default, {});
|
|
5859
5940
|
case "sot457":
|