jscad-electronics 0.0.96 → 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 +3 -1
- package/dist/index.js +318 -239
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +76 -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 },
|
|
@@ -3241,15 +3317,15 @@ var MS012 = ({
|
|
|
3241
3317
|
|
|
3242
3318
|
// lib/TO220.tsx
|
|
3243
3319
|
import {
|
|
3244
|
-
Colorize as
|
|
3245
|
-
Cuboid as
|
|
3246
|
-
Hull as
|
|
3320
|
+
Colorize as Colorize26,
|
|
3321
|
+
Cuboid as Cuboid33,
|
|
3322
|
+
Hull as Hull17,
|
|
3247
3323
|
Rotate as Rotate9,
|
|
3248
|
-
Translate as
|
|
3324
|
+
Translate as Translate21,
|
|
3249
3325
|
Cylinder as Cylinder8,
|
|
3250
3326
|
Subtract as Subtract4
|
|
3251
3327
|
} from "jscad-fiber";
|
|
3252
|
-
import { Fragment as
|
|
3328
|
+
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3253
3329
|
var TO220 = () => {
|
|
3254
3330
|
const fullLength10 = 20;
|
|
3255
3331
|
const bodyLength10 = 9.9;
|
|
@@ -3268,18 +3344,18 @@ var TO220 = () => {
|
|
|
3268
3344
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3269
3345
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3270
3346
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3271
|
-
return /* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
3273
|
-
/* @__PURE__ */
|
|
3274
|
-
/* @__PURE__ */
|
|
3275
|
-
|
|
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,
|
|
3276
3352
|
{
|
|
3277
3353
|
color: "#ccc",
|
|
3278
3354
|
size: [padLength + 0.1, padWidth, padThickness],
|
|
3279
3355
|
center: [padCenterX, 0, padThickness - 2]
|
|
3280
3356
|
}
|
|
3281
3357
|
),
|
|
3282
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx50(
|
|
3283
3359
|
Cylinder8,
|
|
3284
3360
|
{
|
|
3285
3361
|
color: "black",
|
|
@@ -3289,7 +3365,7 @@ var TO220 = () => {
|
|
|
3289
3365
|
}
|
|
3290
3366
|
)
|
|
3291
3367
|
] }),
|
|
3292
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ jsx50(Colorize26, { color: "#222", children: /* @__PURE__ */ jsx50(
|
|
3293
3369
|
ChipBody,
|
|
3294
3370
|
{
|
|
3295
3371
|
width: bodyWidth,
|
|
@@ -3303,29 +3379,29 @@ var TO220 = () => {
|
|
|
3303
3379
|
}
|
|
3304
3380
|
) })
|
|
3305
3381
|
] }),
|
|
3306
|
-
/* @__PURE__ */
|
|
3382
|
+
/* @__PURE__ */ jsx50(Rotate9, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3307
3383
|
const x = prongCenterX;
|
|
3308
3384
|
const y = (i - 1) * prongPitch;
|
|
3309
3385
|
const z = -prongHeight - 0.6;
|
|
3310
|
-
return /* @__PURE__ */
|
|
3311
|
-
/* @__PURE__ */
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3314
|
-
|
|
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,
|
|
3315
3391
|
{
|
|
3316
3392
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3317
|
-
children: /* @__PURE__ */
|
|
3393
|
+
children: /* @__PURE__ */ jsx50(Cuboid33, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3318
3394
|
}
|
|
3319
3395
|
)
|
|
3320
3396
|
] }),
|
|
3321
|
-
/* @__PURE__ */
|
|
3397
|
+
/* @__PURE__ */ jsx50(Translate21, { center: [x, y, z], children: /* @__PURE__ */ jsx50(Cuboid33, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3322
3398
|
] }, `prong-${i}`);
|
|
3323
3399
|
}) })
|
|
3324
3400
|
] }) });
|
|
3325
3401
|
};
|
|
3326
3402
|
|
|
3327
3403
|
// lib/SOT-457.tsx
|
|
3328
|
-
import { Fragment as
|
|
3404
|
+
import { Fragment as Fragment47, jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3329
3405
|
var SOT457 = () => {
|
|
3330
3406
|
const fullWidth = 2.8;
|
|
3331
3407
|
const bodyWidth = 1.6;
|
|
@@ -3337,8 +3413,8 @@ var SOT457 = () => {
|
|
|
3337
3413
|
const padContactLength = 0.5;
|
|
3338
3414
|
const padPitch = 0.95;
|
|
3339
3415
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3340
|
-
return /* @__PURE__ */
|
|
3341
|
-
/* @__PURE__ */
|
|
3416
|
+
return /* @__PURE__ */ jsxs49(Fragment47, { children: [
|
|
3417
|
+
/* @__PURE__ */ jsx51(
|
|
3342
3418
|
SmdChipLead,
|
|
3343
3419
|
{
|
|
3344
3420
|
rotation: Math.PI,
|
|
@@ -3355,7 +3431,7 @@ var SOT457 = () => {
|
|
|
3355
3431
|
},
|
|
3356
3432
|
1
|
|
3357
3433
|
),
|
|
3358
|
-
/* @__PURE__ */
|
|
3434
|
+
/* @__PURE__ */ jsx51(
|
|
3359
3435
|
SmdChipLead,
|
|
3360
3436
|
{
|
|
3361
3437
|
rotation: Math.PI,
|
|
@@ -3372,7 +3448,7 @@ var SOT457 = () => {
|
|
|
3372
3448
|
},
|
|
3373
3449
|
2
|
|
3374
3450
|
),
|
|
3375
|
-
/* @__PURE__ */
|
|
3451
|
+
/* @__PURE__ */ jsx51(
|
|
3376
3452
|
SmdChipLead,
|
|
3377
3453
|
{
|
|
3378
3454
|
rotation: Math.PI,
|
|
@@ -3389,7 +3465,7 @@ var SOT457 = () => {
|
|
|
3389
3465
|
},
|
|
3390
3466
|
3
|
|
3391
3467
|
),
|
|
3392
|
-
/* @__PURE__ */
|
|
3468
|
+
/* @__PURE__ */ jsx51(
|
|
3393
3469
|
SmdChipLead,
|
|
3394
3470
|
{
|
|
3395
3471
|
position: {
|
|
@@ -3405,7 +3481,7 @@ var SOT457 = () => {
|
|
|
3405
3481
|
},
|
|
3406
3482
|
3
|
|
3407
3483
|
),
|
|
3408
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ jsx51(
|
|
3409
3485
|
SmdChipLead,
|
|
3410
3486
|
{
|
|
3411
3487
|
position: {
|
|
@@ -3421,7 +3497,7 @@ var SOT457 = () => {
|
|
|
3421
3497
|
},
|
|
3422
3498
|
1
|
|
3423
3499
|
),
|
|
3424
|
-
/* @__PURE__ */
|
|
3500
|
+
/* @__PURE__ */ jsx51(
|
|
3425
3501
|
SmdChipLead,
|
|
3426
3502
|
{
|
|
3427
3503
|
position: {
|
|
@@ -3437,7 +3513,7 @@ var SOT457 = () => {
|
|
|
3437
3513
|
},
|
|
3438
3514
|
2
|
|
3439
3515
|
),
|
|
3440
|
-
/* @__PURE__ */
|
|
3516
|
+
/* @__PURE__ */ jsx51(
|
|
3441
3517
|
ChipBody,
|
|
3442
3518
|
{
|
|
3443
3519
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3458,14 +3534,14 @@ var SOT457 = () => {
|
|
|
3458
3534
|
|
|
3459
3535
|
// lib/TO92.tsx
|
|
3460
3536
|
import {
|
|
3461
|
-
Colorize as
|
|
3462
|
-
Cuboid as
|
|
3463
|
-
Hull as
|
|
3464
|
-
Translate as
|
|
3537
|
+
Colorize as Colorize27,
|
|
3538
|
+
Cuboid as Cuboid34,
|
|
3539
|
+
Hull as Hull18,
|
|
3540
|
+
Translate as Translate22,
|
|
3465
3541
|
Cylinder as Cylinder9,
|
|
3466
3542
|
Subtract as Subtract5
|
|
3467
3543
|
} from "jscad-fiber";
|
|
3468
|
-
import { jsx as
|
|
3544
|
+
import { jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3469
3545
|
var TO92 = () => {
|
|
3470
3546
|
const bodyRadius = 2.4;
|
|
3471
3547
|
const bodyHeight = 4.5;
|
|
@@ -3486,24 +3562,24 @@ var TO92 = () => {
|
|
|
3486
3562
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3487
3563
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3488
3564
|
const sideLeadZ = -7.5;
|
|
3489
|
-
return /* @__PURE__ */
|
|
3490
|
-
/* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */
|
|
3492
|
-
/* @__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] }) })
|
|
3493
3569
|
] }) }),
|
|
3494
|
-
/* @__PURE__ */
|
|
3495
|
-
/* @__PURE__ */
|
|
3496
|
-
/* @__PURE__ */
|
|
3497
|
-
/* @__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 }) })
|
|
3498
3574
|
] }),
|
|
3499
|
-
/* @__PURE__ */
|
|
3500
|
-
/* @__PURE__ */
|
|
3501
|
-
/* @__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] }) })
|
|
3502
3578
|
] });
|
|
3503
3579
|
};
|
|
3504
3580
|
|
|
3505
3581
|
// lib/SOT-363.tsx
|
|
3506
|
-
import { Fragment as
|
|
3582
|
+
import { Fragment as Fragment48, jsx as jsx53, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3507
3583
|
var SOT363 = () => {
|
|
3508
3584
|
const fullWidth = 2;
|
|
3509
3585
|
const bodyWidth = 1.25;
|
|
@@ -3514,8 +3590,8 @@ var SOT363 = () => {
|
|
|
3514
3590
|
const leadHeight = 0.85;
|
|
3515
3591
|
const padContactLength = 0.3;
|
|
3516
3592
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3517
|
-
return /* @__PURE__ */
|
|
3518
|
-
/* @__PURE__ */
|
|
3593
|
+
return /* @__PURE__ */ jsxs51(Fragment48, { children: [
|
|
3594
|
+
/* @__PURE__ */ jsx53(
|
|
3519
3595
|
SmdChipLead,
|
|
3520
3596
|
{
|
|
3521
3597
|
rotation: Math.PI,
|
|
@@ -3532,7 +3608,7 @@ var SOT363 = () => {
|
|
|
3532
3608
|
},
|
|
3533
3609
|
1
|
|
3534
3610
|
),
|
|
3535
|
-
/* @__PURE__ */
|
|
3611
|
+
/* @__PURE__ */ jsx53(
|
|
3536
3612
|
SmdChipLead,
|
|
3537
3613
|
{
|
|
3538
3614
|
rotation: Math.PI,
|
|
@@ -3549,7 +3625,7 @@ var SOT363 = () => {
|
|
|
3549
3625
|
},
|
|
3550
3626
|
2
|
|
3551
3627
|
),
|
|
3552
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ jsx53(
|
|
3553
3629
|
SmdChipLead,
|
|
3554
3630
|
{
|
|
3555
3631
|
rotation: Math.PI,
|
|
@@ -3566,7 +3642,7 @@ var SOT363 = () => {
|
|
|
3566
3642
|
},
|
|
3567
3643
|
3
|
|
3568
3644
|
),
|
|
3569
|
-
/* @__PURE__ */
|
|
3645
|
+
/* @__PURE__ */ jsx53(
|
|
3570
3646
|
SmdChipLead,
|
|
3571
3647
|
{
|
|
3572
3648
|
position: {
|
|
@@ -3582,7 +3658,7 @@ var SOT363 = () => {
|
|
|
3582
3658
|
},
|
|
3583
3659
|
3
|
|
3584
3660
|
),
|
|
3585
|
-
/* @__PURE__ */
|
|
3661
|
+
/* @__PURE__ */ jsx53(
|
|
3586
3662
|
SmdChipLead,
|
|
3587
3663
|
{
|
|
3588
3664
|
position: {
|
|
@@ -3598,7 +3674,7 @@ var SOT363 = () => {
|
|
|
3598
3674
|
},
|
|
3599
3675
|
1
|
|
3600
3676
|
),
|
|
3601
|
-
/* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ jsx53(
|
|
3602
3678
|
SmdChipLead,
|
|
3603
3679
|
{
|
|
3604
3680
|
position: {
|
|
@@ -3614,7 +3690,7 @@ var SOT363 = () => {
|
|
|
3614
3690
|
},
|
|
3615
3691
|
2
|
|
3616
3692
|
),
|
|
3617
|
-
/* @__PURE__ */
|
|
3693
|
+
/* @__PURE__ */ jsx53(
|
|
3618
3694
|
ChipBody,
|
|
3619
3695
|
{
|
|
3620
3696
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3635,14 +3711,14 @@ var SOT363 = () => {
|
|
|
3635
3711
|
var SOT_363_default = SOT363;
|
|
3636
3712
|
|
|
3637
3713
|
// lib/Footprinter3d.tsx
|
|
3638
|
-
import { jsx as
|
|
3714
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
3639
3715
|
var Footprinter3d = ({ footprint }) => {
|
|
3640
3716
|
const fpJson = fp3.string(footprint).json();
|
|
3641
3717
|
switch (fpJson.fn) {
|
|
3642
3718
|
case "dip":
|
|
3643
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ jsx54(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3644
3720
|
case "tssop":
|
|
3645
|
-
return /* @__PURE__ */
|
|
3721
|
+
return /* @__PURE__ */ jsx54(
|
|
3646
3722
|
Tssop,
|
|
3647
3723
|
{
|
|
3648
3724
|
pinCount: fpJson.num_pins,
|
|
@@ -3653,7 +3729,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3653
3729
|
}
|
|
3654
3730
|
);
|
|
3655
3731
|
case "msop":
|
|
3656
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ jsx54(
|
|
3657
3733
|
MSOP,
|
|
3658
3734
|
{
|
|
3659
3735
|
pinCount: fpJson.num_pins,
|
|
@@ -3664,7 +3740,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3664
3740
|
}
|
|
3665
3741
|
);
|
|
3666
3742
|
case "vssop":
|
|
3667
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ jsx54(
|
|
3668
3744
|
VSSOP,
|
|
3669
3745
|
{
|
|
3670
3746
|
pinCount: fpJson.num_pins,
|
|
@@ -3676,7 +3752,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3676
3752
|
}
|
|
3677
3753
|
);
|
|
3678
3754
|
case "qfp":
|
|
3679
|
-
return /* @__PURE__ */
|
|
3755
|
+
return /* @__PURE__ */ jsx54(
|
|
3680
3756
|
QFP,
|
|
3681
3757
|
{
|
|
3682
3758
|
pinCount: fpJson.num_pins,
|
|
@@ -3687,12 +3763,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3687
3763
|
}
|
|
3688
3764
|
);
|
|
3689
3765
|
case "tqfp":
|
|
3690
|
-
return /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx54(tqfp_default, {});
|
|
3691
3767
|
case "lqfp":
|
|
3692
|
-
return /* @__PURE__ */
|
|
3768
|
+
return /* @__PURE__ */ jsx54(LQFP, { pinCount: fpJson.num_pins });
|
|
3693
3769
|
case "qfn": {
|
|
3694
3770
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3695
|
-
return /* @__PURE__ */
|
|
3771
|
+
return /* @__PURE__ */ jsx54(
|
|
3696
3772
|
qfn_default,
|
|
3697
3773
|
{
|
|
3698
3774
|
num_pins: fpJson.num_pins,
|
|
@@ -3710,7 +3786,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3710
3786
|
}
|
|
3711
3787
|
case "dfn": {
|
|
3712
3788
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3713
|
-
return /* @__PURE__ */
|
|
3789
|
+
return /* @__PURE__ */ jsx54(
|
|
3714
3790
|
DFN,
|
|
3715
3791
|
{
|
|
3716
3792
|
num_pins: fpJson.num_pins,
|
|
@@ -3728,45 +3804,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3728
3804
|
}
|
|
3729
3805
|
case "pinrow":
|
|
3730
3806
|
if (fpJson.male)
|
|
3731
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ jsx54(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3732
3808
|
if (fpJson.female)
|
|
3733
|
-
return /* @__PURE__ */
|
|
3809
|
+
return /* @__PURE__ */ jsx54(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3734
3810
|
case "cap": {
|
|
3735
3811
|
switch (fpJson.imperial) {
|
|
3736
3812
|
case "0402":
|
|
3737
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx54(A0402, { color: "#856c4d" });
|
|
3738
3814
|
case "0603":
|
|
3739
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsx54(A0603, { color: "#856c4d" });
|
|
3740
3816
|
case "0805":
|
|
3741
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx54(A0805, { color: "#856c4d" });
|
|
3742
3818
|
case "0201":
|
|
3743
|
-
return /* @__PURE__ */
|
|
3819
|
+
return /* @__PURE__ */ jsx54(A0201, { color: "#856c4d" });
|
|
3744
3820
|
case "01005":
|
|
3745
|
-
return /* @__PURE__ */
|
|
3821
|
+
return /* @__PURE__ */ jsx54(A01005, { color: "#856c4d" });
|
|
3746
3822
|
case "1206":
|
|
3747
|
-
return /* @__PURE__ */
|
|
3823
|
+
return /* @__PURE__ */ jsx54(A1206, { color: "#856c4d" });
|
|
3748
3824
|
case "1210":
|
|
3749
|
-
return /* @__PURE__ */
|
|
3825
|
+
return /* @__PURE__ */ jsx54(A1210, { color: "#856c4d" });
|
|
3750
3826
|
case "2010":
|
|
3751
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ jsx54(A2010, { color: "#856c4d" });
|
|
3752
3828
|
case "2512":
|
|
3753
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ jsx54(A2512, { color: "#856c4d" });
|
|
3754
3830
|
}
|
|
3755
3831
|
}
|
|
3756
3832
|
case "sot235":
|
|
3757
|
-
return /* @__PURE__ */
|
|
3833
|
+
return /* @__PURE__ */ jsx54(SOT_235_default, {});
|
|
3758
3834
|
case "sot457":
|
|
3759
|
-
return /* @__PURE__ */
|
|
3835
|
+
return /* @__PURE__ */ jsx54(SOT457, {});
|
|
3760
3836
|
case "sot223":
|
|
3761
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ jsx54(SOT223, {});
|
|
3762
3838
|
case "sot23w":
|
|
3763
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx54(SOT23W, {});
|
|
3764
3840
|
case "sot323":
|
|
3765
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsx54(SOT323, {});
|
|
3766
3842
|
case "sot363":
|
|
3767
|
-
return /* @__PURE__ */
|
|
3843
|
+
return /* @__PURE__ */ jsx54(SOT_363_default, {});
|
|
3768
3844
|
case "pushbutton":
|
|
3769
|
-
return /* @__PURE__ */
|
|
3845
|
+
return /* @__PURE__ */ jsx54(
|
|
3770
3846
|
PushButton,
|
|
3771
3847
|
{
|
|
3772
3848
|
width: fpJson.w,
|
|
@@ -3775,7 +3851,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3775
3851
|
}
|
|
3776
3852
|
);
|
|
3777
3853
|
case "soic":
|
|
3778
|
-
return /* @__PURE__ */
|
|
3854
|
+
return /* @__PURE__ */ jsx54(
|
|
3779
3855
|
SOIC,
|
|
3780
3856
|
{
|
|
3781
3857
|
pinCount: fpJson.num_pins,
|
|
@@ -3786,35 +3862,37 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3786
3862
|
}
|
|
3787
3863
|
);
|
|
3788
3864
|
case "sod523":
|
|
3789
|
-
return /* @__PURE__ */
|
|
3865
|
+
return /* @__PURE__ */ jsx54(SOD523, {});
|
|
3790
3866
|
case "sod882":
|
|
3791
|
-
return /* @__PURE__ */
|
|
3867
|
+
return /* @__PURE__ */ jsx54(SOD882, {});
|
|
3792
3868
|
case "sma":
|
|
3793
|
-
return /* @__PURE__ */
|
|
3869
|
+
return /* @__PURE__ */ jsx54(SMA, {});
|
|
3794
3870
|
case "smb":
|
|
3795
|
-
return /* @__PURE__ */
|
|
3871
|
+
return /* @__PURE__ */ jsx54(SMB, {});
|
|
3796
3872
|
case "smc":
|
|
3797
|
-
return /* @__PURE__ */
|
|
3873
|
+
return /* @__PURE__ */ jsx54(SMC, {});
|
|
3798
3874
|
case "smf":
|
|
3799
|
-
return /* @__PURE__ */
|
|
3875
|
+
return /* @__PURE__ */ jsx54(SMF, {});
|
|
3800
3876
|
case "sod123f":
|
|
3801
|
-
return /* @__PURE__ */
|
|
3877
|
+
return /* @__PURE__ */ jsx54(SOD123F, {});
|
|
3802
3878
|
case "sod123fl":
|
|
3803
|
-
return /* @__PURE__ */
|
|
3879
|
+
return /* @__PURE__ */ jsx54(SOD123FL, {});
|
|
3880
|
+
case "sod123w":
|
|
3881
|
+
return /* @__PURE__ */ jsx54(SOD123W, {});
|
|
3804
3882
|
case "sod128":
|
|
3805
|
-
return /* @__PURE__ */
|
|
3883
|
+
return /* @__PURE__ */ jsx54(SOD128, {});
|
|
3806
3884
|
case "sod923":
|
|
3807
|
-
return /* @__PURE__ */
|
|
3885
|
+
return /* @__PURE__ */ jsx54(SOD923, {});
|
|
3808
3886
|
case "hc49":
|
|
3809
|
-
return /* @__PURE__ */
|
|
3887
|
+
return /* @__PURE__ */ jsx54(HC49, {});
|
|
3810
3888
|
case "micromelf":
|
|
3811
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ jsx54(MicroMELF, {});
|
|
3812
3890
|
case "minimelf":
|
|
3813
|
-
return /* @__PURE__ */
|
|
3891
|
+
return /* @__PURE__ */ jsx54(MINIMELF, {});
|
|
3814
3892
|
case "melf":
|
|
3815
|
-
return /* @__PURE__ */
|
|
3893
|
+
return /* @__PURE__ */ jsx54(MELF, {});
|
|
3816
3894
|
case "ms012":
|
|
3817
|
-
return /* @__PURE__ */
|
|
3895
|
+
return /* @__PURE__ */ jsx54(
|
|
3818
3896
|
MS012,
|
|
3819
3897
|
{
|
|
3820
3898
|
pinCount: fpJson.num_pins,
|
|
@@ -3824,39 +3902,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3824
3902
|
}
|
|
3825
3903
|
);
|
|
3826
3904
|
case "sot723":
|
|
3827
|
-
return /* @__PURE__ */
|
|
3905
|
+
return /* @__PURE__ */ jsx54(SOT723, {});
|
|
3828
3906
|
case "to220":
|
|
3829
|
-
return /* @__PURE__ */
|
|
3907
|
+
return /* @__PURE__ */ jsx54(TO220, {});
|
|
3830
3908
|
case "to92":
|
|
3831
|
-
return /* @__PURE__ */
|
|
3909
|
+
return /* @__PURE__ */ jsx54(TO92, {});
|
|
3832
3910
|
}
|
|
3833
3911
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3834
3912
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3835
3913
|
switch (fpJson.imperial) {
|
|
3836
3914
|
case "0402":
|
|
3837
|
-
return /* @__PURE__ */
|
|
3915
|
+
return /* @__PURE__ */ jsx54(A0402, { color });
|
|
3838
3916
|
case "0603":
|
|
3839
|
-
return /* @__PURE__ */
|
|
3917
|
+
return /* @__PURE__ */ jsx54(A0603, { color });
|
|
3840
3918
|
case "0805":
|
|
3841
|
-
return /* @__PURE__ */
|
|
3919
|
+
return /* @__PURE__ */ jsx54(A0805, { color });
|
|
3842
3920
|
case "0201":
|
|
3843
|
-
return /* @__PURE__ */
|
|
3921
|
+
return /* @__PURE__ */ jsx54(A0201, { color });
|
|
3844
3922
|
case "01005":
|
|
3845
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ jsx54(A01005, { color });
|
|
3846
3924
|
case "1206":
|
|
3847
|
-
return /* @__PURE__ */
|
|
3925
|
+
return /* @__PURE__ */ jsx54(A1206, { color });
|
|
3848
3926
|
case "1210":
|
|
3849
|
-
return /* @__PURE__ */
|
|
3927
|
+
return /* @__PURE__ */ jsx54(A1210, { color });
|
|
3850
3928
|
case "2010":
|
|
3851
|
-
return /* @__PURE__ */
|
|
3929
|
+
return /* @__PURE__ */ jsx54(A2010, { color });
|
|
3852
3930
|
case "2512":
|
|
3853
|
-
return /* @__PURE__ */
|
|
3931
|
+
return /* @__PURE__ */ jsx54(A2512, { color });
|
|
3854
3932
|
}
|
|
3855
3933
|
return null;
|
|
3856
3934
|
};
|
|
3857
3935
|
|
|
3858
3936
|
// lib/SOT-23-3P.tsx
|
|
3859
|
-
import { Fragment as
|
|
3937
|
+
import { Fragment as Fragment49, jsx as jsx55, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3860
3938
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3861
3939
|
const bodyWidth = 1.3;
|
|
3862
3940
|
const bodyLength10 = 2.9;
|
|
@@ -3867,8 +3945,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3867
3945
|
const padContactLength = 0.4;
|
|
3868
3946
|
const padThickness = leadThickness / 2;
|
|
3869
3947
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3870
|
-
return /* @__PURE__ */
|
|
3871
|
-
/* @__PURE__ */
|
|
3948
|
+
return /* @__PURE__ */ jsxs52(Fragment49, { children: [
|
|
3949
|
+
/* @__PURE__ */ jsx55(
|
|
3872
3950
|
SmdChipLead,
|
|
3873
3951
|
{
|
|
3874
3952
|
rotation: Math.PI,
|
|
@@ -3885,7 +3963,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3885
3963
|
},
|
|
3886
3964
|
1
|
|
3887
3965
|
),
|
|
3888
|
-
/* @__PURE__ */
|
|
3966
|
+
/* @__PURE__ */ jsx55(
|
|
3889
3967
|
SmdChipLead,
|
|
3890
3968
|
{
|
|
3891
3969
|
rotation: Math.PI,
|
|
@@ -3902,7 +3980,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3902
3980
|
},
|
|
3903
3981
|
2
|
|
3904
3982
|
),
|
|
3905
|
-
/* @__PURE__ */
|
|
3983
|
+
/* @__PURE__ */ jsx55(
|
|
3906
3984
|
SmdChipLead,
|
|
3907
3985
|
{
|
|
3908
3986
|
position: {
|
|
@@ -3918,7 +3996,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3918
3996
|
},
|
|
3919
3997
|
3
|
|
3920
3998
|
),
|
|
3921
|
-
/* @__PURE__ */
|
|
3999
|
+
/* @__PURE__ */ jsx55(
|
|
3922
4000
|
ChipBody,
|
|
3923
4001
|
{
|
|
3924
4002
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3931,8 +4009,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3931
4009
|
};
|
|
3932
4010
|
|
|
3933
4011
|
// lib/SOT-563.tsx
|
|
3934
|
-
import { Cuboid as
|
|
3935
|
-
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";
|
|
3936
4014
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3937
4015
|
const bodyWidth = 1.2;
|
|
3938
4016
|
const bodyLength10 = 1.6;
|
|
@@ -3942,28 +4020,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3942
4020
|
const leadHeight = 0.13;
|
|
3943
4021
|
const leadSpacing = 0.5;
|
|
3944
4022
|
const bodyZOffset = -0.4;
|
|
3945
|
-
return /* @__PURE__ */
|
|
3946
|
-
/* @__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] }) }) }) }),
|
|
3947
4025
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3948
4026
|
// Left lead
|
|
3949
|
-
/* @__PURE__ */
|
|
3950
|
-
|
|
4027
|
+
/* @__PURE__ */ jsx56(
|
|
4028
|
+
Translate23,
|
|
3951
4029
|
{
|
|
3952
4030
|
center: [
|
|
3953
4031
|
-bodyWidth / 2 - 0.03,
|
|
3954
4032
|
yOffset * leadSpacing,
|
|
3955
4033
|
leadHeight / 2
|
|
3956
4034
|
],
|
|
3957
|
-
children: /* @__PURE__ */
|
|
4035
|
+
children: /* @__PURE__ */ jsx56(Cuboid35, { size: [leadLength, leadWidth, leadHeight] })
|
|
3958
4036
|
},
|
|
3959
4037
|
`left-${index}`
|
|
3960
4038
|
),
|
|
3961
4039
|
// Right lead
|
|
3962
|
-
/* @__PURE__ */
|
|
3963
|
-
|
|
4040
|
+
/* @__PURE__ */ jsx56(
|
|
4041
|
+
Translate23,
|
|
3964
4042
|
{
|
|
3965
4043
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3966
|
-
children: /* @__PURE__ */
|
|
4044
|
+
children: /* @__PURE__ */ jsx56(Cuboid35, { size: [leadLength, leadWidth, leadHeight] })
|
|
3967
4045
|
},
|
|
3968
4046
|
`right-${index}`
|
|
3969
4047
|
)
|
|
@@ -3972,7 +4050,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3972
4050
|
};
|
|
3973
4051
|
|
|
3974
4052
|
// lib/sod-123.tsx
|
|
3975
|
-
import { Fragment as
|
|
4053
|
+
import { Fragment as Fragment51, jsx as jsx57, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3976
4054
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3977
4055
|
const bodyWidth = 2.9;
|
|
3978
4056
|
const bodyLength10 = 1.3;
|
|
@@ -3983,8 +4061,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3983
4061
|
const padContactLength = 0.4;
|
|
3984
4062
|
const padThickness = leadThickness / 2;
|
|
3985
4063
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3986
|
-
return /* @__PURE__ */
|
|
3987
|
-
/* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsxs54(Fragment51, { children: [
|
|
4065
|
+
/* @__PURE__ */ jsx57(
|
|
3988
4066
|
SmdChipLead,
|
|
3989
4067
|
{
|
|
3990
4068
|
position: {
|
|
@@ -4000,7 +4078,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4000
4078
|
},
|
|
4001
4079
|
1
|
|
4002
4080
|
),
|
|
4003
|
-
/* @__PURE__ */
|
|
4081
|
+
/* @__PURE__ */ jsx57(
|
|
4004
4082
|
SmdChipLead,
|
|
4005
4083
|
{
|
|
4006
4084
|
rotation: Math.PI,
|
|
@@ -4017,7 +4095,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4017
4095
|
},
|
|
4018
4096
|
2
|
|
4019
4097
|
),
|
|
4020
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ jsx57(
|
|
4021
4099
|
ChipBody,
|
|
4022
4100
|
{
|
|
4023
4101
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4062,6 +4140,7 @@ export {
|
|
|
4062
4140
|
SOD123,
|
|
4063
4141
|
SOD123F,
|
|
4064
4142
|
SOD123FL,
|
|
4143
|
+
SOD123W,
|
|
4065
4144
|
SOD128,
|
|
4066
4145
|
SOD523,
|
|
4067
4146
|
SOD882,
|