jscad-electronics 0.0.95 → 0.0.96
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 +311 -232
- 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,9 +2300,85 @@ var SOD123FL = () => {
|
|
|
2300
2300
|
] });
|
|
2301
2301
|
};
|
|
2302
2302
|
|
|
2303
|
-
// lib/
|
|
2303
|
+
// lib/sod-128.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 SOD128 = () => {
|
|
2307
|
+
const fullWidth = 3.8;
|
|
2308
|
+
const bodyLength10 = 2.5;
|
|
2309
|
+
const bodyHeight = 1;
|
|
2310
|
+
const padWidth = 1.75;
|
|
2311
|
+
const padLength = 0.9;
|
|
2312
|
+
const padThickness = 0.2;
|
|
2313
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2314
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2315
|
+
const taperOffset = 0.4;
|
|
2316
|
+
const lowerTaperOffset = 0.05;
|
|
2317
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2318
|
+
return /* @__PURE__ */ jsxs34(Fragment32, { children: [
|
|
2319
|
+
/* @__PURE__ */ jsx36(
|
|
2320
|
+
Cuboid26,
|
|
2321
|
+
{
|
|
2322
|
+
color: "#ccc",
|
|
2323
|
+
size: [padLength, padWidth, padThickness],
|
|
2324
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2325
|
+
}
|
|
2326
|
+
),
|
|
2327
|
+
/* @__PURE__ */ jsx36(
|
|
2328
|
+
Cuboid26,
|
|
2329
|
+
{
|
|
2330
|
+
color: "#ccc",
|
|
2331
|
+
size: [padLength, padWidth, padThickness],
|
|
2332
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2333
|
+
}
|
|
2334
|
+
),
|
|
2335
|
+
/* @__PURE__ */ jsx36(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union13, { children: [
|
|
2336
|
+
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2337
|
+
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(
|
|
2338
|
+
Cuboid26,
|
|
2339
|
+
{
|
|
2340
|
+
size: [
|
|
2341
|
+
fullWidth - lowerTaperOffset / 2,
|
|
2342
|
+
bodyLength10 - lowerTaperOffset / 2,
|
|
2343
|
+
0.01
|
|
2344
|
+
]
|
|
2345
|
+
}
|
|
2346
|
+
) }),
|
|
2347
|
+
/* @__PURE__ */ jsx36(Translate17, { z: 0.01, children: /* @__PURE__ */ jsx36(
|
|
2348
|
+
Cuboid26,
|
|
2349
|
+
{
|
|
2350
|
+
size: [
|
|
2351
|
+
fullWidth - lowerTaperOffset,
|
|
2352
|
+
bodyLength10 - lowerTaperOffset,
|
|
2353
|
+
0.01
|
|
2354
|
+
]
|
|
2355
|
+
}
|
|
2356
|
+
) })
|
|
2357
|
+
] }),
|
|
2358
|
+
/* @__PURE__ */ jsxs34(Hull12, { children: [
|
|
2359
|
+
/* @__PURE__ */ jsx36(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx36(Cuboid26, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2360
|
+
/* @__PURE__ */ jsx36(Translate17, { z: bodyHeight, children: /* @__PURE__ */ jsx36(
|
|
2361
|
+
Cuboid26,
|
|
2362
|
+
{
|
|
2363
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2364
|
+
}
|
|
2365
|
+
) })
|
|
2366
|
+
] })
|
|
2367
|
+
] }) }),
|
|
2368
|
+
/* @__PURE__ */ jsx36(
|
|
2369
|
+
Cuboid26,
|
|
2370
|
+
{
|
|
2371
|
+
color: "#777",
|
|
2372
|
+
size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
|
|
2373
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2374
|
+
}
|
|
2375
|
+
)
|
|
2376
|
+
] });
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
// lib/SOD-923.tsx
|
|
2380
|
+
import { Colorize as Colorize19, Cuboid as Cuboid27, Hull as Hull13, Translate as Translate18, Union as Union14 } from "jscad-fiber";
|
|
2381
|
+
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2306
2382
|
var SOD923 = () => {
|
|
2307
2383
|
const fullWidth = 0.8;
|
|
2308
2384
|
const bodyLength10 = 0.6;
|
|
@@ -2314,29 +2390,29 @@ var SOD923 = () => {
|
|
|
2314
2390
|
const rightPadCenterX = fullWidth / 2;
|
|
2315
2391
|
const taperOffset = 0.1;
|
|
2316
2392
|
const straightHeight = padThickness;
|
|
2317
|
-
return /* @__PURE__ */
|
|
2318
|
-
/* @__PURE__ */
|
|
2319
|
-
|
|
2393
|
+
return /* @__PURE__ */ jsxs35(Fragment33, { children: [
|
|
2394
|
+
/* @__PURE__ */ jsx37(
|
|
2395
|
+
Cuboid27,
|
|
2320
2396
|
{
|
|
2321
2397
|
color: "#ccc",
|
|
2322
2398
|
size: [padLength, padWidth, padThickness],
|
|
2323
2399
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2324
2400
|
}
|
|
2325
2401
|
),
|
|
2326
|
-
/* @__PURE__ */
|
|
2327
|
-
|
|
2402
|
+
/* @__PURE__ */ jsx37(
|
|
2403
|
+
Cuboid27,
|
|
2328
2404
|
{
|
|
2329
2405
|
color: "#ccc",
|
|
2330
2406
|
size: [padLength, padWidth, padThickness],
|
|
2331
2407
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2332
2408
|
}
|
|
2333
2409
|
),
|
|
2334
|
-
/* @__PURE__ */
|
|
2335
|
-
/* @__PURE__ */
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
|
|
2410
|
+
/* @__PURE__ */ jsx37(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union14, { children: [
|
|
2411
|
+
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight / 2, children: /* @__PURE__ */ jsx37(Cuboid27, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2412
|
+
/* @__PURE__ */ jsxs35(Hull13, { children: [
|
|
2413
|
+
/* @__PURE__ */ jsx37(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx37(Cuboid27, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2414
|
+
/* @__PURE__ */ jsx37(Translate18, { z: bodyHeight, children: /* @__PURE__ */ jsx37(
|
|
2415
|
+
Cuboid27,
|
|
2340
2416
|
{
|
|
2341
2417
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2342
2418
|
}
|
|
@@ -2347,7 +2423,7 @@ var SOD923 = () => {
|
|
|
2347
2423
|
};
|
|
2348
2424
|
|
|
2349
2425
|
// lib/SOT-223.tsx
|
|
2350
|
-
import { Fragment as
|
|
2426
|
+
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2351
2427
|
var SOT223 = () => {
|
|
2352
2428
|
const fullWidth = 6.6;
|
|
2353
2429
|
const bodyWidth = 3.5;
|
|
@@ -2360,8 +2436,8 @@ var SOT223 = () => {
|
|
|
2360
2436
|
const padContactLength = 0.5;
|
|
2361
2437
|
const padPitch = 2.3;
|
|
2362
2438
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2363
|
-
return /* @__PURE__ */
|
|
2364
|
-
/* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ jsxs36(Fragment34, { children: [
|
|
2440
|
+
/* @__PURE__ */ jsx38(
|
|
2365
2441
|
SmdChipLead,
|
|
2366
2442
|
{
|
|
2367
2443
|
rotation: Math.PI,
|
|
@@ -2378,7 +2454,7 @@ var SOT223 = () => {
|
|
|
2378
2454
|
},
|
|
2379
2455
|
4
|
|
2380
2456
|
),
|
|
2381
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ jsx38(
|
|
2382
2458
|
SmdChipLead,
|
|
2383
2459
|
{
|
|
2384
2460
|
position: {
|
|
@@ -2394,7 +2470,7 @@ var SOT223 = () => {
|
|
|
2394
2470
|
},
|
|
2395
2471
|
3
|
|
2396
2472
|
),
|
|
2397
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ jsx38(
|
|
2398
2474
|
SmdChipLead,
|
|
2399
2475
|
{
|
|
2400
2476
|
position: {
|
|
@@ -2410,7 +2486,7 @@ var SOT223 = () => {
|
|
|
2410
2486
|
},
|
|
2411
2487
|
1
|
|
2412
2488
|
),
|
|
2413
|
-
/* @__PURE__ */
|
|
2489
|
+
/* @__PURE__ */ jsx38(
|
|
2414
2490
|
SmdChipLead,
|
|
2415
2491
|
{
|
|
2416
2492
|
position: {
|
|
@@ -2426,7 +2502,7 @@ var SOT223 = () => {
|
|
|
2426
2502
|
},
|
|
2427
2503
|
2
|
|
2428
2504
|
),
|
|
2429
|
-
/* @__PURE__ */
|
|
2505
|
+
/* @__PURE__ */ jsx38(
|
|
2430
2506
|
ChipBody,
|
|
2431
2507
|
{
|
|
2432
2508
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2442,7 +2518,7 @@ var SOT223 = () => {
|
|
|
2442
2518
|
};
|
|
2443
2519
|
|
|
2444
2520
|
// lib/tqfp.tsx
|
|
2445
|
-
import { Fragment as
|
|
2521
|
+
import { Fragment as Fragment35, jsx as jsx39, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2446
2522
|
var TQFP = () => {
|
|
2447
2523
|
const pinCount = 64;
|
|
2448
2524
|
const pitch = 0.5;
|
|
@@ -2457,8 +2533,8 @@ var TQFP = () => {
|
|
|
2457
2533
|
const leadHeight = 0.65;
|
|
2458
2534
|
const leadThickness = 0.25;
|
|
2459
2535
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2460
|
-
return /* @__PURE__ */
|
|
2461
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2536
|
+
return /* @__PURE__ */ jsxs37(Fragment35, { children: [
|
|
2537
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2462
2538
|
SmdChipLead,
|
|
2463
2539
|
{
|
|
2464
2540
|
position: {
|
|
@@ -2474,7 +2550,7 @@ var TQFP = () => {
|
|
|
2474
2550
|
},
|
|
2475
2551
|
`left-${i}`
|
|
2476
2552
|
)),
|
|
2477
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2553
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2478
2554
|
SmdChipLead,
|
|
2479
2555
|
{
|
|
2480
2556
|
rotation: Math.PI,
|
|
@@ -2491,7 +2567,7 @@ var TQFP = () => {
|
|
|
2491
2567
|
},
|
|
2492
2568
|
`right-${i}`
|
|
2493
2569
|
)),
|
|
2494
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2570
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2495
2571
|
SmdChipLead,
|
|
2496
2572
|
{
|
|
2497
2573
|
rotation: Math.PI / 2,
|
|
@@ -2508,7 +2584,7 @@ var TQFP = () => {
|
|
|
2508
2584
|
},
|
|
2509
2585
|
`bottom-${i}`
|
|
2510
2586
|
)),
|
|
2511
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2587
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
|
|
2512
2588
|
SmdChipLead,
|
|
2513
2589
|
{
|
|
2514
2590
|
rotation: -Math.PI / 2,
|
|
@@ -2525,7 +2601,7 @@ var TQFP = () => {
|
|
|
2525
2601
|
},
|
|
2526
2602
|
`top-${i}`
|
|
2527
2603
|
)),
|
|
2528
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ jsx39(
|
|
2529
2605
|
ChipBody,
|
|
2530
2606
|
{
|
|
2531
2607
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2543,7 +2619,7 @@ var TQFP = () => {
|
|
|
2543
2619
|
var tqfp_default = TQFP;
|
|
2544
2620
|
|
|
2545
2621
|
// lib/SOT-323.tsx
|
|
2546
|
-
import { Fragment as
|
|
2622
|
+
import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2547
2623
|
var SOT323 = () => {
|
|
2548
2624
|
const fullWidth = 2.05;
|
|
2549
2625
|
const bodyWidth = 1.25;
|
|
@@ -2555,8 +2631,8 @@ var SOT323 = () => {
|
|
|
2555
2631
|
const padContactLength = 0.2;
|
|
2556
2632
|
const padPitch = 0.65;
|
|
2557
2633
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2558
|
-
return /* @__PURE__ */
|
|
2559
|
-
/* @__PURE__ */
|
|
2634
|
+
return /* @__PURE__ */ jsxs38(Fragment36, { children: [
|
|
2635
|
+
/* @__PURE__ */ jsx40(
|
|
2560
2636
|
SmdChipLead,
|
|
2561
2637
|
{
|
|
2562
2638
|
rotation: Math.PI,
|
|
@@ -2573,7 +2649,7 @@ var SOT323 = () => {
|
|
|
2573
2649
|
},
|
|
2574
2650
|
4
|
|
2575
2651
|
),
|
|
2576
|
-
/* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ jsx40(
|
|
2577
2653
|
SmdChipLead,
|
|
2578
2654
|
{
|
|
2579
2655
|
position: {
|
|
@@ -2589,7 +2665,7 @@ var SOT323 = () => {
|
|
|
2589
2665
|
},
|
|
2590
2666
|
1
|
|
2591
2667
|
),
|
|
2592
|
-
/* @__PURE__ */
|
|
2668
|
+
/* @__PURE__ */ jsx40(
|
|
2593
2669
|
SmdChipLead,
|
|
2594
2670
|
{
|
|
2595
2671
|
position: {
|
|
@@ -2605,7 +2681,7 @@ var SOT323 = () => {
|
|
|
2605
2681
|
},
|
|
2606
2682
|
2
|
|
2607
2683
|
),
|
|
2608
|
-
/* @__PURE__ */
|
|
2684
|
+
/* @__PURE__ */ jsx40(
|
|
2609
2685
|
ChipBody,
|
|
2610
2686
|
{
|
|
2611
2687
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2622,7 +2698,7 @@ var SOT323 = () => {
|
|
|
2622
2698
|
};
|
|
2623
2699
|
|
|
2624
2700
|
// lib/lqfp.tsx
|
|
2625
|
-
import { Fragment as
|
|
2701
|
+
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2626
2702
|
var LQFP = ({
|
|
2627
2703
|
pinCount,
|
|
2628
2704
|
pitch,
|
|
@@ -2645,8 +2721,8 @@ var LQFP = ({
|
|
|
2645
2721
|
const leadHeight = 0.8;
|
|
2646
2722
|
const leadThickness = 0.2;
|
|
2647
2723
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
|
|
2648
|
-
return /* @__PURE__ */
|
|
2649
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ jsxs39(Fragment37, { children: [
|
|
2725
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2650
2726
|
SmdChipLead,
|
|
2651
2727
|
{
|
|
2652
2728
|
position: {
|
|
@@ -2662,7 +2738,7 @@ var LQFP = ({
|
|
|
2662
2738
|
},
|
|
2663
2739
|
`left-${i}`
|
|
2664
2740
|
)),
|
|
2665
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2741
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2666
2742
|
SmdChipLead,
|
|
2667
2743
|
{
|
|
2668
2744
|
rotation: Math.PI,
|
|
@@ -2679,7 +2755,7 @@ var LQFP = ({
|
|
|
2679
2755
|
},
|
|
2680
2756
|
`right-${i}`
|
|
2681
2757
|
)),
|
|
2682
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2758
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2683
2759
|
SmdChipLead,
|
|
2684
2760
|
{
|
|
2685
2761
|
rotation: Math.PI / 2,
|
|
@@ -2696,7 +2772,7 @@ var LQFP = ({
|
|
|
2696
2772
|
},
|
|
2697
2773
|
`bottom-${i}`
|
|
2698
2774
|
)),
|
|
2699
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2775
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx41(
|
|
2700
2776
|
SmdChipLead,
|
|
2701
2777
|
{
|
|
2702
2778
|
rotation: -Math.PI / 2,
|
|
@@ -2713,7 +2789,7 @@ var LQFP = ({
|
|
|
2713
2789
|
},
|
|
2714
2790
|
`top-${i}`
|
|
2715
2791
|
)),
|
|
2716
|
-
/* @__PURE__ */
|
|
2792
|
+
/* @__PURE__ */ jsx41(
|
|
2717
2793
|
ChipBody,
|
|
2718
2794
|
{
|
|
2719
2795
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2735,8 +2811,8 @@ var LQFP = ({
|
|
|
2735
2811
|
};
|
|
2736
2812
|
|
|
2737
2813
|
// lib/SOT-723.tsx
|
|
2738
|
-
import { Cuboid as
|
|
2739
|
-
import { Fragment as
|
|
2814
|
+
import { Cuboid as Cuboid28, Translate as Translate19, Colorize as Colorize20, Hull as Hull14, Union as Union15 } from "jscad-fiber";
|
|
2815
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2740
2816
|
var SOT723 = () => {
|
|
2741
2817
|
const bodyWidth = 0.85;
|
|
2742
2818
|
const bodyLength10 = 1.2;
|
|
@@ -2753,43 +2829,43 @@ var SOT723 = () => {
|
|
|
2753
2829
|
const leftTopPadCenterY = 0.4;
|
|
2754
2830
|
const leftBottomPadCenterX = -0.55;
|
|
2755
2831
|
const leftBottomPadCenterY = -0.4;
|
|
2756
|
-
return /* @__PURE__ */
|
|
2757
|
-
/* @__PURE__ */
|
|
2758
|
-
/* @__PURE__ */
|
|
2759
|
-
|
|
2832
|
+
return /* @__PURE__ */ jsxs40(Fragment38, { children: [
|
|
2833
|
+
/* @__PURE__ */ jsx42(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs40(Union15, { children: [
|
|
2834
|
+
/* @__PURE__ */ jsx42(
|
|
2835
|
+
Cuboid28,
|
|
2760
2836
|
{
|
|
2761
2837
|
size: [bodyWidth, bodyLength10, straightHeight],
|
|
2762
2838
|
center: [0, 0, straightHeight / 2]
|
|
2763
2839
|
}
|
|
2764
2840
|
),
|
|
2765
|
-
/* @__PURE__ */
|
|
2766
|
-
/* @__PURE__ */
|
|
2767
|
-
/* @__PURE__ */
|
|
2768
|
-
|
|
2841
|
+
/* @__PURE__ */ jsxs40(Hull14, { children: [
|
|
2842
|
+
/* @__PURE__ */ jsx42(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx42(Cuboid28, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2843
|
+
/* @__PURE__ */ jsx42(Translate19, { z: bodyHeight, children: /* @__PURE__ */ jsx42(
|
|
2844
|
+
Cuboid28,
|
|
2769
2845
|
{
|
|
2770
2846
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2771
2847
|
}
|
|
2772
2848
|
) })
|
|
2773
2849
|
] })
|
|
2774
2850
|
] }) }),
|
|
2775
|
-
/* @__PURE__ */
|
|
2776
|
-
|
|
2851
|
+
/* @__PURE__ */ jsx42(
|
|
2852
|
+
Cuboid28,
|
|
2777
2853
|
{
|
|
2778
2854
|
color: "#ccc",
|
|
2779
2855
|
size: [padLength, rightPadWidth, padThickness],
|
|
2780
2856
|
center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
|
|
2781
2857
|
}
|
|
2782
2858
|
),
|
|
2783
|
-
/* @__PURE__ */
|
|
2784
|
-
|
|
2859
|
+
/* @__PURE__ */ jsx42(
|
|
2860
|
+
Cuboid28,
|
|
2785
2861
|
{
|
|
2786
2862
|
color: "#ccc",
|
|
2787
2863
|
size: [padLength, leftPadWidth, padThickness],
|
|
2788
2864
|
center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
|
|
2789
2865
|
}
|
|
2790
2866
|
),
|
|
2791
|
-
/* @__PURE__ */
|
|
2792
|
-
|
|
2867
|
+
/* @__PURE__ */ jsx42(
|
|
2868
|
+
Cuboid28,
|
|
2793
2869
|
{
|
|
2794
2870
|
color: "#ccc",
|
|
2795
2871
|
size: [padLength, leftPadWidth, padThickness],
|
|
@@ -2800,8 +2876,8 @@ var SOT723 = () => {
|
|
|
2800
2876
|
};
|
|
2801
2877
|
|
|
2802
2878
|
// lib/dfn.tsx
|
|
2803
|
-
import { Cuboid as
|
|
2804
|
-
import { Fragment as
|
|
2879
|
+
import { Cuboid as Cuboid29 } from "jscad-fiber";
|
|
2880
|
+
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2805
2881
|
var DFN = ({
|
|
2806
2882
|
num_pins,
|
|
2807
2883
|
bodyWidth = 5.3,
|
|
@@ -2828,8 +2904,8 @@ var DFN = ({
|
|
|
2828
2904
|
const pinNumber = i + 1;
|
|
2829
2905
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
2830
2906
|
}
|
|
2831
|
-
return /* @__PURE__ */
|
|
2832
|
-
/* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ jsxs41(Fragment39, { children: [
|
|
2908
|
+
/* @__PURE__ */ jsx43(
|
|
2833
2909
|
ChipBody,
|
|
2834
2910
|
{
|
|
2835
2911
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2847,16 +2923,16 @@ var DFN = ({
|
|
|
2847
2923
|
}
|
|
2848
2924
|
}
|
|
2849
2925
|
),
|
|
2850
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
2851
|
-
|
|
2926
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx43(
|
|
2927
|
+
Cuboid29,
|
|
2852
2928
|
{
|
|
2853
2929
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
2854
2930
|
size: [p.padSizeX, p.padSizeY, thermalPadThickness]
|
|
2855
2931
|
},
|
|
2856
2932
|
i
|
|
2857
2933
|
)),
|
|
2858
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
2859
|
-
|
|
2934
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx43(
|
|
2935
|
+
Cuboid29,
|
|
2860
2936
|
{
|
|
2861
2937
|
center: [0, 0, thermalPadThickness / 2],
|
|
2862
2938
|
size: [
|
|
@@ -2870,8 +2946,8 @@ var DFN = ({
|
|
|
2870
2946
|
};
|
|
2871
2947
|
|
|
2872
2948
|
// lib/hc49.tsx
|
|
2873
|
-
import { Colorize as
|
|
2874
|
-
import { Fragment as
|
|
2949
|
+
import { Colorize as Colorize21, Cylinder as Cylinder6, Hull as Hull15, RoundedCylinder } from "jscad-fiber";
|
|
2950
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2875
2951
|
var HC49 = ({
|
|
2876
2952
|
bodyLength: bodyLength10 = 10.2,
|
|
2877
2953
|
bodyWidth = 4.65,
|
|
@@ -2887,10 +2963,10 @@ var HC49 = ({
|
|
|
2887
2963
|
const endCenterX = halfLength - endRadius;
|
|
2888
2964
|
const leadCenterX = leadSpacing / 2;
|
|
2889
2965
|
const baseHeight = 0.85;
|
|
2890
|
-
return /* @__PURE__ */
|
|
2891
|
-
/* @__PURE__ */
|
|
2892
|
-
/* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ jsxs42(Fragment40, { children: [
|
|
2967
|
+
/* @__PURE__ */ jsxs42(Colorize21, { color, children: [
|
|
2968
|
+
/* @__PURE__ */ jsxs42(Hull15, { children: [
|
|
2969
|
+
/* @__PURE__ */ jsx44(
|
|
2894
2970
|
RoundedCylinder,
|
|
2895
2971
|
{
|
|
2896
2972
|
height: bodyHeight,
|
|
@@ -2899,7 +2975,7 @@ var HC49 = ({
|
|
|
2899
2975
|
center: [-endCenterX, 0, bodyHeight]
|
|
2900
2976
|
}
|
|
2901
2977
|
),
|
|
2902
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ jsx44(
|
|
2903
2979
|
RoundedCylinder,
|
|
2904
2980
|
{
|
|
2905
2981
|
height: bodyHeight,
|
|
@@ -2909,8 +2985,8 @@ var HC49 = ({
|
|
|
2909
2985
|
}
|
|
2910
2986
|
)
|
|
2911
2987
|
] }),
|
|
2912
|
-
/* @__PURE__ */
|
|
2913
|
-
/* @__PURE__ */
|
|
2988
|
+
/* @__PURE__ */ jsxs42(Hull15, { children: [
|
|
2989
|
+
/* @__PURE__ */ jsx44(
|
|
2914
2990
|
RoundedCylinder,
|
|
2915
2991
|
{
|
|
2916
2992
|
height: baseHeight,
|
|
@@ -2919,7 +2995,7 @@ var HC49 = ({
|
|
|
2919
2995
|
center: [-endCenterX, 0, bodyHeight / 2 + baseHeight / 2]
|
|
2920
2996
|
}
|
|
2921
2997
|
),
|
|
2922
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ jsx44(
|
|
2923
2999
|
RoundedCylinder,
|
|
2924
3000
|
{
|
|
2925
3001
|
height: baseHeight,
|
|
@@ -2930,8 +3006,8 @@ var HC49 = ({
|
|
|
2930
3006
|
)
|
|
2931
3007
|
] })
|
|
2932
3008
|
] }),
|
|
2933
|
-
/* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */
|
|
3009
|
+
/* @__PURE__ */ jsxs42(Colorize21, { color: leadColor, children: [
|
|
3010
|
+
/* @__PURE__ */ jsx44(
|
|
2935
3011
|
Cylinder6,
|
|
2936
3012
|
{
|
|
2937
3013
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2939,7 +3015,7 @@ var HC49 = ({
|
|
|
2939
3015
|
center: [-leadCenterX + 0.06, 0, -(leadLength / 2) + bodyHeight / 2]
|
|
2940
3016
|
}
|
|
2941
3017
|
),
|
|
2942
|
-
/* @__PURE__ */
|
|
3018
|
+
/* @__PURE__ */ jsx44(
|
|
2943
3019
|
Cylinder6,
|
|
2944
3020
|
{
|
|
2945
3021
|
height: leadLength + bodyHeight / 2,
|
|
@@ -2953,13 +3029,13 @@ var HC49 = ({
|
|
|
2953
3029
|
|
|
2954
3030
|
// lib/MicroMELF.tsx
|
|
2955
3031
|
import {
|
|
2956
|
-
Colorize as
|
|
3032
|
+
Colorize as Colorize22,
|
|
2957
3033
|
Cylinder as Cylinder7,
|
|
2958
3034
|
RoundedCylinder as RoundedCylinder2,
|
|
2959
3035
|
Rotate as Rotate6,
|
|
2960
3036
|
RoundedCuboid as RoundedCuboid2
|
|
2961
3037
|
} from "jscad-fiber";
|
|
2962
|
-
import { Fragment as
|
|
3038
|
+
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
2963
3039
|
var MicroMELF = ({
|
|
2964
3040
|
bodyLength: bodyLength10 = 1.4,
|
|
2965
3041
|
bodyDiameter = 1.1,
|
|
@@ -2968,9 +3044,9 @@ var MicroMELF = ({
|
|
|
2968
3044
|
cathodeIdentification = "#111"
|
|
2969
3045
|
}) => {
|
|
2970
3046
|
const padLength = 0.2;
|
|
2971
|
-
return /* @__PURE__ */
|
|
2972
|
-
/* @__PURE__ */
|
|
2973
|
-
/* @__PURE__ */
|
|
3047
|
+
return /* @__PURE__ */ jsxs43(Fragment41, { children: [
|
|
3048
|
+
/* @__PURE__ */ jsx45(Colorize22, { color, children: /* @__PURE__ */ jsxs43(Rotate6, { rotation: [0, "90deg", 0], children: [
|
|
3049
|
+
/* @__PURE__ */ jsx45(
|
|
2974
3050
|
RoundedCuboid2,
|
|
2975
3051
|
{
|
|
2976
3052
|
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
@@ -2978,7 +3054,7 @@ var MicroMELF = ({
|
|
|
2978
3054
|
center: [-bodyDiameter / 2, 0, 0.05]
|
|
2979
3055
|
}
|
|
2980
3056
|
),
|
|
2981
|
-
/* @__PURE__ */
|
|
3057
|
+
/* @__PURE__ */ jsx45(
|
|
2982
3058
|
Cylinder7,
|
|
2983
3059
|
{
|
|
2984
3060
|
height: padLength / 2,
|
|
@@ -2987,7 +3063,7 @@ var MicroMELF = ({
|
|
|
2987
3063
|
}
|
|
2988
3064
|
)
|
|
2989
3065
|
] }) }),
|
|
2990
|
-
/* @__PURE__ */
|
|
3066
|
+
/* @__PURE__ */ jsx45(Colorize22, { color: cathodeIdentification, children: /* @__PURE__ */ jsx45(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
|
|
2991
3067
|
RoundedCuboid2,
|
|
2992
3068
|
{
|
|
2993
3069
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -2995,7 +3071,7 @@ var MicroMELF = ({
|
|
|
2995
3071
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
2996
3072
|
}
|
|
2997
3073
|
) }) }),
|
|
2998
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ jsx45(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
|
|
2999
3075
|
RoundedCylinder2,
|
|
3000
3076
|
{
|
|
3001
3077
|
height: padLength,
|
|
@@ -3004,7 +3080,7 @@ var MicroMELF = ({
|
|
|
3004
3080
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3005
3081
|
}
|
|
3006
3082
|
) }) }),
|
|
3007
|
-
/* @__PURE__ */
|
|
3083
|
+
/* @__PURE__ */ jsx45(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
|
|
3008
3084
|
RoundedCylinder2,
|
|
3009
3085
|
{
|
|
3010
3086
|
height: padLength,
|
|
@@ -3017,8 +3093,8 @@ var MicroMELF = ({
|
|
|
3017
3093
|
};
|
|
3018
3094
|
|
|
3019
3095
|
// lib/MINIMELF.tsx
|
|
3020
|
-
import { Colorize as
|
|
3021
|
-
import { Fragment as
|
|
3096
|
+
import { Colorize as Colorize23, RoundedCylinder as RoundedCylinder3, Rotate as Rotate7 } from "jscad-fiber";
|
|
3097
|
+
import { Fragment as Fragment42, jsx as jsx46, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3022
3098
|
var MINIMELF = ({
|
|
3023
3099
|
bodyLength: bodyLength10 = 3.5,
|
|
3024
3100
|
bodyDiameter = 1.5,
|
|
@@ -3026,8 +3102,8 @@ var MINIMELF = ({
|
|
|
3026
3102
|
contactColor = "#c6c6c6"
|
|
3027
3103
|
}) => {
|
|
3028
3104
|
const padLength = 0.5;
|
|
3029
|
-
return /* @__PURE__ */
|
|
3030
|
-
/* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsxs44(Fragment42, { children: [
|
|
3106
|
+
/* @__PURE__ */ jsx46(Colorize23, { color, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3031
3107
|
RoundedCylinder3,
|
|
3032
3108
|
{
|
|
3033
3109
|
height: bodyLength10,
|
|
@@ -3036,7 +3112,7 @@ var MINIMELF = ({
|
|
|
3036
3112
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3037
3113
|
}
|
|
3038
3114
|
) }) }),
|
|
3039
|
-
/* @__PURE__ */
|
|
3115
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3040
3116
|
RoundedCylinder3,
|
|
3041
3117
|
{
|
|
3042
3118
|
height: padLength,
|
|
@@ -3045,7 +3121,7 @@ var MINIMELF = ({
|
|
|
3045
3121
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3046
3122
|
}
|
|
3047
3123
|
) }) }),
|
|
3048
|
-
/* @__PURE__ */
|
|
3124
|
+
/* @__PURE__ */ jsx46(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx46(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx46(
|
|
3049
3125
|
RoundedCylinder3,
|
|
3050
3126
|
{
|
|
3051
3127
|
height: padLength,
|
|
@@ -3058,8 +3134,8 @@ var MINIMELF = ({
|
|
|
3058
3134
|
};
|
|
3059
3135
|
|
|
3060
3136
|
// lib/MELF.tsx
|
|
3061
|
-
import { Colorize as
|
|
3062
|
-
import { Fragment as
|
|
3137
|
+
import { Colorize as Colorize24, RoundedCylinder as RoundedCylinder4, Rotate as Rotate8 } from "jscad-fiber";
|
|
3138
|
+
import { Fragment as Fragment43, jsx as jsx47, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3063
3139
|
var MELF = ({
|
|
3064
3140
|
bodyLength: bodyLength10 = 3.9,
|
|
3065
3141
|
bodyDiameter = 2.5,
|
|
@@ -3067,8 +3143,8 @@ var MELF = ({
|
|
|
3067
3143
|
contactColor = "#c6c6c6"
|
|
3068
3144
|
}) => {
|
|
3069
3145
|
const padLength = 0.55;
|
|
3070
|
-
return /* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3146
|
+
return /* @__PURE__ */ jsxs45(Fragment43, { children: [
|
|
3147
|
+
/* @__PURE__ */ jsx47(Colorize24, { color, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3072
3148
|
RoundedCylinder4,
|
|
3073
3149
|
{
|
|
3074
3150
|
height: bodyLength10,
|
|
@@ -3077,7 +3153,7 @@ var MELF = ({
|
|
|
3077
3153
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3078
3154
|
}
|
|
3079
3155
|
) }) }),
|
|
3080
|
-
/* @__PURE__ */
|
|
3156
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3081
3157
|
RoundedCylinder4,
|
|
3082
3158
|
{
|
|
3083
3159
|
height: padLength,
|
|
@@ -3086,7 +3162,7 @@ var MELF = ({
|
|
|
3086
3162
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3087
3163
|
}
|
|
3088
3164
|
) }) }),
|
|
3089
|
-
/* @__PURE__ */
|
|
3165
|
+
/* @__PURE__ */ jsx47(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx47(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx47(
|
|
3090
3166
|
RoundedCylinder4,
|
|
3091
3167
|
{
|
|
3092
3168
|
height: padLength,
|
|
@@ -3099,7 +3175,7 @@ var MELF = ({
|
|
|
3099
3175
|
};
|
|
3100
3176
|
|
|
3101
3177
|
// lib/ms012.tsx
|
|
3102
|
-
import { Fragment as
|
|
3178
|
+
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3103
3179
|
var MS012 = ({
|
|
3104
3180
|
pinCount,
|
|
3105
3181
|
padContactLength = 0.6,
|
|
@@ -3114,8 +3190,8 @@ var MS012 = ({
|
|
|
3114
3190
|
const bodyLength10 = 3.9;
|
|
3115
3191
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3116
3192
|
const leadThickness = 0.2;
|
|
3117
|
-
return /* @__PURE__ */
|
|
3118
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3193
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3194
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx48(
|
|
3119
3195
|
SmdChipLead,
|
|
3120
3196
|
{
|
|
3121
3197
|
position: {
|
|
@@ -3131,7 +3207,7 @@ var MS012 = ({
|
|
|
3131
3207
|
},
|
|
3132
3208
|
i
|
|
3133
3209
|
)),
|
|
3134
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3210
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx48(
|
|
3135
3211
|
SmdChipLead,
|
|
3136
3212
|
{
|
|
3137
3213
|
rotation: Math.PI,
|
|
@@ -3148,7 +3224,7 @@ var MS012 = ({
|
|
|
3148
3224
|
},
|
|
3149
3225
|
`right-${i}`
|
|
3150
3226
|
)),
|
|
3151
|
-
/* @__PURE__ */
|
|
3227
|
+
/* @__PURE__ */ jsx48(
|
|
3152
3228
|
ChipBody,
|
|
3153
3229
|
{
|
|
3154
3230
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -3165,15 +3241,15 @@ var MS012 = ({
|
|
|
3165
3241
|
|
|
3166
3242
|
// lib/TO220.tsx
|
|
3167
3243
|
import {
|
|
3168
|
-
Colorize as
|
|
3169
|
-
Cuboid as
|
|
3170
|
-
Hull as
|
|
3244
|
+
Colorize as Colorize25,
|
|
3245
|
+
Cuboid as Cuboid32,
|
|
3246
|
+
Hull as Hull16,
|
|
3171
3247
|
Rotate as Rotate9,
|
|
3172
|
-
Translate as
|
|
3248
|
+
Translate as Translate20,
|
|
3173
3249
|
Cylinder as Cylinder8,
|
|
3174
3250
|
Subtract as Subtract4
|
|
3175
3251
|
} from "jscad-fiber";
|
|
3176
|
-
import { Fragment as
|
|
3252
|
+
import { Fragment as Fragment45, jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3177
3253
|
var TO220 = () => {
|
|
3178
3254
|
const fullLength10 = 20;
|
|
3179
3255
|
const bodyLength10 = 9.9;
|
|
@@ -3192,18 +3268,18 @@ var TO220 = () => {
|
|
|
3192
3268
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3193
3269
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3194
3270
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3195
|
-
return /* @__PURE__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
|
|
3271
|
+
return /* @__PURE__ */ jsx49(Translate20, { center: [0, 0, zOffset], children: /* @__PURE__ */ jsxs47(Fragment45, { children: [
|
|
3272
|
+
/* @__PURE__ */ jsxs47(Rotate9, { rotation: [0, 55, -55], children: [
|
|
3273
|
+
/* @__PURE__ */ jsxs47(Subtract4, { children: [
|
|
3274
|
+
/* @__PURE__ */ jsx49(
|
|
3275
|
+
Cuboid32,
|
|
3200
3276
|
{
|
|
3201
3277
|
color: "#ccc",
|
|
3202
3278
|
size: [padLength + 0.1, padWidth, padThickness],
|
|
3203
3279
|
center: [padCenterX, 0, padThickness - 2]
|
|
3204
3280
|
}
|
|
3205
3281
|
),
|
|
3206
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ jsx49(
|
|
3207
3283
|
Cylinder8,
|
|
3208
3284
|
{
|
|
3209
3285
|
color: "black",
|
|
@@ -3213,7 +3289,7 @@ var TO220 = () => {
|
|
|
3213
3289
|
}
|
|
3214
3290
|
)
|
|
3215
3291
|
] }),
|
|
3216
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx49(Colorize25, { color: "#222", children: /* @__PURE__ */ jsx49(
|
|
3217
3293
|
ChipBody,
|
|
3218
3294
|
{
|
|
3219
3295
|
width: bodyWidth,
|
|
@@ -3227,29 +3303,29 @@ var TO220 = () => {
|
|
|
3227
3303
|
}
|
|
3228
3304
|
) })
|
|
3229
3305
|
] }),
|
|
3230
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ jsx49(Rotate9, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3231
3307
|
const x = prongCenterX;
|
|
3232
3308
|
const y = (i - 1) * prongPitch;
|
|
3233
3309
|
const z = -prongHeight - 0.6;
|
|
3234
|
-
return /* @__PURE__ */
|
|
3235
|
-
/* @__PURE__ */
|
|
3236
|
-
/* @__PURE__ */
|
|
3237
|
-
/* @__PURE__ */
|
|
3238
|
-
|
|
3310
|
+
return /* @__PURE__ */ jsxs47(Colorize25, { color: "gold", children: [
|
|
3311
|
+
/* @__PURE__ */ jsxs47(Hull16, { children: [
|
|
3312
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
3313
|
+
/* @__PURE__ */ jsx49(
|
|
3314
|
+
Translate20,
|
|
3239
3315
|
{
|
|
3240
3316
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3241
|
-
children: /* @__PURE__ */
|
|
3317
|
+
children: /* @__PURE__ */ jsx49(Cuboid32, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3242
3318
|
}
|
|
3243
3319
|
)
|
|
3244
3320
|
] }),
|
|
3245
|
-
/* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [x, y, z], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3246
3322
|
] }, `prong-${i}`);
|
|
3247
3323
|
}) })
|
|
3248
3324
|
] }) });
|
|
3249
3325
|
};
|
|
3250
3326
|
|
|
3251
3327
|
// lib/SOT-457.tsx
|
|
3252
|
-
import { Fragment as
|
|
3328
|
+
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3253
3329
|
var SOT457 = () => {
|
|
3254
3330
|
const fullWidth = 2.8;
|
|
3255
3331
|
const bodyWidth = 1.6;
|
|
@@ -3261,8 +3337,8 @@ var SOT457 = () => {
|
|
|
3261
3337
|
const padContactLength = 0.5;
|
|
3262
3338
|
const padPitch = 0.95;
|
|
3263
3339
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3264
|
-
return /* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */
|
|
3340
|
+
return /* @__PURE__ */ jsxs48(Fragment46, { children: [
|
|
3341
|
+
/* @__PURE__ */ jsx50(
|
|
3266
3342
|
SmdChipLead,
|
|
3267
3343
|
{
|
|
3268
3344
|
rotation: Math.PI,
|
|
@@ -3279,7 +3355,7 @@ var SOT457 = () => {
|
|
|
3279
3355
|
},
|
|
3280
3356
|
1
|
|
3281
3357
|
),
|
|
3282
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsx50(
|
|
3283
3359
|
SmdChipLead,
|
|
3284
3360
|
{
|
|
3285
3361
|
rotation: Math.PI,
|
|
@@ -3296,7 +3372,7 @@ var SOT457 = () => {
|
|
|
3296
3372
|
},
|
|
3297
3373
|
2
|
|
3298
3374
|
),
|
|
3299
|
-
/* @__PURE__ */
|
|
3375
|
+
/* @__PURE__ */ jsx50(
|
|
3300
3376
|
SmdChipLead,
|
|
3301
3377
|
{
|
|
3302
3378
|
rotation: Math.PI,
|
|
@@ -3313,7 +3389,7 @@ var SOT457 = () => {
|
|
|
3313
3389
|
},
|
|
3314
3390
|
3
|
|
3315
3391
|
),
|
|
3316
|
-
/* @__PURE__ */
|
|
3392
|
+
/* @__PURE__ */ jsx50(
|
|
3317
3393
|
SmdChipLead,
|
|
3318
3394
|
{
|
|
3319
3395
|
position: {
|
|
@@ -3329,7 +3405,7 @@ var SOT457 = () => {
|
|
|
3329
3405
|
},
|
|
3330
3406
|
3
|
|
3331
3407
|
),
|
|
3332
|
-
/* @__PURE__ */
|
|
3408
|
+
/* @__PURE__ */ jsx50(
|
|
3333
3409
|
SmdChipLead,
|
|
3334
3410
|
{
|
|
3335
3411
|
position: {
|
|
@@ -3345,7 +3421,7 @@ var SOT457 = () => {
|
|
|
3345
3421
|
},
|
|
3346
3422
|
1
|
|
3347
3423
|
),
|
|
3348
|
-
/* @__PURE__ */
|
|
3424
|
+
/* @__PURE__ */ jsx50(
|
|
3349
3425
|
SmdChipLead,
|
|
3350
3426
|
{
|
|
3351
3427
|
position: {
|
|
@@ -3361,7 +3437,7 @@ var SOT457 = () => {
|
|
|
3361
3437
|
},
|
|
3362
3438
|
2
|
|
3363
3439
|
),
|
|
3364
|
-
/* @__PURE__ */
|
|
3440
|
+
/* @__PURE__ */ jsx50(
|
|
3365
3441
|
ChipBody,
|
|
3366
3442
|
{
|
|
3367
3443
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3382,14 +3458,14 @@ var SOT457 = () => {
|
|
|
3382
3458
|
|
|
3383
3459
|
// lib/TO92.tsx
|
|
3384
3460
|
import {
|
|
3385
|
-
Colorize as
|
|
3386
|
-
Cuboid as
|
|
3387
|
-
Hull as
|
|
3388
|
-
Translate as
|
|
3461
|
+
Colorize as Colorize26,
|
|
3462
|
+
Cuboid as Cuboid33,
|
|
3463
|
+
Hull as Hull17,
|
|
3464
|
+
Translate as Translate21,
|
|
3389
3465
|
Cylinder as Cylinder9,
|
|
3390
3466
|
Subtract as Subtract5
|
|
3391
3467
|
} from "jscad-fiber";
|
|
3392
|
-
import { jsx as
|
|
3468
|
+
import { jsx as jsx51, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3393
3469
|
var TO92 = () => {
|
|
3394
3470
|
const bodyRadius = 2.4;
|
|
3395
3471
|
const bodyHeight = 4.5;
|
|
@@ -3410,24 +3486,24 @@ var TO92 = () => {
|
|
|
3410
3486
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3411
3487
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3412
3488
|
const sideLeadZ = -7.5;
|
|
3413
|
-
return /* @__PURE__ */
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */
|
|
3416
|
-
/* @__PURE__ */
|
|
3489
|
+
return /* @__PURE__ */ jsxs49(Translate21, { center: [0, 1, 10.5], children: [
|
|
3490
|
+
/* @__PURE__ */ jsx51(Colorize26, { color: bodyColor, children: /* @__PURE__ */ jsxs49(Subtract5, { children: [
|
|
3491
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx51(Cylinder9, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3492
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3417
3493
|
] }) }),
|
|
3418
|
-
/* @__PURE__ */
|
|
3419
|
-
/* @__PURE__ */
|
|
3420
|
-
/* @__PURE__ */
|
|
3421
|
-
/* @__PURE__ */
|
|
3494
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadTipPos1, children: /* @__PURE__ */ jsx51(Cuboid33, { size: leadTipSize }) }),
|
|
3495
|
+
/* @__PURE__ */ jsxs49(Hull17, { children: [
|
|
3496
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadMidPosA, children: /* @__PURE__ */ jsx51(Cuboid33, { size: leadSmallSize }) }),
|
|
3497
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadMidPosB, children: /* @__PURE__ */ jsx51(Cuboid33, { size: leadSmallSize }) })
|
|
3422
3498
|
] }),
|
|
3423
|
-
/* @__PURE__ */
|
|
3424
|
-
/* @__PURE__ */
|
|
3425
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ jsx51(Translate21, { center: leadTipPos2, children: /* @__PURE__ */ jsx51(Cuboid33, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3500
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [leadLength, legWidth, 15] }) }),
|
|
3501
|
+
/* @__PURE__ */ jsx51(Translate21, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx51(Cuboid33, { size: [leadLength, legWidth, 15] }) })
|
|
3426
3502
|
] });
|
|
3427
3503
|
};
|
|
3428
3504
|
|
|
3429
3505
|
// lib/SOT-363.tsx
|
|
3430
|
-
import { Fragment as
|
|
3506
|
+
import { Fragment as Fragment47, jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3431
3507
|
var SOT363 = () => {
|
|
3432
3508
|
const fullWidth = 2;
|
|
3433
3509
|
const bodyWidth = 1.25;
|
|
@@ -3438,8 +3514,8 @@ var SOT363 = () => {
|
|
|
3438
3514
|
const leadHeight = 0.85;
|
|
3439
3515
|
const padContactLength = 0.3;
|
|
3440
3516
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3441
|
-
return /* @__PURE__ */
|
|
3442
|
-
/* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ jsxs50(Fragment47, { children: [
|
|
3518
|
+
/* @__PURE__ */ jsx52(
|
|
3443
3519
|
SmdChipLead,
|
|
3444
3520
|
{
|
|
3445
3521
|
rotation: Math.PI,
|
|
@@ -3456,7 +3532,7 @@ var SOT363 = () => {
|
|
|
3456
3532
|
},
|
|
3457
3533
|
1
|
|
3458
3534
|
),
|
|
3459
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ jsx52(
|
|
3460
3536
|
SmdChipLead,
|
|
3461
3537
|
{
|
|
3462
3538
|
rotation: Math.PI,
|
|
@@ -3473,7 +3549,7 @@ var SOT363 = () => {
|
|
|
3473
3549
|
},
|
|
3474
3550
|
2
|
|
3475
3551
|
),
|
|
3476
|
-
/* @__PURE__ */
|
|
3552
|
+
/* @__PURE__ */ jsx52(
|
|
3477
3553
|
SmdChipLead,
|
|
3478
3554
|
{
|
|
3479
3555
|
rotation: Math.PI,
|
|
@@ -3490,7 +3566,7 @@ var SOT363 = () => {
|
|
|
3490
3566
|
},
|
|
3491
3567
|
3
|
|
3492
3568
|
),
|
|
3493
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ jsx52(
|
|
3494
3570
|
SmdChipLead,
|
|
3495
3571
|
{
|
|
3496
3572
|
position: {
|
|
@@ -3506,7 +3582,7 @@ var SOT363 = () => {
|
|
|
3506
3582
|
},
|
|
3507
3583
|
3
|
|
3508
3584
|
),
|
|
3509
|
-
/* @__PURE__ */
|
|
3585
|
+
/* @__PURE__ */ jsx52(
|
|
3510
3586
|
SmdChipLead,
|
|
3511
3587
|
{
|
|
3512
3588
|
position: {
|
|
@@ -3522,7 +3598,7 @@ var SOT363 = () => {
|
|
|
3522
3598
|
},
|
|
3523
3599
|
1
|
|
3524
3600
|
),
|
|
3525
|
-
/* @__PURE__ */
|
|
3601
|
+
/* @__PURE__ */ jsx52(
|
|
3526
3602
|
SmdChipLead,
|
|
3527
3603
|
{
|
|
3528
3604
|
position: {
|
|
@@ -3538,7 +3614,7 @@ var SOT363 = () => {
|
|
|
3538
3614
|
},
|
|
3539
3615
|
2
|
|
3540
3616
|
),
|
|
3541
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ jsx52(
|
|
3542
3618
|
ChipBody,
|
|
3543
3619
|
{
|
|
3544
3620
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3559,14 +3635,14 @@ var SOT363 = () => {
|
|
|
3559
3635
|
var SOT_363_default = SOT363;
|
|
3560
3636
|
|
|
3561
3637
|
// lib/Footprinter3d.tsx
|
|
3562
|
-
import { jsx as
|
|
3638
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
3563
3639
|
var Footprinter3d = ({ footprint }) => {
|
|
3564
3640
|
const fpJson = fp3.string(footprint).json();
|
|
3565
3641
|
switch (fpJson.fn) {
|
|
3566
3642
|
case "dip":
|
|
3567
|
-
return /* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsx53(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3568
3644
|
case "tssop":
|
|
3569
|
-
return /* @__PURE__ */
|
|
3645
|
+
return /* @__PURE__ */ jsx53(
|
|
3570
3646
|
Tssop,
|
|
3571
3647
|
{
|
|
3572
3648
|
pinCount: fpJson.num_pins,
|
|
@@ -3577,7 +3653,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3577
3653
|
}
|
|
3578
3654
|
);
|
|
3579
3655
|
case "msop":
|
|
3580
|
-
return /* @__PURE__ */
|
|
3656
|
+
return /* @__PURE__ */ jsx53(
|
|
3581
3657
|
MSOP,
|
|
3582
3658
|
{
|
|
3583
3659
|
pinCount: fpJson.num_pins,
|
|
@@ -3588,7 +3664,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3588
3664
|
}
|
|
3589
3665
|
);
|
|
3590
3666
|
case "vssop":
|
|
3591
|
-
return /* @__PURE__ */
|
|
3667
|
+
return /* @__PURE__ */ jsx53(
|
|
3592
3668
|
VSSOP,
|
|
3593
3669
|
{
|
|
3594
3670
|
pinCount: fpJson.num_pins,
|
|
@@ -3600,7 +3676,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3600
3676
|
}
|
|
3601
3677
|
);
|
|
3602
3678
|
case "qfp":
|
|
3603
|
-
return /* @__PURE__ */
|
|
3679
|
+
return /* @__PURE__ */ jsx53(
|
|
3604
3680
|
QFP,
|
|
3605
3681
|
{
|
|
3606
3682
|
pinCount: fpJson.num_pins,
|
|
@@ -3611,12 +3687,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3611
3687
|
}
|
|
3612
3688
|
);
|
|
3613
3689
|
case "tqfp":
|
|
3614
|
-
return /* @__PURE__ */
|
|
3690
|
+
return /* @__PURE__ */ jsx53(tqfp_default, {});
|
|
3615
3691
|
case "lqfp":
|
|
3616
|
-
return /* @__PURE__ */
|
|
3692
|
+
return /* @__PURE__ */ jsx53(LQFP, { pinCount: fpJson.num_pins });
|
|
3617
3693
|
case "qfn": {
|
|
3618
3694
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3619
|
-
return /* @__PURE__ */
|
|
3695
|
+
return /* @__PURE__ */ jsx53(
|
|
3620
3696
|
qfn_default,
|
|
3621
3697
|
{
|
|
3622
3698
|
num_pins: fpJson.num_pins,
|
|
@@ -3634,7 +3710,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3634
3710
|
}
|
|
3635
3711
|
case "dfn": {
|
|
3636
3712
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3637
|
-
return /* @__PURE__ */
|
|
3713
|
+
return /* @__PURE__ */ jsx53(
|
|
3638
3714
|
DFN,
|
|
3639
3715
|
{
|
|
3640
3716
|
num_pins: fpJson.num_pins,
|
|
@@ -3652,45 +3728,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3652
3728
|
}
|
|
3653
3729
|
case "pinrow":
|
|
3654
3730
|
if (fpJson.male)
|
|
3655
|
-
return /* @__PURE__ */
|
|
3731
|
+
return /* @__PURE__ */ jsx53(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3656
3732
|
if (fpJson.female)
|
|
3657
|
-
return /* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ jsx53(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3658
3734
|
case "cap": {
|
|
3659
3735
|
switch (fpJson.imperial) {
|
|
3660
3736
|
case "0402":
|
|
3661
|
-
return /* @__PURE__ */
|
|
3737
|
+
return /* @__PURE__ */ jsx53(A0402, { color: "#856c4d" });
|
|
3662
3738
|
case "0603":
|
|
3663
|
-
return /* @__PURE__ */
|
|
3739
|
+
return /* @__PURE__ */ jsx53(A0603, { color: "#856c4d" });
|
|
3664
3740
|
case "0805":
|
|
3665
|
-
return /* @__PURE__ */
|
|
3741
|
+
return /* @__PURE__ */ jsx53(A0805, { color: "#856c4d" });
|
|
3666
3742
|
case "0201":
|
|
3667
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ jsx53(A0201, { color: "#856c4d" });
|
|
3668
3744
|
case "01005":
|
|
3669
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx53(A01005, { color: "#856c4d" });
|
|
3670
3746
|
case "1206":
|
|
3671
|
-
return /* @__PURE__ */
|
|
3747
|
+
return /* @__PURE__ */ jsx53(A1206, { color: "#856c4d" });
|
|
3672
3748
|
case "1210":
|
|
3673
|
-
return /* @__PURE__ */
|
|
3749
|
+
return /* @__PURE__ */ jsx53(A1210, { color: "#856c4d" });
|
|
3674
3750
|
case "2010":
|
|
3675
|
-
return /* @__PURE__ */
|
|
3751
|
+
return /* @__PURE__ */ jsx53(A2010, { color: "#856c4d" });
|
|
3676
3752
|
case "2512":
|
|
3677
|
-
return /* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsx53(A2512, { color: "#856c4d" });
|
|
3678
3754
|
}
|
|
3679
3755
|
}
|
|
3680
3756
|
case "sot235":
|
|
3681
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ jsx53(SOT_235_default, {});
|
|
3682
3758
|
case "sot457":
|
|
3683
|
-
return /* @__PURE__ */
|
|
3759
|
+
return /* @__PURE__ */ jsx53(SOT457, {});
|
|
3684
3760
|
case "sot223":
|
|
3685
|
-
return /* @__PURE__ */
|
|
3761
|
+
return /* @__PURE__ */ jsx53(SOT223, {});
|
|
3686
3762
|
case "sot23w":
|
|
3687
|
-
return /* @__PURE__ */
|
|
3763
|
+
return /* @__PURE__ */ jsx53(SOT23W, {});
|
|
3688
3764
|
case "sot323":
|
|
3689
|
-
return /* @__PURE__ */
|
|
3765
|
+
return /* @__PURE__ */ jsx53(SOT323, {});
|
|
3690
3766
|
case "sot363":
|
|
3691
|
-
return /* @__PURE__ */
|
|
3767
|
+
return /* @__PURE__ */ jsx53(SOT_363_default, {});
|
|
3692
3768
|
case "pushbutton":
|
|
3693
|
-
return /* @__PURE__ */
|
|
3769
|
+
return /* @__PURE__ */ jsx53(
|
|
3694
3770
|
PushButton,
|
|
3695
3771
|
{
|
|
3696
3772
|
width: fpJson.w,
|
|
@@ -3699,7 +3775,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3699
3775
|
}
|
|
3700
3776
|
);
|
|
3701
3777
|
case "soic":
|
|
3702
|
-
return /* @__PURE__ */
|
|
3778
|
+
return /* @__PURE__ */ jsx53(
|
|
3703
3779
|
SOIC,
|
|
3704
3780
|
{
|
|
3705
3781
|
pinCount: fpJson.num_pins,
|
|
@@ -3710,33 +3786,35 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3710
3786
|
}
|
|
3711
3787
|
);
|
|
3712
3788
|
case "sod523":
|
|
3713
|
-
return /* @__PURE__ */
|
|
3789
|
+
return /* @__PURE__ */ jsx53(SOD523, {});
|
|
3714
3790
|
case "sod882":
|
|
3715
|
-
return /* @__PURE__ */
|
|
3791
|
+
return /* @__PURE__ */ jsx53(SOD882, {});
|
|
3716
3792
|
case "sma":
|
|
3717
|
-
return /* @__PURE__ */
|
|
3793
|
+
return /* @__PURE__ */ jsx53(SMA, {});
|
|
3718
3794
|
case "smb":
|
|
3719
|
-
return /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ jsx53(SMB, {});
|
|
3720
3796
|
case "smc":
|
|
3721
|
-
return /* @__PURE__ */
|
|
3797
|
+
return /* @__PURE__ */ jsx53(SMC, {});
|
|
3722
3798
|
case "smf":
|
|
3723
|
-
return /* @__PURE__ */
|
|
3799
|
+
return /* @__PURE__ */ jsx53(SMF, {});
|
|
3724
3800
|
case "sod123f":
|
|
3725
|
-
return /* @__PURE__ */
|
|
3801
|
+
return /* @__PURE__ */ jsx53(SOD123F, {});
|
|
3726
3802
|
case "sod123fl":
|
|
3727
|
-
return /* @__PURE__ */
|
|
3803
|
+
return /* @__PURE__ */ jsx53(SOD123FL, {});
|
|
3804
|
+
case "sod128":
|
|
3805
|
+
return /* @__PURE__ */ jsx53(SOD128, {});
|
|
3728
3806
|
case "sod923":
|
|
3729
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ jsx53(SOD923, {});
|
|
3730
3808
|
case "hc49":
|
|
3731
|
-
return /* @__PURE__ */
|
|
3809
|
+
return /* @__PURE__ */ jsx53(HC49, {});
|
|
3732
3810
|
case "micromelf":
|
|
3733
|
-
return /* @__PURE__ */
|
|
3811
|
+
return /* @__PURE__ */ jsx53(MicroMELF, {});
|
|
3734
3812
|
case "minimelf":
|
|
3735
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx53(MINIMELF, {});
|
|
3736
3814
|
case "melf":
|
|
3737
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsx53(MELF, {});
|
|
3738
3816
|
case "ms012":
|
|
3739
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx53(
|
|
3740
3818
|
MS012,
|
|
3741
3819
|
{
|
|
3742
3820
|
pinCount: fpJson.num_pins,
|
|
@@ -3746,39 +3824,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3746
3824
|
}
|
|
3747
3825
|
);
|
|
3748
3826
|
case "sot723":
|
|
3749
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ jsx53(SOT723, {});
|
|
3750
3828
|
case "to220":
|
|
3751
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ jsx53(TO220, {});
|
|
3752
3830
|
case "to92":
|
|
3753
|
-
return /* @__PURE__ */
|
|
3831
|
+
return /* @__PURE__ */ jsx53(TO92, {});
|
|
3754
3832
|
}
|
|
3755
3833
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3756
3834
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3757
3835
|
switch (fpJson.imperial) {
|
|
3758
3836
|
case "0402":
|
|
3759
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ jsx53(A0402, { color });
|
|
3760
3838
|
case "0603":
|
|
3761
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx53(A0603, { color });
|
|
3762
3840
|
case "0805":
|
|
3763
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsx53(A0805, { color });
|
|
3764
3842
|
case "0201":
|
|
3765
|
-
return /* @__PURE__ */
|
|
3843
|
+
return /* @__PURE__ */ jsx53(A0201, { color });
|
|
3766
3844
|
case "01005":
|
|
3767
|
-
return /* @__PURE__ */
|
|
3845
|
+
return /* @__PURE__ */ jsx53(A01005, { color });
|
|
3768
3846
|
case "1206":
|
|
3769
|
-
return /* @__PURE__ */
|
|
3847
|
+
return /* @__PURE__ */ jsx53(A1206, { color });
|
|
3770
3848
|
case "1210":
|
|
3771
|
-
return /* @__PURE__ */
|
|
3849
|
+
return /* @__PURE__ */ jsx53(A1210, { color });
|
|
3772
3850
|
case "2010":
|
|
3773
|
-
return /* @__PURE__ */
|
|
3851
|
+
return /* @__PURE__ */ jsx53(A2010, { color });
|
|
3774
3852
|
case "2512":
|
|
3775
|
-
return /* @__PURE__ */
|
|
3853
|
+
return /* @__PURE__ */ jsx53(A2512, { color });
|
|
3776
3854
|
}
|
|
3777
3855
|
return null;
|
|
3778
3856
|
};
|
|
3779
3857
|
|
|
3780
3858
|
// lib/SOT-23-3P.tsx
|
|
3781
|
-
import { Fragment as
|
|
3859
|
+
import { Fragment as Fragment48, jsx as jsx54, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3782
3860
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3783
3861
|
const bodyWidth = 1.3;
|
|
3784
3862
|
const bodyLength10 = 2.9;
|
|
@@ -3789,8 +3867,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3789
3867
|
const padContactLength = 0.4;
|
|
3790
3868
|
const padThickness = leadThickness / 2;
|
|
3791
3869
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3792
|
-
return /* @__PURE__ */
|
|
3793
|
-
/* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsxs51(Fragment48, { children: [
|
|
3871
|
+
/* @__PURE__ */ jsx54(
|
|
3794
3872
|
SmdChipLead,
|
|
3795
3873
|
{
|
|
3796
3874
|
rotation: Math.PI,
|
|
@@ -3807,7 +3885,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3807
3885
|
},
|
|
3808
3886
|
1
|
|
3809
3887
|
),
|
|
3810
|
-
/* @__PURE__ */
|
|
3888
|
+
/* @__PURE__ */ jsx54(
|
|
3811
3889
|
SmdChipLead,
|
|
3812
3890
|
{
|
|
3813
3891
|
rotation: Math.PI,
|
|
@@ -3824,7 +3902,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3824
3902
|
},
|
|
3825
3903
|
2
|
|
3826
3904
|
),
|
|
3827
|
-
/* @__PURE__ */
|
|
3905
|
+
/* @__PURE__ */ jsx54(
|
|
3828
3906
|
SmdChipLead,
|
|
3829
3907
|
{
|
|
3830
3908
|
position: {
|
|
@@ -3840,7 +3918,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3840
3918
|
},
|
|
3841
3919
|
3
|
|
3842
3920
|
),
|
|
3843
|
-
/* @__PURE__ */
|
|
3921
|
+
/* @__PURE__ */ jsx54(
|
|
3844
3922
|
ChipBody,
|
|
3845
3923
|
{
|
|
3846
3924
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3853,8 +3931,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3853
3931
|
};
|
|
3854
3932
|
|
|
3855
3933
|
// lib/SOT-563.tsx
|
|
3856
|
-
import { Cuboid as
|
|
3857
|
-
import { Fragment as
|
|
3934
|
+
import { Cuboid as Cuboid34, Translate as Translate22, Rotate as Rotate10, Colorize as Colorize27 } from "jscad-fiber";
|
|
3935
|
+
import { Fragment as Fragment49, jsx as jsx55, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3858
3936
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3859
3937
|
const bodyWidth = 1.2;
|
|
3860
3938
|
const bodyLength10 = 1.6;
|
|
@@ -3864,28 +3942,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3864
3942
|
const leadHeight = 0.13;
|
|
3865
3943
|
const leadSpacing = 0.5;
|
|
3866
3944
|
const bodyZOffset = -0.4;
|
|
3867
|
-
return /* @__PURE__ */
|
|
3868
|
-
/* @__PURE__ */
|
|
3945
|
+
return /* @__PURE__ */ jsxs52(Fragment49, { children: [
|
|
3946
|
+
/* @__PURE__ */ jsx55(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx55(Translate22, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx55(Colorize27, { color: "grey", children: /* @__PURE__ */ jsx55(Cuboid34, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3869
3947
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3870
3948
|
// Left lead
|
|
3871
|
-
/* @__PURE__ */
|
|
3872
|
-
|
|
3949
|
+
/* @__PURE__ */ jsx55(
|
|
3950
|
+
Translate22,
|
|
3873
3951
|
{
|
|
3874
3952
|
center: [
|
|
3875
3953
|
-bodyWidth / 2 - 0.03,
|
|
3876
3954
|
yOffset * leadSpacing,
|
|
3877
3955
|
leadHeight / 2
|
|
3878
3956
|
],
|
|
3879
|
-
children: /* @__PURE__ */
|
|
3957
|
+
children: /* @__PURE__ */ jsx55(Cuboid34, { size: [leadLength, leadWidth, leadHeight] })
|
|
3880
3958
|
},
|
|
3881
3959
|
`left-${index}`
|
|
3882
3960
|
),
|
|
3883
3961
|
// Right lead
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
|
|
3962
|
+
/* @__PURE__ */ jsx55(
|
|
3963
|
+
Translate22,
|
|
3886
3964
|
{
|
|
3887
3965
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3888
|
-
children: /* @__PURE__ */
|
|
3966
|
+
children: /* @__PURE__ */ jsx55(Cuboid34, { size: [leadLength, leadWidth, leadHeight] })
|
|
3889
3967
|
},
|
|
3890
3968
|
`right-${index}`
|
|
3891
3969
|
)
|
|
@@ -3894,7 +3972,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3894
3972
|
};
|
|
3895
3973
|
|
|
3896
3974
|
// lib/sod-123.tsx
|
|
3897
|
-
import { Fragment as
|
|
3975
|
+
import { Fragment as Fragment50, jsx as jsx56, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3898
3976
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3899
3977
|
const bodyWidth = 2.9;
|
|
3900
3978
|
const bodyLength10 = 1.3;
|
|
@@ -3905,8 +3983,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3905
3983
|
const padContactLength = 0.4;
|
|
3906
3984
|
const padThickness = leadThickness / 2;
|
|
3907
3985
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3908
|
-
return /* @__PURE__ */
|
|
3909
|
-
/* @__PURE__ */
|
|
3986
|
+
return /* @__PURE__ */ jsxs53(Fragment50, { children: [
|
|
3987
|
+
/* @__PURE__ */ jsx56(
|
|
3910
3988
|
SmdChipLead,
|
|
3911
3989
|
{
|
|
3912
3990
|
position: {
|
|
@@ -3922,7 +4000,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3922
4000
|
},
|
|
3923
4001
|
1
|
|
3924
4002
|
),
|
|
3925
|
-
/* @__PURE__ */
|
|
4003
|
+
/* @__PURE__ */ jsx56(
|
|
3926
4004
|
SmdChipLead,
|
|
3927
4005
|
{
|
|
3928
4006
|
rotation: Math.PI,
|
|
@@ -3939,7 +4017,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3939
4017
|
},
|
|
3940
4018
|
2
|
|
3941
4019
|
),
|
|
3942
|
-
/* @__PURE__ */
|
|
4020
|
+
/* @__PURE__ */ jsx56(
|
|
3943
4021
|
ChipBody,
|
|
3944
4022
|
{
|
|
3945
4023
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3984,6 +4062,7 @@ export {
|
|
|
3984
4062
|
SOD123,
|
|
3985
4063
|
SOD123F,
|
|
3986
4064
|
SOD123FL,
|
|
4065
|
+
SOD128,
|
|
3987
4066
|
SOD523,
|
|
3988
4067
|
SOD882,
|
|
3989
4068
|
SOD923,
|