jscad-electronics 0.0.157 → 0.0.158
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.js +64 -59
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +4 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -605,6 +605,7 @@ import { fp as fp2 } from "@tscircuit/footprinter";
|
|
|
605
605
|
import {
|
|
606
606
|
Colorize as Colorize4,
|
|
607
607
|
Cuboid as Cuboid12,
|
|
608
|
+
Cylinder as Cylinder3,
|
|
608
609
|
ExtrudeLinear as ExtrudeLinear2,
|
|
609
610
|
Polygon as Polygon2,
|
|
610
611
|
Translate as Translate4
|
|
@@ -619,6 +620,10 @@ var FootprintPad = ({
|
|
|
619
620
|
if (pad.shape === "rect") {
|
|
620
621
|
return /* @__PURE__ */ jsx13(Colorize4, { color, children: /* @__PURE__ */ jsx13(Translate4, { offset: [pad.x, pad.y, -5e-3], children: /* @__PURE__ */ jsx13(Cuboid12, { size: [pad.width, pad.height, PAD_THICKNESS] }) }) });
|
|
621
622
|
}
|
|
623
|
+
if (pad.shape === "circle") {
|
|
624
|
+
const radius = pad.radius ?? pad.r ?? 0.25;
|
|
625
|
+
return /* @__PURE__ */ jsx13(Colorize4, { color, children: /* @__PURE__ */ jsx13(Translate4, { offset: [pad.x, pad.y, -5e-3], children: /* @__PURE__ */ jsx13(Cylinder3, { radius, height: PAD_THICKNESS }) }) });
|
|
626
|
+
}
|
|
622
627
|
if (pad.shape === "polygon") {
|
|
623
628
|
const points = (pad.points ?? []).map(
|
|
624
629
|
({ x, y }) => [x, y]
|
|
@@ -634,7 +639,7 @@ import {
|
|
|
634
639
|
Colorize as Colorize5,
|
|
635
640
|
Cuboid as Cuboid13,
|
|
636
641
|
Translate as Translate5,
|
|
637
|
-
Cylinder as
|
|
642
|
+
Cylinder as Cylinder4,
|
|
638
643
|
Subtract as Subtract2,
|
|
639
644
|
Hull as Hull3
|
|
640
645
|
} from "jscad-fiber";
|
|
@@ -646,8 +651,8 @@ var FootprintPlatedHole = ({
|
|
|
646
651
|
const color = isPin1 ? "#00ff00" : "#b87333";
|
|
647
652
|
if (hole.shape === "circle") {
|
|
648
653
|
return /* @__PURE__ */ jsx14(Colorize5, { color, children: /* @__PURE__ */ jsx14(Translate5, { offset: [hole.x, hole.y, -5e-3], children: /* @__PURE__ */ jsxs13(Subtract2, { children: [
|
|
649
|
-
/* @__PURE__ */ jsx14(
|
|
650
|
-
/* @__PURE__ */ jsx14(
|
|
654
|
+
/* @__PURE__ */ jsx14(Cylinder4, { radius: hole.outer_diameter / 2, height: 0.01 }),
|
|
655
|
+
/* @__PURE__ */ jsx14(Cylinder4, { radius: hole.hole_diameter / 2, height: 0.01 })
|
|
651
656
|
] }) }) });
|
|
652
657
|
}
|
|
653
658
|
if (hole.shape === "circular_hole_with_rect_pad") {
|
|
@@ -659,7 +664,7 @@ var FootprintPlatedHole = ({
|
|
|
659
664
|
center: [0, 0, 0]
|
|
660
665
|
}
|
|
661
666
|
),
|
|
662
|
-
/* @__PURE__ */ jsx14(
|
|
667
|
+
/* @__PURE__ */ jsx14(Cylinder4, { radius: hole.hole_diameter / 2, height: 0.01 })
|
|
663
668
|
] }) }) });
|
|
664
669
|
}
|
|
665
670
|
if (hole.shape === "pill") {
|
|
@@ -672,7 +677,7 @@ var FootprintPlatedHole = ({
|
|
|
672
677
|
return /* @__PURE__ */ jsx14(Colorize5, { color, children: /* @__PURE__ */ jsx14(Translate5, { offset: [hole.x, hole.y, 0], children: /* @__PURE__ */ jsxs13(Subtract2, { children: [
|
|
673
678
|
/* @__PURE__ */ jsxs13(Hull3, { children: [
|
|
674
679
|
/* @__PURE__ */ jsx14(
|
|
675
|
-
|
|
680
|
+
Cylinder4,
|
|
676
681
|
{
|
|
677
682
|
radius,
|
|
678
683
|
height: 0.01,
|
|
@@ -684,7 +689,7 @@ var FootprintPlatedHole = ({
|
|
|
684
689
|
}
|
|
685
690
|
),
|
|
686
691
|
/* @__PURE__ */ jsx14(
|
|
687
|
-
|
|
692
|
+
Cylinder4,
|
|
688
693
|
{
|
|
689
694
|
radius,
|
|
690
695
|
height: 0.01,
|
|
@@ -696,9 +701,9 @@ var FootprintPlatedHole = ({
|
|
|
696
701
|
}
|
|
697
702
|
)
|
|
698
703
|
] }),
|
|
699
|
-
holeWidth === holeHeight ? /* @__PURE__ */ jsx14(
|
|
704
|
+
holeWidth === holeHeight ? /* @__PURE__ */ jsx14(Cylinder4, { radius: holeWidth / 2, height: 0.01 }) : /* @__PURE__ */ jsxs13(Hull3, { children: [
|
|
700
705
|
/* @__PURE__ */ jsx14(
|
|
701
|
-
|
|
706
|
+
Cylinder4,
|
|
702
707
|
{
|
|
703
708
|
radius: Math.min(holeWidth, holeHeight) / 2,
|
|
704
709
|
height: 0.01,
|
|
@@ -710,7 +715,7 @@ var FootprintPlatedHole = ({
|
|
|
710
715
|
}
|
|
711
716
|
),
|
|
712
717
|
/* @__PURE__ */ jsx14(
|
|
713
|
-
|
|
718
|
+
Cylinder4,
|
|
714
719
|
{
|
|
715
720
|
radius: Math.min(holeWidth, holeHeight) / 2,
|
|
716
721
|
height: 0.01,
|
|
@@ -1947,7 +1952,7 @@ var FemaleHeaderRow = ({
|
|
|
1947
1952
|
// lib/PushButton.tsx
|
|
1948
1953
|
import {
|
|
1949
1954
|
Colorize as Colorize10,
|
|
1950
|
-
Cylinder as
|
|
1955
|
+
Cylinder as Cylinder5,
|
|
1951
1956
|
ExtrudeLinear as ExtrudeLinear5,
|
|
1952
1957
|
Polygon as Polygon5,
|
|
1953
1958
|
Rotate as Rotate6,
|
|
@@ -1984,7 +1989,7 @@ var PushButton = ({
|
|
|
1984
1989
|
}
|
|
1985
1990
|
),
|
|
1986
1991
|
/* @__PURE__ */ jsx29(
|
|
1987
|
-
|
|
1992
|
+
Cylinder5,
|
|
1988
1993
|
{
|
|
1989
1994
|
color: "#1a1a1f",
|
|
1990
1995
|
height: bodyHeight * 0.8,
|
|
@@ -1993,7 +1998,7 @@ var PushButton = ({
|
|
|
1993
1998
|
}
|
|
1994
1999
|
),
|
|
1995
2000
|
/* @__PURE__ */ jsx29(
|
|
1996
|
-
|
|
2001
|
+
Cylinder5,
|
|
1997
2002
|
{
|
|
1998
2003
|
color: "#1a1a1f",
|
|
1999
2004
|
height: bodyHeight * 0.2,
|
|
@@ -2006,7 +2011,7 @@ var PushButton = ({
|
|
|
2006
2011
|
}
|
|
2007
2012
|
),
|
|
2008
2013
|
/* @__PURE__ */ jsx29(
|
|
2009
|
-
|
|
2014
|
+
Cylinder5,
|
|
2010
2015
|
{
|
|
2011
2016
|
color: "#1a1a1f",
|
|
2012
2017
|
height: bodyHeight * 0.2,
|
|
@@ -2019,7 +2024,7 @@ var PushButton = ({
|
|
|
2019
2024
|
}
|
|
2020
2025
|
),
|
|
2021
2026
|
/* @__PURE__ */ jsx29(
|
|
2022
|
-
|
|
2027
|
+
Cylinder5,
|
|
2023
2028
|
{
|
|
2024
2029
|
color: "#1a1a1f",
|
|
2025
2030
|
height: bodyHeight * 0.2,
|
|
@@ -2032,7 +2037,7 @@ var PushButton = ({
|
|
|
2032
2037
|
}
|
|
2033
2038
|
),
|
|
2034
2039
|
/* @__PURE__ */ jsx29(
|
|
2035
|
-
|
|
2040
|
+
Cylinder5,
|
|
2036
2041
|
{
|
|
2037
2042
|
color: "#1a1a1f",
|
|
2038
2043
|
height: bodyHeight * 0.2,
|
|
@@ -3549,7 +3554,7 @@ var DFN = ({
|
|
|
3549
3554
|
};
|
|
3550
3555
|
|
|
3551
3556
|
// lib/hc49.tsx
|
|
3552
|
-
import { Colorize as Colorize23, Cylinder as
|
|
3557
|
+
import { Colorize as Colorize23, Cylinder as Cylinder6, Hull as Hull18, RoundedCylinder } from "jscad-fiber";
|
|
3553
3558
|
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3554
3559
|
var HC49 = ({
|
|
3555
3560
|
bodyLength: bodyLength10 = 10.2,
|
|
@@ -3611,7 +3616,7 @@ var HC49 = ({
|
|
|
3611
3616
|
] }),
|
|
3612
3617
|
/* @__PURE__ */ jsxs46(Colorize23, { color: leadColor, children: [
|
|
3613
3618
|
/* @__PURE__ */ jsx50(
|
|
3614
|
-
|
|
3619
|
+
Cylinder6,
|
|
3615
3620
|
{
|
|
3616
3621
|
height: leadLength + bodyHeight / 2,
|
|
3617
3622
|
radius: leadDiameter / 2,
|
|
@@ -3619,7 +3624,7 @@ var HC49 = ({
|
|
|
3619
3624
|
}
|
|
3620
3625
|
),
|
|
3621
3626
|
/* @__PURE__ */ jsx50(
|
|
3622
|
-
|
|
3627
|
+
Cylinder6,
|
|
3623
3628
|
{
|
|
3624
3629
|
height: leadLength + bodyHeight / 2,
|
|
3625
3630
|
radius: leadDiameter / 2,
|
|
@@ -3633,7 +3638,7 @@ var HC49 = ({
|
|
|
3633
3638
|
// lib/MicroMELF.tsx
|
|
3634
3639
|
import {
|
|
3635
3640
|
Colorize as Colorize24,
|
|
3636
|
-
Cylinder as
|
|
3641
|
+
Cylinder as Cylinder7,
|
|
3637
3642
|
RoundedCylinder as RoundedCylinder2,
|
|
3638
3643
|
Rotate as Rotate7,
|
|
3639
3644
|
RoundedCuboid as RoundedCuboid2
|
|
@@ -3658,7 +3663,7 @@ var MicroMELF = ({
|
|
|
3658
3663
|
}
|
|
3659
3664
|
),
|
|
3660
3665
|
/* @__PURE__ */ jsx51(
|
|
3661
|
-
|
|
3666
|
+
Cylinder7,
|
|
3662
3667
|
{
|
|
3663
3668
|
height: padLength / 2,
|
|
3664
3669
|
radius: bodyDiameter / 2 - padLength,
|
|
@@ -3919,7 +3924,7 @@ var MS013 = ({
|
|
|
3919
3924
|
import {
|
|
3920
3925
|
Colorize as Colorize27,
|
|
3921
3926
|
Cuboid as Cuboid34,
|
|
3922
|
-
Cylinder as
|
|
3927
|
+
Cylinder as Cylinder8,
|
|
3923
3928
|
Rotate as Rotate10,
|
|
3924
3929
|
Subtract as Subtract4,
|
|
3925
3930
|
Translate as Translate22
|
|
@@ -3971,7 +3976,7 @@ var TO220 = ({
|
|
|
3971
3976
|
}
|
|
3972
3977
|
),
|
|
3973
3978
|
/* @__PURE__ */ jsx56(Rotate10, { rotation: ["90deg", 0, 0], children: /* @__PURE__ */ jsx56(Translate22, { center: [centerX, holeZ, -tabY], children: /* @__PURE__ */ jsx56(
|
|
3974
|
-
|
|
3979
|
+
Cylinder8,
|
|
3975
3980
|
{
|
|
3976
3981
|
radius: mountingHoleDiameter / 2,
|
|
3977
3982
|
height: tabThickness * 3
|
|
@@ -4191,7 +4196,7 @@ import {
|
|
|
4191
4196
|
Cuboid as Cuboid36,
|
|
4192
4197
|
Hull as Hull19,
|
|
4193
4198
|
Translate as Translate23,
|
|
4194
|
-
Cylinder as
|
|
4199
|
+
Cylinder as Cylinder9,
|
|
4195
4200
|
Subtract as Subtract5
|
|
4196
4201
|
} from "jscad-fiber";
|
|
4197
4202
|
import { Fragment as Fragment55, jsx as jsx59, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
@@ -4259,7 +4264,7 @@ var TO92 = ({
|
|
|
4259
4264
|
Translate23,
|
|
4260
4265
|
{
|
|
4261
4266
|
center: [bodyCenter.x, bodyCenter.y, standoff + bodyHeight / 2],
|
|
4262
|
-
children: /* @__PURE__ */ jsx59(
|
|
4267
|
+
children: /* @__PURE__ */ jsx59(Cylinder9, { radius: bodyRadius, height: bodyHeight })
|
|
4263
4268
|
}
|
|
4264
4269
|
),
|
|
4265
4270
|
/* @__PURE__ */ jsx59(
|
|
@@ -4660,12 +4665,12 @@ var SOD323FL = () => {
|
|
|
4660
4665
|
};
|
|
4661
4666
|
|
|
4662
4667
|
// lib/AxialCapacitor.tsx
|
|
4663
|
-
import { Colorize as Colorize32, Cylinder as
|
|
4668
|
+
import { Colorize as Colorize32, Cylinder as Cylinder10, Rotate as Rotate11, Sphere as Sphere2, Translate as Translate27 } from "jscad-fiber";
|
|
4664
4669
|
import { Fragment as Fragment61, jsx as jsx65, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
4665
4670
|
var AxialCapacitor = ({ pitch = 10 }) => {
|
|
4666
4671
|
const heightToCenterOfCapacitor = 0.5 + 4 / 2;
|
|
4667
4672
|
return /* @__PURE__ */ jsxs61(Fragment61, { children: [
|
|
4668
|
-
/* @__PURE__ */ jsx65(
|
|
4673
|
+
/* @__PURE__ */ jsx65(Cylinder10, { height: 4, radius: 0.5, center: [-pitch / 2, 0, 0.5] }),
|
|
4669
4674
|
/* @__PURE__ */ jsx65(
|
|
4670
4675
|
Sphere2,
|
|
4671
4676
|
{
|
|
@@ -4675,7 +4680,7 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
4675
4680
|
),
|
|
4676
4681
|
/* @__PURE__ */ jsx65(Translate27, { x: -2.5, y: 0, z: heightToCenterOfCapacitor, children: /* @__PURE__ */ jsxs61(Rotate11, { rotation: [0, Math.PI / 2, 0], children: [
|
|
4677
4682
|
/* @__PURE__ */ jsx65(
|
|
4678
|
-
|
|
4683
|
+
Cylinder10,
|
|
4679
4684
|
{
|
|
4680
4685
|
height: pitch,
|
|
4681
4686
|
radius: 0.5,
|
|
@@ -4683,7 +4688,7 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
4683
4688
|
}
|
|
4684
4689
|
),
|
|
4685
4690
|
/* @__PURE__ */ jsx65(Colorize32, { color: "#d2b48c", children: /* @__PURE__ */ jsx65(
|
|
4686
|
-
|
|
4691
|
+
Cylinder10,
|
|
4687
4692
|
{
|
|
4688
4693
|
height: 5,
|
|
4689
4694
|
radius: 1.3,
|
|
@@ -4691,13 +4696,13 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
4691
4696
|
}
|
|
4692
4697
|
) })
|
|
4693
4698
|
] }) }),
|
|
4694
|
-
/* @__PURE__ */ jsx65(
|
|
4699
|
+
/* @__PURE__ */ jsx65(Cylinder10, { height: 4, radius: 0.5, center: [pitch / 2, 0, 0.5] }),
|
|
4695
4700
|
/* @__PURE__ */ jsx65(Sphere2, { radius: 0.5, center: [pitch / 2, 0, heightToCenterOfCapacitor] })
|
|
4696
4701
|
] });
|
|
4697
4702
|
};
|
|
4698
4703
|
|
|
4699
4704
|
// lib/stampboard.tsx
|
|
4700
|
-
import { Colorize as Colorize33, Cuboid as Cuboid41, Cylinder as
|
|
4705
|
+
import { Colorize as Colorize33, Cuboid as Cuboid41, Cylinder as Cylinder11, Subtract as Subtract6, Union as Union19 } from "jscad-fiber";
|
|
4701
4706
|
import { Fragment as Fragment62, jsx as jsx66, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
4702
4707
|
var StampBoard = ({
|
|
4703
4708
|
bodyWidth = 21,
|
|
@@ -4814,7 +4819,7 @@ var StampBoard = ({
|
|
|
4814
4819
|
))
|
|
4815
4820
|
] }) });
|
|
4816
4821
|
const holePads = innerHoles && holes.map((hole, index) => /* @__PURE__ */ jsx66(
|
|
4817
|
-
|
|
4822
|
+
Cylinder11,
|
|
4818
4823
|
{
|
|
4819
4824
|
color: "black",
|
|
4820
4825
|
center: [hole.x, hole.y, boardCenterZ],
|
|
@@ -4848,7 +4853,7 @@ var StampBoard = ({
|
|
|
4848
4853
|
};
|
|
4849
4854
|
|
|
4850
4855
|
// lib/MountedPcbModule.tsx
|
|
4851
|
-
import { Colorize as Colorize35, Cuboid as Cuboid43, Cylinder as
|
|
4856
|
+
import { Colorize as Colorize35, Cuboid as Cuboid43, Cylinder as Cylinder12, Subtract as Subtract8 } from "jscad-fiber";
|
|
4852
4857
|
|
|
4853
4858
|
// lib/Screen.tsx
|
|
4854
4859
|
import { Colorize as Colorize34, Cuboid as Cuboid42, Subtract as Subtract7, Translate as Translate28 } from "jscad-fiber";
|
|
@@ -5026,7 +5031,7 @@ var MountedPcbModule = ({
|
|
|
5026
5031
|
}
|
|
5027
5032
|
),
|
|
5028
5033
|
holePositions.map((hole, index) => /* @__PURE__ */ jsx68(
|
|
5029
|
-
|
|
5034
|
+
Cylinder12,
|
|
5030
5035
|
{
|
|
5031
5036
|
center: [hole.x, hole.y, boardCenterZ + boardOffsetZ],
|
|
5032
5037
|
radius: od / 2,
|
|
@@ -5035,7 +5040,7 @@ var MountedPcbModule = ({
|
|
|
5035
5040
|
`hole-${index}`
|
|
5036
5041
|
)),
|
|
5037
5042
|
pins.map((pin, index) => /* @__PURE__ */ jsx68(
|
|
5038
|
-
|
|
5043
|
+
Cylinder12,
|
|
5039
5044
|
{
|
|
5040
5045
|
center: [pin.x, pin.y, boardCenterZ + boardOffsetZ],
|
|
5041
5046
|
radius: od / 2,
|
|
@@ -5046,7 +5051,7 @@ var MountedPcbModule = ({
|
|
|
5046
5051
|
] }) });
|
|
5047
5052
|
const platedHoles = pins.map((pin, index) => /* @__PURE__ */ jsx68(Colorize35, { color: "#FFD700", children: /* @__PURE__ */ jsxs64(Subtract8, { children: [
|
|
5048
5053
|
/* @__PURE__ */ jsx68(
|
|
5049
|
-
|
|
5054
|
+
Cylinder12,
|
|
5050
5055
|
{
|
|
5051
5056
|
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
5052
5057
|
radius: od / 2,
|
|
@@ -5054,7 +5059,7 @@ var MountedPcbModule = ({
|
|
|
5054
5059
|
}
|
|
5055
5060
|
),
|
|
5056
5061
|
/* @__PURE__ */ jsx68(
|
|
5057
|
-
|
|
5062
|
+
Cylinder12,
|
|
5058
5063
|
{
|
|
5059
5064
|
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
5060
5065
|
radius: id / 2,
|
|
@@ -5164,7 +5169,7 @@ var SOD723_default = SOD723;
|
|
|
5164
5169
|
import {
|
|
5165
5170
|
Colorize as Colorize37,
|
|
5166
5171
|
Cuboid as Cuboid45,
|
|
5167
|
-
Cylinder as
|
|
5172
|
+
Cylinder as Cylinder13,
|
|
5168
5173
|
Rotate as Rotate12,
|
|
5169
5174
|
Subtract as Subtract9,
|
|
5170
5175
|
Translate as Translate30
|
|
@@ -5272,7 +5277,7 @@ var JSTZH1_5mm = ({
|
|
|
5272
5277
|
)
|
|
5273
5278
|
] }) }) }) }),
|
|
5274
5279
|
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx70(Colorize37, { color: pinColor, children: /* @__PURE__ */ jsx70(
|
|
5275
|
-
|
|
5280
|
+
Cylinder13,
|
|
5276
5281
|
{
|
|
5277
5282
|
height: pinLength,
|
|
5278
5283
|
radius: 0.35,
|
|
@@ -5323,7 +5328,7 @@ var JSTZH1_5mm = ({
|
|
|
5323
5328
|
import {
|
|
5324
5329
|
Colorize as Colorize38,
|
|
5325
5330
|
Cuboid as Cuboid46,
|
|
5326
|
-
Cylinder as
|
|
5331
|
+
Cylinder as Cylinder14,
|
|
5327
5332
|
Rotate as Rotate13,
|
|
5328
5333
|
Subtract as Subtract10,
|
|
5329
5334
|
Translate as Translate31
|
|
@@ -5439,7 +5444,7 @@ var JSTPH2_0mm = ({
|
|
|
5439
5444
|
}
|
|
5440
5445
|
),
|
|
5441
5446
|
/* @__PURE__ */ jsx71(Translate31, { offset: [-bodyWidth / 2, 0, topReliefDepth], children: /* @__PURE__ */ jsx71(Rotate13, { angles: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx71(
|
|
5442
|
-
|
|
5447
|
+
Cylinder14,
|
|
5443
5448
|
{
|
|
5444
5449
|
height: wallThickness * 3,
|
|
5445
5450
|
radius: topReliefWidth / 2
|
|
@@ -5453,7 +5458,7 @@ var JSTPH2_0mm = ({
|
|
|
5453
5458
|
}
|
|
5454
5459
|
),
|
|
5455
5460
|
/* @__PURE__ */ jsx71(Translate31, { offset: [bodyWidth / 2, 0, topReliefDepth], children: /* @__PURE__ */ jsx71(Rotate13, { angles: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx71(
|
|
5456
|
-
|
|
5461
|
+
Cylinder14,
|
|
5457
5462
|
{
|
|
5458
5463
|
height: wallThickness * 3,
|
|
5459
5464
|
radius: topReliefWidth / 2
|
|
@@ -5511,7 +5516,7 @@ var JSTPH2_0mm = ({
|
|
|
5511
5516
|
import {
|
|
5512
5517
|
Colorize as Colorize39,
|
|
5513
5518
|
Cuboid as Cuboid47,
|
|
5514
|
-
Cylinder as
|
|
5519
|
+
Cylinder as Cylinder15,
|
|
5515
5520
|
Rotate as Rotate14,
|
|
5516
5521
|
RoundedCuboid as RoundedCuboid3,
|
|
5517
5522
|
Subtract as Subtract11,
|
|
@@ -5729,7 +5734,7 @@ var FPC = ({
|
|
|
5729
5734
|
y: hingeY,
|
|
5730
5735
|
z: hingeZ,
|
|
5731
5736
|
children: /* @__PURE__ */ jsx72(Rotate14, { rotation: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx72(
|
|
5732
|
-
|
|
5737
|
+
Cylinder15,
|
|
5733
5738
|
{
|
|
5734
5739
|
color: ACTUATOR_HIGHLIGHT,
|
|
5735
5740
|
height: sideBossWidth + 0.12,
|
|
@@ -5983,7 +5988,7 @@ var ParametricChip = ({
|
|
|
5983
5988
|
import {
|
|
5984
5989
|
Colorize as Colorize41,
|
|
5985
5990
|
Cuboid as Cuboid50,
|
|
5986
|
-
Cylinder as
|
|
5991
|
+
Cylinder as Cylinder16,
|
|
5987
5992
|
Rotate as Rotate15,
|
|
5988
5993
|
Subtract as Subtract12,
|
|
5989
5994
|
Translate as Translate34
|
|
@@ -6037,7 +6042,7 @@ var Led5050 = ({
|
|
|
6037
6042
|
}
|
|
6038
6043
|
),
|
|
6039
6044
|
/* @__PURE__ */ jsx76(
|
|
6040
|
-
|
|
6045
|
+
Cylinder16,
|
|
6041
6046
|
{
|
|
6042
6047
|
radius: lensRadius,
|
|
6043
6048
|
height: lensHeight,
|
|
@@ -6057,7 +6062,7 @@ var Led5050 = ({
|
|
|
6057
6062
|
)
|
|
6058
6063
|
] }) }),
|
|
6059
6064
|
/* @__PURE__ */ jsx76(
|
|
6060
|
-
|
|
6065
|
+
Cylinder16,
|
|
6061
6066
|
{
|
|
6062
6067
|
color,
|
|
6063
6068
|
radius: lensRadius,
|
|
@@ -6125,7 +6130,7 @@ var Led2835 = ({
|
|
|
6125
6130
|
import {
|
|
6126
6131
|
Colorize as Colorize43,
|
|
6127
6132
|
Cuboid as Cuboid52,
|
|
6128
|
-
Cylinder as
|
|
6133
|
+
Cylinder as Cylinder17,
|
|
6129
6134
|
Rotate as Rotate16,
|
|
6130
6135
|
RoundedCuboid as RoundedCuboid4,
|
|
6131
6136
|
Subtract as Subtract13,
|
|
@@ -6289,7 +6294,7 @@ var RJ45 = ({
|
|
|
6289
6294
|
}
|
|
6290
6295
|
),
|
|
6291
6296
|
[-1, 1].map((direction) => /* @__PURE__ */ jsx78(
|
|
6292
|
-
|
|
6297
|
+
Cylinder17,
|
|
6293
6298
|
{
|
|
6294
6299
|
center: [direction * locatorHoleX, locatorHoleY, -0.25],
|
|
6295
6300
|
radius: Math.max(locatorHoleDiameter * 0.41, 0.65),
|
|
@@ -6300,7 +6305,7 @@ var RJ45 = ({
|
|
|
6300
6305
|
] }),
|
|
6301
6306
|
/* @__PURE__ */ jsxs74(Colorize43, { color: contactColor, children: [
|
|
6302
6307
|
signalPinPositions.map(({ x, y }, index) => /* @__PURE__ */ jsx78(
|
|
6303
|
-
|
|
6308
|
+
Cylinder17,
|
|
6304
6309
|
{
|
|
6305
6310
|
center: [x, y, 0.15],
|
|
6306
6311
|
radius: signalLeadRadius,
|
|
@@ -6327,7 +6332,7 @@ var RJ45 = ({
|
|
|
6327
6332
|
`socket-contact:${index}`
|
|
6328
6333
|
)),
|
|
6329
6334
|
ledPins && ledPinPositions.map((x, index) => /* @__PURE__ */ jsx78(
|
|
6330
|
-
|
|
6335
|
+
Cylinder17,
|
|
6331
6336
|
{
|
|
6332
6337
|
center: [x, ledPinY, 0.15],
|
|
6333
6338
|
radius: signalLeadRadius,
|
|
@@ -6448,7 +6453,7 @@ var DPAK = ({
|
|
|
6448
6453
|
import {
|
|
6449
6454
|
Colorize as Colorize45,
|
|
6450
6455
|
Cuboid as Cuboid54,
|
|
6451
|
-
Cylinder as
|
|
6456
|
+
Cylinder as Cylinder18,
|
|
6452
6457
|
RoundedCylinder as RoundedCylinder5,
|
|
6453
6458
|
Subtract as Subtract14
|
|
6454
6459
|
} from "jscad-fiber";
|
|
@@ -6472,7 +6477,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6472
6477
|
const grooveDepth = 0.3;
|
|
6473
6478
|
return /* @__PURE__ */ jsxs76(Fragment75, { children: [
|
|
6474
6479
|
/* @__PURE__ */ jsx80(Colorize45, { color: baseColor, children: /* @__PURE__ */ jsx80(
|
|
6475
|
-
|
|
6480
|
+
Cylinder18,
|
|
6476
6481
|
{
|
|
6477
6482
|
radius: radius - 0.05,
|
|
6478
6483
|
height: baseHeight,
|
|
@@ -6505,7 +6510,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6505
6510
|
)
|
|
6506
6511
|
] }) }),
|
|
6507
6512
|
[-1, 1].map((side) => /* @__PURE__ */ jsx80(Colorize45, { color: "#c0c0c0", children: /* @__PURE__ */ jsx80(
|
|
6508
|
-
|
|
6513
|
+
Cylinder18,
|
|
6509
6514
|
{
|
|
6510
6515
|
radius: leadDiameter / 2,
|
|
6511
6516
|
height: leadLength + baseHeight,
|
|
@@ -6516,7 +6521,7 @@ var ElectrolyticCapacitor = ({
|
|
|
6516
6521
|
};
|
|
6517
6522
|
|
|
6518
6523
|
// lib/Potentiometer.tsx
|
|
6519
|
-
import { Colorize as Colorize46, Cuboid as Cuboid55, Cylinder as
|
|
6524
|
+
import { Colorize as Colorize46, Cuboid as Cuboid55, Cylinder as Cylinder19, Subtract as Subtract15 } from "jscad-fiber";
|
|
6520
6525
|
import { Fragment as Fragment76, jsx as jsx81, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
6521
6526
|
var Potentiometer = ({
|
|
6522
6527
|
bodyWidth = 5.35,
|
|
@@ -6545,7 +6550,7 @@ var Potentiometer = ({
|
|
|
6545
6550
|
) }),
|
|
6546
6551
|
/* @__PURE__ */ jsx81(Colorize46, { color: adjusterColor, children: /* @__PURE__ */ jsxs77(Subtract15, { children: [
|
|
6547
6552
|
/* @__PURE__ */ jsx81(
|
|
6548
|
-
|
|
6553
|
+
Cylinder19,
|
|
6549
6554
|
{
|
|
6550
6555
|
radius: adjusterDiameter / 2,
|
|
6551
6556
|
height: adjusterHeight,
|
|
@@ -6561,7 +6566,7 @@ var Potentiometer = ({
|
|
|
6561
6566
|
)
|
|
6562
6567
|
] }) }),
|
|
6563
6568
|
shaftHeight > 0 && shaftDiameter > 0 ? /* @__PURE__ */ jsx81(Colorize46, { color: adjusterColor, children: /* @__PURE__ */ jsx81(
|
|
6564
|
-
|
|
6569
|
+
Cylinder19,
|
|
6565
6570
|
{
|
|
6566
6571
|
radius: shaftDiameter / 2,
|
|
6567
6572
|
height: shaftHeight,
|
|
@@ -6569,7 +6574,7 @@ var Potentiometer = ({
|
|
|
6569
6574
|
}
|
|
6570
6575
|
) }) : null,
|
|
6571
6576
|
leads.map((lead) => /* @__PURE__ */ jsx81(Colorize46, { color: "#c0c0c0", children: /* @__PURE__ */ jsx81(
|
|
6572
|
-
|
|
6577
|
+
Cylinder19,
|
|
6573
6578
|
{
|
|
6574
6579
|
radius: leadDiameter / 2,
|
|
6575
6580
|
height: bodyHeight / 2 + leadLength,
|
|
@@ -6580,7 +6585,7 @@ var Potentiometer = ({
|
|
|
6580
6585
|
};
|
|
6581
6586
|
|
|
6582
6587
|
// lib/SmdPushButton.tsx
|
|
6583
|
-
import { Colorize as Colorize47, Cuboid as Cuboid56, Cylinder as
|
|
6588
|
+
import { Colorize as Colorize47, Cuboid as Cuboid56, Cylinder as Cylinder20 } from "jscad-fiber";
|
|
6584
6589
|
import { Fragment as Fragment77, jsx as jsx82, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
6585
6590
|
var SmdPushButton = ({
|
|
6586
6591
|
bodyWidth = 2.9,
|
|
@@ -6606,7 +6611,7 @@ var SmdPushButton = ({
|
|
|
6606
6611
|
}
|
|
6607
6612
|
) }),
|
|
6608
6613
|
/* @__PURE__ */ jsx82(Colorize47, { color: actuatorColor, children: /* @__PURE__ */ jsx82(
|
|
6609
|
-
|
|
6614
|
+
Cylinder20,
|
|
6610
6615
|
{
|
|
6611
6616
|
radius: actuatorDiameter / 2,
|
|
6612
6617
|
height: actuatorHeight,
|