jscad-electronics 0.0.166 → 0.0.167
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 +13 -1
- package/dist/index.js +245 -134
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +113 -2
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3495,7 +3495,7 @@ var SOT723 = () => {
|
|
|
3495
3495
|
};
|
|
3496
3496
|
|
|
3497
3497
|
// lib/dfn.tsx
|
|
3498
|
-
import { Cuboid as Cuboid31 } from "jscad-fiber";
|
|
3498
|
+
import { Colorize as Colorize23, Cuboid as Cuboid31, Hull as Hull18, Subtract as Subtract4 } from "jscad-fiber";
|
|
3499
3499
|
import { Fragment as Fragment45, jsx as jsx49, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3500
3500
|
var DFN = ({
|
|
3501
3501
|
num_pins,
|
|
@@ -3508,8 +3508,41 @@ var DFN = ({
|
|
|
3508
3508
|
padWidth = bodyLength10 / 5.3 * 0.6,
|
|
3509
3509
|
padLength = bodyLength10 / 5.3 * 1,
|
|
3510
3510
|
pitch = 0.5,
|
|
3511
|
-
thermalPadThickness = 0.2
|
|
3511
|
+
thermalPadThickness = 0.2,
|
|
3512
|
+
bodyStyle = "chamfered",
|
|
3513
|
+
standoff = 0,
|
|
3514
|
+
terminalInset = 0,
|
|
3515
|
+
terminalThickness = thermalPadThickness,
|
|
3516
|
+
pin1TerminalChamfer = 0,
|
|
3517
|
+
pin1MarkWidth = 0
|
|
3512
3518
|
}) => {
|
|
3519
|
+
if (bodyStyle === "rectangular") {
|
|
3520
|
+
if (!Number.isInteger(num_pins) || num_pins < 2 || num_pins % 2 !== 0)
|
|
3521
|
+
throw new Error("DFN requires an even pin count of at least two");
|
|
3522
|
+
for (const value of [
|
|
3523
|
+
bodyWidth,
|
|
3524
|
+
bodyLength10,
|
|
3525
|
+
bodyThickness,
|
|
3526
|
+
padWidth,
|
|
3527
|
+
padLength,
|
|
3528
|
+
pitch,
|
|
3529
|
+
terminalThickness
|
|
3530
|
+
])
|
|
3531
|
+
if (!Number.isFinite(value) || value <= 0)
|
|
3532
|
+
throw new Error("DFN dimensions must be finite and positive");
|
|
3533
|
+
for (const value of [
|
|
3534
|
+
standoff,
|
|
3535
|
+
terminalInset,
|
|
3536
|
+
pin1TerminalChamfer,
|
|
3537
|
+
pin1MarkWidth
|
|
3538
|
+
])
|
|
3539
|
+
if (!Number.isFinite(value) || value < 0)
|
|
3540
|
+
throw new Error("DFN offsets must be finite and nonnegative");
|
|
3541
|
+
if (terminalThickness <= standoff || terminalThickness > standoff + bodyThickness || terminalInset + padLength >= bodyWidth / 2 || (num_pins / 2 - 1) * pitch + padWidth > bodyLength10 || num_pins > 2 && padWidth >= pitch || pin1TerminalChamfer >= Math.min(padLength, padWidth / 2) || pin1MarkWidth >= bodyWidth / 4)
|
|
3542
|
+
throw new Error(
|
|
3543
|
+
"DFN dimensions leave disconnected or overlapping terminals"
|
|
3544
|
+
);
|
|
3545
|
+
}
|
|
3513
3546
|
const pinPositions = [];
|
|
3514
3547
|
const pinsPerSide = Math.floor(num_pins / 2);
|
|
3515
3548
|
const pinSpan = pitch * (pinsPerSide - 1);
|
|
@@ -3519,10 +3552,88 @@ var DFN = ({
|
|
|
3519
3552
|
const y = pinSpan / 2 - indexOnSide * pitch;
|
|
3520
3553
|
const padSizeX = padLength;
|
|
3521
3554
|
const padSizeY = padWidth;
|
|
3522
|
-
const x = side === "left" ? -bodyWidth / 2 + padSizeX / 2 : bodyWidth / 2 - padSizeX / 2;
|
|
3555
|
+
const x = side === "left" ? -bodyWidth / 2 + padSizeX / 2 + terminalInset : bodyWidth / 2 - padSizeX / 2 - terminalInset;
|
|
3523
3556
|
const pinNumber = i + 1;
|
|
3524
3557
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
3525
3558
|
}
|
|
3559
|
+
if (bodyStyle === "rectangular") {
|
|
3560
|
+
const top = standoff + bodyThickness;
|
|
3561
|
+
const inkThickness = Math.min(bodyThickness, bodyLength10) / 100;
|
|
3562
|
+
const stripe = /* @__PURE__ */ jsx49(
|
|
3563
|
+
Cuboid31,
|
|
3564
|
+
{
|
|
3565
|
+
size: [pin1MarkWidth, bodyLength10 * 0.8, inkThickness],
|
|
3566
|
+
center: [
|
|
3567
|
+
-bodyWidth / 2 + pin1MarkWidth * 1.5,
|
|
3568
|
+
0,
|
|
3569
|
+
top - inkThickness / 2
|
|
3570
|
+
]
|
|
3571
|
+
}
|
|
3572
|
+
);
|
|
3573
|
+
const body = /* @__PURE__ */ jsx49(
|
|
3574
|
+
Cuboid31,
|
|
3575
|
+
{
|
|
3576
|
+
size: [bodyWidth, bodyLength10, bodyThickness],
|
|
3577
|
+
center: [0, 0, standoff + bodyThickness / 2]
|
|
3578
|
+
}
|
|
3579
|
+
);
|
|
3580
|
+
return /* @__PURE__ */ jsxs45(Fragment45, { children: [
|
|
3581
|
+
/* @__PURE__ */ jsx49(Colorize23, { color: "#25272a", children: pin1MarkWidth > 0 ? /* @__PURE__ */ jsxs45(Subtract4, { children: [
|
|
3582
|
+
body,
|
|
3583
|
+
stripe
|
|
3584
|
+
] }) : body }),
|
|
3585
|
+
/* @__PURE__ */ jsx49(Colorize23, { color: "#c7c9cd", children: pinPositions.map(
|
|
3586
|
+
(p) => p.pinNumber === 1 && pin1TerminalChamfer > 0 ? /* @__PURE__ */ jsxs45(Hull18, { children: [
|
|
3587
|
+
/* @__PURE__ */ jsx49(
|
|
3588
|
+
Cuboid31,
|
|
3589
|
+
{
|
|
3590
|
+
size: [
|
|
3591
|
+
padLength - pin1TerminalChamfer,
|
|
3592
|
+
padWidth,
|
|
3593
|
+
terminalThickness
|
|
3594
|
+
],
|
|
3595
|
+
center: [
|
|
3596
|
+
p.x + pin1TerminalChamfer / 2,
|
|
3597
|
+
p.y,
|
|
3598
|
+
terminalThickness / 2
|
|
3599
|
+
]
|
|
3600
|
+
}
|
|
3601
|
+
),
|
|
3602
|
+
/* @__PURE__ */ jsx49(
|
|
3603
|
+
Cuboid31,
|
|
3604
|
+
{
|
|
3605
|
+
size: [
|
|
3606
|
+
padLength,
|
|
3607
|
+
padWidth - 2 * pin1TerminalChamfer,
|
|
3608
|
+
terminalThickness
|
|
3609
|
+
],
|
|
3610
|
+
center: [p.x, p.y, terminalThickness / 2]
|
|
3611
|
+
}
|
|
3612
|
+
)
|
|
3613
|
+
] }, p.pinNumber) : /* @__PURE__ */ jsx49(
|
|
3614
|
+
Cuboid31,
|
|
3615
|
+
{
|
|
3616
|
+
size: [p.padSizeX, p.padSizeY, terminalThickness],
|
|
3617
|
+
center: [p.x, p.y, terminalThickness / 2]
|
|
3618
|
+
},
|
|
3619
|
+
p.pinNumber
|
|
3620
|
+
)
|
|
3621
|
+
) }),
|
|
3622
|
+
thermalPadSize && /* @__PURE__ */ jsx49(
|
|
3623
|
+
Cuboid31,
|
|
3624
|
+
{
|
|
3625
|
+
color: "#c7c9cd",
|
|
3626
|
+
size: [
|
|
3627
|
+
thermalPadSize.width,
|
|
3628
|
+
thermalPadSize.length,
|
|
3629
|
+
thermalPadThickness
|
|
3630
|
+
],
|
|
3631
|
+
center: [0, 0, thermalPadThickness / 2]
|
|
3632
|
+
}
|
|
3633
|
+
),
|
|
3634
|
+
pin1MarkWidth > 0 && /* @__PURE__ */ jsx49(Colorize23, { color: "#969997", children: stripe })
|
|
3635
|
+
] });
|
|
3636
|
+
}
|
|
3526
3637
|
return /* @__PURE__ */ jsxs45(Fragment45, { children: [
|
|
3527
3638
|
/* @__PURE__ */ jsx49(
|
|
3528
3639
|
ChipBody,
|
|
@@ -3565,7 +3676,7 @@ var DFN = ({
|
|
|
3565
3676
|
};
|
|
3566
3677
|
|
|
3567
3678
|
// lib/hc49.tsx
|
|
3568
|
-
import { Colorize as
|
|
3679
|
+
import { Colorize as Colorize24, Cylinder as Cylinder6, Hull as Hull19, RoundedCylinder } from "jscad-fiber";
|
|
3569
3680
|
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3570
3681
|
var HC49 = ({
|
|
3571
3682
|
bodyLength: bodyLength10 = 10.2,
|
|
@@ -3583,8 +3694,8 @@ var HC49 = ({
|
|
|
3583
3694
|
const leadCenterX = leadSpacing / 2;
|
|
3584
3695
|
const baseHeight = 0.85;
|
|
3585
3696
|
return /* @__PURE__ */ jsxs46(Fragment46, { children: [
|
|
3586
|
-
/* @__PURE__ */ jsxs46(
|
|
3587
|
-
/* @__PURE__ */ jsxs46(
|
|
3697
|
+
/* @__PURE__ */ jsxs46(Colorize24, { color, children: [
|
|
3698
|
+
/* @__PURE__ */ jsxs46(Hull19, { children: [
|
|
3588
3699
|
/* @__PURE__ */ jsx50(
|
|
3589
3700
|
RoundedCylinder,
|
|
3590
3701
|
{
|
|
@@ -3604,7 +3715,7 @@ var HC49 = ({
|
|
|
3604
3715
|
}
|
|
3605
3716
|
)
|
|
3606
3717
|
] }),
|
|
3607
|
-
/* @__PURE__ */ jsxs46(
|
|
3718
|
+
/* @__PURE__ */ jsxs46(Hull19, { children: [
|
|
3608
3719
|
/* @__PURE__ */ jsx50(
|
|
3609
3720
|
RoundedCylinder,
|
|
3610
3721
|
{
|
|
@@ -3625,7 +3736,7 @@ var HC49 = ({
|
|
|
3625
3736
|
)
|
|
3626
3737
|
] })
|
|
3627
3738
|
] }),
|
|
3628
|
-
/* @__PURE__ */ jsxs46(
|
|
3739
|
+
/* @__PURE__ */ jsxs46(Colorize24, { color: leadColor, children: [
|
|
3629
3740
|
/* @__PURE__ */ jsx50(
|
|
3630
3741
|
Cylinder6,
|
|
3631
3742
|
{
|
|
@@ -3648,7 +3759,7 @@ var HC49 = ({
|
|
|
3648
3759
|
|
|
3649
3760
|
// lib/MicroMELF.tsx
|
|
3650
3761
|
import {
|
|
3651
|
-
Colorize as
|
|
3762
|
+
Colorize as Colorize25,
|
|
3652
3763
|
Cylinder as Cylinder7,
|
|
3653
3764
|
RoundedCylinder as RoundedCylinder2,
|
|
3654
3765
|
Rotate as Rotate8,
|
|
@@ -3664,7 +3775,7 @@ var MicroMELF = ({
|
|
|
3664
3775
|
}) => {
|
|
3665
3776
|
const padLength = 0.2;
|
|
3666
3777
|
return /* @__PURE__ */ jsxs47(Fragment47, { children: [
|
|
3667
|
-
/* @__PURE__ */ jsx51(
|
|
3778
|
+
/* @__PURE__ */ jsx51(Colorize25, { color, children: /* @__PURE__ */ jsxs47(Rotate8, { rotation: [0, "90deg", 0], children: [
|
|
3668
3779
|
/* @__PURE__ */ jsx51(
|
|
3669
3780
|
RoundedCuboid2,
|
|
3670
3781
|
{
|
|
@@ -3682,7 +3793,7 @@ var MicroMELF = ({
|
|
|
3682
3793
|
}
|
|
3683
3794
|
)
|
|
3684
3795
|
] }) }),
|
|
3685
|
-
/* @__PURE__ */ jsx51(
|
|
3796
|
+
/* @__PURE__ */ jsx51(Colorize25, { color: cathodeIdentification, children: /* @__PURE__ */ jsx51(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx51(
|
|
3686
3797
|
RoundedCuboid2,
|
|
3687
3798
|
{
|
|
3688
3799
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -3690,7 +3801,7 @@ var MicroMELF = ({
|
|
|
3690
3801
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
3691
3802
|
}
|
|
3692
3803
|
) }) }),
|
|
3693
|
-
/* @__PURE__ */ jsx51(
|
|
3804
|
+
/* @__PURE__ */ jsx51(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx51(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx51(
|
|
3694
3805
|
RoundedCylinder2,
|
|
3695
3806
|
{
|
|
3696
3807
|
height: padLength,
|
|
@@ -3699,7 +3810,7 @@ var MicroMELF = ({
|
|
|
3699
3810
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3700
3811
|
}
|
|
3701
3812
|
) }) }),
|
|
3702
|
-
/* @__PURE__ */ jsx51(
|
|
3813
|
+
/* @__PURE__ */ jsx51(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx51(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx51(
|
|
3703
3814
|
RoundedCylinder2,
|
|
3704
3815
|
{
|
|
3705
3816
|
height: padLength,
|
|
@@ -3712,7 +3823,7 @@ var MicroMELF = ({
|
|
|
3712
3823
|
};
|
|
3713
3824
|
|
|
3714
3825
|
// lib/MINIMELF.tsx
|
|
3715
|
-
import { Colorize as
|
|
3826
|
+
import { Colorize as Colorize26, RoundedCylinder as RoundedCylinder3, Rotate as Rotate9 } from "jscad-fiber";
|
|
3716
3827
|
import { Fragment as Fragment48, jsx as jsx52, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3717
3828
|
var MINIMELF = ({
|
|
3718
3829
|
bodyLength: bodyLength10 = 3.5,
|
|
@@ -3722,7 +3833,7 @@ var MINIMELF = ({
|
|
|
3722
3833
|
}) => {
|
|
3723
3834
|
const padLength = 0.5;
|
|
3724
3835
|
return /* @__PURE__ */ jsxs48(Fragment48, { children: [
|
|
3725
|
-
/* @__PURE__ */ jsx52(
|
|
3836
|
+
/* @__PURE__ */ jsx52(Colorize26, { color, children: /* @__PURE__ */ jsx52(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx52(
|
|
3726
3837
|
RoundedCylinder3,
|
|
3727
3838
|
{
|
|
3728
3839
|
height: bodyLength10,
|
|
@@ -3731,7 +3842,7 @@ var MINIMELF = ({
|
|
|
3731
3842
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3732
3843
|
}
|
|
3733
3844
|
) }) }),
|
|
3734
|
-
/* @__PURE__ */ jsx52(
|
|
3845
|
+
/* @__PURE__ */ jsx52(Colorize26, { color: contactColor, children: /* @__PURE__ */ jsx52(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx52(
|
|
3735
3846
|
RoundedCylinder3,
|
|
3736
3847
|
{
|
|
3737
3848
|
height: padLength,
|
|
@@ -3740,7 +3851,7 @@ var MINIMELF = ({
|
|
|
3740
3851
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3741
3852
|
}
|
|
3742
3853
|
) }) }),
|
|
3743
|
-
/* @__PURE__ */ jsx52(
|
|
3854
|
+
/* @__PURE__ */ jsx52(Colorize26, { color: contactColor, children: /* @__PURE__ */ jsx52(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx52(
|
|
3744
3855
|
RoundedCylinder3,
|
|
3745
3856
|
{
|
|
3746
3857
|
height: padLength,
|
|
@@ -3753,7 +3864,7 @@ var MINIMELF = ({
|
|
|
3753
3864
|
};
|
|
3754
3865
|
|
|
3755
3866
|
// lib/MELF.tsx
|
|
3756
|
-
import { Colorize as
|
|
3867
|
+
import { Colorize as Colorize27, RoundedCylinder as RoundedCylinder4, Rotate as Rotate10 } from "jscad-fiber";
|
|
3757
3868
|
import { Fragment as Fragment49, jsx as jsx53, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3758
3869
|
var MELF = ({
|
|
3759
3870
|
bodyLength: bodyLength10 = 3.9,
|
|
@@ -3763,7 +3874,7 @@ var MELF = ({
|
|
|
3763
3874
|
}) => {
|
|
3764
3875
|
const padLength = 0.55;
|
|
3765
3876
|
return /* @__PURE__ */ jsxs49(Fragment49, { children: [
|
|
3766
|
-
/* @__PURE__ */ jsx53(
|
|
3877
|
+
/* @__PURE__ */ jsx53(Colorize27, { color, children: /* @__PURE__ */ jsx53(Rotate10, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx53(
|
|
3767
3878
|
RoundedCylinder4,
|
|
3768
3879
|
{
|
|
3769
3880
|
height: bodyLength10,
|
|
@@ -3772,7 +3883,7 @@ var MELF = ({
|
|
|
3772
3883
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3773
3884
|
}
|
|
3774
3885
|
) }) }),
|
|
3775
|
-
/* @__PURE__ */ jsx53(
|
|
3886
|
+
/* @__PURE__ */ jsx53(Colorize27, { color: contactColor, children: /* @__PURE__ */ jsx53(Rotate10, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx53(
|
|
3776
3887
|
RoundedCylinder4,
|
|
3777
3888
|
{
|
|
3778
3889
|
height: padLength,
|
|
@@ -3781,7 +3892,7 @@ var MELF = ({
|
|
|
3781
3892
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3782
3893
|
}
|
|
3783
3894
|
) }) }),
|
|
3784
|
-
/* @__PURE__ */ jsx53(
|
|
3895
|
+
/* @__PURE__ */ jsx53(Colorize27, { color: contactColor, children: /* @__PURE__ */ jsx53(Rotate10, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx53(
|
|
3785
3896
|
RoundedCylinder4,
|
|
3786
3897
|
{
|
|
3787
3898
|
height: padLength,
|
|
@@ -3933,11 +4044,11 @@ var MS013 = ({
|
|
|
3933
4044
|
|
|
3934
4045
|
// lib/TO220.tsx
|
|
3935
4046
|
import {
|
|
3936
|
-
Colorize as
|
|
4047
|
+
Colorize as Colorize28,
|
|
3937
4048
|
Cuboid as Cuboid34,
|
|
3938
4049
|
Cylinder as Cylinder8,
|
|
3939
4050
|
Rotate as Rotate11,
|
|
3940
|
-
Subtract as
|
|
4051
|
+
Subtract as Subtract5,
|
|
3941
4052
|
Translate as Translate22
|
|
3942
4053
|
} from "jscad-fiber";
|
|
3943
4054
|
import { Fragment as Fragment52, jsx as jsx56, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
@@ -3971,14 +4082,14 @@ var TO220 = ({
|
|
|
3971
4082
|
const leadWidth = 0.8;
|
|
3972
4083
|
const leadThickness = 0.5;
|
|
3973
4084
|
return /* @__PURE__ */ jsxs52(Fragment52, { children: [
|
|
3974
|
-
/* @__PURE__ */ jsx56(
|
|
4085
|
+
/* @__PURE__ */ jsx56(Colorize28, { color: bodyColor, children: /* @__PURE__ */ jsx56(
|
|
3975
4086
|
Cuboid34,
|
|
3976
4087
|
{
|
|
3977
4088
|
size: [bodyWidth, bodyThickness, bodyHeight],
|
|
3978
4089
|
center: [centerX, centerY, bodyBottom + bodyHeight / 2]
|
|
3979
4090
|
}
|
|
3980
4091
|
) }),
|
|
3981
|
-
/* @__PURE__ */ jsx56(
|
|
4092
|
+
/* @__PURE__ */ jsx56(Colorize28, { color: mouldedTab ? bodyColor : tabColor, children: /* @__PURE__ */ jsxs52(Subtract5, { children: [
|
|
3982
4093
|
/* @__PURE__ */ jsx56(
|
|
3983
4094
|
Cuboid34,
|
|
3984
4095
|
{
|
|
@@ -3994,7 +4105,7 @@ var TO220 = ({
|
|
|
3994
4105
|
}
|
|
3995
4106
|
) }) })
|
|
3996
4107
|
] }) }),
|
|
3997
|
-
leads.map((lead) => /* @__PURE__ */ jsx56(
|
|
4108
|
+
leads.map((lead) => /* @__PURE__ */ jsx56(Colorize28, { color: leadColor, children: /* @__PURE__ */ jsx56(
|
|
3998
4109
|
Cuboid34,
|
|
3999
4110
|
{
|
|
4000
4111
|
size: [leadWidth, leadThickness, standoff + leadLength],
|
|
@@ -4203,12 +4314,12 @@ var SOT963 = () => {
|
|
|
4203
4314
|
|
|
4204
4315
|
// lib/TO92.tsx
|
|
4205
4316
|
import {
|
|
4206
|
-
Colorize as
|
|
4317
|
+
Colorize as Colorize29,
|
|
4207
4318
|
Cuboid as Cuboid36,
|
|
4208
|
-
Hull as
|
|
4319
|
+
Hull as Hull20,
|
|
4209
4320
|
Translate as Translate23,
|
|
4210
4321
|
Cylinder as Cylinder9,
|
|
4211
|
-
Subtract as
|
|
4322
|
+
Subtract as Subtract6
|
|
4212
4323
|
} from "jscad-fiber";
|
|
4213
4324
|
import { Fragment as Fragment55, jsx as jsx59, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4214
4325
|
var TO92_DEFAULT_LEADS = [
|
|
@@ -4270,7 +4381,7 @@ var TO92 = ({
|
|
|
4270
4381
|
legThickness
|
|
4271
4382
|
];
|
|
4272
4383
|
return /* @__PURE__ */ jsxs55(Fragment55, { children: [
|
|
4273
|
-
/* @__PURE__ */ jsx59(
|
|
4384
|
+
/* @__PURE__ */ jsx59(Colorize29, { color: bodyColor, children: /* @__PURE__ */ jsxs55(Subtract6, { children: [
|
|
4274
4385
|
/* @__PURE__ */ jsx59(
|
|
4275
4386
|
Translate23,
|
|
4276
4387
|
{
|
|
@@ -4293,7 +4404,7 @@ var TO92 = ({
|
|
|
4293
4404
|
leads.map((lead, index) => {
|
|
4294
4405
|
const exit = exitFor(index);
|
|
4295
4406
|
return /* @__PURE__ */ jsxs55(Translate23, { center: [0, 0, 0], children: [
|
|
4296
|
-
/* @__PURE__ */ jsxs55(
|
|
4407
|
+
/* @__PURE__ */ jsxs55(Hull20, { children: [
|
|
4297
4408
|
/* @__PURE__ */ jsx59(Translate23, { center: [lead.x, lead.y, 0], children: /* @__PURE__ */ jsx59(Cuboid36, { size: leadSize }) }),
|
|
4298
4409
|
/* @__PURE__ */ jsx59(Translate23, { center: [exit.x, exit.y, standoff], children: /* @__PURE__ */ jsx59(Cuboid36, { size: leadSize }) })
|
|
4299
4410
|
] }),
|
|
@@ -4496,7 +4607,7 @@ var SOT886 = () => {
|
|
|
4496
4607
|
};
|
|
4497
4608
|
|
|
4498
4609
|
// lib/sod-323.tsx
|
|
4499
|
-
import { Colorize as
|
|
4610
|
+
import { Colorize as Colorize30, Cuboid as Cuboid38 } from "jscad-fiber";
|
|
4500
4611
|
import { Fragment as Fragment58, jsx as jsx62, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4501
4612
|
var SOD323 = () => {
|
|
4502
4613
|
const fullWidth = 2.5;
|
|
@@ -4543,7 +4654,7 @@ var SOD323 = () => {
|
|
|
4543
4654
|
},
|
|
4544
4655
|
1
|
|
4545
4656
|
),
|
|
4546
|
-
/* @__PURE__ */ jsx62(
|
|
4657
|
+
/* @__PURE__ */ jsx62(Colorize30, { color: "#222", children: /* @__PURE__ */ jsx62(
|
|
4547
4658
|
ChipBody,
|
|
4548
4659
|
{
|
|
4549
4660
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4568,7 +4679,7 @@ var SOD323 = () => {
|
|
|
4568
4679
|
};
|
|
4569
4680
|
|
|
4570
4681
|
// lib/sod-323F.tsx
|
|
4571
|
-
import { Colorize as
|
|
4682
|
+
import { Colorize as Colorize31, Cuboid as Cuboid39, Hull as Hull22, Translate as Translate25, Union as Union17 } from "jscad-fiber";
|
|
4572
4683
|
import { Fragment as Fragment59, jsx as jsx63, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4573
4684
|
var SOD323F = () => {
|
|
4574
4685
|
const fullWidth = 1.7;
|
|
@@ -4598,9 +4709,9 @@ var SOD323F = () => {
|
|
|
4598
4709
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4599
4710
|
}
|
|
4600
4711
|
),
|
|
4601
|
-
/* @__PURE__ */ jsx63(
|
|
4712
|
+
/* @__PURE__ */ jsx63(Colorize31, { color: "#222", children: /* @__PURE__ */ jsxs59(Union17, { children: [
|
|
4602
4713
|
/* @__PURE__ */ jsx63(Translate25, { z: straightHeight / 2, children: /* @__PURE__ */ jsx63(Cuboid39, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
4603
|
-
/* @__PURE__ */ jsxs59(
|
|
4714
|
+
/* @__PURE__ */ jsxs59(Hull22, { children: [
|
|
4604
4715
|
/* @__PURE__ */ jsx63(Translate25, { z: straightHeight, children: /* @__PURE__ */ jsx63(Cuboid39, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
4605
4716
|
/* @__PURE__ */ jsx63(Translate25, { z: bodyHeight, children: /* @__PURE__ */ jsx63(
|
|
4606
4717
|
Cuboid39,
|
|
@@ -4622,7 +4733,7 @@ var SOD323F = () => {
|
|
|
4622
4733
|
};
|
|
4623
4734
|
|
|
4624
4735
|
// lib/sod-323FL.tsx
|
|
4625
|
-
import { Colorize as
|
|
4736
|
+
import { Colorize as Colorize32, Cuboid as Cuboid40 } from "jscad-fiber";
|
|
4626
4737
|
import { Fragment as Fragment60, jsx as jsx64, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
4627
4738
|
var SOD323FL = () => {
|
|
4628
4739
|
const fullWidth = 1.775;
|
|
@@ -4651,7 +4762,7 @@ var SOD323FL = () => {
|
|
|
4651
4762
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4652
4763
|
}
|
|
4653
4764
|
),
|
|
4654
|
-
/* @__PURE__ */ jsx64(
|
|
4765
|
+
/* @__PURE__ */ jsx64(Colorize32, { color: "#222", children: /* @__PURE__ */ jsx64(
|
|
4655
4766
|
ChipBody,
|
|
4656
4767
|
{
|
|
4657
4768
|
width: fullWidth,
|
|
@@ -4676,7 +4787,7 @@ var SOD323FL = () => {
|
|
|
4676
4787
|
};
|
|
4677
4788
|
|
|
4678
4789
|
// lib/AxialCapacitor.tsx
|
|
4679
|
-
import { Colorize as
|
|
4790
|
+
import { Colorize as Colorize33, Cylinder as Cylinder10, Rotate as Rotate12, Sphere as Sphere2, Translate as Translate27 } from "jscad-fiber";
|
|
4680
4791
|
import { Fragment as Fragment61, jsx as jsx65, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
4681
4792
|
var AxialCapacitor = ({ pitch = 10 }) => {
|
|
4682
4793
|
const heightToCenterOfCapacitor = 0.5 + 4 / 2;
|
|
@@ -4698,7 +4809,7 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
4698
4809
|
center: [0, 0, heightToCenterOfCapacitor]
|
|
4699
4810
|
}
|
|
4700
4811
|
),
|
|
4701
|
-
/* @__PURE__ */ jsx65(
|
|
4812
|
+
/* @__PURE__ */ jsx65(Colorize33, { color: "#d2b48c", children: /* @__PURE__ */ jsx65(
|
|
4702
4813
|
Cylinder10,
|
|
4703
4814
|
{
|
|
4704
4815
|
height: 5,
|
|
@@ -4713,7 +4824,7 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
4713
4824
|
};
|
|
4714
4825
|
|
|
4715
4826
|
// lib/stampboard.tsx
|
|
4716
|
-
import { Colorize as
|
|
4827
|
+
import { Colorize as Colorize34, Cuboid as Cuboid41, Cylinder as Cylinder11, Subtract as Subtract7, Union as Union19 } from "jscad-fiber";
|
|
4717
4828
|
import { Fragment as Fragment62, jsx as jsx66, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
4718
4829
|
var StampBoard = ({
|
|
4719
4830
|
bodyWidth = 21,
|
|
@@ -4812,7 +4923,7 @@ var StampBoard = ({
|
|
|
4812
4923
|
}
|
|
4813
4924
|
}
|
|
4814
4925
|
}
|
|
4815
|
-
const boardBody = /* @__PURE__ */ jsx66(
|
|
4926
|
+
const boardBody = /* @__PURE__ */ jsx66(Colorize34, { color: "#051a0a", children: /* @__PURE__ */ jsxs62(Subtract7, { children: [
|
|
4816
4927
|
/* @__PURE__ */ jsx66(
|
|
4817
4928
|
Cuboid41,
|
|
4818
4929
|
{
|
|
@@ -4849,7 +4960,7 @@ var StampBoard = ({
|
|
|
4849
4960
|
));
|
|
4850
4961
|
return /* @__PURE__ */ jsxs62(Fragment62, { children: [
|
|
4851
4962
|
boardBody,
|
|
4852
|
-
/* @__PURE__ */ jsx66(
|
|
4963
|
+
/* @__PURE__ */ jsx66(Colorize34, { color: "#FFD700", children: innerHoles ? /* @__PURE__ */ jsxs62(Subtract7, { children: [
|
|
4853
4964
|
/* @__PURE__ */ jsx66(Union19, { children: pads.map((pad, index) => /* @__PURE__ */ jsx66(
|
|
4854
4965
|
Cuboid41,
|
|
4855
4966
|
{
|
|
@@ -4864,10 +4975,10 @@ var StampBoard = ({
|
|
|
4864
4975
|
};
|
|
4865
4976
|
|
|
4866
4977
|
// lib/MountedPcbModule.tsx
|
|
4867
|
-
import { Colorize as
|
|
4978
|
+
import { Colorize as Colorize36, Cuboid as Cuboid43, Cylinder as Cylinder12, Subtract as Subtract9 } from "jscad-fiber";
|
|
4868
4979
|
|
|
4869
4980
|
// lib/Screen.tsx
|
|
4870
|
-
import { Colorize as
|
|
4981
|
+
import { Colorize as Colorize35, Cuboid as Cuboid42, Subtract as Subtract8, Translate as Translate28 } from "jscad-fiber";
|
|
4871
4982
|
import { jsx as jsx67, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
4872
4983
|
var Screen = ({
|
|
4873
4984
|
width: width10 = 30,
|
|
@@ -4897,14 +5008,14 @@ var Screen = ({
|
|
|
4897
5008
|
const offsetY = offset?.y ?? 0;
|
|
4898
5009
|
const offsetZ = offset?.z ?? 0;
|
|
4899
5010
|
return /* @__PURE__ */ jsxs63(Translate28, { offset: { x: offsetX, y: offsetY, z: offsetZ }, children: [
|
|
4900
|
-
backBlockHeight > 0 && /* @__PURE__ */ jsx67(
|
|
5011
|
+
backBlockHeight > 0 && /* @__PURE__ */ jsx67(Colorize35, { color: bezelColor, children: /* @__PURE__ */ jsx67(
|
|
4901
5012
|
Cuboid42,
|
|
4902
5013
|
{
|
|
4903
5014
|
size: [w, h, backBlockHeight],
|
|
4904
5015
|
offset: [0, 0, backBlockHeight / 2]
|
|
4905
5016
|
}
|
|
4906
5017
|
) }),
|
|
4907
|
-
/* @__PURE__ */ jsx67(
|
|
5018
|
+
/* @__PURE__ */ jsx67(Colorize35, { color: bezelColor, children: /* @__PURE__ */ jsxs63(Subtract8, { children: [
|
|
4908
5019
|
/* @__PURE__ */ jsx67(
|
|
4909
5020
|
Cuboid42,
|
|
4910
5021
|
{
|
|
@@ -4920,7 +5031,7 @@ var Screen = ({
|
|
|
4920
5031
|
}
|
|
4921
5032
|
)
|
|
4922
5033
|
] }) }),
|
|
4923
|
-
/* @__PURE__ */ jsx67(
|
|
5034
|
+
/* @__PURE__ */ jsx67(Colorize35, { color: screenColor, children: /* @__PURE__ */ jsx67(
|
|
4924
5035
|
Cuboid42,
|
|
4925
5036
|
{
|
|
4926
5037
|
size: [innerWidth, innerHeight, screenThickness],
|
|
@@ -5033,7 +5144,7 @@ var MountedPcbModule = ({
|
|
|
5033
5144
|
const shortSidePinLength = 3;
|
|
5034
5145
|
const boardOffsetZ = nopin || female ? 0 : pinBodyHeight;
|
|
5035
5146
|
const boardTopZ = boardOffsetZ + boardThickness;
|
|
5036
|
-
const boardBody = /* @__PURE__ */ jsx68(
|
|
5147
|
+
const boardBody = /* @__PURE__ */ jsx68(Colorize36, { color: "#008080", children: /* @__PURE__ */ jsxs64(Subtract9, { children: [
|
|
5037
5148
|
/* @__PURE__ */ jsx68(
|
|
5038
5149
|
Cuboid43,
|
|
5039
5150
|
{
|
|
@@ -5060,7 +5171,7 @@ var MountedPcbModule = ({
|
|
|
5060
5171
|
`pin-hole-${index}`
|
|
5061
5172
|
))
|
|
5062
5173
|
] }) });
|
|
5063
|
-
const platedHoles = pins.map((pin, index) => /* @__PURE__ */ jsx68(
|
|
5174
|
+
const platedHoles = pins.map((pin, index) => /* @__PURE__ */ jsx68(Colorize36, { color: "#FFD700", children: /* @__PURE__ */ jsxs64(Subtract9, { children: [
|
|
5064
5175
|
/* @__PURE__ */ jsx68(
|
|
5065
5176
|
Cylinder12,
|
|
5066
5177
|
{
|
|
@@ -5121,7 +5232,7 @@ var MountedPcbModule = ({
|
|
|
5121
5232
|
};
|
|
5122
5233
|
|
|
5123
5234
|
// lib/SOD723.tsx
|
|
5124
|
-
import { Colorize as
|
|
5235
|
+
import { Colorize as Colorize37, Cuboid as Cuboid44, Hull as Hull24, Translate as Translate29, Union as Union20 } from "jscad-fiber";
|
|
5125
5236
|
import { Fragment as Fragment64, jsx as jsx69, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5126
5237
|
var SOD723 = () => {
|
|
5127
5238
|
const fullWidth = 1.4;
|
|
@@ -5152,9 +5263,9 @@ var SOD723 = () => {
|
|
|
5152
5263
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
5153
5264
|
}
|
|
5154
5265
|
),
|
|
5155
|
-
/* @__PURE__ */ jsx69(
|
|
5266
|
+
/* @__PURE__ */ jsx69(Colorize37, { color: "#222", children: /* @__PURE__ */ jsxs65(Union20, { children: [
|
|
5156
5267
|
/* @__PURE__ */ jsx69(Translate29, { z: straightHeight / 2, children: /* @__PURE__ */ jsx69(Cuboid44, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
5157
|
-
/* @__PURE__ */ jsxs65(
|
|
5268
|
+
/* @__PURE__ */ jsxs65(Hull24, { children: [
|
|
5158
5269
|
/* @__PURE__ */ jsx69(Translate29, { z: straightHeight, children: /* @__PURE__ */ jsx69(Cuboid44, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
5159
5270
|
/* @__PURE__ */ jsx69(Translate29, { z: bodyHeight, children: /* @__PURE__ */ jsx69(
|
|
5160
5271
|
Cuboid44,
|
|
@@ -5178,11 +5289,11 @@ var SOD723_default = SOD723;
|
|
|
5178
5289
|
|
|
5179
5290
|
// lib/JSTZH1_5mm.tsx
|
|
5180
5291
|
import {
|
|
5181
|
-
Colorize as
|
|
5292
|
+
Colorize as Colorize38,
|
|
5182
5293
|
Cuboid as Cuboid45,
|
|
5183
5294
|
Cylinder as Cylinder13,
|
|
5184
5295
|
Rotate as Rotate13,
|
|
5185
|
-
Subtract as
|
|
5296
|
+
Subtract as Subtract10,
|
|
5186
5297
|
Translate as Translate30
|
|
5187
5298
|
} from "jscad-fiber";
|
|
5188
5299
|
import { Fragment as Fragment65, jsx as jsx70, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
@@ -5202,7 +5313,7 @@ var JSTZH1_5mm = ({
|
|
|
5202
5313
|
const bodyWidth = (numPins - 1) * pitch + 4;
|
|
5203
5314
|
const startX = -((numPins - 1) * pitch) / 2;
|
|
5204
5315
|
return /* @__PURE__ */ jsxs66(Fragment65, { children: [
|
|
5205
|
-
/* @__PURE__ */ jsx70(Translate30, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx70(Rotate13, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx70(
|
|
5316
|
+
/* @__PURE__ */ jsx70(Translate30, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx70(Rotate13, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx70(Colorize38, { color: bodyColor, children: /* @__PURE__ */ jsxs66(Subtract10, { children: [
|
|
5206
5317
|
/* @__PURE__ */ jsx70(
|
|
5207
5318
|
Cuboid45,
|
|
5208
5319
|
{
|
|
@@ -5287,7 +5398,7 @@ var JSTZH1_5mm = ({
|
|
|
5287
5398
|
}
|
|
5288
5399
|
)
|
|
5289
5400
|
] }) }) }) }),
|
|
5290
|
-
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx70(
|
|
5401
|
+
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx70(Colorize38, { color: pinColor, children: /* @__PURE__ */ jsx70(
|
|
5291
5402
|
Cylinder13,
|
|
5292
5403
|
{
|
|
5293
5404
|
height: pinLength,
|
|
@@ -5337,11 +5448,11 @@ var JSTZH1_5mm = ({
|
|
|
5337
5448
|
|
|
5338
5449
|
// lib/JSTPH2_0mm.tsx
|
|
5339
5450
|
import {
|
|
5340
|
-
Colorize as
|
|
5451
|
+
Colorize as Colorize39,
|
|
5341
5452
|
Cuboid as Cuboid46,
|
|
5342
5453
|
Cylinder as Cylinder14,
|
|
5343
5454
|
Rotate as Rotate14,
|
|
5344
|
-
Subtract as
|
|
5455
|
+
Subtract as Subtract11,
|
|
5345
5456
|
Translate as Translate31
|
|
5346
5457
|
} from "jscad-fiber";
|
|
5347
5458
|
import { Fragment as Fragment66, jsx as jsx71, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
@@ -5369,7 +5480,7 @@ var JSTPH2_0mm = ({
|
|
|
5369
5480
|
const topReliefWidth = 0.8;
|
|
5370
5481
|
const topReliefDepth = 0.65;
|
|
5371
5482
|
return /* @__PURE__ */ jsxs67(Fragment66, { children: [
|
|
5372
|
-
/* @__PURE__ */ jsx71(Translate31, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx71(Rotate14, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx71(
|
|
5483
|
+
/* @__PURE__ */ jsx71(Translate31, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx71(Rotate14, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx71(Colorize39, { color: bodyColor, children: /* @__PURE__ */ jsxs67(Subtract11, { children: [
|
|
5373
5484
|
/* @__PURE__ */ jsx71(
|
|
5374
5485
|
Cuboid46,
|
|
5375
5486
|
{
|
|
@@ -5476,7 +5587,7 @@ var JSTPH2_0mm = ({
|
|
|
5476
5587
|
}
|
|
5477
5588
|
) }) })
|
|
5478
5589
|
] }) }) }) }),
|
|
5479
|
-
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx71(
|
|
5590
|
+
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx71(Colorize39, { color: pinColor, children: /* @__PURE__ */ jsx71(
|
|
5480
5591
|
Cuboid46,
|
|
5481
5592
|
{
|
|
5482
5593
|
size: [pinThickness, pinThickness, pinLength],
|
|
@@ -5524,7 +5635,7 @@ var JSTPH2_0mm = ({
|
|
|
5524
5635
|
};
|
|
5525
5636
|
|
|
5526
5637
|
// lib/JSTXH2_5mm.tsx
|
|
5527
|
-
import { Colorize as
|
|
5638
|
+
import { Colorize as Colorize40, Cuboid as Cuboid47, Subtract as Subtract12, Translate as Translate32 } from "jscad-fiber";
|
|
5528
5639
|
import { fp as fp3 } from "@tscircuit/footprinter";
|
|
5529
5640
|
import { Fragment as Fragment67, jsx as jsx72, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
5530
5641
|
var JSTXH2_5mm = ({
|
|
@@ -5555,7 +5666,7 @@ var JSTXH2_5mm = ({
|
|
|
5555
5666
|
);
|
|
5556
5667
|
const lockNotchHeight = 2.4;
|
|
5557
5668
|
return /* @__PURE__ */ jsxs68(Fragment67, { children: [
|
|
5558
|
-
/* @__PURE__ */ jsx72(Translate32, { offset: [0, 0, bodyHeight / 2], children: /* @__PURE__ */ jsx72(
|
|
5669
|
+
/* @__PURE__ */ jsx72(Translate32, { offset: [0, 0, bodyHeight / 2], children: /* @__PURE__ */ jsx72(Colorize40, { color: bodyColor, children: /* @__PURE__ */ jsxs68(Subtract12, { children: [
|
|
5559
5670
|
/* @__PURE__ */ jsx72(Cuboid47, { size: [bodyWidth, bodyDepth, bodyHeight] }),
|
|
5560
5671
|
/* @__PURE__ */ jsx72(Translate32, { offset: [0, 0, (bodyHeight - hollowHeight) / 2 + 0.1], children: /* @__PURE__ */ jsx72(
|
|
5561
5672
|
Cuboid47,
|
|
@@ -5632,7 +5743,7 @@ var JSTXH2_5mm = ({
|
|
|
5632
5743
|
`vent_${i}`
|
|
5633
5744
|
))
|
|
5634
5745
|
] }) }) }),
|
|
5635
|
-
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx72(
|
|
5746
|
+
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx72(Colorize40, { color: pinColor, children: /* @__PURE__ */ jsx72(Translate32, { offset: [startX + i * pitch, 0, pinLength / 2 - 3.4], children: /* @__PURE__ */ jsx72(Cuboid47, { size: [0.64, 0.64, pinLength] }) }) }, i)),
|
|
5636
5747
|
showFootprint && (() => {
|
|
5637
5748
|
try {
|
|
5638
5749
|
const circuitJson = fp3.string(`jst${numPins}_xh`).circuitJson();
|
|
@@ -5657,7 +5768,7 @@ var JSTXH2_5mm = ({
|
|
|
5657
5768
|
// lib/JstSh.tsx
|
|
5658
5769
|
import { fp as fp4 } from "@tscircuit/footprinter";
|
|
5659
5770
|
import { mm } from "@tscircuit/mm";
|
|
5660
|
-
import { Colorize as
|
|
5771
|
+
import { Colorize as Colorize41, Cuboid as Cuboid48, Rotate as Rotate15, Subtract as Subtract13, Union as Union21 } from "jscad-fiber";
|
|
5661
5772
|
import { jsx as jsx73, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
5662
5773
|
function isJstShFootprint(footprint) {
|
|
5663
5774
|
const p = fp4.string(footprint).json();
|
|
@@ -5687,7 +5798,7 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
5687
5798
|
const y = rowY + direction * 1.8, width10 = n + 2, depth = 2.9, height10 = 4.2;
|
|
5688
5799
|
const pinY = y - direction * 0.25;
|
|
5689
5800
|
return /* @__PURE__ */ jsxs69(Rotate15, { rotation: [0, 0, angle], children: [
|
|
5690
|
-
/* @__PURE__ */ jsx73(
|
|
5801
|
+
/* @__PURE__ */ jsx73(Colorize41, { color: "#e4e1d6", children: /* @__PURE__ */ jsxs69(Subtract13, { children: [
|
|
5691
5802
|
/* @__PURE__ */ jsx73(
|
|
5692
5803
|
Cuboid48,
|
|
5693
5804
|
{
|
|
@@ -5723,7 +5834,7 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
5723
5834
|
side
|
|
5724
5835
|
))
|
|
5725
5836
|
] }) }),
|
|
5726
|
-
/* @__PURE__ */ jsxs69(
|
|
5837
|
+
/* @__PURE__ */ jsxs69(Colorize41, { color: "#c6c7c9", children: [
|
|
5727
5838
|
signals.map((pad, i) => {
|
|
5728
5839
|
const tailY = pad.y - direction * pad.height * 0.4;
|
|
5729
5840
|
return /* @__PURE__ */ jsxs69(Union21, { children: [
|
|
@@ -5759,12 +5870,12 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
5759
5870
|
|
|
5760
5871
|
// lib/FPC.tsx
|
|
5761
5872
|
import {
|
|
5762
|
-
Colorize as
|
|
5873
|
+
Colorize as Colorize42,
|
|
5763
5874
|
Cuboid as Cuboid49,
|
|
5764
5875
|
Cylinder as Cylinder15,
|
|
5765
5876
|
Rotate as Rotate16,
|
|
5766
5877
|
RoundedCuboid as RoundedCuboid3,
|
|
5767
|
-
Subtract as
|
|
5878
|
+
Subtract as Subtract14,
|
|
5768
5879
|
Translate as Translate33
|
|
5769
5880
|
} from "jscad-fiber";
|
|
5770
5881
|
import { Fragment as Fragment68, jsx as jsx74, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
@@ -5882,7 +5993,7 @@ var FPC = ({
|
|
|
5882
5993
|
roundRadius: 0.1
|
|
5883
5994
|
}
|
|
5884
5995
|
),
|
|
5885
|
-
/* @__PURE__ */ jsx74(
|
|
5996
|
+
/* @__PURE__ */ jsx74(Colorize42, { color: HOUSING_COLOR, children: /* @__PURE__ */ jsxs70(Subtract14, { children: [
|
|
5886
5997
|
/* @__PURE__ */ jsx74(
|
|
5887
5998
|
RoundedCuboid3,
|
|
5888
5999
|
{
|
|
@@ -6033,7 +6144,7 @@ var FPC = ({
|
|
|
6033
6144
|
};
|
|
6034
6145
|
|
|
6035
6146
|
// lib/SmdPinHeader.tsx
|
|
6036
|
-
import { Colorize as
|
|
6147
|
+
import { Colorize as Colorize43, Cuboid as Cuboid50, Hull as Hull25, Translate as Translate34 } from "jscad-fiber";
|
|
6037
6148
|
import { Fragment as Fragment69, jsx as jsx75, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
6038
6149
|
var SmdPinHeader = ({
|
|
6039
6150
|
numberOfPins,
|
|
@@ -6063,7 +6174,7 @@ var SmdPinHeader = ({
|
|
|
6063
6174
|
center: [0, 0, standoffHeight + bodyHeight / 2]
|
|
6064
6175
|
}
|
|
6065
6176
|
),
|
|
6066
|
-
/* @__PURE__ */ jsxs71(
|
|
6177
|
+
/* @__PURE__ */ jsxs71(Colorize43, { color: "#d4af37", children: [
|
|
6067
6178
|
/* @__PURE__ */ jsx75(
|
|
6068
6179
|
Cuboid50,
|
|
6069
6180
|
{
|
|
@@ -6085,7 +6196,7 @@ var SmdPinHeader = ({
|
|
|
6085
6196
|
center: [0, 0, bodyTop + postBodyLength / 2]
|
|
6086
6197
|
}
|
|
6087
6198
|
),
|
|
6088
|
-
/* @__PURE__ */ jsxs71(
|
|
6199
|
+
/* @__PURE__ */ jsxs71(Hull25, { children: [
|
|
6089
6200
|
/* @__PURE__ */ jsx75(
|
|
6090
6201
|
Cuboid50,
|
|
6091
6202
|
{
|
|
@@ -6231,11 +6342,11 @@ var ParametricChip = ({
|
|
|
6231
6342
|
|
|
6232
6343
|
// lib/Led5050.tsx
|
|
6233
6344
|
import {
|
|
6234
|
-
Colorize as
|
|
6345
|
+
Colorize as Colorize44,
|
|
6235
6346
|
Cuboid as Cuboid52,
|
|
6236
6347
|
Cylinder as Cylinder16,
|
|
6237
6348
|
Rotate as Rotate17,
|
|
6238
|
-
Subtract as
|
|
6349
|
+
Subtract as Subtract15,
|
|
6239
6350
|
Translate as Translate35
|
|
6240
6351
|
} from "jscad-fiber";
|
|
6241
6352
|
import { Fragment as Fragment72, jsx as jsx78, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
@@ -6271,7 +6382,7 @@ var Led5050 = ({
|
|
|
6271
6382
|
`${side}-${y}`
|
|
6272
6383
|
))
|
|
6273
6384
|
),
|
|
6274
|
-
/* @__PURE__ */ jsx78(
|
|
6385
|
+
/* @__PURE__ */ jsx78(Colorize44, { color: bodyColor, children: /* @__PURE__ */ jsxs74(Subtract15, { children: [
|
|
6275
6386
|
/* @__PURE__ */ jsx78(
|
|
6276
6387
|
ChipBody,
|
|
6277
6388
|
{
|
|
@@ -6319,7 +6430,7 @@ var Led5050 = ({
|
|
|
6319
6430
|
};
|
|
6320
6431
|
|
|
6321
6432
|
// lib/Led2835.tsx
|
|
6322
|
-
import { Colorize as
|
|
6433
|
+
import { Colorize as Colorize45, Cuboid as Cuboid53 } from "jscad-fiber";
|
|
6323
6434
|
import { Fragment as Fragment73, jsx as jsx79, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6324
6435
|
var Led2835 = ({
|
|
6325
6436
|
bodyWidth = 3.5,
|
|
@@ -6343,21 +6454,21 @@ var Led2835 = ({
|
|
|
6343
6454
|
[
|
|
6344
6455
|
{ x: pad1X, w: pad1Width, key: "pad-1" },
|
|
6345
6456
|
{ x: pad2X, w: pad2Width, key: "pad-2" }
|
|
6346
|
-
].map(({ x, w, key }) => /* @__PURE__ */ jsx79(
|
|
6457
|
+
].map(({ x, w, key }) => /* @__PURE__ */ jsx79(Colorize45, { color: padColor, children: /* @__PURE__ */ jsx79(
|
|
6347
6458
|
Cuboid53,
|
|
6348
6459
|
{
|
|
6349
6460
|
size: [w, padLength, padThickness],
|
|
6350
6461
|
center: [x, 0, padThickness / 2]
|
|
6351
6462
|
}
|
|
6352
6463
|
) }, key)),
|
|
6353
|
-
/* @__PURE__ */ jsx79(
|
|
6464
|
+
/* @__PURE__ */ jsx79(Colorize45, { color: bodyColor, children: /* @__PURE__ */ jsx79(
|
|
6354
6465
|
Cuboid53,
|
|
6355
6466
|
{
|
|
6356
6467
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
6357
6468
|
center: [bodyCenterX, 0, padThickness + bodyHeight / 2]
|
|
6358
6469
|
}
|
|
6359
6470
|
) }),
|
|
6360
|
-
/* @__PURE__ */ jsx79(
|
|
6471
|
+
/* @__PURE__ */ jsx79(Colorize45, { color, children: /* @__PURE__ */ jsx79(
|
|
6361
6472
|
Cuboid53,
|
|
6362
6473
|
{
|
|
6363
6474
|
size: [lensWidth, lensLength, lensHeight],
|
|
@@ -6373,12 +6484,12 @@ var Led2835 = ({
|
|
|
6373
6484
|
|
|
6374
6485
|
// lib/RJ45.tsx
|
|
6375
6486
|
import {
|
|
6376
|
-
Colorize as
|
|
6487
|
+
Colorize as Colorize46,
|
|
6377
6488
|
Cuboid as Cuboid54,
|
|
6378
6489
|
Cylinder as Cylinder17,
|
|
6379
6490
|
Rotate as Rotate18,
|
|
6380
6491
|
RoundedCuboid as RoundedCuboid4,
|
|
6381
|
-
Subtract as
|
|
6492
|
+
Subtract as Subtract16,
|
|
6382
6493
|
Translate as Translate36
|
|
6383
6494
|
} from "jscad-fiber";
|
|
6384
6495
|
import { Fragment as Fragment74, jsx as jsx80, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
@@ -6440,8 +6551,8 @@ var RJ45 = ({
|
|
|
6440
6551
|
const contactZ = openingCenterZ + openingHeight * 0.18;
|
|
6441
6552
|
const frontLipY = frontY + frontDirection * shellThickness * 0.2;
|
|
6442
6553
|
return /* @__PURE__ */ jsxs76(Fragment74, { children: [
|
|
6443
|
-
/* @__PURE__ */ jsxs76(
|
|
6444
|
-
/* @__PURE__ */ jsxs76(
|
|
6554
|
+
/* @__PURE__ */ jsxs76(Colorize46, { color: shellColor, children: [
|
|
6555
|
+
/* @__PURE__ */ jsxs76(Subtract16, { children: [
|
|
6445
6556
|
/* @__PURE__ */ jsx80(
|
|
6446
6557
|
Cuboid54,
|
|
6447
6558
|
{
|
|
@@ -6493,8 +6604,8 @@ var RJ45 = ({
|
|
|
6493
6604
|
`top-seam:${direction}`
|
|
6494
6605
|
))
|
|
6495
6606
|
] }),
|
|
6496
|
-
/* @__PURE__ */ jsxs76(
|
|
6497
|
-
/* @__PURE__ */ jsxs76(
|
|
6607
|
+
/* @__PURE__ */ jsxs76(Colorize46, { color: housingColor, children: [
|
|
6608
|
+
/* @__PURE__ */ jsxs76(Subtract16, { children: [
|
|
6498
6609
|
/* @__PURE__ */ jsx80(
|
|
6499
6610
|
RoundedCuboid4,
|
|
6500
6611
|
{
|
|
@@ -6548,7 +6659,7 @@ var RJ45 = ({
|
|
|
6548
6659
|
`locator:${direction}`
|
|
6549
6660
|
))
|
|
6550
6661
|
] }),
|
|
6551
|
-
/* @__PURE__ */ jsxs76(
|
|
6662
|
+
/* @__PURE__ */ jsxs76(Colorize46, { color: contactColor, children: [
|
|
6552
6663
|
signalPinPositions.map(({ x, y }, index) => /* @__PURE__ */ jsx80(
|
|
6553
6664
|
Cylinder17,
|
|
6554
6665
|
{
|
|
@@ -6618,7 +6729,7 @@ var RJ45 = ({
|
|
|
6618
6729
|
};
|
|
6619
6730
|
|
|
6620
6731
|
// lib/DPAK.tsx
|
|
6621
|
-
import { Colorize as
|
|
6732
|
+
import { Colorize as Colorize47, Cuboid as Cuboid55, Hull as Hull26 } from "jscad-fiber";
|
|
6622
6733
|
import { Fragment as Fragment75, jsx as jsx81, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
6623
6734
|
var DPAK = ({
|
|
6624
6735
|
bodyWidth = 6.1,
|
|
@@ -6642,14 +6753,14 @@ var DPAK = ({
|
|
|
6642
6753
|
const leadZ = tabThickness / 2;
|
|
6643
6754
|
const leadThickness = 0.4;
|
|
6644
6755
|
return /* @__PURE__ */ jsxs77(Fragment75, { children: [
|
|
6645
|
-
/* @__PURE__ */ jsx81(
|
|
6756
|
+
/* @__PURE__ */ jsx81(Colorize47, { color: tabColor, children: /* @__PURE__ */ jsx81(
|
|
6646
6757
|
Cuboid55,
|
|
6647
6758
|
{
|
|
6648
6759
|
size: [tabWidth, tabLength, tabThickness],
|
|
6649
6760
|
center: [tabCenterX, 0, tabThickness / 2]
|
|
6650
6761
|
}
|
|
6651
6762
|
) }),
|
|
6652
|
-
/* @__PURE__ */ jsx81(
|
|
6763
|
+
/* @__PURE__ */ jsx81(Colorize47, { color, children: /* @__PURE__ */ jsx81(
|
|
6653
6764
|
Cuboid55,
|
|
6654
6765
|
{
|
|
6655
6766
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
@@ -6657,7 +6768,7 @@ var DPAK = ({
|
|
|
6657
6768
|
}
|
|
6658
6769
|
) }),
|
|
6659
6770
|
[-1, 1].map((side) => {
|
|
6660
|
-
return /* @__PURE__ */ jsxs77(
|
|
6771
|
+
return /* @__PURE__ */ jsxs77(Colorize47, { color: leadColor, children: [
|
|
6661
6772
|
/* @__PURE__ */ jsx81(
|
|
6662
6773
|
Cuboid55,
|
|
6663
6774
|
{
|
|
@@ -6669,7 +6780,7 @@ var DPAK = ({
|
|
|
6669
6780
|
]
|
|
6670
6781
|
}
|
|
6671
6782
|
),
|
|
6672
|
-
/* @__PURE__ */ jsxs77(
|
|
6783
|
+
/* @__PURE__ */ jsxs77(Hull26, { children: [
|
|
6673
6784
|
/* @__PURE__ */ jsx81(
|
|
6674
6785
|
Cuboid55,
|
|
6675
6786
|
{
|
|
@@ -6696,11 +6807,11 @@ var DPAK = ({
|
|
|
6696
6807
|
|
|
6697
6808
|
// lib/ElectrolyticCapacitor.tsx
|
|
6698
6809
|
import {
|
|
6699
|
-
Colorize as
|
|
6810
|
+
Colorize as Colorize48,
|
|
6700
6811
|
Cuboid as Cuboid56,
|
|
6701
6812
|
Cylinder as Cylinder18,
|
|
6702
6813
|
RoundedCylinder as RoundedCylinder5,
|
|
6703
|
-
Subtract as
|
|
6814
|
+
Subtract as Subtract17
|
|
6704
6815
|
} from "jscad-fiber";
|
|
6705
6816
|
import { Fragment as Fragment76, jsx as jsx82, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
6706
6817
|
var ElectrolyticCapacitor = ({
|
|
@@ -6721,7 +6832,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6721
6832
|
const grooveWidth = Math.max(diameter * 0.06, 0.2);
|
|
6722
6833
|
const grooveDepth = 0.3;
|
|
6723
6834
|
return /* @__PURE__ */ jsxs78(Fragment76, { children: [
|
|
6724
|
-
/* @__PURE__ */ jsx82(
|
|
6835
|
+
/* @__PURE__ */ jsx82(Colorize48, { color: baseColor, children: /* @__PURE__ */ jsx82(
|
|
6725
6836
|
Cylinder18,
|
|
6726
6837
|
{
|
|
6727
6838
|
radius: radius - 0.05,
|
|
@@ -6729,7 +6840,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6729
6840
|
center: [0, 0, baseHeight / 2]
|
|
6730
6841
|
}
|
|
6731
6842
|
) }),
|
|
6732
|
-
/* @__PURE__ */ jsx82(
|
|
6843
|
+
/* @__PURE__ */ jsx82(Colorize48, { color: sleeveColor, children: /* @__PURE__ */ jsxs78(Subtract17, { children: [
|
|
6733
6844
|
/* @__PURE__ */ jsx82(
|
|
6734
6845
|
RoundedCylinder5,
|
|
6735
6846
|
{
|
|
@@ -6754,7 +6865,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6754
6865
|
}
|
|
6755
6866
|
)
|
|
6756
6867
|
] }) }),
|
|
6757
|
-
[-1, 1].map((side) => /* @__PURE__ */ jsx82(
|
|
6868
|
+
[-1, 1].map((side) => /* @__PURE__ */ jsx82(Colorize48, { color: "#c0c0c0", children: /* @__PURE__ */ jsx82(
|
|
6758
6869
|
Cylinder18,
|
|
6759
6870
|
{
|
|
6760
6871
|
radius: leadDiameter / 2,
|
|
@@ -6766,7 +6877,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6766
6877
|
};
|
|
6767
6878
|
|
|
6768
6879
|
// lib/Potentiometer.tsx
|
|
6769
|
-
import { Colorize as
|
|
6880
|
+
import { Colorize as Colorize49, Cuboid as Cuboid57, Cylinder as Cylinder19, Subtract as Subtract18 } from "jscad-fiber";
|
|
6770
6881
|
import { Fragment as Fragment77, jsx as jsx83, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
6771
6882
|
var Potentiometer = ({
|
|
6772
6883
|
bodyWidth = 5.35,
|
|
@@ -6786,14 +6897,14 @@ var Potentiometer = ({
|
|
|
6786
6897
|
const adjusterZ = bodyHeight + adjusterHeight / 2;
|
|
6787
6898
|
const slotWidth = Math.max(adjusterDiameter * 0.16, 0.3);
|
|
6788
6899
|
return /* @__PURE__ */ jsxs79(Fragment77, { children: [
|
|
6789
|
-
/* @__PURE__ */ jsx83(
|
|
6900
|
+
/* @__PURE__ */ jsx83(Colorize49, { color: bodyColor, children: /* @__PURE__ */ jsx83(
|
|
6790
6901
|
Cuboid57,
|
|
6791
6902
|
{
|
|
6792
6903
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
6793
6904
|
center: [bodyCenterX, 0, bodyHeight / 2]
|
|
6794
6905
|
}
|
|
6795
6906
|
) }),
|
|
6796
|
-
/* @__PURE__ */ jsx83(
|
|
6907
|
+
/* @__PURE__ */ jsx83(Colorize49, { color: adjusterColor, children: /* @__PURE__ */ jsxs79(Subtract18, { children: [
|
|
6797
6908
|
/* @__PURE__ */ jsx83(
|
|
6798
6909
|
Cylinder19,
|
|
6799
6910
|
{
|
|
@@ -6810,7 +6921,7 @@ var Potentiometer = ({
|
|
|
6810
6921
|
}
|
|
6811
6922
|
)
|
|
6812
6923
|
] }) }),
|
|
6813
|
-
shaftHeight > 0 && shaftDiameter > 0 ? /* @__PURE__ */ jsx83(
|
|
6924
|
+
shaftHeight > 0 && shaftDiameter > 0 ? /* @__PURE__ */ jsx83(Colorize49, { color: adjusterColor, children: /* @__PURE__ */ jsx83(
|
|
6814
6925
|
Cylinder19,
|
|
6815
6926
|
{
|
|
6816
6927
|
radius: shaftDiameter / 2,
|
|
@@ -6818,7 +6929,7 @@ var Potentiometer = ({
|
|
|
6818
6929
|
center: [bodyCenterX, 0, bodyHeight + shaftHeight / 2]
|
|
6819
6930
|
}
|
|
6820
6931
|
) }) : null,
|
|
6821
|
-
leads.map((lead) => /* @__PURE__ */ jsx83(
|
|
6932
|
+
leads.map((lead) => /* @__PURE__ */ jsx83(Colorize49, { color: "#c0c0c0", children: /* @__PURE__ */ jsx83(
|
|
6822
6933
|
Cylinder19,
|
|
6823
6934
|
{
|
|
6824
6935
|
radius: leadDiameter / 2,
|
|
@@ -6830,7 +6941,7 @@ var Potentiometer = ({
|
|
|
6830
6941
|
};
|
|
6831
6942
|
|
|
6832
6943
|
// lib/SmdPushButton.tsx
|
|
6833
|
-
import { Colorize as
|
|
6944
|
+
import { Colorize as Colorize50, Cuboid as Cuboid58, Cylinder as Cylinder20 } from "jscad-fiber";
|
|
6834
6945
|
import { Fragment as Fragment78, jsx as jsx84, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
6835
6946
|
var SmdPushButton = ({
|
|
6836
6947
|
bodyWidth = 2.9,
|
|
@@ -6848,14 +6959,14 @@ var SmdPushButton = ({
|
|
|
6848
6959
|
}) => {
|
|
6849
6960
|
const leadThickness = 0.15;
|
|
6850
6961
|
return /* @__PURE__ */ jsxs80(Fragment78, { children: [
|
|
6851
|
-
/* @__PURE__ */ jsx84(
|
|
6962
|
+
/* @__PURE__ */ jsx84(Colorize50, { color: bodyColor, children: /* @__PURE__ */ jsx84(
|
|
6852
6963
|
Cuboid58,
|
|
6853
6964
|
{
|
|
6854
6965
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
6855
6966
|
center: [0, 0, bodyHeight / 2]
|
|
6856
6967
|
}
|
|
6857
6968
|
) }),
|
|
6858
|
-
/* @__PURE__ */ jsx84(
|
|
6969
|
+
/* @__PURE__ */ jsx84(Colorize50, { color: actuatorColor, children: /* @__PURE__ */ jsx84(
|
|
6859
6970
|
Cylinder20,
|
|
6860
6971
|
{
|
|
6861
6972
|
radius: actuatorDiameter / 2,
|
|
@@ -6864,7 +6975,7 @@ var SmdPushButton = ({
|
|
|
6864
6975
|
}
|
|
6865
6976
|
) }),
|
|
6866
6977
|
[-1, 1].flatMap(
|
|
6867
|
-
(sx) => [-1, 1].map((sy) => /* @__PURE__ */ jsx84(
|
|
6978
|
+
(sx) => [-1, 1].map((sy) => /* @__PURE__ */ jsx84(Colorize50, { color: leadColor, children: /* @__PURE__ */ jsx84(
|
|
6868
6979
|
Cuboid58,
|
|
6869
6980
|
{
|
|
6870
6981
|
size: [padWidth, padLength, leadThickness],
|
|
@@ -6881,7 +6992,7 @@ var SmdPushButton = ({
|
|
|
6881
6992
|
|
|
6882
6993
|
// lib/SmdSlideSwitch.tsx
|
|
6883
6994
|
import { fp as fp7 } from "@tscircuit/footprinter";
|
|
6884
|
-
import { Colorize as
|
|
6995
|
+
import { Colorize as Colorize51, Cuboid as Cuboid59, Cylinder as Cylinder21, Rotate as Rotate19, Subtract as Subtract19 } from "jscad-fiber";
|
|
6885
6996
|
import { jsx as jsx85, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
6886
6997
|
var SmdSlideSwitch = ({
|
|
6887
6998
|
footprint = "smdslideswitch7",
|
|
@@ -6901,7 +7012,7 @@ var SmdSlideSwitch = ({
|
|
|
6901
7012
|
const angle = Math.atan2(target[1].y - target[0].y, target[1].x - target[0].x) - Math.atan2(pads[1].y - pads[0].y, pads[1].x - pads[0].x);
|
|
6902
7013
|
const width10 = params.mpx - 0.5, depth = 2.7, height10 = params.mpx > 6 ? 1.5 : 1.4, y = params.mounty;
|
|
6903
7014
|
return /* @__PURE__ */ jsxs81(Rotate19, { rotation: [0, 0, angle], children: [
|
|
6904
|
-
/* @__PURE__ */ jsx85(
|
|
7015
|
+
/* @__PURE__ */ jsx85(Colorize51, { color: "#aeb4ba", children: /* @__PURE__ */ jsxs81(Subtract19, { children: [
|
|
6905
7016
|
/* @__PURE__ */ jsx85(Cuboid59, { size: [width10, depth, height10], center: [0, y, height10 / 2] }),
|
|
6906
7017
|
/* @__PURE__ */ jsx85(
|
|
6907
7018
|
Cuboid59,
|
|
@@ -6912,7 +7023,7 @@ var SmdSlideSwitch = ({
|
|
|
6912
7023
|
),
|
|
6913
7024
|
/* @__PURE__ */ jsx85(Cuboid59, { size: [2.7, 0.5, 0.9], center: [0, y - depth / 2, 0.65] })
|
|
6914
7025
|
] }) }),
|
|
6915
|
-
/* @__PURE__ */ jsxs81(
|
|
7026
|
+
/* @__PURE__ */ jsxs81(Colorize51, { color: "#28292c", children: [
|
|
6916
7027
|
/* @__PURE__ */ jsx85(
|
|
6917
7028
|
Cuboid59,
|
|
6918
7029
|
{
|
|
@@ -6939,7 +7050,7 @@ var SmdSlideSwitch = ({
|
|
|
6939
7050
|
) : null
|
|
6940
7051
|
)
|
|
6941
7052
|
] }),
|
|
6942
|
-
/* @__PURE__ */ jsx85(
|
|
7053
|
+
/* @__PURE__ */ jsx85(Colorize51, { color: "#c6c7c9", children: pads.map((pad, i) => {
|
|
6943
7054
|
const signal = i < pads.length - 4;
|
|
6944
7055
|
const outerY = pad.y + pad.height * 0.4;
|
|
6945
7056
|
const innerY = Math.min(pad.y - pad.height * 0.4, y + depth / 2 - 0.2);
|
|
@@ -6960,7 +7071,7 @@ var SmdSlideSwitch = ({
|
|
|
6960
7071
|
};
|
|
6961
7072
|
|
|
6962
7073
|
// lib/SOT-563.tsx
|
|
6963
|
-
import { Cuboid as Cuboid60, Translate as Translate38, Rotate as Rotate20, Colorize as
|
|
7074
|
+
import { Cuboid as Cuboid60, Translate as Translate38, Rotate as Rotate20, Colorize as Colorize52 } from "jscad-fiber";
|
|
6964
7075
|
import { Fragment as Fragment79, jsx as jsx86, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
6965
7076
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
6966
7077
|
const bodyWidth = 1.2;
|
|
@@ -6972,7 +7083,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
6972
7083
|
const leadSpacing = 0.5;
|
|
6973
7084
|
const bodyZOffset = -0.4;
|
|
6974
7085
|
return /* @__PURE__ */ jsxs82(Fragment79, { children: [
|
|
6975
|
-
/* @__PURE__ */ jsx86(Rotate20, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx86(Translate38, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx86(
|
|
7086
|
+
/* @__PURE__ */ jsx86(Rotate20, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx86(Translate38, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx86(Colorize52, { color: "grey", children: /* @__PURE__ */ jsx86(Cuboid60, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
6976
7087
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
6977
7088
|
// Left lead
|
|
6978
7089
|
/* @__PURE__ */ jsx86(
|
|
@@ -7003,12 +7114,12 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
7003
7114
|
// lib/UsbCMidmount.tsx
|
|
7004
7115
|
import { fp as fp8 } from "@tscircuit/footprinter";
|
|
7005
7116
|
import {
|
|
7006
|
-
Colorize as
|
|
7117
|
+
Colorize as Colorize53,
|
|
7007
7118
|
Cuboid as Cuboid61,
|
|
7008
7119
|
Cylinder as Cylinder22,
|
|
7009
|
-
Hull as
|
|
7120
|
+
Hull as Hull27,
|
|
7010
7121
|
Rotate as Rotate21,
|
|
7011
|
-
Subtract as
|
|
7122
|
+
Subtract as Subtract20,
|
|
7012
7123
|
Translate as Translate39
|
|
7013
7124
|
} from "jscad-fiber";
|
|
7014
7125
|
import { jsx as jsx87, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
@@ -7016,7 +7127,7 @@ var Capsule = ({
|
|
|
7016
7127
|
width: width10,
|
|
7017
7128
|
height: height10,
|
|
7018
7129
|
depth
|
|
7019
|
-
}) => /* @__PURE__ */ jsx87(
|
|
7130
|
+
}) => /* @__PURE__ */ jsx87(Hull27, { children: [-1, 1].map((side) => /* @__PURE__ */ jsx87(Translate39, { offset: [side * (width10 - height10) / 2, 0, 0], children: /* @__PURE__ */ jsx87(Rotate21, { rotation: [Math.PI / 2, 0, 0], children: /* @__PURE__ */ jsx87(Cylinder22, { radius: height10 / 2, height: depth }) }) }, side)) });
|
|
7020
7131
|
var UsbCMidmount = ({
|
|
7021
7132
|
footprint = "usbcmidmount16"
|
|
7022
7133
|
}) => {
|
|
@@ -7040,7 +7151,7 @@ var UsbCMidmount = ({
|
|
|
7040
7151
|
);
|
|
7041
7152
|
const tabBottom = -0.9, tabTop = centerZ + 0.1;
|
|
7042
7153
|
return /* @__PURE__ */ jsxs83(Rotate21, { rotation: [0, 0, angle], children: [
|
|
7043
|
-
/* @__PURE__ */ jsx87(
|
|
7154
|
+
/* @__PURE__ */ jsx87(Colorize53, { color: "#b8bdc4", children: /* @__PURE__ */ jsx87(Translate39, { offset: [0, centerY, centerZ], children: /* @__PURE__ */ jsxs83(Subtract20, { children: [
|
|
7044
7155
|
/* @__PURE__ */ jsx87(Capsule, { width: width10, height: height10, depth }),
|
|
7045
7156
|
/* @__PURE__ */ jsx87(
|
|
7046
7157
|
Capsule,
|
|
@@ -7051,7 +7162,7 @@ var UsbCMidmount = ({
|
|
|
7051
7162
|
}
|
|
7052
7163
|
)
|
|
7053
7164
|
] }) }) }),
|
|
7054
|
-
/* @__PURE__ */ jsxs83(
|
|
7165
|
+
/* @__PURE__ */ jsxs83(Colorize53, { color: "#242529", children: [
|
|
7055
7166
|
/* @__PURE__ */ jsx87(
|
|
7056
7167
|
Cuboid61,
|
|
7057
7168
|
{
|
|
@@ -7072,7 +7183,7 @@ var UsbCMidmount = ({
|
|
|
7072
7183
|
) : null
|
|
7073
7184
|
)
|
|
7074
7185
|
] }),
|
|
7075
|
-
/* @__PURE__ */ jsxs83(
|
|
7186
|
+
/* @__PURE__ */ jsxs83(Colorize53, { color: "#d3ad57", children: [
|
|
7076
7187
|
[-1, 1].flatMap(
|
|
7077
7188
|
(side) => [-2.75, -2.25, -1.25, -0.25, 0.25, 1.25, 2.25, 2.75].map((x) => /* @__PURE__ */ jsx87(
|
|
7078
7189
|
Cuboid61,
|
|
@@ -7096,7 +7207,7 @@ var UsbCMidmount = ({
|
|
|
7096
7207
|
i
|
|
7097
7208
|
))
|
|
7098
7209
|
] }),
|
|
7099
|
-
/* @__PURE__ */ jsx87(
|
|
7210
|
+
/* @__PURE__ */ jsx87(Colorize53, { color: "#b8bdc4", children: slots.map((slot, i) => /* @__PURE__ */ jsx87(
|
|
7100
7211
|
Cuboid61,
|
|
7101
7212
|
{
|
|
7102
7213
|
size: [
|
|
@@ -7167,7 +7278,7 @@ var SOT143 = ({ footprint = "sot143" }) => {
|
|
|
7167
7278
|
};
|
|
7168
7279
|
|
|
7169
7280
|
// lib/FlexScreen.tsx
|
|
7170
|
-
import { Colorize as
|
|
7281
|
+
import { Colorize as Colorize54, Rotate as Rotate23, RoundedCuboid as RoundedCuboid5, Translate as Translate40 } from "jscad-fiber";
|
|
7171
7282
|
import { Fragment as Fragment80 } from "react";
|
|
7172
7283
|
import { Fragment as Fragment81, jsx as jsx89, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
7173
7284
|
var DEFAULT_ASPECT_RATIO = 16 / 9;
|
|
@@ -7399,7 +7510,7 @@ var CableStrip = ({
|
|
|
7399
7510
|
acrossOffset = 0,
|
|
7400
7511
|
normalOffset = 0,
|
|
7401
7512
|
overlap = 0.03
|
|
7402
|
-
}) => /* @__PURE__ */ jsx89(
|
|
7513
|
+
}) => /* @__PURE__ */ jsx89(Colorize54, { color, children: points.slice(1).map((point, index) => {
|
|
7403
7514
|
const previous = points[index];
|
|
7404
7515
|
const dx = point[0] - previous[0];
|
|
7405
7516
|
const dy = point[1] - previous[1];
|
|
@@ -8376,7 +8487,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
8376
8487
|
|
|
8377
8488
|
// lib/TantalumCapacitor.tsx
|
|
8378
8489
|
import { fp as fp11 } from "@tscircuit/footprinter";
|
|
8379
|
-
import { Colorize as
|
|
8490
|
+
import { Colorize as Colorize55, Cuboid as Cuboid63, Hull as Hull28, Rotate as Rotate25, Translate as Translate42, Union as Union22 } from "jscad-fiber";
|
|
8380
8491
|
import { jsx as jsx91, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8381
8492
|
var tantalumCases = {
|
|
8382
8493
|
A: [3.2, 1.6, 1.6, 1.2, 0.8],
|
|
@@ -8398,7 +8509,7 @@ var TantalumCapacitor = ({
|
|
|
8398
8509
|
const [a, b] = pads;
|
|
8399
8510
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
8400
8511
|
return /* @__PURE__ */ jsx91(Translate42, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, 0], children: /* @__PURE__ */ jsxs86(Rotate25, { rotation: [0, 0, angle], children: [
|
|
8401
|
-
/* @__PURE__ */ jsx91(
|
|
8512
|
+
/* @__PURE__ */ jsx91(Colorize55, { color: "#d5a64e", children: /* @__PURE__ */ jsxs86(Hull28, { children: [
|
|
8402
8513
|
/* @__PURE__ */ jsx91(Cuboid63, { size: [length - 0.1, width10, 0.02], center: [0, 0, 0.21] }),
|
|
8403
8514
|
/* @__PURE__ */ jsx91(
|
|
8404
8515
|
Cuboid63,
|
|
@@ -8408,7 +8519,7 @@ var TantalumCapacitor = ({
|
|
|
8408
8519
|
}
|
|
8409
8520
|
)
|
|
8410
8521
|
] }) }),
|
|
8411
|
-
/* @__PURE__ */ jsx91(
|
|
8522
|
+
/* @__PURE__ */ jsx91(Colorize55, { color: "#c5c8cb", children: [-1, 1].map((side) => /* @__PURE__ */ jsxs86(Union22, { children: [
|
|
8412
8523
|
/* @__PURE__ */ jsx91(
|
|
8413
8524
|
Cuboid63,
|
|
8414
8525
|
{
|
|
@@ -8437,7 +8548,7 @@ var TantalumCapacitor = ({
|
|
|
8437
8548
|
|
|
8438
8549
|
// lib/TwoPadCrystal.tsx
|
|
8439
8550
|
import { fp as fp12 } from "@tscircuit/footprinter";
|
|
8440
|
-
import { Colorize as
|
|
8551
|
+
import { Colorize as Colorize56, Cuboid as Cuboid64, RoundedCuboid as RoundedCuboid6, Rotate as Rotate26, Translate as Translate43 } from "jscad-fiber";
|
|
8441
8552
|
import { jsx as jsx92, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8442
8553
|
var twoPadCrystalPackages = {
|
|
8443
8554
|
FC135: [3.2, 1.5, 0.9, 0.7],
|
|
@@ -8459,8 +8570,8 @@ var TwoPadCrystal = ({
|
|
|
8459
8570
|
const [a, b] = pads;
|
|
8460
8571
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
8461
8572
|
return /* @__PURE__ */ jsx92(Translate43, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, 0], children: /* @__PURE__ */ jsxs87(Rotate26, { rotation: [0, 0, angle], children: [
|
|
8462
|
-
/* @__PURE__ */ jsx92(
|
|
8463
|
-
/* @__PURE__ */ jsx92(
|
|
8573
|
+
/* @__PURE__ */ jsx92(Colorize56, { color: "#e0dcca", children: /* @__PURE__ */ jsx92(Cuboid64, { size: [length, width10, 0.2], center: [0, 0, 0.13] }) }),
|
|
8574
|
+
/* @__PURE__ */ jsx92(Colorize56, { color: "#acb1b8", children: /* @__PURE__ */ jsx92(
|
|
8464
8575
|
RoundedCuboid6,
|
|
8465
8576
|
{
|
|
8466
8577
|
size: [length - 0.04, width10 - 0.04, height10 - 0.18],
|
|
@@ -8468,7 +8579,7 @@ var TwoPadCrystal = ({
|
|
|
8468
8579
|
center: [0, 0, (height10 + 0.18) / 2]
|
|
8469
8580
|
}
|
|
8470
8581
|
) }),
|
|
8471
|
-
/* @__PURE__ */ jsx92(
|
|
8582
|
+
/* @__PURE__ */ jsx92(Colorize56, { color: "#c6af65", children: [-1, 1].map((side) => /* @__PURE__ */ jsx92(
|
|
8472
8583
|
Cuboid64,
|
|
8473
8584
|
{
|
|
8474
8585
|
size: [terminalLength, width10 - 0.12, 0.06],
|
|
@@ -8481,7 +8592,7 @@ var TwoPadCrystal = ({
|
|
|
8481
8592
|
|
|
8482
8593
|
// lib/CeramicChipAntenna.tsx
|
|
8483
8594
|
import { fp as fp13 } from "@tscircuit/footprinter";
|
|
8484
|
-
import { Colorize as
|
|
8595
|
+
import { Colorize as Colorize57, Cuboid as Cuboid65, Rotate as Rotate27, Translate as Translate44 } from "jscad-fiber";
|
|
8485
8596
|
import { jsx as jsx93, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
8486
8597
|
var CeramicChipAntenna = ({
|
|
8487
8598
|
footprint = "smdpads2_p5.4mm_pw1mm_ph2mm"
|
|
@@ -8501,7 +8612,7 @@ var CeramicChipAntenna = ({
|
|
|
8501
8612
|
color: "#4053a3"
|
|
8502
8613
|
}
|
|
8503
8614
|
),
|
|
8504
|
-
/* @__PURE__ */ jsx93(
|
|
8615
|
+
/* @__PURE__ */ jsx93(Colorize57, { color: "#c2c4c7", children: [-1, 1].map((side) => /* @__PURE__ */ jsx93(
|
|
8505
8616
|
Cuboid65,
|
|
8506
8617
|
{
|
|
8507
8618
|
size: [0.4, 2, 1.15],
|
|
@@ -8523,7 +8634,7 @@ var CeramicChipAntenna = ({
|
|
|
8523
8634
|
|
|
8524
8635
|
// lib/MelfResistor.tsx
|
|
8525
8636
|
import { fp as fp14 } from "@tscircuit/footprinter";
|
|
8526
|
-
import { Colorize as
|
|
8637
|
+
import { Colorize as Colorize58, Cylinder as Cylinder23, Rotate as Rotate28, Translate as Translate45 } from "jscad-fiber";
|
|
8527
8638
|
import { jsx as jsx94, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
8528
8639
|
var melfResistorSizes = {
|
|
8529
8640
|
"0102": [2.2, 1.1, 0.4],
|
|
@@ -8544,14 +8655,14 @@ var MelfResistor = ({
|
|
|
8544
8655
|
const [a, b] = pads;
|
|
8545
8656
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
8546
8657
|
return /* @__PURE__ */ jsx94(Translate45, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, diameter / 2], children: /* @__PURE__ */ jsx94(Rotate28, { rotation: [0, 0, angle], children: /* @__PURE__ */ jsxs89(Rotate28, { rotation: [0, Math.PI / 2, 0], children: [
|
|
8547
|
-
/* @__PURE__ */ jsx94(
|
|
8658
|
+
/* @__PURE__ */ jsx94(Colorize58, { color: "#426d63", children: /* @__PURE__ */ jsx94(
|
|
8548
8659
|
Cylinder23,
|
|
8549
8660
|
{
|
|
8550
8661
|
radius: (diameter - 0.08) / 2,
|
|
8551
8662
|
height: length - 2 * capLength + 0.04
|
|
8552
8663
|
}
|
|
8553
8664
|
) }),
|
|
8554
|
-
/* @__PURE__ */ jsx94(
|
|
8665
|
+
/* @__PURE__ */ jsx94(Colorize58, { color: "#c6c8cb", children: [-1, 1].map((side) => /* @__PURE__ */ jsx94(
|
|
8555
8666
|
Cylinder23,
|
|
8556
8667
|
{
|
|
8557
8668
|
radius: diameter / 2,
|