jscad-electronics 0.0.96 → 0.0.98
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 +10 -1
- package/dist/index.js +398 -239
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +154 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2300,20 +2300,20 @@ var SOD123FL = () => {
|
|
|
2300
2300
|
] });
|
|
2301
2301
|
};
|
|
2302
2302
|
|
|
2303
|
-
// lib/sod-
|
|
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
|
|
2307
|
-
const fullWidth =
|
|
2308
|
-
const bodyLength10 =
|
|
2306
|
+
var SOD123W = () => {
|
|
2307
|
+
const fullWidth = 2.6;
|
|
2308
|
+
const bodyLength10 = 1.7;
|
|
2309
2309
|
const bodyHeight = 1;
|
|
2310
|
-
const padWidth =
|
|
2310
|
+
const padWidth = 0.9;
|
|
2311
2311
|
const padLength = 0.9;
|
|
2312
2312
|
const padThickness = 0.2;
|
|
2313
2313
|
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2314
2314
|
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2315
2315
|
const taperOffset = 0.4;
|
|
2316
|
-
const lowerTaperOffset = 0.
|
|
2316
|
+
const lowerTaperOffset = 0.1;
|
|
2317
2317
|
const straightHeight = bodyHeight * 0.2;
|
|
2318
2318
|
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2319
2319
|
/* @__PURE__ */ jsx36(
|
|
@@ -2376,9 +2376,85 @@ var SOD128 = () => {
|
|
|
2376
2376
|
] });
|
|
2377
2377
|
};
|
|
2378
2378
|
|
|
2379
|
-
// lib/
|
|
2379
|
+
// lib/sod-128.tsx
|
|
2380
2380
|
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as Union14 } from "jscad-fiber";
|
|
2381
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";
|
|
2382
2458
|
var SOD923 = () => {
|
|
2383
2459
|
const fullWidth = 0.8;
|
|
2384
2460
|
const bodyLength10 = 0.6;
|
|
@@ -2390,29 +2466,29 @@ var SOD923 = () => {
|
|
|
2390
2466
|
const rightPadCenterX = fullWidth / 2;
|
|
2391
2467
|
const taperOffset = 0.1;
|
|
2392
2468
|
const straightHeight = padThickness;
|
|
2393
|
-
return /* @__PURE__ */
|
|
2394
|
-
/* @__PURE__ */
|
|
2395
|
-
|
|
2469
|
+
return /* @__PURE__ */ jsxs36(Fragment34, { children: [
|
|
2470
|
+
/* @__PURE__ */ jsx38(
|
|
2471
|
+
Cuboid28,
|
|
2396
2472
|
{
|
|
2397
2473
|
color: "#ccc",
|
|
2398
2474
|
size: [padLength, padWidth, padThickness],
|
|
2399
2475
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2400
2476
|
}
|
|
2401
2477
|
),
|
|
2402
|
-
/* @__PURE__ */
|
|
2403
|
-
|
|
2478
|
+
/* @__PURE__ */ jsx38(
|
|
2479
|
+
Cuboid28,
|
|
2404
2480
|
{
|
|
2405
2481
|
color: "#ccc",
|
|
2406
2482
|
size: [padLength, padWidth, padThickness],
|
|
2407
2483
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2408
2484
|
}
|
|
2409
2485
|
),
|
|
2410
|
-
/* @__PURE__ */
|
|
2411
|
-
/* @__PURE__ */
|
|
2412
|
-
/* @__PURE__ */
|
|
2413
|
-
/* @__PURE__ */
|
|
2414
|
-
/* @__PURE__ */
|
|
2415
|
-
|
|
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,
|
|
2416
2492
|
{
|
|
2417
2493
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2418
2494
|
}
|
|
@@ -2423,7 +2499,7 @@ var SOD923 = () => {
|
|
|
2423
2499
|
};
|
|
2424
2500
|
|
|
2425
2501
|
// lib/SOT-223.tsx
|
|
2426
|
-
import { Fragment as
|
|
2502
|
+
import { Fragment as Fragment35, jsx as jsx39, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2427
2503
|
var SOT223 = () => {
|
|
2428
2504
|
const fullWidth = 6.6;
|
|
2429
2505
|
const bodyWidth = 3.5;
|
|
@@ -2436,8 +2512,8 @@ var SOT223 = () => {
|
|
|
2436
2512
|
const padContactLength = 0.5;
|
|
2437
2513
|
const padPitch = 2.3;
|
|
2438
2514
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2439
|
-
return /* @__PURE__ */
|
|
2440
|
-
/* @__PURE__ */
|
|
2515
|
+
return /* @__PURE__ */ jsxs37(Fragment35, { children: [
|
|
2516
|
+
/* @__PURE__ */ jsx39(
|
|
2441
2517
|
SmdChipLead,
|
|
2442
2518
|
{
|
|
2443
2519
|
rotation: Math.PI,
|
|
@@ -2454,7 +2530,7 @@ var SOT223 = () => {
|
|
|
2454
2530
|
},
|
|
2455
2531
|
4
|
|
2456
2532
|
),
|
|
2457
|
-
/* @__PURE__ */
|
|
2533
|
+
/* @__PURE__ */ jsx39(
|
|
2458
2534
|
SmdChipLead,
|
|
2459
2535
|
{
|
|
2460
2536
|
position: {
|
|
@@ -2470,7 +2546,7 @@ var SOT223 = () => {
|
|
|
2470
2546
|
},
|
|
2471
2547
|
3
|
|
2472
2548
|
),
|
|
2473
|
-
/* @__PURE__ */
|
|
2549
|
+
/* @__PURE__ */ jsx39(
|
|
2474
2550
|
SmdChipLead,
|
|
2475
2551
|
{
|
|
2476
2552
|
position: {
|
|
@@ -2486,7 +2562,7 @@ var SOT223 = () => {
|
|
|
2486
2562
|
},
|
|
2487
2563
|
1
|
|
2488
2564
|
),
|
|
2489
|
-
/* @__PURE__ */
|
|
2565
|
+
/* @__PURE__ */ jsx39(
|
|
2490
2566
|
SmdChipLead,
|
|
2491
2567
|
{
|
|
2492
2568
|
position: {
|
|
@@ -2502,7 +2578,7 @@ var SOT223 = () => {
|
|
|
2502
2578
|
},
|
|
2503
2579
|
2
|
|
2504
2580
|
),
|
|
2505
|
-
/* @__PURE__ */
|
|
2581
|
+
/* @__PURE__ */ jsx39(
|
|
2506
2582
|
ChipBody,
|
|
2507
2583
|
{
|
|
2508
2584
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2518,7 +2594,7 @@ var SOT223 = () => {
|
|
|
2518
2594
|
};
|
|
2519
2595
|
|
|
2520
2596
|
// lib/tqfp.tsx
|
|
2521
|
-
import { Fragment as
|
|
2597
|
+
import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2522
2598
|
var TQFP = () => {
|
|
2523
2599
|
const pinCount = 64;
|
|
2524
2600
|
const pitch = 0.5;
|
|
@@ -2533,8 +2609,8 @@ var TQFP = () => {
|
|
|
2533
2609
|
const leadHeight = 0.65;
|
|
2534
2610
|
const leadThickness = 0.25;
|
|
2535
2611
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2536
|
-
return /* @__PURE__ */
|
|
2537
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2612
|
+
return /* @__PURE__ */ jsxs38(Fragment36, { children: [
|
|
2613
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2538
2614
|
SmdChipLead,
|
|
2539
2615
|
{
|
|
2540
2616
|
position: {
|
|
@@ -2550,7 +2626,7 @@ var TQFP = () => {
|
|
|
2550
2626
|
},
|
|
2551
2627
|
`left-${i}`
|
|
2552
2628
|
)),
|
|
2553
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2629
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2554
2630
|
SmdChipLead,
|
|
2555
2631
|
{
|
|
2556
2632
|
rotation: Math.PI,
|
|
@@ -2567,7 +2643,7 @@ var TQFP = () => {
|
|
|
2567
2643
|
},
|
|
2568
2644
|
`right-${i}`
|
|
2569
2645
|
)),
|
|
2570
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2646
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2571
2647
|
SmdChipLead,
|
|
2572
2648
|
{
|
|
2573
2649
|
rotation: Math.PI / 2,
|
|
@@ -2584,7 +2660,7 @@ var TQFP = () => {
|
|
|
2584
2660
|
},
|
|
2585
2661
|
`bottom-${i}`
|
|
2586
2662
|
)),
|
|
2587
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2663
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx40(
|
|
2588
2664
|
SmdChipLead,
|
|
2589
2665
|
{
|
|
2590
2666
|
rotation: -Math.PI / 2,
|
|
@@ -2601,7 +2677,7 @@ var TQFP = () => {
|
|
|
2601
2677
|
},
|
|
2602
2678
|
`top-${i}`
|
|
2603
2679
|
)),
|
|
2604
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ jsx40(
|
|
2605
2681
|
ChipBody,
|
|
2606
2682
|
{
|
|
2607
2683
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2619,7 +2695,7 @@ var TQFP = () => {
|
|
|
2619
2695
|
var tqfp_default = TQFP;
|
|
2620
2696
|
|
|
2621
2697
|
// lib/SOT-323.tsx
|
|
2622
|
-
import { Fragment as
|
|
2698
|
+
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2623
2699
|
var SOT323 = () => {
|
|
2624
2700
|
const fullWidth = 2.05;
|
|
2625
2701
|
const bodyWidth = 1.25;
|
|
@@ -2631,8 +2707,8 @@ var SOT323 = () => {
|
|
|
2631
2707
|
const padContactLength = 0.2;
|
|
2632
2708
|
const padPitch = 0.65;
|
|
2633
2709
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2634
|
-
return /* @__PURE__ */
|
|
2635
|
-
/* @__PURE__ */
|
|
2710
|
+
return /* @__PURE__ */ jsxs39(Fragment37, { children: [
|
|
2711
|
+
/* @__PURE__ */ jsx41(
|
|
2636
2712
|
SmdChipLead,
|
|
2637
2713
|
{
|
|
2638
2714
|
rotation: Math.PI,
|
|
@@ -2649,7 +2725,7 @@ var SOT323 = () => {
|
|
|
2649
2725
|
},
|
|
2650
2726
|
4
|
|
2651
2727
|
),
|
|
2652
|
-
/* @__PURE__ */
|
|
2728
|
+
/* @__PURE__ */ jsx41(
|
|
2653
2729
|
SmdChipLead,
|
|
2654
2730
|
{
|
|
2655
2731
|
position: {
|
|
@@ -2665,7 +2741,7 @@ var SOT323 = () => {
|
|
|
2665
2741
|
},
|
|
2666
2742
|
1
|
|
2667
2743
|
),
|
|
2668
|
-
/* @__PURE__ */
|
|
2744
|
+
/* @__PURE__ */ jsx41(
|
|
2669
2745
|
SmdChipLead,
|
|
2670
2746
|
{
|
|
2671
2747
|
position: {
|
|
@@ -2681,7 +2757,7 @@ var SOT323 = () => {
|
|
|
2681
2757
|
},
|
|
2682
2758
|
2
|
|
2683
2759
|
),
|
|
2684
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ jsx41(
|
|
2685
2761
|
ChipBody,
|
|
2686
2762
|
{
|
|
2687
2763
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2698,7 +2774,7 @@ var SOT323 = () => {
|
|
|
2698
2774
|
};
|
|
2699
2775
|
|
|
2700
2776
|
// lib/lqfp.tsx
|
|
2701
|
-
import { Fragment as
|
|
2777
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2702
2778
|
var LQFP = ({
|
|
2703
2779
|
pinCount,
|
|
2704
2780
|
pitch,
|
|
@@ -2721,8 +2797,8 @@ var LQFP = ({
|
|
|
2721
2797
|
const leadHeight = 0.8;
|
|
2722
2798
|
const leadThickness = 0.2;
|
|
2723
2799
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
|
|
2724
|
-
return /* @__PURE__ */
|
|
2725
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2800
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2801
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2726
2802
|
SmdChipLead,
|
|
2727
2803
|
{
|
|
2728
2804
|
position: {
|
|
@@ -2738,7 +2814,7 @@ var LQFP = ({
|
|
|
2738
2814
|
},
|
|
2739
2815
|
`left-${i}`
|
|
2740
2816
|
)),
|
|
2741
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2817
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2742
2818
|
SmdChipLead,
|
|
2743
2819
|
{
|
|
2744
2820
|
rotation: Math.PI,
|
|
@@ -2755,7 +2831,7 @@ var LQFP = ({
|
|
|
2755
2831
|
},
|
|
2756
2832
|
`right-${i}`
|
|
2757
2833
|
)),
|
|
2758
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2834
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2759
2835
|
SmdChipLead,
|
|
2760
2836
|
{
|
|
2761
2837
|
rotation: Math.PI / 2,
|
|
@@ -2772,7 +2848,7 @@ var LQFP = ({
|
|
|
2772
2848
|
},
|
|
2773
2849
|
`bottom-${i}`
|
|
2774
2850
|
)),
|
|
2775
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2851
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx42(
|
|
2776
2852
|
SmdChipLead,
|
|
2777
2853
|
{
|
|
2778
2854
|
rotation: -Math.PI / 2,
|
|
@@ -2789,7 +2865,7 @@ var LQFP = ({
|
|
|
2789
2865
|
},
|
|
2790
2866
|
`top-${i}`
|
|
2791
2867
|
)),
|
|
2792
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ jsx42(
|
|
2793
2869
|
ChipBody,
|
|
2794
2870
|
{
|
|
2795
2871
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2811,8 +2887,8 @@ var LQFP = ({
|
|
|
2811
2887
|
};
|
|
2812
2888
|
|
|
2813
2889
|
// lib/SOT-723.tsx
|
|
2814
|
-
import { Cuboid as
|
|
2815
|
-
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";
|
|
2816
2892
|
var SOT723 = () => {
|
|
2817
2893
|
const bodyWidth = 0.85;
|
|
2818
2894
|
const bodyLength10 = 1.2;
|
|
@@ -2829,43 +2905,43 @@ var SOT723 = () => {
|
|
|
2829
2905
|
const leftTopPadCenterY = 0.4;
|
|
2830
2906
|
const leftBottomPadCenterX = -0.55;
|
|
2831
2907
|
const leftBottomPadCenterY = -0.4;
|
|
2832
|
-
return /* @__PURE__ */
|
|
2833
|
-
/* @__PURE__ */
|
|
2834
|
-
/* @__PURE__ */
|
|
2835
|
-
|
|
2908
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2909
|
+
/* @__PURE__ */ jsx43(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs41(Union16, { children: [
|
|
2910
|
+
/* @__PURE__ */ jsx43(
|
|
2911
|
+
Cuboid29,
|
|
2836
2912
|
{
|
|
2837
2913
|
size: [bodyWidth, bodyLength10, straightHeight],
|
|
2838
2914
|
center: [0, 0, straightHeight / 2]
|
|
2839
2915
|
}
|
|
2840
2916
|
),
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
/* @__PURE__ */
|
|
2843
|
-
/* @__PURE__ */
|
|
2844
|
-
|
|
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,
|
|
2845
2921
|
{
|
|
2846
2922
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2847
2923
|
}
|
|
2848
2924
|
) })
|
|
2849
2925
|
] })
|
|
2850
2926
|
] }) }),
|
|
2851
|
-
/* @__PURE__ */
|
|
2852
|
-
|
|
2927
|
+
/* @__PURE__ */ jsx43(
|
|
2928
|
+
Cuboid29,
|
|
2853
2929
|
{
|
|
2854
2930
|
color: "#ccc",
|
|
2855
2931
|
size: [padLength, rightPadWidth, padThickness],
|
|
2856
2932
|
center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
|
|
2857
2933
|
}
|
|
2858
2934
|
),
|
|
2859
|
-
/* @__PURE__ */
|
|
2860
|
-
|
|
2935
|
+
/* @__PURE__ */ jsx43(
|
|
2936
|
+
Cuboid29,
|
|
2861
2937
|
{
|
|
2862
2938
|
color: "#ccc",
|
|
2863
2939
|
size: [padLength, leftPadWidth, padThickness],
|
|
2864
2940
|
center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
|
|
2865
2941
|
}
|
|
2866
2942
|
),
|
|
2867
|
-
/* @__PURE__ */
|
|
2868
|
-
|
|
2943
|
+
/* @__PURE__ */ jsx43(
|
|
2944
|
+
Cuboid29,
|
|
2869
2945
|
{
|
|
2870
2946
|
color: "#ccc",
|
|
2871
2947
|
size: [padLength, leftPadWidth, padThickness],
|
|
@@ -2876,8 +2952,8 @@ var SOT723 = () => {
|
|
|
2876
2952
|
};
|
|
2877
2953
|
|
|
2878
2954
|
// lib/dfn.tsx
|
|
2879
|
-
import { Cuboid as
|
|
2880
|
-
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";
|
|
2881
2957
|
var DFN = ({
|
|
2882
2958
|
num_pins,
|
|
2883
2959
|
bodyWidth = 5.3,
|
|
@@ -2904,8 +2980,8 @@ var DFN = ({
|
|
|
2904
2980
|
const pinNumber = i + 1;
|
|
2905
2981
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
2906
2982
|
}
|
|
2907
|
-
return /* @__PURE__ */
|
|
2908
|
-
/* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2984
|
+
/* @__PURE__ */ jsx44(
|
|
2909
2985
|
ChipBody,
|
|
2910
2986
|
{
|
|
2911
2987
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2923,16 +2999,16 @@ var DFN = ({
|
|
|
2923
2999
|
}
|
|
2924
3000
|
}
|
|
2925
3001
|
),
|
|
2926
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
2927
|
-
|
|
3002
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx44(
|
|
3003
|
+
Cuboid30,
|
|
2928
3004
|
{
|
|
2929
3005
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
2930
3006
|
size: [p.padSizeX, p.padSizeY, thermalPadThickness]
|
|
2931
3007
|
},
|
|
2932
3008
|
i
|
|
2933
3009
|
)),
|
|
2934
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
2935
|
-
|
|
3010
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx44(
|
|
3011
|
+
Cuboid30,
|
|
2936
3012
|
{
|
|
2937
3013
|
center: [0, 0, thermalPadThickness / 2],
|
|
2938
3014
|
size: [
|
|
@@ -2946,8 +3022,8 @@ var DFN = ({
|
|
|
2946
3022
|
};
|
|
2947
3023
|
|
|
2948
3024
|
// lib/hc49.tsx
|
|
2949
|
-
import { Colorize as
|
|
2950
|
-
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";
|
|
2951
3027
|
var HC49 = ({
|
|
2952
3028
|
bodyLength: bodyLength10 = 10.2,
|
|
2953
3029
|
bodyWidth = 4.65,
|
|
@@ -2963,10 +3039,10 @@ var HC49 = ({
|
|
|
2963
3039
|
const endCenterX = halfLength - endRadius;
|
|
2964
3040
|
const leadCenterX = leadSpacing / 2;
|
|
2965
3041
|
const baseHeight = 0.85;
|
|
2966
|
-
return /* @__PURE__ */
|
|
2967
|
-
/* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2969
|
-
/* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
3043
|
+
/* @__PURE__ */ jsxs43(Colorize22, { color, children: [
|
|
3044
|
+
/* @__PURE__ */ jsxs43(Hull16, { children: [
|
|
3045
|
+
/* @__PURE__ */ jsx45(
|
|
2970
3046
|
RoundedCylinder,
|
|
2971
3047
|
{
|
|
2972
3048
|
height: bodyHeight,
|
|
@@ -2975,7 +3051,7 @@ var HC49 = ({
|
|
|
2975
3051
|
center: [-endCenterX, 0, bodyHeight]
|
|
2976
3052
|
}
|
|
2977
3053
|
),
|
|
2978
|
-
/* @__PURE__ */
|
|
3054
|
+
/* @__PURE__ */ jsx45(
|
|
2979
3055
|
RoundedCylinder,
|
|
2980
3056
|
{
|
|
2981
3057
|
height: bodyHeight,
|
|
@@ -2985,8 +3061,8 @@ var HC49 = ({
|
|
|
2985
3061
|
}
|
|
2986
3062
|
)
|
|
2987
3063
|
] }),
|
|
2988
|
-
/* @__PURE__ */
|
|
2989
|
-
/* @__PURE__ */
|
|
3064
|
+
/* @__PURE__ */ jsxs43(Hull16, { children: [
|
|
3065
|
+
/* @__PURE__ */ jsx45(
|
|
2990
3066
|
RoundedCylinder,
|
|
2991
3067
|
{
|
|
2992
3068
|
height: baseHeight,
|
|
@@ -2995,7 +3071,7 @@ var HC49 = ({
|
|
|
2995
3071
|
center: [-endCenterX, 0, bodyHeight / 2 + baseHeight / 2]
|
|
2996
3072
|
}
|
|
2997
3073
|
),
|
|
2998
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ jsx45(
|
|
2999
3075
|
RoundedCylinder,
|
|
3000
3076
|
{
|
|
3001
3077
|
height: baseHeight,
|
|
@@ -3006,8 +3082,8 @@ var HC49 = ({
|
|
|
3006
3082
|
)
|
|
3007
3083
|
] })
|
|
3008
3084
|
] }),
|
|
3009
|
-
/* @__PURE__ */
|
|
3010
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ jsxs43(Colorize22, { color: leadColor, children: [
|
|
3086
|
+
/* @__PURE__ */ jsx45(
|
|
3011
3087
|
Cylinder6,
|
|
3012
3088
|
{
|
|
3013
3089
|
height: leadLength + bodyHeight / 2,
|
|
@@ -3015,7 +3091,7 @@ var HC49 = ({
|
|
|
3015
3091
|
center: [-leadCenterX + 0.06, 0, -(leadLength / 2) + bodyHeight / 2]
|
|
3016
3092
|
}
|
|
3017
3093
|
),
|
|
3018
|
-
/* @__PURE__ */
|
|
3094
|
+
/* @__PURE__ */ jsx45(
|
|
3019
3095
|
Cylinder6,
|
|
3020
3096
|
{
|
|
3021
3097
|
height: leadLength + bodyHeight / 2,
|
|
@@ -3029,13 +3105,13 @@ var HC49 = ({
|
|
|
3029
3105
|
|
|
3030
3106
|
// lib/MicroMELF.tsx
|
|
3031
3107
|
import {
|
|
3032
|
-
Colorize as
|
|
3108
|
+
Colorize as Colorize23,
|
|
3033
3109
|
Cylinder as Cylinder7,
|
|
3034
3110
|
RoundedCylinder as RoundedCylinder2,
|
|
3035
3111
|
Rotate as Rotate6,
|
|
3036
3112
|
RoundedCuboid as RoundedCuboid2
|
|
3037
3113
|
} from "jscad-fiber";
|
|
3038
|
-
import { Fragment as
|
|
3114
|
+
import { Fragment as Fragment42, jsx as jsx46, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3039
3115
|
var MicroMELF = ({
|
|
3040
3116
|
bodyLength: bodyLength10 = 1.4,
|
|
3041
3117
|
bodyDiameter = 1.1,
|
|
@@ -3044,9 +3120,9 @@ var MicroMELF = ({
|
|
|
3044
3120
|
cathodeIdentification = "#111"
|
|
3045
3121
|
}) => {
|
|
3046
3122
|
const padLength = 0.2;
|
|
3047
|
-
return /* @__PURE__ */
|
|
3048
|
-
/* @__PURE__ */
|
|
3049
|
-
/* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3124
|
+
/* @__PURE__ */ jsx46(Colorize23, { color, children: /* @__PURE__ */ jsxs44(Rotate6, { rotation: [0, "90deg", 0], children: [
|
|
3125
|
+
/* @__PURE__ */ jsx46(
|
|
3050
3126
|
RoundedCuboid2,
|
|
3051
3127
|
{
|
|
3052
3128
|
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
@@ -3054,7 +3130,7 @@ var MicroMELF = ({
|
|
|
3054
3130
|
center: [-bodyDiameter / 2, 0, 0.05]
|
|
3055
3131
|
}
|
|
3056
3132
|
),
|
|
3057
|
-
/* @__PURE__ */
|
|
3133
|
+
/* @__PURE__ */ jsx46(
|
|
3058
3134
|
Cylinder7,
|
|
3059
3135
|
{
|
|
3060
3136
|
height: padLength / 2,
|
|
@@ -3063,7 +3139,7 @@ var MicroMELF = ({
|
|
|
3063
3139
|
}
|
|
3064
3140
|
)
|
|
3065
3141
|
] }) }),
|
|
3066
|
-
/* @__PURE__ */
|
|
3142
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: cathodeIdentification, children: /* @__PURE__ */ jsx46(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3067
3143
|
RoundedCuboid2,
|
|
3068
3144
|
{
|
|
3069
3145
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -3071,7 +3147,7 @@ var MicroMELF = ({
|
|
|
3071
3147
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
3072
3148
|
}
|
|
3073
3149
|
) }) }),
|
|
3074
|
-
/* @__PURE__ */
|
|
3150
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3075
3151
|
RoundedCylinder2,
|
|
3076
3152
|
{
|
|
3077
3153
|
height: padLength,
|
|
@@ -3080,7 +3156,7 @@ var MicroMELF = ({
|
|
|
3080
3156
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3081
3157
|
}
|
|
3082
3158
|
) }) }),
|
|
3083
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3084
3160
|
RoundedCylinder2,
|
|
3085
3161
|
{
|
|
3086
3162
|
height: padLength,
|
|
@@ -3093,8 +3169,8 @@ var MicroMELF = ({
|
|
|
3093
3169
|
};
|
|
3094
3170
|
|
|
3095
3171
|
// lib/MINIMELF.tsx
|
|
3096
|
-
import { Colorize as
|
|
3097
|
-
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";
|
|
3098
3174
|
var MINIMELF = ({
|
|
3099
3175
|
bodyLength: bodyLength10 = 3.5,
|
|
3100
3176
|
bodyDiameter = 1.5,
|
|
@@ -3102,8 +3178,8 @@ var MINIMELF = ({
|
|
|
3102
3178
|
contactColor = "#c6c6c6"
|
|
3103
3179
|
}) => {
|
|
3104
3180
|
const padLength = 0.5;
|
|
3105
|
-
return /* @__PURE__ */
|
|
3106
|
-
/* @__PURE__ */
|
|
3181
|
+
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3182
|
+
/* @__PURE__ */ jsx47(Colorize24, { color, children: /* @__PURE__ */ jsx47(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3107
3183
|
RoundedCylinder3,
|
|
3108
3184
|
{
|
|
3109
3185
|
height: bodyLength10,
|
|
@@ -3112,7 +3188,7 @@ var MINIMELF = ({
|
|
|
3112
3188
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3113
3189
|
}
|
|
3114
3190
|
) }) }),
|
|
3115
|
-
/* @__PURE__ */
|
|
3191
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3116
3192
|
RoundedCylinder3,
|
|
3117
3193
|
{
|
|
3118
3194
|
height: padLength,
|
|
@@ -3121,7 +3197,7 @@ var MINIMELF = ({
|
|
|
3121
3197
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3122
3198
|
}
|
|
3123
3199
|
) }) }),
|
|
3124
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3125
3201
|
RoundedCylinder3,
|
|
3126
3202
|
{
|
|
3127
3203
|
height: padLength,
|
|
@@ -3134,8 +3210,8 @@ var MINIMELF = ({
|
|
|
3134
3210
|
};
|
|
3135
3211
|
|
|
3136
3212
|
// lib/MELF.tsx
|
|
3137
|
-
import { Colorize as
|
|
3138
|
-
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";
|
|
3139
3215
|
var MELF = ({
|
|
3140
3216
|
bodyLength: bodyLength10 = 3.9,
|
|
3141
3217
|
bodyDiameter = 2.5,
|
|
@@ -3143,8 +3219,8 @@ var MELF = ({
|
|
|
3143
3219
|
contactColor = "#c6c6c6"
|
|
3144
3220
|
}) => {
|
|
3145
3221
|
const padLength = 0.55;
|
|
3146
|
-
return /* @__PURE__ */
|
|
3147
|
-
/* @__PURE__ */
|
|
3222
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3223
|
+
/* @__PURE__ */ jsx48(Colorize25, { color, children: /* @__PURE__ */ jsx48(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3148
3224
|
RoundedCylinder4,
|
|
3149
3225
|
{
|
|
3150
3226
|
height: bodyLength10,
|
|
@@ -3153,7 +3229,7 @@ var MELF = ({
|
|
|
3153
3229
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3154
3230
|
}
|
|
3155
3231
|
) }) }),
|
|
3156
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3157
3233
|
RoundedCylinder4,
|
|
3158
3234
|
{
|
|
3159
3235
|
height: padLength,
|
|
@@ -3162,7 +3238,7 @@ var MELF = ({
|
|
|
3162
3238
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3163
3239
|
}
|
|
3164
3240
|
) }) }),
|
|
3165
|
-
/* @__PURE__ */
|
|
3241
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx48(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx48(
|
|
3166
3242
|
RoundedCylinder4,
|
|
3167
3243
|
{
|
|
3168
3244
|
height: padLength,
|
|
@@ -3175,7 +3251,7 @@ var MELF = ({
|
|
|
3175
3251
|
};
|
|
3176
3252
|
|
|
3177
3253
|
// lib/ms012.tsx
|
|
3178
|
-
import { Fragment as
|
|
3254
|
+
import { Fragment as Fragment45, jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3179
3255
|
var MS012 = ({
|
|
3180
3256
|
pinCount,
|
|
3181
3257
|
padContactLength = 0.6,
|
|
@@ -3190,8 +3266,8 @@ var MS012 = ({
|
|
|
3190
3266
|
const bodyLength10 = 3.9;
|
|
3191
3267
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3192
3268
|
const leadThickness = 0.2;
|
|
3193
|
-
return /* @__PURE__ */
|
|
3194
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ jsxs47(Fragment45, { children: [
|
|
3270
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx49(
|
|
3195
3271
|
SmdChipLead,
|
|
3196
3272
|
{
|
|
3197
3273
|
position: {
|
|
@@ -3207,7 +3283,7 @@ var MS012 = ({
|
|
|
3207
3283
|
},
|
|
3208
3284
|
i
|
|
3209
3285
|
)),
|
|
3210
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3286
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx49(
|
|
3211
3287
|
SmdChipLead,
|
|
3212
3288
|
{
|
|
3213
3289
|
rotation: Math.PI,
|
|
@@ -3224,7 +3300,7 @@ var MS012 = ({
|
|
|
3224
3300
|
},
|
|
3225
3301
|
`right-${i}`
|
|
3226
3302
|
)),
|
|
3227
|
-
/* @__PURE__ */
|
|
3303
|
+
/* @__PURE__ */ jsx49(
|
|
3228
3304
|
ChipBody,
|
|
3229
3305
|
{
|
|
3230
3306
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -3239,17 +3315,86 @@ var MS012 = ({
|
|
|
3239
3315
|
] });
|
|
3240
3316
|
};
|
|
3241
3317
|
|
|
3318
|
+
// lib/ms013.tsx
|
|
3319
|
+
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3320
|
+
var MS013 = ({
|
|
3321
|
+
pinCount = 16,
|
|
3322
|
+
padContactLength = 0.6,
|
|
3323
|
+
leadWidth = 0.41,
|
|
3324
|
+
pitch = 1.27
|
|
3325
|
+
}) => {
|
|
3326
|
+
if (pinCount !== 16) {
|
|
3327
|
+
throw new Error("MS013 only supports 16 pins");
|
|
3328
|
+
}
|
|
3329
|
+
const sidePinCount = pinCount / 2;
|
|
3330
|
+
const bodyWidth = 7.5;
|
|
3331
|
+
const bodyLength10 = 10.3;
|
|
3332
|
+
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3333
|
+
const leadThickness = 0.2;
|
|
3334
|
+
return /* @__PURE__ */ jsxs48(Fragment46, { children: [
|
|
3335
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx50(
|
|
3336
|
+
SmdChipLead,
|
|
3337
|
+
{
|
|
3338
|
+
position: {
|
|
3339
|
+
x: -bodyWidth / 2 - padContactLength - 0.3,
|
|
3340
|
+
y: i * pitch - pinOffsetToCenter,
|
|
3341
|
+
z: leadThickness / 2
|
|
3342
|
+
},
|
|
3343
|
+
width: leadWidth,
|
|
3344
|
+
thickness: leadThickness,
|
|
3345
|
+
padContactLength,
|
|
3346
|
+
bodyDistance: padContactLength + 0.4,
|
|
3347
|
+
height: 0.85
|
|
3348
|
+
},
|
|
3349
|
+
i
|
|
3350
|
+
)),
|
|
3351
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx50(
|
|
3352
|
+
SmdChipLead,
|
|
3353
|
+
{
|
|
3354
|
+
rotation: Math.PI,
|
|
3355
|
+
position: {
|
|
3356
|
+
x: bodyWidth / 2 + padContactLength + 0.3,
|
|
3357
|
+
y: i * pitch - pinOffsetToCenter,
|
|
3358
|
+
z: leadThickness / 2
|
|
3359
|
+
},
|
|
3360
|
+
width: leadWidth,
|
|
3361
|
+
thickness: leadThickness,
|
|
3362
|
+
padContactLength,
|
|
3363
|
+
bodyDistance: padContactLength + 0.4,
|
|
3364
|
+
height: 0.85
|
|
3365
|
+
},
|
|
3366
|
+
`right-${i}`
|
|
3367
|
+
)),
|
|
3368
|
+
/* @__PURE__ */ jsx50(
|
|
3369
|
+
ChipBody,
|
|
3370
|
+
{
|
|
3371
|
+
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
3372
|
+
width: bodyWidth,
|
|
3373
|
+
length: bodyLength10,
|
|
3374
|
+
height: 1.1,
|
|
3375
|
+
notchPosition: {
|
|
3376
|
+
x: bodyWidth / 2 - 1.5,
|
|
3377
|
+
y: bodyLength10 / 2 - 1.5,
|
|
3378
|
+
z: 1.1
|
|
3379
|
+
},
|
|
3380
|
+
heightAboveSurface: 0.17,
|
|
3381
|
+
taperRatio: 0.05
|
|
3382
|
+
}
|
|
3383
|
+
)
|
|
3384
|
+
] });
|
|
3385
|
+
};
|
|
3386
|
+
|
|
3242
3387
|
// lib/TO220.tsx
|
|
3243
3388
|
import {
|
|
3244
|
-
Colorize as
|
|
3245
|
-
Cuboid as
|
|
3246
|
-
Hull as
|
|
3389
|
+
Colorize as Colorize26,
|
|
3390
|
+
Cuboid as Cuboid33,
|
|
3391
|
+
Hull as Hull17,
|
|
3247
3392
|
Rotate as Rotate9,
|
|
3248
|
-
Translate as
|
|
3393
|
+
Translate as Translate21,
|
|
3249
3394
|
Cylinder as Cylinder8,
|
|
3250
3395
|
Subtract as Subtract4
|
|
3251
3396
|
} from "jscad-fiber";
|
|
3252
|
-
import { Fragment as
|
|
3397
|
+
import { Fragment as Fragment47, jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3253
3398
|
var TO220 = () => {
|
|
3254
3399
|
const fullLength10 = 20;
|
|
3255
3400
|
const bodyLength10 = 9.9;
|
|
@@ -3268,18 +3413,18 @@ var TO220 = () => {
|
|
|
3268
3413
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3269
3414
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3270
3415
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3271
|
-
return /* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
3273
|
-
/* @__PURE__ */
|
|
3274
|
-
/* @__PURE__ */
|
|
3275
|
-
|
|
3416
|
+
return /* @__PURE__ */ jsx51(Translate21, { center: [0, 0, zOffset], children: /* @__PURE__ */ jsxs49(Fragment47, { children: [
|
|
3417
|
+
/* @__PURE__ */ jsxs49(Rotate9, { rotation: [0, 55, -55], children: [
|
|
3418
|
+
/* @__PURE__ */ jsxs49(Subtract4, { children: [
|
|
3419
|
+
/* @__PURE__ */ jsx51(
|
|
3420
|
+
Cuboid33,
|
|
3276
3421
|
{
|
|
3277
3422
|
color: "#ccc",
|
|
3278
3423
|
size: [padLength + 0.1, padWidth, padThickness],
|
|
3279
3424
|
center: [padCenterX, 0, padThickness - 2]
|
|
3280
3425
|
}
|
|
3281
3426
|
),
|
|
3282
|
-
/* @__PURE__ */
|
|
3427
|
+
/* @__PURE__ */ jsx51(
|
|
3283
3428
|
Cylinder8,
|
|
3284
3429
|
{
|
|
3285
3430
|
color: "black",
|
|
@@ -3289,7 +3434,7 @@ var TO220 = () => {
|
|
|
3289
3434
|
}
|
|
3290
3435
|
)
|
|
3291
3436
|
] }),
|
|
3292
|
-
/* @__PURE__ */
|
|
3437
|
+
/* @__PURE__ */ jsx51(Colorize26, { color: "#222", children: /* @__PURE__ */ jsx51(
|
|
3293
3438
|
ChipBody,
|
|
3294
3439
|
{
|
|
3295
3440
|
width: bodyWidth,
|
|
@@ -3303,29 +3448,29 @@ var TO220 = () => {
|
|
|
3303
3448
|
}
|
|
3304
3449
|
) })
|
|
3305
3450
|
] }),
|
|
3306
|
-
/* @__PURE__ */
|
|
3451
|
+
/* @__PURE__ */ jsx51(Rotate9, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3307
3452
|
const x = prongCenterX;
|
|
3308
3453
|
const y = (i - 1) * prongPitch;
|
|
3309
3454
|
const z = -prongHeight - 0.6;
|
|
3310
|
-
return /* @__PURE__ */
|
|
3311
|
-
/* @__PURE__ */
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3314
|
-
|
|
3455
|
+
return /* @__PURE__ */ jsxs49(Colorize26, { color: "gold", children: [
|
|
3456
|
+
/* @__PURE__ */ jsxs49(Hull17, { children: [
|
|
3457
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
3458
|
+
/* @__PURE__ */ jsx51(
|
|
3459
|
+
Translate21,
|
|
3315
3460
|
{
|
|
3316
3461
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3317
|
-
children: /* @__PURE__ */
|
|
3462
|
+
children: /* @__PURE__ */ jsx51(Cuboid33, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3318
3463
|
}
|
|
3319
3464
|
)
|
|
3320
3465
|
] }),
|
|
3321
|
-
/* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [x, y, z], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3322
3467
|
] }, `prong-${i}`);
|
|
3323
3468
|
}) })
|
|
3324
3469
|
] }) });
|
|
3325
3470
|
};
|
|
3326
3471
|
|
|
3327
3472
|
// lib/SOT-457.tsx
|
|
3328
|
-
import { Fragment as
|
|
3473
|
+
import { Fragment as Fragment48, jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3329
3474
|
var SOT457 = () => {
|
|
3330
3475
|
const fullWidth = 2.8;
|
|
3331
3476
|
const bodyWidth = 1.6;
|
|
@@ -3337,8 +3482,8 @@ var SOT457 = () => {
|
|
|
3337
3482
|
const padContactLength = 0.5;
|
|
3338
3483
|
const padPitch = 0.95;
|
|
3339
3484
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3340
|
-
return /* @__PURE__ */
|
|
3341
|
-
/* @__PURE__ */
|
|
3485
|
+
return /* @__PURE__ */ jsxs50(Fragment48, { children: [
|
|
3486
|
+
/* @__PURE__ */ jsx52(
|
|
3342
3487
|
SmdChipLead,
|
|
3343
3488
|
{
|
|
3344
3489
|
rotation: Math.PI,
|
|
@@ -3355,7 +3500,7 @@ var SOT457 = () => {
|
|
|
3355
3500
|
},
|
|
3356
3501
|
1
|
|
3357
3502
|
),
|
|
3358
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ jsx52(
|
|
3359
3504
|
SmdChipLead,
|
|
3360
3505
|
{
|
|
3361
3506
|
rotation: Math.PI,
|
|
@@ -3372,7 +3517,7 @@ var SOT457 = () => {
|
|
|
3372
3517
|
},
|
|
3373
3518
|
2
|
|
3374
3519
|
),
|
|
3375
|
-
/* @__PURE__ */
|
|
3520
|
+
/* @__PURE__ */ jsx52(
|
|
3376
3521
|
SmdChipLead,
|
|
3377
3522
|
{
|
|
3378
3523
|
rotation: Math.PI,
|
|
@@ -3389,7 +3534,7 @@ var SOT457 = () => {
|
|
|
3389
3534
|
},
|
|
3390
3535
|
3
|
|
3391
3536
|
),
|
|
3392
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ jsx52(
|
|
3393
3538
|
SmdChipLead,
|
|
3394
3539
|
{
|
|
3395
3540
|
position: {
|
|
@@ -3405,7 +3550,7 @@ var SOT457 = () => {
|
|
|
3405
3550
|
},
|
|
3406
3551
|
3
|
|
3407
3552
|
),
|
|
3408
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ jsx52(
|
|
3409
3554
|
SmdChipLead,
|
|
3410
3555
|
{
|
|
3411
3556
|
position: {
|
|
@@ -3421,7 +3566,7 @@ var SOT457 = () => {
|
|
|
3421
3566
|
},
|
|
3422
3567
|
1
|
|
3423
3568
|
),
|
|
3424
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ jsx52(
|
|
3425
3570
|
SmdChipLead,
|
|
3426
3571
|
{
|
|
3427
3572
|
position: {
|
|
@@ -3437,7 +3582,7 @@ var SOT457 = () => {
|
|
|
3437
3582
|
},
|
|
3438
3583
|
2
|
|
3439
3584
|
),
|
|
3440
|
-
/* @__PURE__ */
|
|
3585
|
+
/* @__PURE__ */ jsx52(
|
|
3441
3586
|
ChipBody,
|
|
3442
3587
|
{
|
|
3443
3588
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3458,14 +3603,14 @@ var SOT457 = () => {
|
|
|
3458
3603
|
|
|
3459
3604
|
// lib/TO92.tsx
|
|
3460
3605
|
import {
|
|
3461
|
-
Colorize as
|
|
3462
|
-
Cuboid as
|
|
3463
|
-
Hull as
|
|
3464
|
-
Translate as
|
|
3606
|
+
Colorize as Colorize27,
|
|
3607
|
+
Cuboid as Cuboid34,
|
|
3608
|
+
Hull as Hull18,
|
|
3609
|
+
Translate as Translate22,
|
|
3465
3610
|
Cylinder as Cylinder9,
|
|
3466
3611
|
Subtract as Subtract5
|
|
3467
3612
|
} from "jscad-fiber";
|
|
3468
|
-
import { jsx as
|
|
3613
|
+
import { jsx as jsx53, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3469
3614
|
var TO92 = () => {
|
|
3470
3615
|
const bodyRadius = 2.4;
|
|
3471
3616
|
const bodyHeight = 4.5;
|
|
@@ -3486,24 +3631,24 @@ var TO92 = () => {
|
|
|
3486
3631
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3487
3632
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3488
3633
|
const sideLeadZ = -7.5;
|
|
3489
|
-
return /* @__PURE__ */
|
|
3490
|
-
/* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */
|
|
3492
|
-
/* @__PURE__ */
|
|
3634
|
+
return /* @__PURE__ */ jsxs51(Translate22, { center: [0, 1, 10.5], children: [
|
|
3635
|
+
/* @__PURE__ */ jsx53(Colorize27, { color: bodyColor, children: /* @__PURE__ */ jsxs51(Subtract5, { children: [
|
|
3636
|
+
/* @__PURE__ */ jsx53(Translate22, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx53(Cylinder9, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3637
|
+
/* @__PURE__ */ jsx53(Translate22, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx53(Cuboid34, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3493
3638
|
] }) }),
|
|
3494
|
-
/* @__PURE__ */
|
|
3495
|
-
/* @__PURE__ */
|
|
3496
|
-
/* @__PURE__ */
|
|
3497
|
-
/* @__PURE__ */
|
|
3639
|
+
/* @__PURE__ */ jsx53(Translate22, { center: leadTipPos1, children: /* @__PURE__ */ jsx53(Cuboid34, { size: leadTipSize }) }),
|
|
3640
|
+
/* @__PURE__ */ jsxs51(Hull18, { children: [
|
|
3641
|
+
/* @__PURE__ */ jsx53(Translate22, { center: leadMidPosA, children: /* @__PURE__ */ jsx53(Cuboid34, { size: leadSmallSize }) }),
|
|
3642
|
+
/* @__PURE__ */ jsx53(Translate22, { center: leadMidPosB, children: /* @__PURE__ */ jsx53(Cuboid34, { size: leadSmallSize }) })
|
|
3498
3643
|
] }),
|
|
3499
|
-
/* @__PURE__ */
|
|
3500
|
-
/* @__PURE__ */
|
|
3501
|
-
/* @__PURE__ */
|
|
3644
|
+
/* @__PURE__ */ jsx53(Translate22, { center: leadTipPos2, children: /* @__PURE__ */ jsx53(Cuboid34, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3645
|
+
/* @__PURE__ */ jsx53(Translate22, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx53(Cuboid34, { size: [leadLength, legWidth, 15] }) }),
|
|
3646
|
+
/* @__PURE__ */ jsx53(Translate22, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx53(Cuboid34, { size: [leadLength, legWidth, 15] }) })
|
|
3502
3647
|
] });
|
|
3503
3648
|
};
|
|
3504
3649
|
|
|
3505
3650
|
// lib/SOT-363.tsx
|
|
3506
|
-
import { Fragment as
|
|
3651
|
+
import { Fragment as Fragment49, jsx as jsx54, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3507
3652
|
var SOT363 = () => {
|
|
3508
3653
|
const fullWidth = 2;
|
|
3509
3654
|
const bodyWidth = 1.25;
|
|
@@ -3514,8 +3659,8 @@ var SOT363 = () => {
|
|
|
3514
3659
|
const leadHeight = 0.85;
|
|
3515
3660
|
const padContactLength = 0.3;
|
|
3516
3661
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3517
|
-
return /* @__PURE__ */
|
|
3518
|
-
/* @__PURE__ */
|
|
3662
|
+
return /* @__PURE__ */ jsxs52(Fragment49, { children: [
|
|
3663
|
+
/* @__PURE__ */ jsx54(
|
|
3519
3664
|
SmdChipLead,
|
|
3520
3665
|
{
|
|
3521
3666
|
rotation: Math.PI,
|
|
@@ -3532,7 +3677,7 @@ var SOT363 = () => {
|
|
|
3532
3677
|
},
|
|
3533
3678
|
1
|
|
3534
3679
|
),
|
|
3535
|
-
/* @__PURE__ */
|
|
3680
|
+
/* @__PURE__ */ jsx54(
|
|
3536
3681
|
SmdChipLead,
|
|
3537
3682
|
{
|
|
3538
3683
|
rotation: Math.PI,
|
|
@@ -3549,7 +3694,7 @@ var SOT363 = () => {
|
|
|
3549
3694
|
},
|
|
3550
3695
|
2
|
|
3551
3696
|
),
|
|
3552
|
-
/* @__PURE__ */
|
|
3697
|
+
/* @__PURE__ */ jsx54(
|
|
3553
3698
|
SmdChipLead,
|
|
3554
3699
|
{
|
|
3555
3700
|
rotation: Math.PI,
|
|
@@ -3566,7 +3711,7 @@ var SOT363 = () => {
|
|
|
3566
3711
|
},
|
|
3567
3712
|
3
|
|
3568
3713
|
),
|
|
3569
|
-
/* @__PURE__ */
|
|
3714
|
+
/* @__PURE__ */ jsx54(
|
|
3570
3715
|
SmdChipLead,
|
|
3571
3716
|
{
|
|
3572
3717
|
position: {
|
|
@@ -3582,7 +3727,7 @@ var SOT363 = () => {
|
|
|
3582
3727
|
},
|
|
3583
3728
|
3
|
|
3584
3729
|
),
|
|
3585
|
-
/* @__PURE__ */
|
|
3730
|
+
/* @__PURE__ */ jsx54(
|
|
3586
3731
|
SmdChipLead,
|
|
3587
3732
|
{
|
|
3588
3733
|
position: {
|
|
@@ -3598,7 +3743,7 @@ var SOT363 = () => {
|
|
|
3598
3743
|
},
|
|
3599
3744
|
1
|
|
3600
3745
|
),
|
|
3601
|
-
/* @__PURE__ */
|
|
3746
|
+
/* @__PURE__ */ jsx54(
|
|
3602
3747
|
SmdChipLead,
|
|
3603
3748
|
{
|
|
3604
3749
|
position: {
|
|
@@ -3614,7 +3759,7 @@ var SOT363 = () => {
|
|
|
3614
3759
|
},
|
|
3615
3760
|
2
|
|
3616
3761
|
),
|
|
3617
|
-
/* @__PURE__ */
|
|
3762
|
+
/* @__PURE__ */ jsx54(
|
|
3618
3763
|
ChipBody,
|
|
3619
3764
|
{
|
|
3620
3765
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3635,14 +3780,14 @@ var SOT363 = () => {
|
|
|
3635
3780
|
var SOT_363_default = SOT363;
|
|
3636
3781
|
|
|
3637
3782
|
// lib/Footprinter3d.tsx
|
|
3638
|
-
import { jsx as
|
|
3783
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
3639
3784
|
var Footprinter3d = ({ footprint }) => {
|
|
3640
3785
|
const fpJson = fp3.string(footprint).json();
|
|
3641
3786
|
switch (fpJson.fn) {
|
|
3642
3787
|
case "dip":
|
|
3643
|
-
return /* @__PURE__ */
|
|
3788
|
+
return /* @__PURE__ */ jsx55(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3644
3789
|
case "tssop":
|
|
3645
|
-
return /* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ jsx55(
|
|
3646
3791
|
Tssop,
|
|
3647
3792
|
{
|
|
3648
3793
|
pinCount: fpJson.num_pins,
|
|
@@ -3653,7 +3798,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3653
3798
|
}
|
|
3654
3799
|
);
|
|
3655
3800
|
case "msop":
|
|
3656
|
-
return /* @__PURE__ */
|
|
3801
|
+
return /* @__PURE__ */ jsx55(
|
|
3657
3802
|
MSOP,
|
|
3658
3803
|
{
|
|
3659
3804
|
pinCount: fpJson.num_pins,
|
|
@@ -3664,7 +3809,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3664
3809
|
}
|
|
3665
3810
|
);
|
|
3666
3811
|
case "vssop":
|
|
3667
|
-
return /* @__PURE__ */
|
|
3812
|
+
return /* @__PURE__ */ jsx55(
|
|
3668
3813
|
VSSOP,
|
|
3669
3814
|
{
|
|
3670
3815
|
pinCount: fpJson.num_pins,
|
|
@@ -3676,7 +3821,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3676
3821
|
}
|
|
3677
3822
|
);
|
|
3678
3823
|
case "qfp":
|
|
3679
|
-
return /* @__PURE__ */
|
|
3824
|
+
return /* @__PURE__ */ jsx55(
|
|
3680
3825
|
QFP,
|
|
3681
3826
|
{
|
|
3682
3827
|
pinCount: fpJson.num_pins,
|
|
@@ -3687,12 +3832,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3687
3832
|
}
|
|
3688
3833
|
);
|
|
3689
3834
|
case "tqfp":
|
|
3690
|
-
return /* @__PURE__ */
|
|
3835
|
+
return /* @__PURE__ */ jsx55(tqfp_default, {});
|
|
3691
3836
|
case "lqfp":
|
|
3692
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ jsx55(LQFP, { pinCount: fpJson.num_pins });
|
|
3693
3838
|
case "qfn": {
|
|
3694
3839
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3695
|
-
return /* @__PURE__ */
|
|
3840
|
+
return /* @__PURE__ */ jsx55(
|
|
3696
3841
|
qfn_default,
|
|
3697
3842
|
{
|
|
3698
3843
|
num_pins: fpJson.num_pins,
|
|
@@ -3710,7 +3855,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3710
3855
|
}
|
|
3711
3856
|
case "dfn": {
|
|
3712
3857
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3713
|
-
return /* @__PURE__ */
|
|
3858
|
+
return /* @__PURE__ */ jsx55(
|
|
3714
3859
|
DFN,
|
|
3715
3860
|
{
|
|
3716
3861
|
num_pins: fpJson.num_pins,
|
|
@@ -3728,45 +3873,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3728
3873
|
}
|
|
3729
3874
|
case "pinrow":
|
|
3730
3875
|
if (fpJson.male)
|
|
3731
|
-
return /* @__PURE__ */
|
|
3876
|
+
return /* @__PURE__ */ jsx55(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3732
3877
|
if (fpJson.female)
|
|
3733
|
-
return /* @__PURE__ */
|
|
3878
|
+
return /* @__PURE__ */ jsx55(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3734
3879
|
case "cap": {
|
|
3735
3880
|
switch (fpJson.imperial) {
|
|
3736
3881
|
case "0402":
|
|
3737
|
-
return /* @__PURE__ */
|
|
3882
|
+
return /* @__PURE__ */ jsx55(A0402, { color: "#856c4d" });
|
|
3738
3883
|
case "0603":
|
|
3739
|
-
return /* @__PURE__ */
|
|
3884
|
+
return /* @__PURE__ */ jsx55(A0603, { color: "#856c4d" });
|
|
3740
3885
|
case "0805":
|
|
3741
|
-
return /* @__PURE__ */
|
|
3886
|
+
return /* @__PURE__ */ jsx55(A0805, { color: "#856c4d" });
|
|
3742
3887
|
case "0201":
|
|
3743
|
-
return /* @__PURE__ */
|
|
3888
|
+
return /* @__PURE__ */ jsx55(A0201, { color: "#856c4d" });
|
|
3744
3889
|
case "01005":
|
|
3745
|
-
return /* @__PURE__ */
|
|
3890
|
+
return /* @__PURE__ */ jsx55(A01005, { color: "#856c4d" });
|
|
3746
3891
|
case "1206":
|
|
3747
|
-
return /* @__PURE__ */
|
|
3892
|
+
return /* @__PURE__ */ jsx55(A1206, { color: "#856c4d" });
|
|
3748
3893
|
case "1210":
|
|
3749
|
-
return /* @__PURE__ */
|
|
3894
|
+
return /* @__PURE__ */ jsx55(A1210, { color: "#856c4d" });
|
|
3750
3895
|
case "2010":
|
|
3751
|
-
return /* @__PURE__ */
|
|
3896
|
+
return /* @__PURE__ */ jsx55(A2010, { color: "#856c4d" });
|
|
3752
3897
|
case "2512":
|
|
3753
|
-
return /* @__PURE__ */
|
|
3898
|
+
return /* @__PURE__ */ jsx55(A2512, { color: "#856c4d" });
|
|
3754
3899
|
}
|
|
3755
3900
|
}
|
|
3756
3901
|
case "sot235":
|
|
3757
|
-
return /* @__PURE__ */
|
|
3902
|
+
return /* @__PURE__ */ jsx55(SOT_235_default, {});
|
|
3758
3903
|
case "sot457":
|
|
3759
|
-
return /* @__PURE__ */
|
|
3904
|
+
return /* @__PURE__ */ jsx55(SOT457, {});
|
|
3760
3905
|
case "sot223":
|
|
3761
|
-
return /* @__PURE__ */
|
|
3906
|
+
return /* @__PURE__ */ jsx55(SOT223, {});
|
|
3762
3907
|
case "sot23w":
|
|
3763
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ jsx55(SOT23W, {});
|
|
3764
3909
|
case "sot323":
|
|
3765
|
-
return /* @__PURE__ */
|
|
3910
|
+
return /* @__PURE__ */ jsx55(SOT323, {});
|
|
3766
3911
|
case "sot363":
|
|
3767
|
-
return /* @__PURE__ */
|
|
3912
|
+
return /* @__PURE__ */ jsx55(SOT_363_default, {});
|
|
3768
3913
|
case "pushbutton":
|
|
3769
|
-
return /* @__PURE__ */
|
|
3914
|
+
return /* @__PURE__ */ jsx55(
|
|
3770
3915
|
PushButton,
|
|
3771
3916
|
{
|
|
3772
3917
|
width: fpJson.w,
|
|
@@ -3775,7 +3920,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3775
3920
|
}
|
|
3776
3921
|
);
|
|
3777
3922
|
case "soic":
|
|
3778
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ jsx55(
|
|
3779
3924
|
SOIC,
|
|
3780
3925
|
{
|
|
3781
3926
|
pinCount: fpJson.num_pins,
|
|
@@ -3786,35 +3931,37 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3786
3931
|
}
|
|
3787
3932
|
);
|
|
3788
3933
|
case "sod523":
|
|
3789
|
-
return /* @__PURE__ */
|
|
3934
|
+
return /* @__PURE__ */ jsx55(SOD523, {});
|
|
3790
3935
|
case "sod882":
|
|
3791
|
-
return /* @__PURE__ */
|
|
3936
|
+
return /* @__PURE__ */ jsx55(SOD882, {});
|
|
3792
3937
|
case "sma":
|
|
3793
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx55(SMA, {});
|
|
3794
3939
|
case "smb":
|
|
3795
|
-
return /* @__PURE__ */
|
|
3940
|
+
return /* @__PURE__ */ jsx55(SMB, {});
|
|
3796
3941
|
case "smc":
|
|
3797
|
-
return /* @__PURE__ */
|
|
3942
|
+
return /* @__PURE__ */ jsx55(SMC, {});
|
|
3798
3943
|
case "smf":
|
|
3799
|
-
return /* @__PURE__ */
|
|
3944
|
+
return /* @__PURE__ */ jsx55(SMF, {});
|
|
3800
3945
|
case "sod123f":
|
|
3801
|
-
return /* @__PURE__ */
|
|
3946
|
+
return /* @__PURE__ */ jsx55(SOD123F, {});
|
|
3802
3947
|
case "sod123fl":
|
|
3803
|
-
return /* @__PURE__ */
|
|
3948
|
+
return /* @__PURE__ */ jsx55(SOD123FL, {});
|
|
3949
|
+
case "sod123w":
|
|
3950
|
+
return /* @__PURE__ */ jsx55(SOD123W, {});
|
|
3804
3951
|
case "sod128":
|
|
3805
|
-
return /* @__PURE__ */
|
|
3952
|
+
return /* @__PURE__ */ jsx55(SOD128, {});
|
|
3806
3953
|
case "sod923":
|
|
3807
|
-
return /* @__PURE__ */
|
|
3954
|
+
return /* @__PURE__ */ jsx55(SOD923, {});
|
|
3808
3955
|
case "hc49":
|
|
3809
|
-
return /* @__PURE__ */
|
|
3956
|
+
return /* @__PURE__ */ jsx55(HC49, {});
|
|
3810
3957
|
case "micromelf":
|
|
3811
|
-
return /* @__PURE__ */
|
|
3958
|
+
return /* @__PURE__ */ jsx55(MicroMELF, {});
|
|
3812
3959
|
case "minimelf":
|
|
3813
|
-
return /* @__PURE__ */
|
|
3960
|
+
return /* @__PURE__ */ jsx55(MINIMELF, {});
|
|
3814
3961
|
case "melf":
|
|
3815
|
-
return /* @__PURE__ */
|
|
3962
|
+
return /* @__PURE__ */ jsx55(MELF, {});
|
|
3816
3963
|
case "ms012":
|
|
3817
|
-
return /* @__PURE__ */
|
|
3964
|
+
return /* @__PURE__ */ jsx55(
|
|
3818
3965
|
MS012,
|
|
3819
3966
|
{
|
|
3820
3967
|
pinCount: fpJson.num_pins,
|
|
@@ -3823,40 +3970,50 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3823
3970
|
pitch: fpJson.p
|
|
3824
3971
|
}
|
|
3825
3972
|
);
|
|
3973
|
+
case "ms013":
|
|
3974
|
+
return /* @__PURE__ */ jsx55(
|
|
3975
|
+
MS013,
|
|
3976
|
+
{
|
|
3977
|
+
pinCount: fpJson.num_pins,
|
|
3978
|
+
padContactLength: fpJson.pl,
|
|
3979
|
+
leadWidth: fpJson.pw,
|
|
3980
|
+
pitch: fpJson.p
|
|
3981
|
+
}
|
|
3982
|
+
);
|
|
3826
3983
|
case "sot723":
|
|
3827
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ jsx55(SOT723, {});
|
|
3828
3985
|
case "to220":
|
|
3829
|
-
return /* @__PURE__ */
|
|
3986
|
+
return /* @__PURE__ */ jsx55(TO220, {});
|
|
3830
3987
|
case "to92":
|
|
3831
|
-
return /* @__PURE__ */
|
|
3988
|
+
return /* @__PURE__ */ jsx55(TO92, {});
|
|
3832
3989
|
}
|
|
3833
3990
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3834
3991
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3835
3992
|
switch (fpJson.imperial) {
|
|
3836
3993
|
case "0402":
|
|
3837
|
-
return /* @__PURE__ */
|
|
3994
|
+
return /* @__PURE__ */ jsx55(A0402, { color });
|
|
3838
3995
|
case "0603":
|
|
3839
|
-
return /* @__PURE__ */
|
|
3996
|
+
return /* @__PURE__ */ jsx55(A0603, { color });
|
|
3840
3997
|
case "0805":
|
|
3841
|
-
return /* @__PURE__ */
|
|
3998
|
+
return /* @__PURE__ */ jsx55(A0805, { color });
|
|
3842
3999
|
case "0201":
|
|
3843
|
-
return /* @__PURE__ */
|
|
4000
|
+
return /* @__PURE__ */ jsx55(A0201, { color });
|
|
3844
4001
|
case "01005":
|
|
3845
|
-
return /* @__PURE__ */
|
|
4002
|
+
return /* @__PURE__ */ jsx55(A01005, { color });
|
|
3846
4003
|
case "1206":
|
|
3847
|
-
return /* @__PURE__ */
|
|
4004
|
+
return /* @__PURE__ */ jsx55(A1206, { color });
|
|
3848
4005
|
case "1210":
|
|
3849
|
-
return /* @__PURE__ */
|
|
4006
|
+
return /* @__PURE__ */ jsx55(A1210, { color });
|
|
3850
4007
|
case "2010":
|
|
3851
|
-
return /* @__PURE__ */
|
|
4008
|
+
return /* @__PURE__ */ jsx55(A2010, { color });
|
|
3852
4009
|
case "2512":
|
|
3853
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx55(A2512, { color });
|
|
3854
4011
|
}
|
|
3855
4012
|
return null;
|
|
3856
4013
|
};
|
|
3857
4014
|
|
|
3858
4015
|
// lib/SOT-23-3P.tsx
|
|
3859
|
-
import { Fragment as
|
|
4016
|
+
import { Fragment as Fragment50, jsx as jsx56, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3860
4017
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3861
4018
|
const bodyWidth = 1.3;
|
|
3862
4019
|
const bodyLength10 = 2.9;
|
|
@@ -3867,8 +4024,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3867
4024
|
const padContactLength = 0.4;
|
|
3868
4025
|
const padThickness = leadThickness / 2;
|
|
3869
4026
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3870
|
-
return /* @__PURE__ */
|
|
3871
|
-
/* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ jsxs53(Fragment50, { children: [
|
|
4028
|
+
/* @__PURE__ */ jsx56(
|
|
3872
4029
|
SmdChipLead,
|
|
3873
4030
|
{
|
|
3874
4031
|
rotation: Math.PI,
|
|
@@ -3885,7 +4042,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3885
4042
|
},
|
|
3886
4043
|
1
|
|
3887
4044
|
),
|
|
3888
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ jsx56(
|
|
3889
4046
|
SmdChipLead,
|
|
3890
4047
|
{
|
|
3891
4048
|
rotation: Math.PI,
|
|
@@ -3902,7 +4059,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3902
4059
|
},
|
|
3903
4060
|
2
|
|
3904
4061
|
),
|
|
3905
|
-
/* @__PURE__ */
|
|
4062
|
+
/* @__PURE__ */ jsx56(
|
|
3906
4063
|
SmdChipLead,
|
|
3907
4064
|
{
|
|
3908
4065
|
position: {
|
|
@@ -3918,7 +4075,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3918
4075
|
},
|
|
3919
4076
|
3
|
|
3920
4077
|
),
|
|
3921
|
-
/* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ jsx56(
|
|
3922
4079
|
ChipBody,
|
|
3923
4080
|
{
|
|
3924
4081
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3931,8 +4088,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3931
4088
|
};
|
|
3932
4089
|
|
|
3933
4090
|
// lib/SOT-563.tsx
|
|
3934
|
-
import { Cuboid as
|
|
3935
|
-
import { Fragment as
|
|
4091
|
+
import { Cuboid as Cuboid35, Translate as Translate23, Rotate as Rotate10, Colorize as Colorize28 } from "jscad-fiber";
|
|
4092
|
+
import { Fragment as Fragment51, jsx as jsx57, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3936
4093
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3937
4094
|
const bodyWidth = 1.2;
|
|
3938
4095
|
const bodyLength10 = 1.6;
|
|
@@ -3942,28 +4099,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3942
4099
|
const leadHeight = 0.13;
|
|
3943
4100
|
const leadSpacing = 0.5;
|
|
3944
4101
|
const bodyZOffset = -0.4;
|
|
3945
|
-
return /* @__PURE__ */
|
|
3946
|
-
/* @__PURE__ */
|
|
4102
|
+
return /* @__PURE__ */ jsxs54(Fragment51, { children: [
|
|
4103
|
+
/* @__PURE__ */ jsx57(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx57(Translate23, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx57(Colorize28, { color: "grey", children: /* @__PURE__ */ jsx57(Cuboid35, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3947
4104
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3948
4105
|
// Left lead
|
|
3949
|
-
/* @__PURE__ */
|
|
3950
|
-
|
|
4106
|
+
/* @__PURE__ */ jsx57(
|
|
4107
|
+
Translate23,
|
|
3951
4108
|
{
|
|
3952
4109
|
center: [
|
|
3953
4110
|
-bodyWidth / 2 - 0.03,
|
|
3954
4111
|
yOffset * leadSpacing,
|
|
3955
4112
|
leadHeight / 2
|
|
3956
4113
|
],
|
|
3957
|
-
children: /* @__PURE__ */
|
|
4114
|
+
children: /* @__PURE__ */ jsx57(Cuboid35, { size: [leadLength, leadWidth, leadHeight] })
|
|
3958
4115
|
},
|
|
3959
4116
|
`left-${index}`
|
|
3960
4117
|
),
|
|
3961
4118
|
// Right lead
|
|
3962
|
-
/* @__PURE__ */
|
|
3963
|
-
|
|
4119
|
+
/* @__PURE__ */ jsx57(
|
|
4120
|
+
Translate23,
|
|
3964
4121
|
{
|
|
3965
4122
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3966
|
-
children: /* @__PURE__ */
|
|
4123
|
+
children: /* @__PURE__ */ jsx57(Cuboid35, { size: [leadLength, leadWidth, leadHeight] })
|
|
3967
4124
|
},
|
|
3968
4125
|
`right-${index}`
|
|
3969
4126
|
)
|
|
@@ -3972,7 +4129,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3972
4129
|
};
|
|
3973
4130
|
|
|
3974
4131
|
// lib/sod-123.tsx
|
|
3975
|
-
import { Fragment as
|
|
4132
|
+
import { Fragment as Fragment52, jsx as jsx58, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
3976
4133
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3977
4134
|
const bodyWidth = 2.9;
|
|
3978
4135
|
const bodyLength10 = 1.3;
|
|
@@ -3983,8 +4140,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3983
4140
|
const padContactLength = 0.4;
|
|
3984
4141
|
const padThickness = leadThickness / 2;
|
|
3985
4142
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3986
|
-
return /* @__PURE__ */
|
|
3987
|
-
/* @__PURE__ */
|
|
4143
|
+
return /* @__PURE__ */ jsxs55(Fragment52, { children: [
|
|
4144
|
+
/* @__PURE__ */ jsx58(
|
|
3988
4145
|
SmdChipLead,
|
|
3989
4146
|
{
|
|
3990
4147
|
position: {
|
|
@@ -4000,7 +4157,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4000
4157
|
},
|
|
4001
4158
|
1
|
|
4002
4159
|
),
|
|
4003
|
-
/* @__PURE__ */
|
|
4160
|
+
/* @__PURE__ */ jsx58(
|
|
4004
4161
|
SmdChipLead,
|
|
4005
4162
|
{
|
|
4006
4163
|
rotation: Math.PI,
|
|
@@ -4017,7 +4174,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4017
4174
|
},
|
|
4018
4175
|
2
|
|
4019
4176
|
),
|
|
4020
|
-
/* @__PURE__ */
|
|
4177
|
+
/* @__PURE__ */ jsx58(
|
|
4021
4178
|
ChipBody,
|
|
4022
4179
|
{
|
|
4023
4180
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4050,6 +4207,7 @@ export {
|
|
|
4050
4207
|
MELF,
|
|
4051
4208
|
MINIMELF,
|
|
4052
4209
|
MS012,
|
|
4210
|
+
MS013,
|
|
4053
4211
|
MSOP,
|
|
4054
4212
|
MicroMELF,
|
|
4055
4213
|
PinRow,
|
|
@@ -4062,6 +4220,7 @@ export {
|
|
|
4062
4220
|
SOD123,
|
|
4063
4221
|
SOD123F,
|
|
4064
4222
|
SOD123FL,
|
|
4223
|
+
SOD123W,
|
|
4065
4224
|
SOD128,
|
|
4066
4225
|
SOD523,
|
|
4067
4226
|
SOD882,
|