jscad-electronics 0.0.145 → 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 +18 -8
- package/dist/index.js +803 -775
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +158 -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;
|
|
@@ -2486,6 +2564,81 @@ var SOD123W = () => {
|
|
|
2486
2564
|
] });
|
|
2487
2565
|
};
|
|
2488
2566
|
|
|
2567
|
+
// lib/sod-123.tsx
|
|
2568
|
+
var SOD123 = ({
|
|
2569
|
+
fullWidth = 3.7,
|
|
2570
|
+
fullLength: fullLength10 = 1.55
|
|
2571
|
+
} = {}) => {
|
|
2572
|
+
const bodyWidth = fullWidth - 1;
|
|
2573
|
+
const bodyLength10 = fullLength10;
|
|
2574
|
+
const packageHeight = 1.175;
|
|
2575
|
+
const bodyStandoff = 0.1;
|
|
2576
|
+
const bodyHeight = packageHeight - bodyStandoff;
|
|
2577
|
+
const leadWidth = 0.55;
|
|
2578
|
+
const leadThickness = 0.12;
|
|
2579
|
+
const leadHeight = 0.35;
|
|
2580
|
+
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
2581
|
+
const padContactLength = 0.25;
|
|
2582
|
+
const leadCurveLength = 0.2;
|
|
2583
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
2584
|
+
/* @__PURE__ */ jsx(
|
|
2585
|
+
SmdChipLead,
|
|
2586
|
+
{
|
|
2587
|
+
position: {
|
|
2588
|
+
x: -fullWidth / 2,
|
|
2589
|
+
y: 0,
|
|
2590
|
+
z: leadThickness / 2
|
|
2591
|
+
},
|
|
2592
|
+
width: leadWidth,
|
|
2593
|
+
thickness: leadThickness,
|
|
2594
|
+
padContactLength,
|
|
2595
|
+
bodyDistance,
|
|
2596
|
+
curveLength: leadCurveLength,
|
|
2597
|
+
height: leadHeight
|
|
2598
|
+
}
|
|
2599
|
+
),
|
|
2600
|
+
/* @__PURE__ */ jsx(
|
|
2601
|
+
SmdChipLead,
|
|
2602
|
+
{
|
|
2603
|
+
rotation: Math.PI,
|
|
2604
|
+
position: {
|
|
2605
|
+
x: fullWidth / 2,
|
|
2606
|
+
y: 0,
|
|
2607
|
+
z: leadThickness / 2
|
|
2608
|
+
},
|
|
2609
|
+
width: leadWidth,
|
|
2610
|
+
thickness: leadThickness,
|
|
2611
|
+
padContactLength,
|
|
2612
|
+
bodyDistance,
|
|
2613
|
+
curveLength: leadCurveLength,
|
|
2614
|
+
height: leadHeight
|
|
2615
|
+
}
|
|
2616
|
+
),
|
|
2617
|
+
/* @__PURE__ */ jsx(
|
|
2618
|
+
ChipBody,
|
|
2619
|
+
{
|
|
2620
|
+
center: { x: 0, y: 0, z: 0 },
|
|
2621
|
+
width: bodyWidth,
|
|
2622
|
+
length: bodyLength10,
|
|
2623
|
+
height: bodyHeight,
|
|
2624
|
+
heightAboveSurface: bodyStandoff,
|
|
2625
|
+
includeNotch: false,
|
|
2626
|
+
color: "#222",
|
|
2627
|
+
taperRatio: 0.06,
|
|
2628
|
+
straightHeightRatio: 0.6
|
|
2629
|
+
}
|
|
2630
|
+
),
|
|
2631
|
+
/* @__PURE__ */ jsx(
|
|
2632
|
+
Cuboid,
|
|
2633
|
+
{
|
|
2634
|
+
color: "#777",
|
|
2635
|
+
size: [0.45, bodyLength10 - 0.15, 0.02],
|
|
2636
|
+
center: [-bodyWidth / 4, 0, packageHeight]
|
|
2637
|
+
}
|
|
2638
|
+
)
|
|
2639
|
+
] });
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2489
2642
|
// lib/sod-128.tsx
|
|
2490
2643
|
var SOD128 = () => {
|
|
2491
2644
|
const fullWidth = 3.8;
|
|
@@ -5779,6 +5932,9 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5779
5932
|
}
|
|
5780
5933
|
break;
|
|
5781
5934
|
}
|
|
5935
|
+
case "sot23":
|
|
5936
|
+
if (fpJson.num_pins === 3) return /* @__PURE__ */ jsx(SOT233P, { color });
|
|
5937
|
+
break;
|
|
5782
5938
|
case "sot235":
|
|
5783
5939
|
return /* @__PURE__ */ jsx(SOT_235_default, {});
|
|
5784
5940
|
case "sot457":
|
|
@@ -5882,6 +6038,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5882
6038
|
return /* @__PURE__ */ jsx(SMC, {});
|
|
5883
6039
|
case "smf":
|
|
5884
6040
|
return /* @__PURE__ */ jsx(SMF, {});
|
|
6041
|
+
case "sod123":
|
|
6042
|
+
return /* @__PURE__ */ jsx(SOD123, {});
|
|
5885
6043
|
case "sod123f":
|
|
5886
6044
|
return /* @__PURE__ */ jsx(SOD123F, {});
|
|
5887
6045
|
case "sod123fl":
|