jscad-electronics 0.0.95 → 0.0.97
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 +5 -1
- package/dist/index.js +390 -232
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +152 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2300,9 +2300,161 @@ var SOD123FL = () => {
|
|
|
2300
2300
|
] });
|
|
2301
2301
|
};
|
|
2302
2302
|
|
|
2303
|
-
// lib/
|
|
2303
|
+
// lib/sod-123W.tsx
|
|
2304
2304
|
import { Colorize as Colorize18, Cuboid as Cuboid26, Hull as Hull12, Translate as Translate17, Union as Union13 } from "jscad-fiber";
|
|
2305
2305
|
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2306
|
+
var SOD123W = () => {
|
|
2307
|
+
const fullWidth = 2.6;
|
|
2308
|
+
const bodyLength10 = 1.7;
|
|
2309
|
+
const bodyHeight = 1;
|
|
2310
|
+
const padWidth = 0.9;
|
|
2311
|
+
const padLength = 0.9;
|
|
2312
|
+
const padThickness = 0.2;
|
|
2313
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2314
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2315
|
+
const taperOffset = 0.4;
|
|
2316
|
+
const lowerTaperOffset = 0.1;
|
|
2317
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2318
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2319
|
+
/* @__PURE__ */ jsx36(
|
|
2320
|
+
Cuboid26,
|
|
2321
|
+
{
|
|
2322
|
+
color: "#ccc",
|
|
2323
|
+
size: [padLength, padWidth, padThickness],
|
|
2324
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2325
|
+
}
|
|
2326
|
+
),
|
|
2327
|
+
/* @__PURE__ */ jsx36(
|
|
2328
|
+
Cuboid26,
|
|
2329
|
+
{
|
|
2330
|
+
color: "#ccc",
|
|
2331
|
+
size: [padLength, padWidth, padThickness],
|
|
2332
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2333
|
+
}
|
|
2334
|
+
),
|
|
2335
|
+
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union13, { children: [
|
|
2336
|
+
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2337
|
+
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(
|
|
2338
|
+
Cuboid26,
|
|
2339
|
+
{
|
|
2340
|
+
size: [
|
|
2341
|
+
fullWidth - lowerTaperOffset / 2,
|
|
2342
|
+
bodyLength10 - lowerTaperOffset / 2,
|
|
2343
|
+
0.01
|
|
2344
|
+
]
|
|
2345
|
+
}
|
|
2346
|
+
) }),
|
|
2347
|
+
/* @__PURE__ */ jsx36(Translate17, { z: 0.01, children: /* @__PURE__ */ jsx36(
|
|
2348
|
+
Cuboid26,
|
|
2349
|
+
{
|
|
2350
|
+
size: [
|
|
2351
|
+
fullWidth - lowerTaperOffset,
|
|
2352
|
+
bodyLength10 - lowerTaperOffset,
|
|
2353
|
+
0.01
|
|
2354
|
+
]
|
|
2355
|
+
}
|
|
2356
|
+
) })
|
|
2357
|
+
] }),
|
|
2358
|
+
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2359
|
+
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(Cuboid26, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2360
|
+
/* @__PURE__ */ jsx36(Translate17, { z: bodyHeight, children: /* @__PURE__ */ jsx36(
|
|
2361
|
+
Cuboid26,
|
|
2362
|
+
{
|
|
2363
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2364
|
+
}
|
|
2365
|
+
) })
|
|
2366
|
+
] })
|
|
2367
|
+
] }) }),
|
|
2368
|
+
/* @__PURE__ */ jsx36(
|
|
2369
|
+
Cuboid26,
|
|
2370
|
+
{
|
|
2371
|
+
color: "#777",
|
|
2372
|
+
size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
|
|
2373
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2374
|
+
}
|
|
2375
|
+
)
|
|
2376
|
+
] });
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
// lib/sod-128.tsx
|
|
2380
|
+
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as Union14 } from "jscad-fiber";
|
|
2381
|
+
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2382
|
+
var SOD128 = () => {
|
|
2383
|
+
const fullWidth = 3.8;
|
|
2384
|
+
const bodyLength10 = 2.5;
|
|
2385
|
+
const bodyHeight = 1;
|
|
2386
|
+
const padWidth = 1.75;
|
|
2387
|
+
const padLength = 0.9;
|
|
2388
|
+
const padThickness = 0.2;
|
|
2389
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2390
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2391
|
+
const taperOffset = 0.4;
|
|
2392
|
+
const lowerTaperOffset = 0.05;
|
|
2393
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2394
|
+
return /* @__PURE__ */ jsxs35(Fragment33, { children: [
|
|
2395
|
+
/* @__PURE__ */ jsx37(
|
|
2396
|
+
Cuboid27,
|
|
2397
|
+
{
|
|
2398
|
+
color: "#ccc",
|
|
2399
|
+
size: [padLength, padWidth, padThickness],
|
|
2400
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2401
|
+
}
|
|
2402
|
+
),
|
|
2403
|
+
/* @__PURE__ */ jsx37(
|
|
2404
|
+
Cuboid27,
|
|
2405
|
+
{
|
|
2406
|
+
color: "#ccc",
|
|
2407
|
+
size: [padLength, padWidth, padThickness],
|
|
2408
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2409
|
+
}
|
|
2410
|
+
),
|
|
2411
|
+
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union14, { children: [
|
|
2412
|
+
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2413
|
+
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx37(
|
|
2414
|
+
Cuboid27,
|
|
2415
|
+
{
|
|
2416
|
+
size: [
|
|
2417
|
+
fullWidth - lowerTaperOffset / 2,
|
|
2418
|
+
bodyLength10 - lowerTaperOffset / 2,
|
|
2419
|
+
0.01
|
|
2420
|
+
]
|
|
2421
|
+
}
|
|
2422
|
+
) }),
|
|
2423
|
+
/* @__PURE__ */ jsx37(Translate18, { z: 0.01, children: /* @__PURE__ */ jsx37(
|
|
2424
|
+
Cuboid27,
|
|
2425
|
+
{
|
|
2426
|
+
size: [
|
|
2427
|
+
fullWidth - lowerTaperOffset,
|
|
2428
|
+
bodyLength10 - lowerTaperOffset,
|
|
2429
|
+
0.01
|
|
2430
|
+
]
|
|
2431
|
+
}
|
|
2432
|
+
) })
|
|
2433
|
+
] }),
|
|
2434
|
+
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2435
|
+
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx37(Cuboid27, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2436
|
+
/* @__PURE__ */ jsx37(Translate18, { z: bodyHeight, children: /* @__PURE__ */ jsx37(
|
|
2437
|
+
Cuboid27,
|
|
2438
|
+
{
|
|
2439
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2440
|
+
}
|
|
2441
|
+
) })
|
|
2442
|
+
] })
|
|
2443
|
+
] }) }),
|
|
2444
|
+
/* @__PURE__ */ jsx37(
|
|
2445
|
+
Cuboid27,
|
|
2446
|
+
{
|
|
2447
|
+
color: "#777",
|
|
2448
|
+
size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
|
|
2449
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2450
|
+
}
|
|
2451
|
+
)
|
|
2452
|
+
] });
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
// lib/SOD-923.tsx
|
|
2456
|
+
import { Colorize as Colorize20, Cuboid as Cuboid28, Hull as Hull14, Translate as Translate19, Union as Union15 } from "jscad-fiber";
|
|
2457
|
+
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2306
2458
|
var SOD923 = () => {
|
|
2307
2459
|
const fullWidth = 0.8;
|
|
2308
2460
|
const bodyLength10 = 0.6;
|
|
@@ -2314,29 +2466,29 @@ var SOD923 = () => {
|
|
|
2314
2466
|
const rightPadCenterX = fullWidth / 2;
|
|
2315
2467
|
const taperOffset = 0.1;
|
|
2316
2468
|
const straightHeight = padThickness;
|
|
2317
|
-
return /* @__PURE__ */
|
|
2318
|
-
/* @__PURE__ */
|
|
2319
|
-
|
|
2469
|
+
return /* @__PURE__ */ jsxs36(Fragment34, { children: [
|
|
2470
|
+
/* @__PURE__ */ jsx38(
|
|
2471
|
+
Cuboid28,
|
|
2320
2472
|
{
|
|
2321
2473
|
color: "#ccc",
|
|
2322
2474
|
size: [padLength, padWidth, padThickness],
|
|
2323
2475
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2324
2476
|
}
|
|
2325
2477
|
),
|
|
2326
|
-
/* @__PURE__ */
|
|
2327
|
-
|
|
2478
|
+
/* @__PURE__ */ jsx38(
|
|
2479
|
+
Cuboid28,
|
|
2328
2480
|
{
|
|
2329
2481
|
color: "#ccc",
|
|
2330
2482
|
size: [padLength, padWidth, padThickness],
|
|
2331
2483
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2332
2484
|
}
|
|
2333
2485
|
),
|
|
2334
|
-
/* @__PURE__ */
|
|
2335
|
-
/* @__PURE__ */
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
|
|
2486
|
+
/* @__PURE__ */ jsx38(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(Union15, { children: [
|
|
2487
|
+
/* @__PURE__ */ jsx38(Translate19, { z: straightHeight / 2, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2488
|
+
/* @__PURE__ */ jsxs36(Hull14, { children: [
|
|
2489
|
+
/* @__PURE__ */ jsx38(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx38(Cuboid28, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2490
|
+
/* @__PURE__ */ jsx38(Translate19, { z: bodyHeight, children: /* @__PURE__ */ jsx38(
|
|
2491
|
+
Cuboid28,
|
|
2340
2492
|
{
|
|
2341
2493
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2342
2494
|
}
|
|
@@ -2347,7 +2499,7 @@ var SOD923 = () => {
|
|
|
2347
2499
|
};
|
|
2348
2500
|
|
|
2349
2501
|
// lib/SOT-223.tsx
|
|
2350
|
-
import { Fragment as
|
|
2502
|
+
import { Fragment as Fragment35, jsx as jsx39, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2351
2503
|
var SOT223 = () => {
|
|
2352
2504
|
const fullWidth = 6.6;
|
|
2353
2505
|
const bodyWidth = 3.5;
|
|
@@ -2360,8 +2512,8 @@ var SOT223 = () => {
|
|
|
2360
2512
|
const padContactLength = 0.5;
|
|
2361
2513
|
const padPitch = 2.3;
|
|
2362
2514
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2363
|
-
return /* @__PURE__ */
|
|
2364
|
-
/* @__PURE__ */
|
|
2515
|
+
return /* @__PURE__ */ jsxs37(Fragment35, { children: [
|
|
2516
|
+
/* @__PURE__ */ jsx39(
|
|
2365
2517
|
SmdChipLead,
|
|
2366
2518
|
{
|
|
2367
2519
|
rotation: Math.PI,
|
|
@@ -2378,7 +2530,7 @@ var SOT223 = () => {
|
|
|
2378
2530
|
},
|
|
2379
2531
|
4
|
|
2380
2532
|
),
|
|
2381
|
-
/* @__PURE__ */
|
|
2533
|
+
/* @__PURE__ */ jsx39(
|
|
2382
2534
|
SmdChipLead,
|
|
2383
2535
|
{
|
|
2384
2536
|
position: {
|
|
@@ -2394,7 +2546,7 @@ var SOT223 = () => {
|
|
|
2394
2546
|
},
|
|
2395
2547
|
3
|
|
2396
2548
|
),
|
|
2397
|
-
/* @__PURE__ */
|
|
2549
|
+
/* @__PURE__ */ jsx39(
|
|
2398
2550
|
SmdChipLead,
|
|
2399
2551
|
{
|
|
2400
2552
|
position: {
|
|
@@ -2410,7 +2562,7 @@ var SOT223 = () => {
|
|
|
2410
2562
|
},
|
|
2411
2563
|
1
|
|
2412
2564
|
),
|
|
2413
|
-
/* @__PURE__ */
|
|
2565
|
+
/* @__PURE__ */ jsx39(
|
|
2414
2566
|
SmdChipLead,
|
|
2415
2567
|
{
|
|
2416
2568
|
position: {
|
|
@@ -2426,7 +2578,7 @@ var SOT223 = () => {
|
|
|
2426
2578
|
},
|
|
2427
2579
|
2
|
|
2428
2580
|
),
|
|
2429
|
-
/* @__PURE__ */
|
|
2581
|
+
/* @__PURE__ */ jsx39(
|
|
2430
2582
|
ChipBody,
|
|
2431
2583
|
{
|
|
2432
2584
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2442,7 +2594,7 @@ var SOT223 = () => {
|
|
|
2442
2594
|
};
|
|
2443
2595
|
|
|
2444
2596
|
// lib/tqfp.tsx
|
|
2445
|
-
import { Fragment as
|
|
2597
|
+
import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2446
2598
|
var TQFP = () => {
|
|
2447
2599
|
const pinCount = 64;
|
|
2448
2600
|
const pitch = 0.5;
|
|
@@ -2457,8 +2609,8 @@ var TQFP = () => {
|
|
|
2457
2609
|
const leadHeight = 0.65;
|
|
2458
2610
|
const leadThickness = 0.25;
|
|
2459
2611
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2460
|
-
return /* @__PURE__ */
|
|
2461
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2612
|
+
return /* @__PURE__ */ jsxs38(Fragment36, { children: [
|
|
2613
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2462
2614
|
SmdChipLead,
|
|
2463
2615
|
{
|
|
2464
2616
|
position: {
|
|
@@ -2474,7 +2626,7 @@ var TQFP = () => {
|
|
|
2474
2626
|
},
|
|
2475
2627
|
`left-${i}`
|
|
2476
2628
|
)),
|
|
2477
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2629
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2478
2630
|
SmdChipLead,
|
|
2479
2631
|
{
|
|
2480
2632
|
rotation: Math.PI,
|
|
@@ -2491,7 +2643,7 @@ var TQFP = () => {
|
|
|
2491
2643
|
},
|
|
2492
2644
|
`right-${i}`
|
|
2493
2645
|
)),
|
|
2494
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2646
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2495
2647
|
SmdChipLead,
|
|
2496
2648
|
{
|
|
2497
2649
|
rotation: Math.PI / 2,
|
|
@@ -2508,7 +2660,7 @@ var TQFP = () => {
|
|
|
2508
2660
|
},
|
|
2509
2661
|
`bottom-${i}`
|
|
2510
2662
|
)),
|
|
2511
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2663
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2512
2664
|
SmdChipLead,
|
|
2513
2665
|
{
|
|
2514
2666
|
rotation: -Math.PI / 2,
|
|
@@ -2525,7 +2677,7 @@ var TQFP = () => {
|
|
|
2525
2677
|
},
|
|
2526
2678
|
`top-${i}`
|
|
2527
2679
|
)),
|
|
2528
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ jsx40(
|
|
2529
2681
|
ChipBody,
|
|
2530
2682
|
{
|
|
2531
2683
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2543,7 +2695,7 @@ var TQFP = () => {
|
|
|
2543
2695
|
var tqfp_default = TQFP;
|
|
2544
2696
|
|
|
2545
2697
|
// lib/SOT-323.tsx
|
|
2546
|
-
import { Fragment as
|
|
2698
|
+
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2547
2699
|
var SOT323 = () => {
|
|
2548
2700
|
const fullWidth = 2.05;
|
|
2549
2701
|
const bodyWidth = 1.25;
|
|
@@ -2555,8 +2707,8 @@ var SOT323 = () => {
|
|
|
2555
2707
|
const padContactLength = 0.2;
|
|
2556
2708
|
const padPitch = 0.65;
|
|
2557
2709
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2558
|
-
return /* @__PURE__ */
|
|
2559
|
-
/* @__PURE__ */
|
|
2710
|
+
return /* @__PURE__ */ jsxs39(Fragment37, { children: [
|
|
2711
|
+
/* @__PURE__ */ jsx41(
|
|
2560
2712
|
SmdChipLead,
|
|
2561
2713
|
{
|
|
2562
2714
|
rotation: Math.PI,
|
|
@@ -2573,7 +2725,7 @@ var SOT323 = () => {
|
|
|
2573
2725
|
},
|
|
2574
2726
|
4
|
|
2575
2727
|
),
|
|
2576
|
-
/* @__PURE__ */
|
|
2728
|
+
/* @__PURE__ */ jsx41(
|
|
2577
2729
|
SmdChipLead,
|
|
2578
2730
|
{
|
|
2579
2731
|
position: {
|
|
@@ -2589,7 +2741,7 @@ var SOT323 = () => {
|
|
|
2589
2741
|
},
|
|
2590
2742
|
1
|
|
2591
2743
|
),
|
|
2592
|
-
/* @__PURE__ */
|
|
2744
|
+
/* @__PURE__ */ jsx41(
|
|
2593
2745
|
SmdChipLead,
|
|
2594
2746
|
{
|
|
2595
2747
|
position: {
|
|
@@ -2605,7 +2757,7 @@ var SOT323 = () => {
|
|
|
2605
2757
|
},
|
|
2606
2758
|
2
|
|
2607
2759
|
),
|
|
2608
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ jsx41(
|
|
2609
2761
|
ChipBody,
|
|
2610
2762
|
{
|
|
2611
2763
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2622,7 +2774,7 @@ var SOT323 = () => {
|
|
|
2622
2774
|
};
|
|
2623
2775
|
|
|
2624
2776
|
// lib/lqfp.tsx
|
|
2625
|
-
import { Fragment as
|
|
2777
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2626
2778
|
var LQFP = ({
|
|
2627
2779
|
pinCount,
|
|
2628
2780
|
pitch,
|
|
@@ -2645,8 +2797,8 @@ var LQFP = ({
|
|
|
2645
2797
|
const leadHeight = 0.8;
|
|
2646
2798
|
const leadThickness = 0.2;
|
|
2647
2799
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
|
|
2648
|
-
return /* @__PURE__ */
|
|
2649
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2800
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2801
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2650
2802
|
SmdChipLead,
|
|
2651
2803
|
{
|
|
2652
2804
|
position: {
|
|
@@ -2662,7 +2814,7 @@ var LQFP = ({
|
|
|
2662
2814
|
},
|
|
2663
2815
|
`left-${i}`
|
|
2664
2816
|
)),
|
|
2665
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2817
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2666
2818
|
SmdChipLead,
|
|
2667
2819
|
{
|
|
2668
2820
|
rotation: Math.PI,
|
|
@@ -2679,7 +2831,7 @@ var LQFP = ({
|
|
|
2679
2831
|
},
|
|
2680
2832
|
`right-${i}`
|
|
2681
2833
|
)),
|
|
2682
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2834
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2683
2835
|
SmdChipLead,
|
|
2684
2836
|
{
|
|
2685
2837
|
rotation: Math.PI / 2,
|
|
@@ -2696,7 +2848,7 @@ var LQFP = ({
|
|
|
2696
2848
|
},
|
|
2697
2849
|
`bottom-${i}`
|
|
2698
2850
|
)),
|
|
2699
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2851
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2700
2852
|
SmdChipLead,
|
|
2701
2853
|
{
|
|
2702
2854
|
rotation: -Math.PI / 2,
|
|
@@ -2713,7 +2865,7 @@ var LQFP = ({
|
|
|
2713
2865
|
},
|
|
2714
2866
|
`top-${i}`
|
|
2715
2867
|
)),
|
|
2716
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ jsx42(
|
|
2717
2869
|
ChipBody,
|
|
2718
2870
|
{
|
|
2719
2871
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2735,8 +2887,8 @@ var LQFP = ({
|
|
|
2735
2887
|
};
|
|
2736
2888
|
|
|
2737
2889
|
// lib/SOT-723.tsx
|
|
2738
|
-
import { Cuboid as
|
|
2739
|
-
import { Fragment as
|
|
2890
|
+
import { Cuboid as Cuboid29, Translate as Translate20, Colorize as Colorize21, Hull as Hull15, Union as Union16 } from "jscad-fiber";
|
|
2891
|
+
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2740
2892
|
var SOT723 = () => {
|
|
2741
2893
|
const bodyWidth = 0.85;
|
|
2742
2894
|
const bodyLength10 = 1.2;
|
|
@@ -2753,43 +2905,43 @@ var SOT723 = () => {
|
|
|
2753
2905
|
const leftTopPadCenterY = 0.4;
|
|
2754
2906
|
const leftBottomPadCenterX = -0.55;
|
|
2755
2907
|
const leftBottomPadCenterY = -0.4;
|
|
2756
|
-
return /* @__PURE__ */
|
|
2757
|
-
/* @__PURE__ */
|
|
2758
|
-
/* @__PURE__ */
|
|
2759
|
-
|
|
2908
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2909
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs41(Union16, { children: [
|
|
2910
|
+
/* @__PURE__ */ jsx43(
|
|
2911
|
+
Cuboid29,
|
|
2760
2912
|
{
|
|
2761
2913
|
size: [bodyWidth, bodyLength10, straightHeight],
|
|
2762
2914
|
center: [0, 0, straightHeight / 2]
|
|
2763
2915
|
}
|
|
2764
2916
|
),
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
/* @__PURE__ */
|
|
2767
|
-
/* @__PURE__ */
|
|
2768
|
-
|
|
2917
|
+
/* @__PURE__ */ jsxs41(Hull15, { children: [
|
|
2918
|
+
/* @__PURE__ */ jsx43(Translate20, { z: straightHeight, children: /* @__PURE__ */ jsx43(Cuboid29, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2919
|
+
/* @__PURE__ */ jsx43(Translate20, { z: bodyHeight, children: /* @__PURE__ */ jsx43(
|
|
2920
|
+
Cuboid29,
|
|
2769
2921
|
{
|
|
2770
2922
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2771
2923
|
}
|
|
2772
2924
|
) })
|
|
2773
2925
|
] })
|
|
2774
2926
|
] }) }),
|
|
2775
|
-
/* @__PURE__ */
|
|
2776
|
-
|
|
2927
|
+
/* @__PURE__ */ jsx43(
|
|
2928
|
+
Cuboid29,
|
|
2777
2929
|
{
|
|
2778
2930
|
color: "#ccc",
|
|
2779
2931
|
size: [padLength, rightPadWidth, padThickness],
|
|
2780
2932
|
center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
|
|
2781
2933
|
}
|
|
2782
2934
|
),
|
|
2783
|
-
/* @__PURE__ */
|
|
2784
|
-
|
|
2935
|
+
/* @__PURE__ */ jsx43(
|
|
2936
|
+
Cuboid29,
|
|
2785
2937
|
{
|
|
2786
2938
|
color: "#ccc",
|
|
2787
2939
|
size: [padLength, leftPadWidth, padThickness],
|
|
2788
2940
|
center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
|
|
2789
2941
|
}
|
|
2790
2942
|
),
|
|
2791
|
-
/* @__PURE__ */
|
|
2792
|
-
|
|
2943
|
+
/* @__PURE__ */ jsx43(
|
|
2944
|
+
Cuboid29,
|
|
2793
2945
|
{
|
|
2794
2946
|
color: "#ccc",
|
|
2795
2947
|
size: [padLength, leftPadWidth, padThickness],
|
|
@@ -2800,8 +2952,8 @@ var SOT723 = () => {
|
|
|
2800
2952
|
};
|
|
2801
2953
|
|
|
2802
2954
|
// lib/dfn.tsx
|
|
2803
|
-
import { Cuboid as
|
|
2804
|
-
import { Fragment as
|
|
2955
|
+
import { Cuboid as Cuboid30 } from "jscad-fiber";
|
|
2956
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2805
2957
|
var DFN = ({
|
|
2806
2958
|
num_pins,
|
|
2807
2959
|
bodyWidth = 5.3,
|
|
@@ -2828,8 +2980,8 @@ var DFN = ({
|
|
|
2828
2980
|
const pinNumber = i + 1;
|
|
2829
2981
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
2830
2982
|
}
|
|
2831
|
-
return /* @__PURE__ */
|
|
2832
|
-
/* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2984
|
+
/* @__PURE__ */ jsx44(
|
|
2833
2985
|
ChipBody,
|
|
2834
2986
|
{
|
|
2835
2987
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2847,16 +2999,16 @@ var DFN = ({
|
|
|
2847
2999
|
}
|
|
2848
3000
|
}
|
|
2849
3001
|
),
|
|
2850
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
2851
|
-
|
|
3002
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx44(
|
|
3003
|
+
Cuboid30,
|
|
2852
3004
|
{
|
|
2853
3005
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
2854
3006
|
size: [p.padSizeX, p.padSizeY, thermalPadThickness]
|
|
2855
3007
|
},
|
|
2856
3008
|
i
|
|
2857
3009
|
)),
|
|
2858
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
2859
|
-
|
|
3010
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx44(
|
|
3011
|
+
Cuboid30,
|
|
2860
3012
|
{
|
|
2861
3013
|
center: [0, 0, thermalPadThickness / 2],
|
|
2862
3014
|
size: [
|
|
@@ -2870,8 +3022,8 @@ var DFN = ({
|
|
|
2870
3022
|
};
|
|
2871
3023
|
|
|
2872
3024
|
// lib/hc49.tsx
|
|
2873
|
-
import { Colorize as
|
|
2874
|
-
import { Fragment as
|
|
3025
|
+
import { Colorize as Colorize22, Cylinder as Cylinder6, Hull as Hull16, RoundedCylinder } from "jscad-fiber";
|
|
3026
|
+
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
2875
3027
|
var HC49 = ({
|
|
2876
3028
|
bodyLength: bodyLength10 = 10.2,
|
|
2877
3029
|
bodyWidth = 4.65,
|
|
@@ -2887,10 +3039,10 @@ var HC49 = ({
|
|
|
2887
3039
|
const endCenterX = halfLength - endRadius;
|
|
2888
3040
|
const leadCenterX = leadSpacing / 2;
|
|
2889
3041
|
const baseHeight = 0.85;
|
|
2890
|
-
return /* @__PURE__ */
|
|
2891
|
-
/* @__PURE__ */
|
|
2892
|
-
/* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
3043
|
+
/* @__PURE__ */ jsxs43(Colorize22, { color, children: [
|
|
3044
|
+
/* @__PURE__ */ jsxs43(Hull16, { children: [
|
|
3045
|
+
/* @__PURE__ */ jsx45(
|
|
2894
3046
|
RoundedCylinder,
|
|
2895
3047
|
{
|
|
2896
3048
|
height: bodyHeight,
|
|
@@ -2899,7 +3051,7 @@ var HC49 = ({
|
|
|
2899
3051
|
center: [-endCenterX, 0, bodyHeight]
|
|
2900
3052
|
}
|
|
2901
3053
|
),
|
|
2902
|
-
/* @__PURE__ */
|
|
3054
|
+
/* @__PURE__ */ jsx45(
|
|
2903
3055
|
RoundedCylinder,
|
|
2904
3056
|
{
|
|
2905
3057
|
height: bodyHeight,
|
|
@@ -2909,8 +3061,8 @@ var HC49 = ({
|
|
|
2909
3061
|
}
|
|
2910
3062
|
)
|
|
2911
3063
|
] }),
|
|
2912
|
-
/* @__PURE__ */
|
|
2913
|
-
/* @__PURE__ */
|
|
3064
|
+
/* @__PURE__ */ jsxs43(Hull16, { children: [
|
|
3065
|
+
/* @__PURE__ */ jsx45(
|
|
2914
3066
|
RoundedCylinder,
|
|
2915
3067
|
{
|
|
2916
3068
|
height: baseHeight,
|
|
@@ -2919,7 +3071,7 @@ var HC49 = ({
|
|
|
2919
3071
|
center: [-endCenterX, 0, bodyHeight / 2 + baseHeight / 2]
|
|
2920
3072
|
}
|
|
2921
3073
|
),
|
|
2922
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ jsx45(
|
|
2923
3075
|
RoundedCylinder,
|
|
2924
3076
|
{
|
|
2925
3077
|
height: baseHeight,
|
|
@@ -2930,8 +3082,8 @@ var HC49 = ({
|
|
|
2930
3082
|
)
|
|
2931
3083
|
] })
|
|
2932
3084
|
] }),
|
|
2933
|
-
/* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ jsxs43(Colorize22, { color: leadColor, children: [
|
|
3086
|
+
/* @__PURE__ */ jsx45(
|
|
2935
3087
|
Cylinder6,
|
|
2936
3088
|
{
|
|
2937
3089
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2939,7 +3091,7 @@ var HC49 = ({
|
|
|
2939
3091
|
center: [-leadCenterX + 0.06, 0, -(leadLength / 2) + bodyHeight / 2]
|
|
2940
3092
|
}
|
|
2941
3093
|
),
|
|
2942
|
-
/* @__PURE__ */
|
|
3094
|
+
/* @__PURE__ */ jsx45(
|
|
2943
3095
|
Cylinder6,
|
|
2944
3096
|
{
|
|
2945
3097
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2953,13 +3105,13 @@ var HC49 = ({
|
|
|
2953
3105
|
|
|
2954
3106
|
// lib/MicroMELF.tsx
|
|
2955
3107
|
import {
|
|
2956
|
-
Colorize as
|
|
3108
|
+
Colorize as Colorize23,
|
|
2957
3109
|
Cylinder as Cylinder7,
|
|
2958
3110
|
RoundedCylinder as RoundedCylinder2,
|
|
2959
3111
|
Rotate as Rotate6,
|
|
2960
3112
|
RoundedCuboid as RoundedCuboid2
|
|
2961
3113
|
} from "jscad-fiber";
|
|
2962
|
-
import { Fragment as
|
|
3114
|
+
import { Fragment as Fragment42, jsx as jsx46, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
2963
3115
|
var MicroMELF = ({
|
|
2964
3116
|
bodyLength: bodyLength10 = 1.4,
|
|
2965
3117
|
bodyDiameter = 1.1,
|
|
@@ -2968,9 +3120,9 @@ var MicroMELF = ({
|
|
|
2968
3120
|
cathodeIdentification = "#111"
|
|
2969
3121
|
}) => {
|
|
2970
3122
|
const padLength = 0.2;
|
|
2971
|
-
return /* @__PURE__ */
|
|
2972
|
-
/* @__PURE__ */
|
|
2973
|
-
/* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3124
|
+
/* @__PURE__ */ jsx46(Colorize23, { color, children: /* @__PURE__ */ jsxs44(Rotate6, { rotation: [0, "90deg", 0], children: [
|
|
3125
|
+
/* @__PURE__ */ jsx46(
|
|
2974
3126
|
RoundedCuboid2,
|
|
2975
3127
|
{
|
|
2976
3128
|
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
@@ -2978,7 +3130,7 @@ var MicroMELF = ({
|
|
|
2978
3130
|
center: [-bodyDiameter / 2, 0, 0.05]
|
|
2979
3131
|
}
|
|
2980
3132
|
),
|
|
2981
|
-
/* @__PURE__ */
|
|
3133
|
+
/* @__PURE__ */ jsx46(
|
|
2982
3134
|
Cylinder7,
|
|
2983
3135
|
{
|
|
2984
3136
|
height: padLength / 2,
|
|
@@ -2987,7 +3139,7 @@ var MicroMELF = ({
|
|
|
2987
3139
|
}
|
|
2988
3140
|
)
|
|
2989
3141
|
] }) }),
|
|
2990
|
-
/* @__PURE__ */
|
|
3142
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: cathodeIdentification, children: /* @__PURE__ */ jsx46(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
2991
3143
|
RoundedCuboid2,
|
|
2992
3144
|
{
|
|
2993
3145
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -2995,7 +3147,7 @@ var MicroMELF = ({
|
|
|
2995
3147
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
2996
3148
|
}
|
|
2997
3149
|
) }) }),
|
|
2998
|
-
/* @__PURE__ */
|
|
3150
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
2999
3151
|
RoundedCylinder2,
|
|
3000
3152
|
{
|
|
3001
3153
|
height: padLength,
|
|
@@ -3004,7 +3156,7 @@ var MicroMELF = ({
|
|
|
3004
3156
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3005
3157
|
}
|
|
3006
3158
|
) }) }),
|
|
3007
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3008
3160
|
RoundedCylinder2,
|
|
3009
3161
|
{
|
|
3010
3162
|
height: padLength,
|
|
@@ -3017,8 +3169,8 @@ var MicroMELF = ({
|
|
|
3017
3169
|
};
|
|
3018
3170
|
|
|
3019
3171
|
// lib/MINIMELF.tsx
|
|
3020
|
-
import { Colorize as
|
|
3021
|
-
import { Fragment as
|
|
3172
|
+
import { Colorize as Colorize24, RoundedCylinder as RoundedCylinder3, Rotate as Rotate7 } from "jscad-fiber";
|
|
3173
|
+
import { Fragment as Fragment43, jsx as jsx47, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3022
3174
|
var MINIMELF = ({
|
|
3023
3175
|
bodyLength: bodyLength10 = 3.5,
|
|
3024
3176
|
bodyDiameter = 1.5,
|
|
@@ -3026,8 +3178,8 @@ var MINIMELF = ({
|
|
|
3026
3178
|
contactColor = "#c6c6c6"
|
|
3027
3179
|
}) => {
|
|
3028
3180
|
const padLength = 0.5;
|
|
3029
|
-
return /* @__PURE__ */
|
|
3030
|
-
/* @__PURE__ */
|
|
3181
|
+
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3182
|
+
/* @__PURE__ */ jsx47(Colorize24, { color, children: /* @__PURE__ */ jsx47(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3031
3183
|
RoundedCylinder3,
|
|
3032
3184
|
{
|
|
3033
3185
|
height: bodyLength10,
|
|
@@ -3036,7 +3188,7 @@ var MINIMELF = ({
|
|
|
3036
3188
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3037
3189
|
}
|
|
3038
3190
|
) }) }),
|
|
3039
|
-
/* @__PURE__ */
|
|
3191
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3040
3192
|
RoundedCylinder3,
|
|
3041
3193
|
{
|
|
3042
3194
|
height: padLength,
|
|
@@ -3045,7 +3197,7 @@ var MINIMELF = ({
|
|
|
3045
3197
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3046
3198
|
}
|
|
3047
3199
|
) }) }),
|
|
3048
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3049
3201
|
RoundedCylinder3,
|
|
3050
3202
|
{
|
|
3051
3203
|
height: padLength,
|
|
@@ -3058,8 +3210,8 @@ var MINIMELF = ({
|
|
|
3058
3210
|
};
|
|
3059
3211
|
|
|
3060
3212
|
// lib/MELF.tsx
|
|
3061
|
-
import { Colorize as
|
|
3062
|
-
import { Fragment as
|
|
3213
|
+
import { Colorize as Colorize25, RoundedCylinder as RoundedCylinder4, Rotate as Rotate8 } from "jscad-fiber";
|
|
3214
|
+
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3063
3215
|
var MELF = ({
|
|
3064
3216
|
bodyLength: bodyLength10 = 3.9,
|
|
3065
3217
|
bodyDiameter = 2.5,
|
|
@@ -3067,8 +3219,8 @@ var MELF = ({
|
|
|
3067
3219
|
contactColor = "#c6c6c6"
|
|
3068
3220
|
}) => {
|
|
3069
3221
|
const padLength = 0.55;
|
|
3070
|
-
return /* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3222
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3223
|
+
/* @__PURE__ */ jsx48(Colorize25, { color, children: /* @__PURE__ */ jsx48(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3072
3224
|
RoundedCylinder4,
|
|
3073
3225
|
{
|
|
3074
3226
|
height: bodyLength10,
|
|
@@ -3077,7 +3229,7 @@ var MELF = ({
|
|
|
3077
3229
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3078
3230
|
}
|
|
3079
3231
|
) }) }),
|
|
3080
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3081
3233
|
RoundedCylinder4,
|
|
3082
3234
|
{
|
|
3083
3235
|
height: padLength,
|
|
@@ -3086,7 +3238,7 @@ var MELF = ({
|
|
|
3086
3238
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3087
3239
|
}
|
|
3088
3240
|
) }) }),
|
|
3089
|
-
/* @__PURE__ */
|
|
3241
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3090
3242
|
RoundedCylinder4,
|
|
3091
3243
|
{
|
|
3092
3244
|
height: padLength,
|
|
@@ -3099,7 +3251,7 @@ var MELF = ({
|
|
|
3099
3251
|
};
|
|
3100
3252
|
|
|
3101
3253
|
// lib/ms012.tsx
|
|
3102
|
-
import { Fragment as
|
|
3254
|
+
import { Fragment as Fragment45, jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3103
3255
|
var MS012 = ({
|
|
3104
3256
|
pinCount,
|
|
3105
3257
|
padContactLength = 0.6,
|
|
@@ -3114,8 +3266,8 @@ var MS012 = ({
|
|
|
3114
3266
|
const bodyLength10 = 3.9;
|
|
3115
3267
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3116
3268
|
const leadThickness = 0.2;
|
|
3117
|
-
return /* @__PURE__ */
|
|
3118
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ jsxs47(Fragment45, { children: [
|
|
3270
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx49(
|
|
3119
3271
|
SmdChipLead,
|
|
3120
3272
|
{
|
|
3121
3273
|
position: {
|
|
@@ -3131,7 +3283,7 @@ var MS012 = ({
|
|
|
3131
3283
|
},
|
|
3132
3284
|
i
|
|
3133
3285
|
)),
|
|
3134
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3286
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx49(
|
|
3135
3287
|
SmdChipLead,
|
|
3136
3288
|
{
|
|
3137
3289
|
rotation: Math.PI,
|
|
@@ -3148,7 +3300,7 @@ var MS012 = ({
|
|
|
3148
3300
|
},
|
|
3149
3301
|
`right-${i}`
|
|
3150
3302
|
)),
|
|
3151
|
-
/* @__PURE__ */
|
|
3303
|
+
/* @__PURE__ */ jsx49(
|
|
3152
3304
|
ChipBody,
|
|
3153
3305
|
{
|
|
3154
3306
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -3165,15 +3317,15 @@ var MS012 = ({
|
|
|
3165
3317
|
|
|
3166
3318
|
// lib/TO220.tsx
|
|
3167
3319
|
import {
|
|
3168
|
-
Colorize as
|
|
3169
|
-
Cuboid as
|
|
3170
|
-
Hull as
|
|
3320
|
+
Colorize as Colorize26,
|
|
3321
|
+
Cuboid as Cuboid33,
|
|
3322
|
+
Hull as Hull17,
|
|
3171
3323
|
Rotate as Rotate9,
|
|
3172
|
-
Translate as
|
|
3324
|
+
Translate as Translate21,
|
|
3173
3325
|
Cylinder as Cylinder8,
|
|
3174
3326
|
Subtract as Subtract4
|
|
3175
3327
|
} from "jscad-fiber";
|
|
3176
|
-
import { Fragment as
|
|
3328
|
+
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3177
3329
|
var TO220 = () => {
|
|
3178
3330
|
const fullLength10 = 20;
|
|
3179
3331
|
const bodyLength10 = 9.9;
|
|
@@ -3192,18 +3344,18 @@ var TO220 = () => {
|
|
|
3192
3344
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3193
3345
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3194
3346
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3195
|
-
return /* @__PURE__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
|
|
3347
|
+
return /* @__PURE__ */ jsx50(Translate21, { center: [0, 0, zOffset], children: /* @__PURE__ */ jsxs48(Fragment46, { children: [
|
|
3348
|
+
/* @__PURE__ */ jsxs48(Rotate9, { rotation: [0, 55, -55], children: [
|
|
3349
|
+
/* @__PURE__ */ jsxs48(Subtract4, { children: [
|
|
3350
|
+
/* @__PURE__ */ jsx50(
|
|
3351
|
+
Cuboid33,
|
|
3200
3352
|
{
|
|
3201
3353
|
color: "#ccc",
|
|
3202
3354
|
size: [padLength + 0.1, padWidth, padThickness],
|
|
3203
3355
|
center: [padCenterX, 0, padThickness - 2]
|
|
3204
3356
|
}
|
|
3205
3357
|
),
|
|
3206
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx50(
|
|
3207
3359
|
Cylinder8,
|
|
3208
3360
|
{
|
|
3209
3361
|
color: "black",
|
|
@@ -3213,7 +3365,7 @@ var TO220 = () => {
|
|
|
3213
3365
|
}
|
|
3214
3366
|
)
|
|
3215
3367
|
] }),
|
|
3216
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ jsx50(Colorize26, { color: "#222", children: /* @__PURE__ */ jsx50(
|
|
3217
3369
|
ChipBody,
|
|
3218
3370
|
{
|
|
3219
3371
|
width: bodyWidth,
|
|
@@ -3227,29 +3379,29 @@ var TO220 = () => {
|
|
|
3227
3379
|
}
|
|
3228
3380
|
) })
|
|
3229
3381
|
] }),
|
|
3230
|
-
/* @__PURE__ */
|
|
3382
|
+
/* @__PURE__ */ jsx50(Rotate9, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3231
3383
|
const x = prongCenterX;
|
|
3232
3384
|
const y = (i - 1) * prongPitch;
|
|
3233
3385
|
const z = -prongHeight - 0.6;
|
|
3234
|
-
return /* @__PURE__ */
|
|
3235
|
-
/* @__PURE__ */
|
|
3236
|
-
/* @__PURE__ */
|
|
3237
|
-
/* @__PURE__ */
|
|
3238
|
-
|
|
3386
|
+
return /* @__PURE__ */ jsxs48(Colorize26, { color: "gold", children: [
|
|
3387
|
+
/* @__PURE__ */ jsxs48(Hull17, { children: [
|
|
3388
|
+
/* @__PURE__ */ jsx50(Translate21, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z], children: /* @__PURE__ */ jsx50(Cuboid33, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
3389
|
+
/* @__PURE__ */ jsx50(
|
|
3390
|
+
Translate21,
|
|
3239
3391
|
{
|
|
3240
3392
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3241
|
-
children: /* @__PURE__ */
|
|
3393
|
+
children: /* @__PURE__ */ jsx50(Cuboid33, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3242
3394
|
}
|
|
3243
3395
|
)
|
|
3244
3396
|
] }),
|
|
3245
|
-
/* @__PURE__ */
|
|
3397
|
+
/* @__PURE__ */ jsx50(Translate21, { center: [x, y, z], children: /* @__PURE__ */ jsx50(Cuboid33, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3246
3398
|
] }, `prong-${i}`);
|
|
3247
3399
|
}) })
|
|
3248
3400
|
] }) });
|
|
3249
3401
|
};
|
|
3250
3402
|
|
|
3251
3403
|
// lib/SOT-457.tsx
|
|
3252
|
-
import { Fragment as
|
|
3404
|
+
import { Fragment as Fragment47, jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3253
3405
|
var SOT457 = () => {
|
|
3254
3406
|
const fullWidth = 2.8;
|
|
3255
3407
|
const bodyWidth = 1.6;
|
|
@@ -3261,8 +3413,8 @@ var SOT457 = () => {
|
|
|
3261
3413
|
const padContactLength = 0.5;
|
|
3262
3414
|
const padPitch = 0.95;
|
|
3263
3415
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3264
|
-
return /* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */
|
|
3416
|
+
return /* @__PURE__ */ jsxs49(Fragment47, { children: [
|
|
3417
|
+
/* @__PURE__ */ jsx51(
|
|
3266
3418
|
SmdChipLead,
|
|
3267
3419
|
{
|
|
3268
3420
|
rotation: Math.PI,
|
|
@@ -3279,7 +3431,7 @@ var SOT457 = () => {
|
|
|
3279
3431
|
},
|
|
3280
3432
|
1
|
|
3281
3433
|
),
|
|
3282
|
-
/* @__PURE__ */
|
|
3434
|
+
/* @__PURE__ */ jsx51(
|
|
3283
3435
|
SmdChipLead,
|
|
3284
3436
|
{
|
|
3285
3437
|
rotation: Math.PI,
|
|
@@ -3296,7 +3448,7 @@ var SOT457 = () => {
|
|
|
3296
3448
|
},
|
|
3297
3449
|
2
|
|
3298
3450
|
),
|
|
3299
|
-
/* @__PURE__ */
|
|
3451
|
+
/* @__PURE__ */ jsx51(
|
|
3300
3452
|
SmdChipLead,
|
|
3301
3453
|
{
|
|
3302
3454
|
rotation: Math.PI,
|
|
@@ -3313,7 +3465,7 @@ var SOT457 = () => {
|
|
|
3313
3465
|
},
|
|
3314
3466
|
3
|
|
3315
3467
|
),
|
|
3316
|
-
/* @__PURE__ */
|
|
3468
|
+
/* @__PURE__ */ jsx51(
|
|
3317
3469
|
SmdChipLead,
|
|
3318
3470
|
{
|
|
3319
3471
|
position: {
|
|
@@ -3329,7 +3481,7 @@ var SOT457 = () => {
|
|
|
3329
3481
|
},
|
|
3330
3482
|
3
|
|
3331
3483
|
),
|
|
3332
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ jsx51(
|
|
3333
3485
|
SmdChipLead,
|
|
3334
3486
|
{
|
|
3335
3487
|
position: {
|
|
@@ -3345,7 +3497,7 @@ var SOT457 = () => {
|
|
|
3345
3497
|
},
|
|
3346
3498
|
1
|
|
3347
3499
|
),
|
|
3348
|
-
/* @__PURE__ */
|
|
3500
|
+
/* @__PURE__ */ jsx51(
|
|
3349
3501
|
SmdChipLead,
|
|
3350
3502
|
{
|
|
3351
3503
|
position: {
|
|
@@ -3361,7 +3513,7 @@ var SOT457 = () => {
|
|
|
3361
3513
|
},
|
|
3362
3514
|
2
|
|
3363
3515
|
),
|
|
3364
|
-
/* @__PURE__ */
|
|
3516
|
+
/* @__PURE__ */ jsx51(
|
|
3365
3517
|
ChipBody,
|
|
3366
3518
|
{
|
|
3367
3519
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3382,14 +3534,14 @@ var SOT457 = () => {
|
|
|
3382
3534
|
|
|
3383
3535
|
// lib/TO92.tsx
|
|
3384
3536
|
import {
|
|
3385
|
-
Colorize as
|
|
3386
|
-
Cuboid as
|
|
3387
|
-
Hull as
|
|
3388
|
-
Translate as
|
|
3537
|
+
Colorize as Colorize27,
|
|
3538
|
+
Cuboid as Cuboid34,
|
|
3539
|
+
Hull as Hull18,
|
|
3540
|
+
Translate as Translate22,
|
|
3389
3541
|
Cylinder as Cylinder9,
|
|
3390
3542
|
Subtract as Subtract5
|
|
3391
3543
|
} from "jscad-fiber";
|
|
3392
|
-
import { jsx as
|
|
3544
|
+
import { jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3393
3545
|
var TO92 = () => {
|
|
3394
3546
|
const bodyRadius = 2.4;
|
|
3395
3547
|
const bodyHeight = 4.5;
|
|
@@ -3410,24 +3562,24 @@ var TO92 = () => {
|
|
|
3410
3562
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3411
3563
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3412
3564
|
const sideLeadZ = -7.5;
|
|
3413
|
-
return /* @__PURE__ */
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */
|
|
3416
|
-
/* @__PURE__ */
|
|
3565
|
+
return /* @__PURE__ */ jsxs50(Translate22, { center: [0, 1, 10.5], children: [
|
|
3566
|
+
/* @__PURE__ */ jsx52(Colorize27, { color: bodyColor, children: /* @__PURE__ */ jsxs50(Subtract5, { children: [
|
|
3567
|
+
/* @__PURE__ */ jsx52(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx52(Cylinder9, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3568
|
+
/* @__PURE__ */ jsx52(Translate22, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx52(Cuboid34, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3417
3569
|
] }) }),
|
|
3418
|
-
/* @__PURE__ */
|
|
3419
|
-
/* @__PURE__ */
|
|
3420
|
-
/* @__PURE__ */
|
|
3421
|
-
/* @__PURE__ */
|
|
3570
|
+
/* @__PURE__ */ jsx52(Translate22, { center: leadTipPos1, children: /* @__PURE__ */ jsx52(Cuboid34, { size: leadTipSize }) }),
|
|
3571
|
+
/* @__PURE__ */ jsxs50(Hull18, { children: [
|
|
3572
|
+
/* @__PURE__ */ jsx52(Translate22, { center: leadMidPosA, children: /* @__PURE__ */ jsx52(Cuboid34, { size: leadSmallSize }) }),
|
|
3573
|
+
/* @__PURE__ */ jsx52(Translate22, { center: leadMidPosB, children: /* @__PURE__ */ jsx52(Cuboid34, { size: leadSmallSize }) })
|
|
3422
3574
|
] }),
|
|
3423
|
-
/* @__PURE__ */
|
|
3424
|
-
/* @__PURE__ */
|
|
3425
|
-
/* @__PURE__ */
|
|
3575
|
+
/* @__PURE__ */ jsx52(Translate22, { center: leadTipPos2, children: /* @__PURE__ */ jsx52(Cuboid34, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3576
|
+
/* @__PURE__ */ jsx52(Translate22, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx52(Cuboid34, { size: [leadLength, legWidth, 15] }) }),
|
|
3577
|
+
/* @__PURE__ */ jsx52(Translate22, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx52(Cuboid34, { size: [leadLength, legWidth, 15] }) })
|
|
3426
3578
|
] });
|
|
3427
3579
|
};
|
|
3428
3580
|
|
|
3429
3581
|
// lib/SOT-363.tsx
|
|
3430
|
-
import { Fragment as
|
|
3582
|
+
import { Fragment as Fragment48, jsx as jsx53, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3431
3583
|
var SOT363 = () => {
|
|
3432
3584
|
const fullWidth = 2;
|
|
3433
3585
|
const bodyWidth = 1.25;
|
|
@@ -3438,8 +3590,8 @@ var SOT363 = () => {
|
|
|
3438
3590
|
const leadHeight = 0.85;
|
|
3439
3591
|
const padContactLength = 0.3;
|
|
3440
3592
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3441
|
-
return /* @__PURE__ */
|
|
3442
|
-
/* @__PURE__ */
|
|
3593
|
+
return /* @__PURE__ */ jsxs51(Fragment48, { children: [
|
|
3594
|
+
/* @__PURE__ */ jsx53(
|
|
3443
3595
|
SmdChipLead,
|
|
3444
3596
|
{
|
|
3445
3597
|
rotation: Math.PI,
|
|
@@ -3456,7 +3608,7 @@ var SOT363 = () => {
|
|
|
3456
3608
|
},
|
|
3457
3609
|
1
|
|
3458
3610
|
),
|
|
3459
|
-
/* @__PURE__ */
|
|
3611
|
+
/* @__PURE__ */ jsx53(
|
|
3460
3612
|
SmdChipLead,
|
|
3461
3613
|
{
|
|
3462
3614
|
rotation: Math.PI,
|
|
@@ -3473,7 +3625,7 @@ var SOT363 = () => {
|
|
|
3473
3625
|
},
|
|
3474
3626
|
2
|
|
3475
3627
|
),
|
|
3476
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ jsx53(
|
|
3477
3629
|
SmdChipLead,
|
|
3478
3630
|
{
|
|
3479
3631
|
rotation: Math.PI,
|
|
@@ -3490,7 +3642,7 @@ var SOT363 = () => {
|
|
|
3490
3642
|
},
|
|
3491
3643
|
3
|
|
3492
3644
|
),
|
|
3493
|
-
/* @__PURE__ */
|
|
3645
|
+
/* @__PURE__ */ jsx53(
|
|
3494
3646
|
SmdChipLead,
|
|
3495
3647
|
{
|
|
3496
3648
|
position: {
|
|
@@ -3506,7 +3658,7 @@ var SOT363 = () => {
|
|
|
3506
3658
|
},
|
|
3507
3659
|
3
|
|
3508
3660
|
),
|
|
3509
|
-
/* @__PURE__ */
|
|
3661
|
+
/* @__PURE__ */ jsx53(
|
|
3510
3662
|
SmdChipLead,
|
|
3511
3663
|
{
|
|
3512
3664
|
position: {
|
|
@@ -3522,7 +3674,7 @@ var SOT363 = () => {
|
|
|
3522
3674
|
},
|
|
3523
3675
|
1
|
|
3524
3676
|
),
|
|
3525
|
-
/* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ jsx53(
|
|
3526
3678
|
SmdChipLead,
|
|
3527
3679
|
{
|
|
3528
3680
|
position: {
|
|
@@ -3538,7 +3690,7 @@ var SOT363 = () => {
|
|
|
3538
3690
|
},
|
|
3539
3691
|
2
|
|
3540
3692
|
),
|
|
3541
|
-
/* @__PURE__ */
|
|
3693
|
+
/* @__PURE__ */ jsx53(
|
|
3542
3694
|
ChipBody,
|
|
3543
3695
|
{
|
|
3544
3696
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3559,14 +3711,14 @@ var SOT363 = () => {
|
|
|
3559
3711
|
var SOT_363_default = SOT363;
|
|
3560
3712
|
|
|
3561
3713
|
// lib/Footprinter3d.tsx
|
|
3562
|
-
import { jsx as
|
|
3714
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
3563
3715
|
var Footprinter3d = ({ footprint }) => {
|
|
3564
3716
|
const fpJson = fp3.string(footprint).json();
|
|
3565
3717
|
switch (fpJson.fn) {
|
|
3566
3718
|
case "dip":
|
|
3567
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ jsx54(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3568
3720
|
case "tssop":
|
|
3569
|
-
return /* @__PURE__ */
|
|
3721
|
+
return /* @__PURE__ */ jsx54(
|
|
3570
3722
|
Tssop,
|
|
3571
3723
|
{
|
|
3572
3724
|
pinCount: fpJson.num_pins,
|
|
@@ -3577,7 +3729,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3577
3729
|
}
|
|
3578
3730
|
);
|
|
3579
3731
|
case "msop":
|
|
3580
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ jsx54(
|
|
3581
3733
|
MSOP,
|
|
3582
3734
|
{
|
|
3583
3735
|
pinCount: fpJson.num_pins,
|
|
@@ -3588,7 +3740,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3588
3740
|
}
|
|
3589
3741
|
);
|
|
3590
3742
|
case "vssop":
|
|
3591
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ jsx54(
|
|
3592
3744
|
VSSOP,
|
|
3593
3745
|
{
|
|
3594
3746
|
pinCount: fpJson.num_pins,
|
|
@@ -3600,7 +3752,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3600
3752
|
}
|
|
3601
3753
|
);
|
|
3602
3754
|
case "qfp":
|
|
3603
|
-
return /* @__PURE__ */
|
|
3755
|
+
return /* @__PURE__ */ jsx54(
|
|
3604
3756
|
QFP,
|
|
3605
3757
|
{
|
|
3606
3758
|
pinCount: fpJson.num_pins,
|
|
@@ -3611,12 +3763,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3611
3763
|
}
|
|
3612
3764
|
);
|
|
3613
3765
|
case "tqfp":
|
|
3614
|
-
return /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx54(tqfp_default, {});
|
|
3615
3767
|
case "lqfp":
|
|
3616
|
-
return /* @__PURE__ */
|
|
3768
|
+
return /* @__PURE__ */ jsx54(LQFP, { pinCount: fpJson.num_pins });
|
|
3617
3769
|
case "qfn": {
|
|
3618
3770
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3619
|
-
return /* @__PURE__ */
|
|
3771
|
+
return /* @__PURE__ */ jsx54(
|
|
3620
3772
|
qfn_default,
|
|
3621
3773
|
{
|
|
3622
3774
|
num_pins: fpJson.num_pins,
|
|
@@ -3634,7 +3786,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3634
3786
|
}
|
|
3635
3787
|
case "dfn": {
|
|
3636
3788
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3637
|
-
return /* @__PURE__ */
|
|
3789
|
+
return /* @__PURE__ */ jsx54(
|
|
3638
3790
|
DFN,
|
|
3639
3791
|
{
|
|
3640
3792
|
num_pins: fpJson.num_pins,
|
|
@@ -3652,45 +3804,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3652
3804
|
}
|
|
3653
3805
|
case "pinrow":
|
|
3654
3806
|
if (fpJson.male)
|
|
3655
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ jsx54(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3656
3808
|
if (fpJson.female)
|
|
3657
|
-
return /* @__PURE__ */
|
|
3809
|
+
return /* @__PURE__ */ jsx54(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3658
3810
|
case "cap": {
|
|
3659
3811
|
switch (fpJson.imperial) {
|
|
3660
3812
|
case "0402":
|
|
3661
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx54(A0402, { color: "#856c4d" });
|
|
3662
3814
|
case "0603":
|
|
3663
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsx54(A0603, { color: "#856c4d" });
|
|
3664
3816
|
case "0805":
|
|
3665
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx54(A0805, { color: "#856c4d" });
|
|
3666
3818
|
case "0201":
|
|
3667
|
-
return /* @__PURE__ */
|
|
3819
|
+
return /* @__PURE__ */ jsx54(A0201, { color: "#856c4d" });
|
|
3668
3820
|
case "01005":
|
|
3669
|
-
return /* @__PURE__ */
|
|
3821
|
+
return /* @__PURE__ */ jsx54(A01005, { color: "#856c4d" });
|
|
3670
3822
|
case "1206":
|
|
3671
|
-
return /* @__PURE__ */
|
|
3823
|
+
return /* @__PURE__ */ jsx54(A1206, { color: "#856c4d" });
|
|
3672
3824
|
case "1210":
|
|
3673
|
-
return /* @__PURE__ */
|
|
3825
|
+
return /* @__PURE__ */ jsx54(A1210, { color: "#856c4d" });
|
|
3674
3826
|
case "2010":
|
|
3675
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ jsx54(A2010, { color: "#856c4d" });
|
|
3676
3828
|
case "2512":
|
|
3677
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ jsx54(A2512, { color: "#856c4d" });
|
|
3678
3830
|
}
|
|
3679
3831
|
}
|
|
3680
3832
|
case "sot235":
|
|
3681
|
-
return /* @__PURE__ */
|
|
3833
|
+
return /* @__PURE__ */ jsx54(SOT_235_default, {});
|
|
3682
3834
|
case "sot457":
|
|
3683
|
-
return /* @__PURE__ */
|
|
3835
|
+
return /* @__PURE__ */ jsx54(SOT457, {});
|
|
3684
3836
|
case "sot223":
|
|
3685
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ jsx54(SOT223, {});
|
|
3686
3838
|
case "sot23w":
|
|
3687
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx54(SOT23W, {});
|
|
3688
3840
|
case "sot323":
|
|
3689
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsx54(SOT323, {});
|
|
3690
3842
|
case "sot363":
|
|
3691
|
-
return /* @__PURE__ */
|
|
3843
|
+
return /* @__PURE__ */ jsx54(SOT_363_default, {});
|
|
3692
3844
|
case "pushbutton":
|
|
3693
|
-
return /* @__PURE__ */
|
|
3845
|
+
return /* @__PURE__ */ jsx54(
|
|
3694
3846
|
PushButton,
|
|
3695
3847
|
{
|
|
3696
3848
|
width: fpJson.w,
|
|
@@ -3699,7 +3851,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3699
3851
|
}
|
|
3700
3852
|
);
|
|
3701
3853
|
case "soic":
|
|
3702
|
-
return /* @__PURE__ */
|
|
3854
|
+
return /* @__PURE__ */ jsx54(
|
|
3703
3855
|
SOIC,
|
|
3704
3856
|
{
|
|
3705
3857
|
pinCount: fpJson.num_pins,
|
|
@@ -3710,33 +3862,37 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3710
3862
|
}
|
|
3711
3863
|
);
|
|
3712
3864
|
case "sod523":
|
|
3713
|
-
return /* @__PURE__ */
|
|
3865
|
+
return /* @__PURE__ */ jsx54(SOD523, {});
|
|
3714
3866
|
case "sod882":
|
|
3715
|
-
return /* @__PURE__ */
|
|
3867
|
+
return /* @__PURE__ */ jsx54(SOD882, {});
|
|
3716
3868
|
case "sma":
|
|
3717
|
-
return /* @__PURE__ */
|
|
3869
|
+
return /* @__PURE__ */ jsx54(SMA, {});
|
|
3718
3870
|
case "smb":
|
|
3719
|
-
return /* @__PURE__ */
|
|
3871
|
+
return /* @__PURE__ */ jsx54(SMB, {});
|
|
3720
3872
|
case "smc":
|
|
3721
|
-
return /* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsx54(SMC, {});
|
|
3722
3874
|
case "smf":
|
|
3723
|
-
return /* @__PURE__ */
|
|
3875
|
+
return /* @__PURE__ */ jsx54(SMF, {});
|
|
3724
3876
|
case "sod123f":
|
|
3725
|
-
return /* @__PURE__ */
|
|
3877
|
+
return /* @__PURE__ */ jsx54(SOD123F, {});
|
|
3726
3878
|
case "sod123fl":
|
|
3727
|
-
return /* @__PURE__ */
|
|
3879
|
+
return /* @__PURE__ */ jsx54(SOD123FL, {});
|
|
3880
|
+
case "sod123w":
|
|
3881
|
+
return /* @__PURE__ */ jsx54(SOD123W, {});
|
|
3882
|
+
case "sod128":
|
|
3883
|
+
return /* @__PURE__ */ jsx54(SOD128, {});
|
|
3728
3884
|
case "sod923":
|
|
3729
|
-
return /* @__PURE__ */
|
|
3885
|
+
return /* @__PURE__ */ jsx54(SOD923, {});
|
|
3730
3886
|
case "hc49":
|
|
3731
|
-
return /* @__PURE__ */
|
|
3887
|
+
return /* @__PURE__ */ jsx54(HC49, {});
|
|
3732
3888
|
case "micromelf":
|
|
3733
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ jsx54(MicroMELF, {});
|
|
3734
3890
|
case "minimelf":
|
|
3735
|
-
return /* @__PURE__ */
|
|
3891
|
+
return /* @__PURE__ */ jsx54(MINIMELF, {});
|
|
3736
3892
|
case "melf":
|
|
3737
|
-
return /* @__PURE__ */
|
|
3893
|
+
return /* @__PURE__ */ jsx54(MELF, {});
|
|
3738
3894
|
case "ms012":
|
|
3739
|
-
return /* @__PURE__ */
|
|
3895
|
+
return /* @__PURE__ */ jsx54(
|
|
3740
3896
|
MS012,
|
|
3741
3897
|
{
|
|
3742
3898
|
pinCount: fpJson.num_pins,
|
|
@@ -3746,39 +3902,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3746
3902
|
}
|
|
3747
3903
|
);
|
|
3748
3904
|
case "sot723":
|
|
3749
|
-
return /* @__PURE__ */
|
|
3905
|
+
return /* @__PURE__ */ jsx54(SOT723, {});
|
|
3750
3906
|
case "to220":
|
|
3751
|
-
return /* @__PURE__ */
|
|
3907
|
+
return /* @__PURE__ */ jsx54(TO220, {});
|
|
3752
3908
|
case "to92":
|
|
3753
|
-
return /* @__PURE__ */
|
|
3909
|
+
return /* @__PURE__ */ jsx54(TO92, {});
|
|
3754
3910
|
}
|
|
3755
3911
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3756
3912
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3757
3913
|
switch (fpJson.imperial) {
|
|
3758
3914
|
case "0402":
|
|
3759
|
-
return /* @__PURE__ */
|
|
3915
|
+
return /* @__PURE__ */ jsx54(A0402, { color });
|
|
3760
3916
|
case "0603":
|
|
3761
|
-
return /* @__PURE__ */
|
|
3917
|
+
return /* @__PURE__ */ jsx54(A0603, { color });
|
|
3762
3918
|
case "0805":
|
|
3763
|
-
return /* @__PURE__ */
|
|
3919
|
+
return /* @__PURE__ */ jsx54(A0805, { color });
|
|
3764
3920
|
case "0201":
|
|
3765
|
-
return /* @__PURE__ */
|
|
3921
|
+
return /* @__PURE__ */ jsx54(A0201, { color });
|
|
3766
3922
|
case "01005":
|
|
3767
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ jsx54(A01005, { color });
|
|
3768
3924
|
case "1206":
|
|
3769
|
-
return /* @__PURE__ */
|
|
3925
|
+
return /* @__PURE__ */ jsx54(A1206, { color });
|
|
3770
3926
|
case "1210":
|
|
3771
|
-
return /* @__PURE__ */
|
|
3927
|
+
return /* @__PURE__ */ jsx54(A1210, { color });
|
|
3772
3928
|
case "2010":
|
|
3773
|
-
return /* @__PURE__ */
|
|
3929
|
+
return /* @__PURE__ */ jsx54(A2010, { color });
|
|
3774
3930
|
case "2512":
|
|
3775
|
-
return /* @__PURE__ */
|
|
3931
|
+
return /* @__PURE__ */ jsx54(A2512, { color });
|
|
3776
3932
|
}
|
|
3777
3933
|
return null;
|
|
3778
3934
|
};
|
|
3779
3935
|
|
|
3780
3936
|
// lib/SOT-23-3P.tsx
|
|
3781
|
-
import { Fragment as
|
|
3937
|
+
import { Fragment as Fragment49, jsx as jsx55, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3782
3938
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3783
3939
|
const bodyWidth = 1.3;
|
|
3784
3940
|
const bodyLength10 = 2.9;
|
|
@@ -3789,8 +3945,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3789
3945
|
const padContactLength = 0.4;
|
|
3790
3946
|
const padThickness = leadThickness / 2;
|
|
3791
3947
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3792
|
-
return /* @__PURE__ */
|
|
3793
|
-
/* @__PURE__ */
|
|
3948
|
+
return /* @__PURE__ */ jsxs52(Fragment49, { children: [
|
|
3949
|
+
/* @__PURE__ */ jsx55(
|
|
3794
3950
|
SmdChipLead,
|
|
3795
3951
|
{
|
|
3796
3952
|
rotation: Math.PI,
|
|
@@ -3807,7 +3963,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3807
3963
|
},
|
|
3808
3964
|
1
|
|
3809
3965
|
),
|
|
3810
|
-
/* @__PURE__ */
|
|
3966
|
+
/* @__PURE__ */ jsx55(
|
|
3811
3967
|
SmdChipLead,
|
|
3812
3968
|
{
|
|
3813
3969
|
rotation: Math.PI,
|
|
@@ -3824,7 +3980,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3824
3980
|
},
|
|
3825
3981
|
2
|
|
3826
3982
|
),
|
|
3827
|
-
/* @__PURE__ */
|
|
3983
|
+
/* @__PURE__ */ jsx55(
|
|
3828
3984
|
SmdChipLead,
|
|
3829
3985
|
{
|
|
3830
3986
|
position: {
|
|
@@ -3840,7 +3996,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3840
3996
|
},
|
|
3841
3997
|
3
|
|
3842
3998
|
),
|
|
3843
|
-
/* @__PURE__ */
|
|
3999
|
+
/* @__PURE__ */ jsx55(
|
|
3844
4000
|
ChipBody,
|
|
3845
4001
|
{
|
|
3846
4002
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3853,8 +4009,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3853
4009
|
};
|
|
3854
4010
|
|
|
3855
4011
|
// lib/SOT-563.tsx
|
|
3856
|
-
import { Cuboid as
|
|
3857
|
-
import { Fragment as
|
|
4012
|
+
import { Cuboid as Cuboid35, Translate as Translate23, Rotate as Rotate10, Colorize as Colorize28 } from "jscad-fiber";
|
|
4013
|
+
import { Fragment as Fragment50, jsx as jsx56, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3858
4014
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3859
4015
|
const bodyWidth = 1.2;
|
|
3860
4016
|
const bodyLength10 = 1.6;
|
|
@@ -3864,28 +4020,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3864
4020
|
const leadHeight = 0.13;
|
|
3865
4021
|
const leadSpacing = 0.5;
|
|
3866
4022
|
const bodyZOffset = -0.4;
|
|
3867
|
-
return /* @__PURE__ */
|
|
3868
|
-
/* @__PURE__ */
|
|
4023
|
+
return /* @__PURE__ */ jsxs53(Fragment50, { children: [
|
|
4024
|
+
/* @__PURE__ */ jsx56(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx56(Translate23, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx56(Colorize28, { color: "grey", children: /* @__PURE__ */ jsx56(Cuboid35, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3869
4025
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3870
4026
|
// Left lead
|
|
3871
|
-
/* @__PURE__ */
|
|
3872
|
-
|
|
4027
|
+
/* @__PURE__ */ jsx56(
|
|
4028
|
+
Translate23,
|
|
3873
4029
|
{
|
|
3874
4030
|
center: [
|
|
3875
4031
|
-bodyWidth / 2 - 0.03,
|
|
3876
4032
|
yOffset * leadSpacing,
|
|
3877
4033
|
leadHeight / 2
|
|
3878
4034
|
],
|
|
3879
|
-
children: /* @__PURE__ */
|
|
4035
|
+
children: /* @__PURE__ */ jsx56(Cuboid35, { size: [leadLength, leadWidth, leadHeight] })
|
|
3880
4036
|
},
|
|
3881
4037
|
`left-${index}`
|
|
3882
4038
|
),
|
|
3883
4039
|
// Right lead
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
|
|
4040
|
+
/* @__PURE__ */ jsx56(
|
|
4041
|
+
Translate23,
|
|
3886
4042
|
{
|
|
3887
4043
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3888
|
-
children: /* @__PURE__ */
|
|
4044
|
+
children: /* @__PURE__ */ jsx56(Cuboid35, { size: [leadLength, leadWidth, leadHeight] })
|
|
3889
4045
|
},
|
|
3890
4046
|
`right-${index}`
|
|
3891
4047
|
)
|
|
@@ -3894,7 +4050,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3894
4050
|
};
|
|
3895
4051
|
|
|
3896
4052
|
// lib/sod-123.tsx
|
|
3897
|
-
import { Fragment as
|
|
4053
|
+
import { Fragment as Fragment51, jsx as jsx57, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3898
4054
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3899
4055
|
const bodyWidth = 2.9;
|
|
3900
4056
|
const bodyLength10 = 1.3;
|
|
@@ -3905,8 +4061,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3905
4061
|
const padContactLength = 0.4;
|
|
3906
4062
|
const padThickness = leadThickness / 2;
|
|
3907
4063
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3908
|
-
return /* @__PURE__ */
|
|
3909
|
-
/* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsxs54(Fragment51, { children: [
|
|
4065
|
+
/* @__PURE__ */ jsx57(
|
|
3910
4066
|
SmdChipLead,
|
|
3911
4067
|
{
|
|
3912
4068
|
position: {
|
|
@@ -3922,7 +4078,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3922
4078
|
},
|
|
3923
4079
|
1
|
|
3924
4080
|
),
|
|
3925
|
-
/* @__PURE__ */
|
|
4081
|
+
/* @__PURE__ */ jsx57(
|
|
3926
4082
|
SmdChipLead,
|
|
3927
4083
|
{
|
|
3928
4084
|
rotation: Math.PI,
|
|
@@ -3939,7 +4095,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3939
4095
|
},
|
|
3940
4096
|
2
|
|
3941
4097
|
),
|
|
3942
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ jsx57(
|
|
3943
4099
|
ChipBody,
|
|
3944
4100
|
{
|
|
3945
4101
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3984,6 +4140,8 @@ export {
|
|
|
3984
4140
|
SOD123,
|
|
3985
4141
|
SOD123F,
|
|
3986
4142
|
SOD123FL,
|
|
4143
|
+
SOD123W,
|
|
4144
|
+
SOD128,
|
|
3987
4145
|
SOD523,
|
|
3988
4146
|
SOD882,
|
|
3989
4147
|
SOD923,
|