jscad-electronics 0.0.142 → 0.0.144
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 +17 -1
- package/dist/index.js +1004 -704
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +287 -2
- package/dist/vanilla.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -460,19 +460,157 @@ var ChipBody = ({
|
|
|
460
460
|
] }) : finalBody }) }) });
|
|
461
461
|
};
|
|
462
462
|
|
|
463
|
+
// lib/Crystal.tsx
|
|
464
|
+
import { Colorize as Colorize3, Cylinder as Cylinder2, ExtrudeLinear, Hull as Hull2, Polygon } from "jscad-fiber";
|
|
465
|
+
import { Fragment as Fragment11, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
466
|
+
var getTerminalPoints = ([centerX, centerY], width10, length, chamfer, isPinOne) => {
|
|
467
|
+
const xDirection = Math.sign(centerX);
|
|
468
|
+
const yDirection = Math.sign(centerY);
|
|
469
|
+
const halfWidth = width10 / 2;
|
|
470
|
+
const halfLength = length / 2;
|
|
471
|
+
const innerChamfer = isPinOne ? Math.min(0.32, length * 0.36) : 0;
|
|
472
|
+
const outerChamfer = Math.min(chamfer, halfWidth, halfLength);
|
|
473
|
+
const points = [
|
|
474
|
+
[-halfWidth, -halfLength],
|
|
475
|
+
[halfWidth, -halfLength],
|
|
476
|
+
[halfWidth, halfLength - outerChamfer],
|
|
477
|
+
[halfWidth - outerChamfer, halfLength],
|
|
478
|
+
[-halfWidth, halfLength]
|
|
479
|
+
];
|
|
480
|
+
if (innerChamfer) {
|
|
481
|
+
points[0] = [-halfWidth + innerChamfer, -halfLength];
|
|
482
|
+
points.push([-halfWidth, -halfLength + innerChamfer]);
|
|
483
|
+
}
|
|
484
|
+
const oriented = points.map(
|
|
485
|
+
([x, y]) => [centerX + x * xDirection, centerY + y * yDirection]
|
|
486
|
+
);
|
|
487
|
+
return xDirection * yDirection < 0 ? oriented.reverse() : oriented;
|
|
488
|
+
};
|
|
489
|
+
var getRoundedRectProfile = ({
|
|
490
|
+
width: width10,
|
|
491
|
+
length,
|
|
492
|
+
radius,
|
|
493
|
+
height: height10,
|
|
494
|
+
z
|
|
495
|
+
}) => {
|
|
496
|
+
const x = width10 / 2 - radius;
|
|
497
|
+
const y = length / 2 - radius;
|
|
498
|
+
return [
|
|
499
|
+
[-x, -y],
|
|
500
|
+
[x, -y],
|
|
501
|
+
[x, y],
|
|
502
|
+
[-x, y]
|
|
503
|
+
].map(([cornerX, cornerY], index) => /* @__PURE__ */ jsx12(
|
|
504
|
+
Cylinder2,
|
|
505
|
+
{
|
|
506
|
+
center: [cornerX, cornerY, z + height10 / 2],
|
|
507
|
+
height: height10,
|
|
508
|
+
radius
|
|
509
|
+
},
|
|
510
|
+
`${z}-${index}`
|
|
511
|
+
));
|
|
512
|
+
};
|
|
513
|
+
var Crystal = ({
|
|
514
|
+
horizontalPadPitch = 2.2,
|
|
515
|
+
verticalPadPitch = 1.7,
|
|
516
|
+
padWidth = 1.4,
|
|
517
|
+
padHeight = 1.2,
|
|
518
|
+
bodyHeight = 0.7
|
|
519
|
+
}) => {
|
|
520
|
+
const bodyWidth = horizontalPadPitch + padWidth * (5 / 7);
|
|
521
|
+
const bodyLength10 = verticalPadPitch + padHeight * (2 / 3);
|
|
522
|
+
const terminalThickness = Math.min(0.01, bodyHeight * 0.02);
|
|
523
|
+
const terminalWidth = padWidth * (5 / 7);
|
|
524
|
+
const terminalLength = padHeight * 0.75;
|
|
525
|
+
const ceramicTopZ = bodyHeight * (5 / 7);
|
|
526
|
+
const baseHeight = ceramicTopZ - terminalThickness;
|
|
527
|
+
const sealHeight = bodyHeight * (2 / 35);
|
|
528
|
+
const sealWidth = bodyWidth * 0.95;
|
|
529
|
+
const sealLength = bodyLength10 * 0.94;
|
|
530
|
+
const lidShoulderWidth = bodyWidth * 0.905;
|
|
531
|
+
const lidShoulderLength = bodyLength10 * 0.9;
|
|
532
|
+
const lidTopWidth = bodyWidth * 0.83;
|
|
533
|
+
const lidTopLength = bodyLength10 * 0.82;
|
|
534
|
+
const lidBaseZ = ceramicTopZ + sealHeight;
|
|
535
|
+
const lidProfileHeight = Math.min(0.01, bodyHeight * 0.015);
|
|
536
|
+
const bodyChamfer = Math.min(0.12, bodyLength10 * 0.05);
|
|
537
|
+
const terminalX = (bodyWidth - terminalWidth) / 2;
|
|
538
|
+
const terminalY = (bodyLength10 - terminalLength) / 2;
|
|
539
|
+
const terminalPositions = [
|
|
540
|
+
[-terminalX, -terminalY],
|
|
541
|
+
[terminalX, -terminalY],
|
|
542
|
+
[terminalX, terminalY],
|
|
543
|
+
[-terminalX, terminalY]
|
|
544
|
+
];
|
|
545
|
+
const sealProfile = getRoundedRectProfile({
|
|
546
|
+
width: sealWidth,
|
|
547
|
+
length: sealLength,
|
|
548
|
+
radius: Math.min(0.13, sealLength * 0.08),
|
|
549
|
+
height: sealHeight,
|
|
550
|
+
z: ceramicTopZ
|
|
551
|
+
});
|
|
552
|
+
const lidProfiles = [
|
|
553
|
+
...getRoundedRectProfile({
|
|
554
|
+
width: lidShoulderWidth,
|
|
555
|
+
length: lidShoulderLength,
|
|
556
|
+
radius: Math.min(0.14, lidShoulderLength * 0.08),
|
|
557
|
+
height: lidProfileHeight,
|
|
558
|
+
z: lidBaseZ
|
|
559
|
+
}),
|
|
560
|
+
...getRoundedRectProfile({
|
|
561
|
+
width: lidTopWidth,
|
|
562
|
+
length: lidTopLength,
|
|
563
|
+
radius: Math.min(0.15, lidTopLength * 0.09),
|
|
564
|
+
height: lidProfileHeight,
|
|
565
|
+
z: bodyHeight - lidProfileHeight
|
|
566
|
+
})
|
|
567
|
+
];
|
|
568
|
+
return /* @__PURE__ */ jsxs12(Fragment11, { children: [
|
|
569
|
+
terminalPositions.map((center, index) => /* @__PURE__ */ jsx12(Colorize3, { color: "#d6a258", children: /* @__PURE__ */ jsx12(ExtrudeLinear, { height: terminalThickness, children: /* @__PURE__ */ jsx12(
|
|
570
|
+
Polygon,
|
|
571
|
+
{
|
|
572
|
+
points: getTerminalPoints(
|
|
573
|
+
center,
|
|
574
|
+
terminalWidth,
|
|
575
|
+
terminalLength,
|
|
576
|
+
bodyChamfer,
|
|
577
|
+
index === 0
|
|
578
|
+
)
|
|
579
|
+
}
|
|
580
|
+
) }) }, index)),
|
|
581
|
+
/* @__PURE__ */ jsx12(
|
|
582
|
+
ChipBody,
|
|
583
|
+
{
|
|
584
|
+
center: { x: 0, y: 0, z: terminalThickness },
|
|
585
|
+
width: bodyWidth,
|
|
586
|
+
length: bodyLength10,
|
|
587
|
+
height: baseHeight - 5e-3,
|
|
588
|
+
heightAboveSurface: 0,
|
|
589
|
+
color: "#34343d",
|
|
590
|
+
taperRatio: 0,
|
|
591
|
+
straightHeightRatio: 1,
|
|
592
|
+
includeNotch: false,
|
|
593
|
+
chamferSize: bodyChamfer
|
|
594
|
+
}
|
|
595
|
+
),
|
|
596
|
+
/* @__PURE__ */ jsx12(Colorize3, { color: "#d2a057", children: /* @__PURE__ */ jsx12(Hull2, { children: sealProfile }) }),
|
|
597
|
+
/* @__PURE__ */ jsx12(Colorize3, { color: "#b9bec2", children: /* @__PURE__ */ jsx12(Hull2, { children: lidProfiles }) })
|
|
598
|
+
] });
|
|
599
|
+
};
|
|
600
|
+
|
|
463
601
|
// lib/ExtrudedPads.tsx
|
|
464
602
|
import { fp as fp2 } from "@tscircuit/footprinter";
|
|
465
603
|
|
|
466
604
|
// lib/FootprintPad.tsx
|
|
467
|
-
import { Colorize as
|
|
468
|
-
import { jsx as
|
|
605
|
+
import { Colorize as Colorize4, Cuboid as Cuboid12, Translate as Translate4 } from "jscad-fiber";
|
|
606
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
469
607
|
var FootprintPad = ({
|
|
470
608
|
pad,
|
|
471
609
|
isPin1
|
|
472
610
|
}) => {
|
|
473
611
|
if (pad.shape === "rect") {
|
|
474
612
|
const color = isPin1 ? [0, 255, 0] : [255, 0, 0];
|
|
475
|
-
return /* @__PURE__ */
|
|
613
|
+
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, 0.01] }) }) });
|
|
476
614
|
} else {
|
|
477
615
|
throw new Error("Shape not supported: " + pad.shape);
|
|
478
616
|
}
|
|
@@ -480,35 +618,35 @@ var FootprintPad = ({
|
|
|
480
618
|
|
|
481
619
|
// lib/FootprintPlatedHole.tsx
|
|
482
620
|
import {
|
|
483
|
-
Colorize as
|
|
621
|
+
Colorize as Colorize5,
|
|
484
622
|
Cuboid as Cuboid13,
|
|
485
623
|
Translate as Translate5,
|
|
486
|
-
Cylinder as
|
|
624
|
+
Cylinder as Cylinder3,
|
|
487
625
|
Subtract as Subtract2,
|
|
488
|
-
Hull as
|
|
626
|
+
Hull as Hull3
|
|
489
627
|
} from "jscad-fiber";
|
|
490
|
-
import { jsx as
|
|
628
|
+
import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
491
629
|
var FootprintPlatedHole = ({
|
|
492
630
|
hole,
|
|
493
631
|
isPin1
|
|
494
632
|
}) => {
|
|
495
633
|
const color = isPin1 ? "#00ff00" : "#b87333";
|
|
496
634
|
if (hole.shape === "circle") {
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
/* @__PURE__ */
|
|
499
|
-
/* @__PURE__ */
|
|
635
|
+
return /* @__PURE__ */ jsx14(Colorize5, { color, children: /* @__PURE__ */ jsx14(Translate5, { offset: [hole.x, hole.y, -5e-3], children: /* @__PURE__ */ jsxs13(Subtract2, { children: [
|
|
636
|
+
/* @__PURE__ */ jsx14(Cylinder3, { radius: hole.outer_diameter / 2, height: 0.01 }),
|
|
637
|
+
/* @__PURE__ */ jsx14(Cylinder3, { radius: hole.hole_diameter / 2, height: 0.01 })
|
|
500
638
|
] }) }) });
|
|
501
639
|
}
|
|
502
640
|
if (hole.shape === "circular_hole_with_rect_pad") {
|
|
503
|
-
return /* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
641
|
+
return /* @__PURE__ */ jsx14(Colorize5, { color, children: /* @__PURE__ */ jsx14(Translate5, { offset: [hole.x, hole.y, 0], children: /* @__PURE__ */ jsxs13(Subtract2, { children: [
|
|
642
|
+
/* @__PURE__ */ jsx14(
|
|
505
643
|
Cuboid13,
|
|
506
644
|
{
|
|
507
645
|
size: [hole.rect_pad_width, hole.rect_pad_height, 0.01],
|
|
508
646
|
center: [0, 0, 0]
|
|
509
647
|
}
|
|
510
648
|
),
|
|
511
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ jsx14(Cylinder3, { radius: hole.hole_diameter / 2, height: 0.01 })
|
|
512
650
|
] }) }) });
|
|
513
651
|
}
|
|
514
652
|
if (hole.shape === "pill") {
|
|
@@ -518,10 +656,10 @@ var FootprintPlatedHole = ({
|
|
|
518
656
|
const isHorizontal = width10 > height10;
|
|
519
657
|
const holeWidth = hole.hole_width ?? 0.8;
|
|
520
658
|
const holeHeight = hole.hole_height ?? 0.8;
|
|
521
|
-
return /* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
|
|
659
|
+
return /* @__PURE__ */ jsx14(Colorize5, { color, children: /* @__PURE__ */ jsx14(Translate5, { offset: [hole.x, hole.y, 0], children: /* @__PURE__ */ jsxs13(Subtract2, { children: [
|
|
660
|
+
/* @__PURE__ */ jsxs13(Hull3, { children: [
|
|
661
|
+
/* @__PURE__ */ jsx14(
|
|
662
|
+
Cylinder3,
|
|
525
663
|
{
|
|
526
664
|
radius,
|
|
527
665
|
height: 0.01,
|
|
@@ -532,8 +670,8 @@ var FootprintPlatedHole = ({
|
|
|
532
670
|
]
|
|
533
671
|
}
|
|
534
672
|
),
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
|
|
673
|
+
/* @__PURE__ */ jsx14(
|
|
674
|
+
Cylinder3,
|
|
537
675
|
{
|
|
538
676
|
radius,
|
|
539
677
|
height: 0.01,
|
|
@@ -545,9 +683,9 @@ var FootprintPlatedHole = ({
|
|
|
545
683
|
}
|
|
546
684
|
)
|
|
547
685
|
] }),
|
|
548
|
-
holeWidth === holeHeight ? /* @__PURE__ */
|
|
549
|
-
/* @__PURE__ */
|
|
550
|
-
|
|
686
|
+
holeWidth === holeHeight ? /* @__PURE__ */ jsx14(Cylinder3, { radius: holeWidth / 2, height: 0.01 }) : /* @__PURE__ */ jsxs13(Hull3, { children: [
|
|
687
|
+
/* @__PURE__ */ jsx14(
|
|
688
|
+
Cylinder3,
|
|
551
689
|
{
|
|
552
690
|
radius: Math.min(holeWidth, holeHeight) / 2,
|
|
553
691
|
height: 0.01,
|
|
@@ -558,8 +696,8 @@ var FootprintPlatedHole = ({
|
|
|
558
696
|
]
|
|
559
697
|
}
|
|
560
698
|
),
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
|
|
699
|
+
/* @__PURE__ */ jsx14(
|
|
700
|
+
Cylinder3,
|
|
563
701
|
{
|
|
564
702
|
radius: Math.min(holeWidth, holeHeight) / 2,
|
|
565
703
|
height: 0.01,
|
|
@@ -577,7 +715,7 @@ var FootprintPlatedHole = ({
|
|
|
577
715
|
};
|
|
578
716
|
|
|
579
717
|
// lib/ExtrudedPads.tsx
|
|
580
|
-
import { Fragment as
|
|
718
|
+
import { Fragment as Fragment12, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
581
719
|
var ExtrudedPads = ({
|
|
582
720
|
circuitJson,
|
|
583
721
|
footprint
|
|
@@ -587,19 +725,19 @@ var ExtrudedPads = ({
|
|
|
587
725
|
}
|
|
588
726
|
if (!circuitJson)
|
|
589
727
|
throw new Error("No circuit json or footprint provided to ExtrudedPads");
|
|
590
|
-
return /* @__PURE__ */
|
|
728
|
+
return /* @__PURE__ */ jsxs14(Fragment12, { children: [
|
|
591
729
|
circuitJson.filter((s) => s.type === "pcb_smtpad").map((pad, i) => {
|
|
592
730
|
const isPin1 = pad.port_hints?.includes("1");
|
|
593
731
|
return (
|
|
594
732
|
// biome-ignore lint/suspicious/noArrayIndexKey:
|
|
595
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ jsx15(FootprintPad, { pad, isPin1 }, i)
|
|
596
734
|
);
|
|
597
735
|
}),
|
|
598
736
|
circuitJson.filter((s) => s.type === "pcb_plated_hole").map((hole, i) => {
|
|
599
737
|
const isPin1 = hole.port_hints?.includes("1");
|
|
600
738
|
return (
|
|
601
739
|
// biome-ignore lint/suspicious/noArrayIndexKey:
|
|
602
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ jsx15(FootprintPlatedHole, { hole, isPin1 }, i)
|
|
603
741
|
);
|
|
604
742
|
})
|
|
605
743
|
] });
|
|
@@ -609,7 +747,7 @@ var ExtrudedPads = ({
|
|
|
609
747
|
import { fp as fp3 } from "@tscircuit/footprinter";
|
|
610
748
|
|
|
611
749
|
// lib/DualInlinePackage.tsx
|
|
612
|
-
import { Polygon, ExtrudeLinear, Rotate as Rotate3, Translate as Translate6 } from "jscad-fiber";
|
|
750
|
+
import { Polygon as Polygon2, ExtrudeLinear as ExtrudeLinear2, Rotate as Rotate3, Translate as Translate6 } from "jscad-fiber";
|
|
613
751
|
|
|
614
752
|
// lib/utils/range.ts
|
|
615
753
|
var range = (end) => Array.from({ length: end }, (_, i) => i);
|
|
@@ -674,7 +812,7 @@ function getExpandedStroke(strokeInput, width10) {
|
|
|
674
812
|
}
|
|
675
813
|
|
|
676
814
|
// lib/DualInlinePackage.tsx
|
|
677
|
-
import { Fragment as
|
|
815
|
+
import { Fragment as Fragment13, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
678
816
|
var normalizeOnY = (points) => {
|
|
679
817
|
const minX = Math.min(...points.map((p) => p.x));
|
|
680
818
|
const maxX = Math.max(...points.map((p) => p.x));
|
|
@@ -703,14 +841,14 @@ var DIP_PIN_HEIGHT = 5.47;
|
|
|
703
841
|
var heightAboveSurface = 0.5;
|
|
704
842
|
var DipPinLeg = ({ x, y, z }) => {
|
|
705
843
|
const isRotated = x > 0;
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
|
|
844
|
+
return /* @__PURE__ */ jsxs15(Fragment13, { children: [
|
|
845
|
+
/* @__PURE__ */ jsx16(Translate6, { offset: { x: x + 0.25 / 2, y, z }, children: /* @__PURE__ */ jsx16(Rotate3, { rotation: ["-90deg", 0, "90deg"], children: /* @__PURE__ */ jsx16(ExtrudeLinear2, { height: 0.25, children: /* @__PURE__ */ jsx16(
|
|
846
|
+
Polygon2,
|
|
709
847
|
{
|
|
710
848
|
points: svgPathPoints.slice().reverse().map((p) => [p.x, p.y])
|
|
711
849
|
}
|
|
712
850
|
) }) }) }),
|
|
713
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ jsx16(
|
|
714
852
|
Translate6,
|
|
715
853
|
{
|
|
716
854
|
offset: {
|
|
@@ -718,8 +856,8 @@ var DipPinLeg = ({ x, y, z }) => {
|
|
|
718
856
|
y: y + (isRotated ? 1 : -1),
|
|
719
857
|
z
|
|
720
858
|
},
|
|
721
|
-
children: /* @__PURE__ */
|
|
722
|
-
|
|
859
|
+
children: /* @__PURE__ */ jsx16(Rotate3, { rotation: ["-90deg", "90deg", isRotated ? "180deg" : "0deg"], children: /* @__PURE__ */ jsx16(ExtrudeLinear2, { height: 2, children: /* @__PURE__ */ jsx16(
|
|
860
|
+
Polygon2,
|
|
723
861
|
{
|
|
724
862
|
points: getExpandedStroke(
|
|
725
863
|
[
|
|
@@ -744,11 +882,11 @@ var Dip = ({
|
|
|
744
882
|
const numPinsOnEachSide = Math.floor(numPins / 2);
|
|
745
883
|
const pinRowSpacing = rowSpacing ?? (bodyWidth >= 7 ? bodyWidth : bodyWidth + 1.22);
|
|
746
884
|
const chipBodyWidth = bodyWidth >= 7 ? pinRowSpacing - 1.22 : bodyWidth;
|
|
747
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ jsxs15(Fragment13, { children: [
|
|
748
886
|
range(numPins).map((i) => {
|
|
749
887
|
const yRow = i % numPinsOnEachSide;
|
|
750
888
|
const xRow = (Math.floor(i / numPinsOnEachSide) - 0.5) * 2;
|
|
751
|
-
return /* @__PURE__ */
|
|
889
|
+
return /* @__PURE__ */ jsx16(
|
|
752
890
|
DipPinLeg,
|
|
753
891
|
{
|
|
754
892
|
x: xRow * pinRowSpacing / 2,
|
|
@@ -758,7 +896,7 @@ var Dip = ({
|
|
|
758
896
|
i
|
|
759
897
|
);
|
|
760
898
|
}),
|
|
761
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ jsx16(
|
|
762
900
|
ChipBody,
|
|
763
901
|
{
|
|
764
902
|
width: chipBodyWidth,
|
|
@@ -773,13 +911,13 @@ var Dip = ({
|
|
|
773
911
|
|
|
774
912
|
// lib/SmdChipLead.tsx
|
|
775
913
|
import {
|
|
776
|
-
Polygon as
|
|
777
|
-
ExtrudeLinear as
|
|
914
|
+
Polygon as Polygon3,
|
|
915
|
+
ExtrudeLinear as ExtrudeLinear3,
|
|
778
916
|
Translate as Translate7,
|
|
779
917
|
Rotate as Rotate4,
|
|
780
|
-
Colorize as
|
|
918
|
+
Colorize as Colorize6
|
|
781
919
|
} from "jscad-fiber";
|
|
782
|
-
import { jsx as
|
|
920
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
783
921
|
function calculateSCurve(x, {
|
|
784
922
|
height: height10,
|
|
785
923
|
padContactLength,
|
|
@@ -805,11 +943,11 @@ var SmdChipLead = (props) => {
|
|
|
805
943
|
const N = 15;
|
|
806
944
|
const points = Array.from({ length: N }).map((_, i) => i / (N - 1) * bodyDistance).map((x) => [x, calculateSCurve(x, props)]);
|
|
807
945
|
const polygon = getExpandedStroke(points, thickness);
|
|
808
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ jsx17(Colorize6, { color: "#fff", children: /* @__PURE__ */ jsx17(Translate7, { offset: { z: 0, y: 0, x: 0, ...props.position }, children: /* @__PURE__ */ jsx17(Rotate4, { rotation: ["90deg", 0, rotation ?? 0], children: /* @__PURE__ */ jsx17(Translate7, { offset: { x: 0, y: 0, z: -width10 / 2 }, children: /* @__PURE__ */ jsx17(ExtrudeLinear3, { height: width10, children: /* @__PURE__ */ jsx17(Polygon3, { points: polygon.map((p) => [p.x, p.y]) }) }) }) }) }) });
|
|
809
947
|
};
|
|
810
948
|
|
|
811
949
|
// lib/Tssop.tsx
|
|
812
|
-
import { Fragment as
|
|
950
|
+
import { Fragment as Fragment14, jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
813
951
|
var Tssop = ({
|
|
814
952
|
pinCount,
|
|
815
953
|
leadLength,
|
|
@@ -835,8 +973,8 @@ var Tssop = ({
|
|
|
835
973
|
Math.min(bodyVisualWidth, bodyLength10) * 0.12,
|
|
836
974
|
0.45
|
|
837
975
|
);
|
|
838
|
-
return /* @__PURE__ */
|
|
839
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
976
|
+
return /* @__PURE__ */ jsxs16(Fragment14, { children: [
|
|
977
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx18(
|
|
840
978
|
SmdChipLead,
|
|
841
979
|
{
|
|
842
980
|
position: {
|
|
@@ -853,7 +991,7 @@ var Tssop = ({
|
|
|
853
991
|
},
|
|
854
992
|
`left-${i}`
|
|
855
993
|
)),
|
|
856
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
994
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx18(
|
|
857
995
|
SmdChipLead,
|
|
858
996
|
{
|
|
859
997
|
rotation: Math.PI,
|
|
@@ -871,7 +1009,7 @@ var Tssop = ({
|
|
|
871
1009
|
},
|
|
872
1010
|
`right-${i}`
|
|
873
1011
|
)),
|
|
874
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ jsx18(
|
|
875
1013
|
ChipBody,
|
|
876
1014
|
{
|
|
877
1015
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -890,7 +1028,7 @@ var Tssop = ({
|
|
|
890
1028
|
};
|
|
891
1029
|
|
|
892
1030
|
// lib/MSOP.tsx
|
|
893
|
-
import { Fragment as
|
|
1031
|
+
import { Fragment as Fragment15, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
894
1032
|
var MSOP = ({
|
|
895
1033
|
pinCount,
|
|
896
1034
|
padContactLength = 0.4,
|
|
@@ -901,8 +1039,8 @@ var MSOP = ({
|
|
|
901
1039
|
const sidePinCount = Math.ceil(pinCount / 2);
|
|
902
1040
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
903
1041
|
const leadThickness = 0.2;
|
|
904
|
-
return /* @__PURE__ */
|
|
905
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1042
|
+
return /* @__PURE__ */ jsxs17(Fragment15, { children: [
|
|
1043
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx19(
|
|
906
1044
|
SmdChipLead,
|
|
907
1045
|
{
|
|
908
1046
|
position: {
|
|
@@ -918,7 +1056,7 @@ var MSOP = ({
|
|
|
918
1056
|
},
|
|
919
1057
|
i
|
|
920
1058
|
)),
|
|
921
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1059
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx19(
|
|
922
1060
|
SmdChipLead,
|
|
923
1061
|
{
|
|
924
1062
|
rotation: Math.PI,
|
|
@@ -935,7 +1073,7 @@ var MSOP = ({
|
|
|
935
1073
|
},
|
|
936
1074
|
i
|
|
937
1075
|
)),
|
|
938
|
-
/* @__PURE__ */
|
|
1076
|
+
/* @__PURE__ */ jsx19(
|
|
939
1077
|
ChipBody,
|
|
940
1078
|
{
|
|
941
1079
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -951,7 +1089,7 @@ var MSOP = ({
|
|
|
951
1089
|
};
|
|
952
1090
|
|
|
953
1091
|
// lib/qfp.tsx
|
|
954
|
-
import { Fragment as
|
|
1092
|
+
import { Fragment as Fragment16, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
955
1093
|
var QFP = ({
|
|
956
1094
|
pinCount,
|
|
957
1095
|
pitch,
|
|
@@ -975,8 +1113,8 @@ var QFP = ({
|
|
|
975
1113
|
const bodyDistance = leadReach;
|
|
976
1114
|
const fullPadContactLength = leadReach * 0.5;
|
|
977
1115
|
const curveLength = leadReach * 0.18;
|
|
978
|
-
return /* @__PURE__ */
|
|
979
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1116
|
+
return /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1117
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx20(
|
|
980
1118
|
SmdChipLead,
|
|
981
1119
|
{
|
|
982
1120
|
position: {
|
|
@@ -993,7 +1131,7 @@ var QFP = ({
|
|
|
993
1131
|
},
|
|
994
1132
|
`left-${i}`
|
|
995
1133
|
)),
|
|
996
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1134
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx20(
|
|
997
1135
|
SmdChipLead,
|
|
998
1136
|
{
|
|
999
1137
|
rotation: Math.PI,
|
|
@@ -1011,7 +1149,7 @@ var QFP = ({
|
|
|
1011
1149
|
},
|
|
1012
1150
|
`right-${i}`
|
|
1013
1151
|
)),
|
|
1014
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1152
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx20(
|
|
1015
1153
|
SmdChipLead,
|
|
1016
1154
|
{
|
|
1017
1155
|
rotation: Math.PI / 2,
|
|
@@ -1029,7 +1167,7 @@ var QFP = ({
|
|
|
1029
1167
|
},
|
|
1030
1168
|
`bottom-${i}`
|
|
1031
1169
|
)),
|
|
1032
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
1170
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx20(
|
|
1033
1171
|
SmdChipLead,
|
|
1034
1172
|
{
|
|
1035
1173
|
rotation: -Math.PI / 2,
|
|
@@ -1047,7 +1185,7 @@ var QFP = ({
|
|
|
1047
1185
|
},
|
|
1048
1186
|
`top-${i}`
|
|
1049
1187
|
)),
|
|
1050
|
-
/* @__PURE__ */
|
|
1188
|
+
/* @__PURE__ */ jsx20(
|
|
1051
1189
|
ChipBody,
|
|
1052
1190
|
{
|
|
1053
1191
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -1109,8 +1247,8 @@ var getLeadWidth = (pinCount, width10) => {
|
|
|
1109
1247
|
};
|
|
1110
1248
|
|
|
1111
1249
|
// lib/PinHeader.tsx
|
|
1112
|
-
import { Colorize as
|
|
1113
|
-
import { Fragment as
|
|
1250
|
+
import { Colorize as Colorize7, Cuboid as Cuboid14, Hull as Hull4, Rotate as Rotate5, Translate as Translate8 } from "jscad-fiber";
|
|
1251
|
+
import { Fragment as Fragment17, jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1114
1252
|
var PinHeader = ({
|
|
1115
1253
|
x,
|
|
1116
1254
|
y,
|
|
@@ -1125,8 +1263,8 @@ var PinHeader = ({
|
|
|
1125
1263
|
smd,
|
|
1126
1264
|
rightangle
|
|
1127
1265
|
}) => {
|
|
1128
|
-
return /* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
1266
|
+
return /* @__PURE__ */ jsxs19(Fragment17, { children: [
|
|
1267
|
+
/* @__PURE__ */ jsx21(Translate8, { y: rightangle ? -3 : 0, children: /* @__PURE__ */ jsx21(
|
|
1130
1268
|
Cuboid14,
|
|
1131
1269
|
{
|
|
1132
1270
|
color: "#222",
|
|
@@ -1134,7 +1272,7 @@ var PinHeader = ({
|
|
|
1134
1272
|
center: [x, y, flipZ(bodyHeight / 2)]
|
|
1135
1273
|
}
|
|
1136
1274
|
) }),
|
|
1137
|
-
!faceup && /* @__PURE__ */
|
|
1275
|
+
!faceup && /* @__PURE__ */ jsx21(Colorize7, { color: "gold", children: smd ? /* @__PURE__ */ jsx21(
|
|
1138
1276
|
SmdChipLead,
|
|
1139
1277
|
{
|
|
1140
1278
|
rotation: -Math.PI / 2,
|
|
@@ -1149,8 +1287,8 @@ var PinHeader = ({
|
|
|
1149
1287
|
padContactLength: 2,
|
|
1150
1288
|
bodyDistance: 3
|
|
1151
1289
|
}
|
|
1152
|
-
) : /* @__PURE__ */
|
|
1153
|
-
/* @__PURE__ */
|
|
1290
|
+
) : /* @__PURE__ */ jsxs19(Hull4, { children: [
|
|
1291
|
+
/* @__PURE__ */ jsx21(
|
|
1154
1292
|
Cuboid14,
|
|
1155
1293
|
{
|
|
1156
1294
|
color: "gold",
|
|
@@ -1158,7 +1296,7 @@ var PinHeader = ({
|
|
|
1158
1296
|
center: [x, y, flipZ(bodyHeight * 0.9 + bodyHeight / 2)]
|
|
1159
1297
|
}
|
|
1160
1298
|
),
|
|
1161
|
-
/* @__PURE__ */
|
|
1299
|
+
/* @__PURE__ */ jsx21(
|
|
1162
1300
|
Cuboid14,
|
|
1163
1301
|
{
|
|
1164
1302
|
color: "gold",
|
|
@@ -1171,8 +1309,8 @@ var PinHeader = ({
|
|
|
1171
1309
|
}
|
|
1172
1310
|
)
|
|
1173
1311
|
] }) }),
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ jsx21(Colorize7, { color: "gold", children: /* @__PURE__ */ jsx21(Translate8, { y: rightangle ? -3.9 : 0, z: rightangle ? 1 : 0, children: /* @__PURE__ */ jsx21(Rotate5, { rotation: rightangle ? [-Math.PI / 2, 0, 0] : [0, 0, 0], children: /* @__PURE__ */ jsxs19(Hull4, { children: [
|
|
1313
|
+
/* @__PURE__ */ jsx21(
|
|
1176
1314
|
Cuboid14,
|
|
1177
1315
|
{
|
|
1178
1316
|
color: "gold",
|
|
@@ -1180,7 +1318,7 @@ var PinHeader = ({
|
|
|
1180
1318
|
center: [x, y, flipZ(-longSidePinLength / 2 * 0.9)]
|
|
1181
1319
|
}
|
|
1182
1320
|
),
|
|
1183
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ jsx21(
|
|
1184
1322
|
Cuboid14,
|
|
1185
1323
|
{
|
|
1186
1324
|
color: "gold",
|
|
@@ -1197,7 +1335,7 @@ var PinHeader = ({
|
|
|
1197
1335
|
};
|
|
1198
1336
|
|
|
1199
1337
|
// lib/PinRow.tsx
|
|
1200
|
-
import { Fragment as
|
|
1338
|
+
import { Fragment as Fragment18, jsx as jsx22 } from "react/jsx-runtime";
|
|
1201
1339
|
var PinRow = ({
|
|
1202
1340
|
numberOfPins,
|
|
1203
1341
|
pitch = 2.54,
|
|
@@ -1216,12 +1354,12 @@ var PinRow = ({
|
|
|
1216
1354
|
const xoff = -((pinsPerRow - 1) / 2) * pitch;
|
|
1217
1355
|
const zOffset = !smd && !rightangle ? -bodyHeight - 1.6 : 0;
|
|
1218
1356
|
const flipZ = (z) => (invert || faceup ? -z + bodyHeight : z) + zOffset;
|
|
1219
|
-
return /* @__PURE__ */
|
|
1357
|
+
return /* @__PURE__ */ jsx22(Fragment18, { children: Array.from({ length: numberOfPins }, (_, i) => {
|
|
1220
1358
|
const row = Math.floor(i / pinsPerRow);
|
|
1221
1359
|
const col = i % pinsPerRow;
|
|
1222
1360
|
const x = xoff + col * pitch;
|
|
1223
1361
|
const y = ((rows - 1) / 2 - row) * rowSpacing;
|
|
1224
|
-
return /* @__PURE__ */
|
|
1362
|
+
return /* @__PURE__ */ jsx22(
|
|
1225
1363
|
PinHeader,
|
|
1226
1364
|
{
|
|
1227
1365
|
x,
|
|
@@ -1241,7 +1379,7 @@ var PinRow = ({
|
|
|
1241
1379
|
};
|
|
1242
1380
|
|
|
1243
1381
|
// lib/qfn.tsx
|
|
1244
|
-
import { Cuboid as Cuboid15, Colorize as
|
|
1382
|
+
import { Cuboid as Cuboid15, Colorize as Colorize8 } from "jscad-fiber";
|
|
1245
1383
|
|
|
1246
1384
|
// lib/utils/getQuadCoords.ts
|
|
1247
1385
|
var getQuadCoords = (params) => {
|
|
@@ -1331,7 +1469,7 @@ var getQuadPinMap = ({
|
|
|
1331
1469
|
};
|
|
1332
1470
|
|
|
1333
1471
|
// lib/qfn.tsx
|
|
1334
|
-
import { Fragment as
|
|
1472
|
+
import { Fragment as Fragment19, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1335
1473
|
var QFN = ({
|
|
1336
1474
|
num_pins = 16,
|
|
1337
1475
|
bodyWidth = 9,
|
|
@@ -1373,15 +1511,15 @@ var QFN = ({
|
|
|
1373
1511
|
const pn = pin_map[i + 1];
|
|
1374
1512
|
pinPositions.push({ pn, x, y, pw, pl });
|
|
1375
1513
|
}
|
|
1376
|
-
return /* @__PURE__ */
|
|
1377
|
-
/* @__PURE__ */
|
|
1514
|
+
return /* @__PURE__ */ jsxs20(Fragment19, { children: [
|
|
1515
|
+
/* @__PURE__ */ jsx23(Colorize8, { color: "grey", children: /* @__PURE__ */ jsx23(
|
|
1378
1516
|
Cuboid15,
|
|
1379
1517
|
{
|
|
1380
1518
|
center: [0, 0, bodyThickness / 2],
|
|
1381
1519
|
size: [bodyWidth, bodyLength10, bodyThickness]
|
|
1382
1520
|
}
|
|
1383
1521
|
) }),
|
|
1384
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
1522
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx23(
|
|
1385
1523
|
Cuboid15,
|
|
1386
1524
|
{
|
|
1387
1525
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
@@ -1389,7 +1527,7 @@ var QFN = ({
|
|
|
1389
1527
|
},
|
|
1390
1528
|
i
|
|
1391
1529
|
)),
|
|
1392
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
1530
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx23(
|
|
1393
1531
|
Cuboid15,
|
|
1394
1532
|
{
|
|
1395
1533
|
center: [0, 0, thermalPadThickness / 2],
|
|
@@ -1405,7 +1543,7 @@ var QFN = ({
|
|
|
1405
1543
|
var qfn_default = QFN;
|
|
1406
1544
|
|
|
1407
1545
|
// lib/SOT-235.tsx
|
|
1408
|
-
import { Fragment as
|
|
1546
|
+
import { Fragment as Fragment20, jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1409
1547
|
var SOT235 = () => {
|
|
1410
1548
|
const fullWidth = 2.8;
|
|
1411
1549
|
const bodyWidth = 1.6;
|
|
@@ -1417,8 +1555,8 @@ var SOT235 = () => {
|
|
|
1417
1555
|
const padContactLength = 0.5;
|
|
1418
1556
|
const padPitch = 0.95;
|
|
1419
1557
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
1420
|
-
return /* @__PURE__ */
|
|
1421
|
-
/* @__PURE__ */
|
|
1558
|
+
return /* @__PURE__ */ jsxs21(Fragment20, { children: [
|
|
1559
|
+
/* @__PURE__ */ jsx24(
|
|
1422
1560
|
SmdChipLead,
|
|
1423
1561
|
{
|
|
1424
1562
|
rotation: Math.PI,
|
|
@@ -1435,7 +1573,7 @@ var SOT235 = () => {
|
|
|
1435
1573
|
},
|
|
1436
1574
|
1
|
|
1437
1575
|
),
|
|
1438
|
-
/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ jsx24(
|
|
1439
1577
|
SmdChipLead,
|
|
1440
1578
|
{
|
|
1441
1579
|
rotation: Math.PI,
|
|
@@ -1452,7 +1590,7 @@ var SOT235 = () => {
|
|
|
1452
1590
|
},
|
|
1453
1591
|
2
|
|
1454
1592
|
),
|
|
1455
|
-
/* @__PURE__ */
|
|
1593
|
+
/* @__PURE__ */ jsx24(
|
|
1456
1594
|
SmdChipLead,
|
|
1457
1595
|
{
|
|
1458
1596
|
position: {
|
|
@@ -1468,7 +1606,7 @@ var SOT235 = () => {
|
|
|
1468
1606
|
},
|
|
1469
1607
|
3
|
|
1470
1608
|
),
|
|
1471
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ jsx24(
|
|
1472
1610
|
SmdChipLead,
|
|
1473
1611
|
{
|
|
1474
1612
|
position: {
|
|
@@ -1484,7 +1622,7 @@ var SOT235 = () => {
|
|
|
1484
1622
|
},
|
|
1485
1623
|
1
|
|
1486
1624
|
),
|
|
1487
|
-
/* @__PURE__ */
|
|
1625
|
+
/* @__PURE__ */ jsx24(
|
|
1488
1626
|
SmdChipLead,
|
|
1489
1627
|
{
|
|
1490
1628
|
position: {
|
|
@@ -1500,7 +1638,7 @@ var SOT235 = () => {
|
|
|
1500
1638
|
},
|
|
1501
1639
|
2
|
|
1502
1640
|
),
|
|
1503
|
-
/* @__PURE__ */
|
|
1641
|
+
/* @__PURE__ */ jsx24(
|
|
1504
1642
|
ChipBody,
|
|
1505
1643
|
{
|
|
1506
1644
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -1514,7 +1652,7 @@ var SOT235 = () => {
|
|
|
1514
1652
|
var SOT_235_default = SOT235;
|
|
1515
1653
|
|
|
1516
1654
|
// lib/SOT-23W.tsx
|
|
1517
|
-
import { Fragment as
|
|
1655
|
+
import { Fragment as Fragment21, jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1518
1656
|
var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
1519
1657
|
const bodyWidth = 1.92;
|
|
1520
1658
|
const bodyLength10 = 2.9;
|
|
@@ -1525,8 +1663,8 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1525
1663
|
const padContactLength = 0.25;
|
|
1526
1664
|
const padThickness = leadThickness / 2;
|
|
1527
1665
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
1528
|
-
return /* @__PURE__ */
|
|
1529
|
-
/* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ jsxs22(Fragment21, { children: [
|
|
1667
|
+
/* @__PURE__ */ jsx25(
|
|
1530
1668
|
SmdChipLead,
|
|
1531
1669
|
{
|
|
1532
1670
|
rotation: Math.PI,
|
|
@@ -1543,7 +1681,7 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1543
1681
|
},
|
|
1544
1682
|
1
|
|
1545
1683
|
),
|
|
1546
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ jsx25(
|
|
1547
1685
|
SmdChipLead,
|
|
1548
1686
|
{
|
|
1549
1687
|
position: {
|
|
@@ -1559,7 +1697,7 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1559
1697
|
},
|
|
1560
1698
|
2
|
|
1561
1699
|
),
|
|
1562
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ jsx25(
|
|
1563
1701
|
SmdChipLead,
|
|
1564
1702
|
{
|
|
1565
1703
|
position: {
|
|
@@ -1575,7 +1713,7 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1575
1713
|
},
|
|
1576
1714
|
3
|
|
1577
1715
|
),
|
|
1578
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ jsx25(
|
|
1579
1717
|
ChipBody,
|
|
1580
1718
|
{
|
|
1581
1719
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -1590,8 +1728,8 @@ var SOT23W = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
1590
1728
|
};
|
|
1591
1729
|
|
|
1592
1730
|
// lib/FemaleHeader.tsx
|
|
1593
|
-
import { Colorize as
|
|
1594
|
-
import { Fragment as
|
|
1731
|
+
import { Colorize as Colorize9, Cuboid as Cuboid16, Hull as Hull5, Subtract as Subtract3 } from "jscad-fiber";
|
|
1732
|
+
import { Fragment as Fragment22, jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1595
1733
|
var FemaleHeader = ({
|
|
1596
1734
|
x,
|
|
1597
1735
|
y,
|
|
@@ -1613,9 +1751,9 @@ var FemaleHeader = ({
|
|
|
1613
1751
|
const socketCenterZ = flipZ(z + socketDepth / 2);
|
|
1614
1752
|
const socketEntryBaseZ = z + bodyHeight - socketEntryHeight;
|
|
1615
1753
|
const gapWidth = pinThickness * 1.6;
|
|
1616
|
-
return /* @__PURE__ */
|
|
1617
|
-
/* @__PURE__ */
|
|
1618
|
-
/* @__PURE__ */
|
|
1754
|
+
return /* @__PURE__ */ jsxs23(Fragment22, { children: [
|
|
1755
|
+
/* @__PURE__ */ jsx26(Colorize9, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs23(Subtract3, { children: [
|
|
1756
|
+
/* @__PURE__ */ jsx26(
|
|
1619
1757
|
Cuboid16,
|
|
1620
1758
|
{
|
|
1621
1759
|
color: "#000",
|
|
@@ -1623,22 +1761,22 @@ var FemaleHeader = ({
|
|
|
1623
1761
|
center: [x, y, flipZ(z + bodyHeight / 2)]
|
|
1624
1762
|
}
|
|
1625
1763
|
),
|
|
1626
|
-
/* @__PURE__ */
|
|
1764
|
+
/* @__PURE__ */ jsx26(
|
|
1627
1765
|
Cuboid16,
|
|
1628
1766
|
{
|
|
1629
1767
|
size: [socketWidth, socketWidth, socketDepth],
|
|
1630
1768
|
center: [x, y, socketCenterZ]
|
|
1631
1769
|
}
|
|
1632
1770
|
),
|
|
1633
|
-
/* @__PURE__ */
|
|
1634
|
-
/* @__PURE__ */
|
|
1771
|
+
/* @__PURE__ */ jsxs23(Hull5, { children: [
|
|
1772
|
+
/* @__PURE__ */ jsx26(
|
|
1635
1773
|
Cuboid16,
|
|
1636
1774
|
{
|
|
1637
1775
|
size: [socketWidth, socketWidth, 0.01],
|
|
1638
1776
|
center: [x, y, flipZ(socketEntryBaseZ)]
|
|
1639
1777
|
}
|
|
1640
1778
|
),
|
|
1641
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ jsx26(
|
|
1642
1780
|
Cuboid16,
|
|
1643
1781
|
{
|
|
1644
1782
|
size: [socketEntryWidth, socketEntryWidth, 0.01],
|
|
@@ -1647,9 +1785,9 @@ var FemaleHeader = ({
|
|
|
1647
1785
|
)
|
|
1648
1786
|
] })
|
|
1649
1787
|
] }) }),
|
|
1650
|
-
/* @__PURE__ */
|
|
1651
|
-
/* @__PURE__ */
|
|
1652
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ jsxs23(Colorize9, { color: "silver", children: [
|
|
1789
|
+
/* @__PURE__ */ jsxs23(Hull5, { children: [
|
|
1790
|
+
/* @__PURE__ */ jsx26(
|
|
1653
1791
|
Cuboid16,
|
|
1654
1792
|
{
|
|
1655
1793
|
color: "silver",
|
|
@@ -1657,7 +1795,7 @@ var FemaleHeader = ({
|
|
|
1657
1795
|
center: [x, y, flipZ(z + -legsLength / 2 * 0.9)]
|
|
1658
1796
|
}
|
|
1659
1797
|
),
|
|
1660
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ jsx26(
|
|
1661
1799
|
Cuboid16,
|
|
1662
1800
|
{
|
|
1663
1801
|
color: "silver",
|
|
@@ -1666,7 +1804,7 @@ var FemaleHeader = ({
|
|
|
1666
1804
|
}
|
|
1667
1805
|
)
|
|
1668
1806
|
] }),
|
|
1669
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ jsx26(
|
|
1670
1808
|
Cuboid16,
|
|
1671
1809
|
{
|
|
1672
1810
|
color: "silver",
|
|
@@ -1679,7 +1817,7 @@ var FemaleHeader = ({
|
|
|
1679
1817
|
};
|
|
1680
1818
|
|
|
1681
1819
|
// lib/FemaleHeaderRow.tsx
|
|
1682
|
-
import { Fragment as
|
|
1820
|
+
import { Fragment as Fragment23, jsx as jsx27 } from "react/jsx-runtime";
|
|
1683
1821
|
var FemaleHeaderRow = ({
|
|
1684
1822
|
numberOfPins,
|
|
1685
1823
|
pitch = 2.54,
|
|
@@ -1693,12 +1831,12 @@ var FemaleHeaderRow = ({
|
|
|
1693
1831
|
const rowSpacing = 2.54;
|
|
1694
1832
|
const xoff = -((pinsPerRow - 1) / 2) * pitch;
|
|
1695
1833
|
const flipZ = (z) => invert ? -z + bodyHeight : z;
|
|
1696
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ jsx27(Fragment23, { children: Array.from({ length: numberOfPins }, (_, i) => {
|
|
1697
1835
|
const row = Math.floor(i / pinsPerRow);
|
|
1698
1836
|
const col = i % pinsPerRow;
|
|
1699
1837
|
const x = xoff + col * pitch;
|
|
1700
1838
|
const y = ((rows - 1) / 2 - row) * rowSpacing;
|
|
1701
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsx27(
|
|
1702
1840
|
FemaleHeader,
|
|
1703
1841
|
{
|
|
1704
1842
|
x,
|
|
@@ -1715,15 +1853,15 @@ var FemaleHeaderRow = ({
|
|
|
1715
1853
|
|
|
1716
1854
|
// lib/PushButton.tsx
|
|
1717
1855
|
import {
|
|
1718
|
-
Colorize as
|
|
1719
|
-
Cylinder as
|
|
1720
|
-
ExtrudeLinear as
|
|
1721
|
-
Polygon as
|
|
1856
|
+
Colorize as Colorize10,
|
|
1857
|
+
Cylinder as Cylinder4,
|
|
1858
|
+
ExtrudeLinear as ExtrudeLinear4,
|
|
1859
|
+
Polygon as Polygon4,
|
|
1722
1860
|
Rotate as Rotate6,
|
|
1723
1861
|
RoundedCuboid,
|
|
1724
1862
|
Translate as Translate9
|
|
1725
1863
|
} from "jscad-fiber";
|
|
1726
|
-
import { Fragment as
|
|
1864
|
+
import { Fragment as Fragment24, jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1727
1865
|
var PushButton = ({
|
|
1728
1866
|
width: width10,
|
|
1729
1867
|
length,
|
|
@@ -1733,8 +1871,8 @@ var PushButton = ({
|
|
|
1733
1871
|
const bodyLength10 = length;
|
|
1734
1872
|
const bodyHeight = width10 * 0.7;
|
|
1735
1873
|
const legWidth = innerDiameter / 2.5;
|
|
1736
|
-
return /* @__PURE__ */
|
|
1737
|
-
/* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ jsxs24(Fragment24, { children: [
|
|
1875
|
+
/* @__PURE__ */ jsx28(
|
|
1738
1876
|
RoundedCuboid,
|
|
1739
1877
|
{
|
|
1740
1878
|
color: "#1a1a1f",
|
|
@@ -1743,7 +1881,7 @@ var PushButton = ({
|
|
|
1743
1881
|
roundRadius: 0.3
|
|
1744
1882
|
}
|
|
1745
1883
|
),
|
|
1746
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx28(
|
|
1747
1885
|
RoundedCuboid,
|
|
1748
1886
|
{
|
|
1749
1887
|
color: "#f2f2f2",
|
|
@@ -1752,8 +1890,8 @@ var PushButton = ({
|
|
|
1752
1890
|
roundRadius: 0.14
|
|
1753
1891
|
}
|
|
1754
1892
|
),
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
|
|
1893
|
+
/* @__PURE__ */ jsx28(
|
|
1894
|
+
Cylinder4,
|
|
1757
1895
|
{
|
|
1758
1896
|
color: "#1a1a1f",
|
|
1759
1897
|
height: bodyHeight * 0.8,
|
|
@@ -1761,8 +1899,8 @@ var PushButton = ({
|
|
|
1761
1899
|
center: [0, 0, bodyHeight + bodyHeight * 0.8 / 2]
|
|
1762
1900
|
}
|
|
1763
1901
|
),
|
|
1764
|
-
/* @__PURE__ */
|
|
1765
|
-
|
|
1902
|
+
/* @__PURE__ */ jsx28(
|
|
1903
|
+
Cylinder4,
|
|
1766
1904
|
{
|
|
1767
1905
|
color: "#1a1a1f",
|
|
1768
1906
|
height: bodyHeight * 0.2,
|
|
@@ -1774,8 +1912,8 @@ var PushButton = ({
|
|
|
1774
1912
|
]
|
|
1775
1913
|
}
|
|
1776
1914
|
),
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
|
|
1915
|
+
/* @__PURE__ */ jsx28(
|
|
1916
|
+
Cylinder4,
|
|
1779
1917
|
{
|
|
1780
1918
|
color: "#1a1a1f",
|
|
1781
1919
|
height: bodyHeight * 0.2,
|
|
@@ -1787,8 +1925,8 @@ var PushButton = ({
|
|
|
1787
1925
|
]
|
|
1788
1926
|
}
|
|
1789
1927
|
),
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
|
|
1928
|
+
/* @__PURE__ */ jsx28(
|
|
1929
|
+
Cylinder4,
|
|
1792
1930
|
{
|
|
1793
1931
|
color: "#1a1a1f",
|
|
1794
1932
|
height: bodyHeight * 0.2,
|
|
@@ -1800,8 +1938,8 @@ var PushButton = ({
|
|
|
1800
1938
|
]
|
|
1801
1939
|
}
|
|
1802
1940
|
),
|
|
1803
|
-
/* @__PURE__ */
|
|
1804
|
-
|
|
1941
|
+
/* @__PURE__ */ jsx28(
|
|
1942
|
+
Cylinder4,
|
|
1805
1943
|
{
|
|
1806
1944
|
color: "#1a1a1f",
|
|
1807
1945
|
height: bodyHeight * 0.2,
|
|
@@ -1813,7 +1951,7 @@ var PushButton = ({
|
|
|
1813
1951
|
]
|
|
1814
1952
|
}
|
|
1815
1953
|
),
|
|
1816
|
-
/* @__PURE__ */
|
|
1954
|
+
/* @__PURE__ */ jsx28(
|
|
1817
1955
|
PushButtonLeg,
|
|
1818
1956
|
{
|
|
1819
1957
|
thickness: innerDiameter / 3,
|
|
@@ -1827,7 +1965,7 @@ var PushButton = ({
|
|
|
1827
1965
|
}
|
|
1828
1966
|
}
|
|
1829
1967
|
),
|
|
1830
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsx28(
|
|
1831
1969
|
PushButtonLeg,
|
|
1832
1970
|
{
|
|
1833
1971
|
thickness: innerDiameter / 3,
|
|
@@ -1842,7 +1980,7 @@ var PushButton = ({
|
|
|
1842
1980
|
rotation: Math.PI
|
|
1843
1981
|
}
|
|
1844
1982
|
),
|
|
1845
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ jsx28(
|
|
1846
1984
|
PushButtonLeg,
|
|
1847
1985
|
{
|
|
1848
1986
|
thickness: innerDiameter / 3,
|
|
@@ -1853,7 +1991,7 @@ var PushButton = ({
|
|
|
1853
1991
|
rotation: Math.PI
|
|
1854
1992
|
}
|
|
1855
1993
|
),
|
|
1856
|
-
/* @__PURE__ */
|
|
1994
|
+
/* @__PURE__ */ jsx28(
|
|
1857
1995
|
PushButtonLeg,
|
|
1858
1996
|
{
|
|
1859
1997
|
thickness: innerDiameter / 3,
|
|
@@ -1885,7 +2023,7 @@ var PushButtonLeg = (props) => {
|
|
|
1885
2023
|
[0, 0]
|
|
1886
2024
|
];
|
|
1887
2025
|
const polygon = getExpandedStroke(points, thickness);
|
|
1888
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ jsx28(Colorize10, { color: "#f2f2f2", children: /* @__PURE__ */ jsx28(
|
|
1889
2027
|
Translate9,
|
|
1890
2028
|
{
|
|
1891
2029
|
offset: {
|
|
@@ -1893,13 +2031,13 @@ var PushButtonLeg = (props) => {
|
|
|
1893
2031
|
y: position?.y || 0,
|
|
1894
2032
|
z: position?.z || 0
|
|
1895
2033
|
},
|
|
1896
|
-
children: /* @__PURE__ */
|
|
2034
|
+
children: /* @__PURE__ */ jsx28(Rotate6, { rotation: [0, 55, rotation], children: /* @__PURE__ */ jsx28(ExtrudeLinear4, { height: width10, children: /* @__PURE__ */ jsx28(Polygon4, { points: polygon.map((p) => [p.y, p.x]) }) }) })
|
|
1897
2035
|
}
|
|
1898
2036
|
) });
|
|
1899
2037
|
};
|
|
1900
2038
|
|
|
1901
2039
|
// lib/SOIC.tsx
|
|
1902
|
-
import { Fragment as
|
|
2040
|
+
import { Fragment as Fragment25, jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1903
2041
|
var SOIC = ({
|
|
1904
2042
|
pinCount,
|
|
1905
2043
|
leadLength,
|
|
@@ -1915,8 +2053,8 @@ var SOIC = ({
|
|
|
1915
2053
|
const leadBodyOffset = leadLength * 0;
|
|
1916
2054
|
const fullLength10 = pitch * (sidePinCount - 1) + leadWidth + 0.2;
|
|
1917
2055
|
const bodyWidthAdjusted = bodyWidth * 0.55;
|
|
1918
|
-
return /* @__PURE__ */
|
|
1919
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsxs25(Fragment25, { children: [
|
|
2057
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx29(
|
|
1920
2058
|
SmdChipLead,
|
|
1921
2059
|
{
|
|
1922
2060
|
position: {
|
|
@@ -1932,7 +2070,7 @@ var SOIC = ({
|
|
|
1932
2070
|
},
|
|
1933
2071
|
i
|
|
1934
2072
|
)),
|
|
1935
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2073
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx29(
|
|
1936
2074
|
SmdChipLead,
|
|
1937
2075
|
{
|
|
1938
2076
|
rotation: Math.PI,
|
|
@@ -1949,7 +2087,7 @@ var SOIC = ({
|
|
|
1949
2087
|
},
|
|
1950
2088
|
i
|
|
1951
2089
|
)),
|
|
1952
|
-
/* @__PURE__ */
|
|
2090
|
+
/* @__PURE__ */ jsx29(
|
|
1953
2091
|
ChipBody,
|
|
1954
2092
|
{
|
|
1955
2093
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -1962,7 +2100,7 @@ var SOIC = ({
|
|
|
1962
2100
|
};
|
|
1963
2101
|
|
|
1964
2102
|
// lib/VSSOP.tsx
|
|
1965
|
-
import { Fragment as
|
|
2103
|
+
import { Fragment as Fragment26, jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1966
2104
|
var VSSOP = ({
|
|
1967
2105
|
pinCount,
|
|
1968
2106
|
pitch,
|
|
@@ -1992,8 +2130,8 @@ var VSSOP = ({
|
|
|
1992
2130
|
const componentFullWidth = 4.5;
|
|
1993
2131
|
const leadBodyDistance = (componentFullWidth - _bodyWidth) / 2;
|
|
1994
2132
|
const padContactLength = leadBodyDistance * 0.5;
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2133
|
+
return /* @__PURE__ */ jsxs26(Fragment26, { children: [
|
|
2134
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx30(
|
|
1997
2135
|
SmdChipLead,
|
|
1998
2136
|
{
|
|
1999
2137
|
position: {
|
|
@@ -2009,7 +2147,7 @@ var VSSOP = ({
|
|
|
2009
2147
|
},
|
|
2010
2148
|
`left-${i}`
|
|
2011
2149
|
)),
|
|
2012
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2150
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx30(
|
|
2013
2151
|
SmdChipLead,
|
|
2014
2152
|
{
|
|
2015
2153
|
rotation: Math.PI,
|
|
@@ -2026,7 +2164,7 @@ var VSSOP = ({
|
|
|
2026
2164
|
},
|
|
2027
2165
|
`right-${i}`
|
|
2028
2166
|
)),
|
|
2029
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx30(
|
|
2030
2168
|
ChipBody,
|
|
2031
2169
|
{
|
|
2032
2170
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -2039,8 +2177,8 @@ var VSSOP = ({
|
|
|
2039
2177
|
};
|
|
2040
2178
|
|
|
2041
2179
|
// lib/SOD523.tsx
|
|
2042
|
-
import { Colorize as
|
|
2043
|
-
import { Fragment as
|
|
2180
|
+
import { Colorize as Colorize11, Cuboid as Cuboid18, Hull as Hull6, Translate as Translate10, Union as Union4 } from "jscad-fiber";
|
|
2181
|
+
import { Fragment as Fragment27, jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2044
2182
|
var SOD523 = () => {
|
|
2045
2183
|
const fullWidth = 2.15;
|
|
2046
2184
|
const bodyLength10 = 0.8;
|
|
@@ -2053,8 +2191,8 @@ var SOD523 = () => {
|
|
|
2053
2191
|
const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
|
|
2054
2192
|
const taperOffset = 0.2;
|
|
2055
2193
|
const straightHeight = bodyHeight * 0.5;
|
|
2056
|
-
return /* @__PURE__ */
|
|
2057
|
-
/* @__PURE__ */
|
|
2194
|
+
return /* @__PURE__ */ jsxs27(Fragment27, { children: [
|
|
2195
|
+
/* @__PURE__ */ jsx31(
|
|
2058
2196
|
Cuboid18,
|
|
2059
2197
|
{
|
|
2060
2198
|
color: "#ccc",
|
|
@@ -2062,7 +2200,7 @@ var SOD523 = () => {
|
|
|
2062
2200
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2063
2201
|
}
|
|
2064
2202
|
),
|
|
2065
|
-
/* @__PURE__ */
|
|
2203
|
+
/* @__PURE__ */ jsx31(
|
|
2066
2204
|
Cuboid18,
|
|
2067
2205
|
{
|
|
2068
2206
|
color: "#ccc",
|
|
@@ -2070,11 +2208,11 @@ var SOD523 = () => {
|
|
|
2070
2208
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2071
2209
|
}
|
|
2072
2210
|
),
|
|
2073
|
-
/* @__PURE__ */
|
|
2074
|
-
/* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx31(Colorize11, { color: "#222", children: /* @__PURE__ */ jsxs27(Union4, { children: [
|
|
2212
|
+
/* @__PURE__ */ jsx31(Translate10, { z: straightHeight / 2, children: /* @__PURE__ */ jsx31(Cuboid18, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2213
|
+
/* @__PURE__ */ jsxs27(Hull6, { children: [
|
|
2214
|
+
/* @__PURE__ */ jsx31(Translate10, { z: straightHeight, children: /* @__PURE__ */ jsx31(Cuboid18, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2215
|
+
/* @__PURE__ */ jsx31(Translate10, { z: bodyHeight, children: /* @__PURE__ */ jsx31(
|
|
2078
2216
|
Cuboid18,
|
|
2079
2217
|
{
|
|
2080
2218
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2086,8 +2224,8 @@ var SOD523 = () => {
|
|
|
2086
2224
|
};
|
|
2087
2225
|
|
|
2088
2226
|
// lib/SOD882.tsx
|
|
2089
|
-
import { Colorize as
|
|
2090
|
-
import { Fragment as
|
|
2227
|
+
import { Colorize as Colorize12, Cuboid as Cuboid19, Translate as Translate11 } from "jscad-fiber";
|
|
2228
|
+
import { Fragment as Fragment28, jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2091
2229
|
var SOD882 = () => {
|
|
2092
2230
|
const bodyLength10 = 0.98;
|
|
2093
2231
|
const bodyHeight = 0.47;
|
|
@@ -2098,8 +2236,8 @@ var SOD882 = () => {
|
|
|
2098
2236
|
const bodyWidth = 0.58;
|
|
2099
2237
|
const leftPadCenterX = -pitch / 2;
|
|
2100
2238
|
const rightPadCenterX = pitch / 2;
|
|
2101
|
-
return /* @__PURE__ */
|
|
2102
|
-
/* @__PURE__ */
|
|
2239
|
+
return /* @__PURE__ */ jsxs28(Fragment28, { children: [
|
|
2240
|
+
/* @__PURE__ */ jsx32(
|
|
2103
2241
|
Cuboid19,
|
|
2104
2242
|
{
|
|
2105
2243
|
color: "#ccc",
|
|
@@ -2107,7 +2245,7 @@ var SOD882 = () => {
|
|
|
2107
2245
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2108
2246
|
}
|
|
2109
2247
|
),
|
|
2110
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ jsx32(
|
|
2111
2249
|
Cuboid19,
|
|
2112
2250
|
{
|
|
2113
2251
|
color: "#ccc",
|
|
@@ -2115,8 +2253,8 @@ var SOD882 = () => {
|
|
|
2115
2253
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2116
2254
|
}
|
|
2117
2255
|
),
|
|
2118
|
-
/* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */
|
|
2256
|
+
/* @__PURE__ */ jsx32(Colorize12, { color: "#222", children: /* @__PURE__ */ jsx32(Translate11, { z: bodyHeight / 2 + 0.02, children: /* @__PURE__ */ jsx32(Cuboid19, { size: [bodyLength10, bodyWidth, bodyHeight] }) }) }),
|
|
2257
|
+
/* @__PURE__ */ jsx32(
|
|
2120
2258
|
Cuboid19,
|
|
2121
2259
|
{
|
|
2122
2260
|
color: "#ccc",
|
|
@@ -2124,7 +2262,7 @@ var SOD882 = () => {
|
|
|
2124
2262
|
center: [0, padLength / 2, bodyHeight / 4]
|
|
2125
2263
|
}
|
|
2126
2264
|
),
|
|
2127
|
-
/* @__PURE__ */
|
|
2265
|
+
/* @__PURE__ */ jsx32(
|
|
2128
2266
|
Cuboid19,
|
|
2129
2267
|
{
|
|
2130
2268
|
color: "#ccc",
|
|
@@ -2132,7 +2270,7 @@ var SOD882 = () => {
|
|
|
2132
2270
|
center: [0, -padLength / 2, bodyHeight / 4]
|
|
2133
2271
|
}
|
|
2134
2272
|
),
|
|
2135
|
-
/* @__PURE__ */
|
|
2273
|
+
/* @__PURE__ */ jsx32(
|
|
2136
2274
|
Cuboid19,
|
|
2137
2275
|
{
|
|
2138
2276
|
color: "#ccc",
|
|
@@ -2140,7 +2278,7 @@ var SOD882 = () => {
|
|
|
2140
2278
|
center: [pitch / 2, 0, bodyHeight / 4]
|
|
2141
2279
|
}
|
|
2142
2280
|
),
|
|
2143
|
-
/* @__PURE__ */
|
|
2281
|
+
/* @__PURE__ */ jsx32(
|
|
2144
2282
|
Cuboid19,
|
|
2145
2283
|
{
|
|
2146
2284
|
color: "#ccc",
|
|
@@ -2152,8 +2290,8 @@ var SOD882 = () => {
|
|
|
2152
2290
|
};
|
|
2153
2291
|
|
|
2154
2292
|
// lib/SMA.tsx
|
|
2155
|
-
import { Cuboid as Cuboid20, Colorize as
|
|
2156
|
-
import { Fragment as
|
|
2293
|
+
import { Cuboid as Cuboid20, Colorize as Colorize13, Union as Union6, Hull as Hull8, Translate as Translate12 } from "jscad-fiber";
|
|
2294
|
+
import { Fragment as Fragment29, jsx as jsx33, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2157
2295
|
var SMA = () => {
|
|
2158
2296
|
const bodyWidth = 4.4;
|
|
2159
2297
|
const bodyLength10 = 3.4;
|
|
@@ -2164,19 +2302,19 @@ var SMA = () => {
|
|
|
2164
2302
|
const leadHeight = 1.14;
|
|
2165
2303
|
const taperOffset = 0.4;
|
|
2166
2304
|
const straightHeight = bodyHeight * 0.5;
|
|
2167
|
-
const Body = /* @__PURE__ */
|
|
2168
|
-
/* @__PURE__ */
|
|
2169
|
-
/* @__PURE__ */
|
|
2305
|
+
const Body = /* @__PURE__ */ jsx33(Colorize13, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs29(Union6, { children: [
|
|
2306
|
+
/* @__PURE__ */ jsxs29(Hull8, { children: [
|
|
2307
|
+
/* @__PURE__ */ jsx33(Translate12, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx33(
|
|
2170
2308
|
Cuboid20,
|
|
2171
2309
|
{
|
|
2172
2310
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2173
2311
|
}
|
|
2174
2312
|
) }),
|
|
2175
|
-
/* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ jsx33(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2176
2314
|
] }),
|
|
2177
|
-
/* @__PURE__ */
|
|
2178
|
-
/* @__PURE__ */
|
|
2179
|
-
/* @__PURE__ */
|
|
2315
|
+
/* @__PURE__ */ jsxs29(Hull8, { children: [
|
|
2316
|
+
/* @__PURE__ */ jsx33(Translate12, { z: straightHeight, children: /* @__PURE__ */ jsx33(Cuboid20, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2317
|
+
/* @__PURE__ */ jsx33(Translate12, { z: bodyHeight, children: /* @__PURE__ */ jsx33(
|
|
2180
2318
|
Cuboid20,
|
|
2181
2319
|
{
|
|
2182
2320
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2192,22 +2330,22 @@ var SMA = () => {
|
|
|
2192
2330
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2193
2331
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2194
2332
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2195
|
-
return /* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ jsx33(Colorize13, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs29(Union6, { children: [
|
|
2334
|
+
/* @__PURE__ */ jsx33(
|
|
2197
2335
|
Cuboid20,
|
|
2198
2336
|
{
|
|
2199
2337
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
2200
2338
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
2201
2339
|
}
|
|
2202
2340
|
),
|
|
2203
|
-
/* @__PURE__ */
|
|
2341
|
+
/* @__PURE__ */ jsx33(
|
|
2204
2342
|
Cuboid20,
|
|
2205
2343
|
{
|
|
2206
2344
|
size: [leadThickness, padWidth, leadHeight],
|
|
2207
2345
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
2208
2346
|
}
|
|
2209
2347
|
),
|
|
2210
|
-
/* @__PURE__ */
|
|
2348
|
+
/* @__PURE__ */ jsx33(
|
|
2211
2349
|
Cuboid20,
|
|
2212
2350
|
{
|
|
2213
2351
|
size: [bridgeLength, padWidth, leadThickness],
|
|
@@ -2216,16 +2354,16 @@ var SMA = () => {
|
|
|
2216
2354
|
)
|
|
2217
2355
|
] }) });
|
|
2218
2356
|
};
|
|
2219
|
-
return /* @__PURE__ */
|
|
2220
|
-
/* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ jsxs29(Fragment29, { children: [
|
|
2358
|
+
/* @__PURE__ */ jsx33(Lead, { xDir: 1 }),
|
|
2359
|
+
/* @__PURE__ */ jsx33(Lead, { xDir: -1 }),
|
|
2222
2360
|
Body
|
|
2223
2361
|
] });
|
|
2224
2362
|
};
|
|
2225
2363
|
|
|
2226
2364
|
// lib/SMB.tsx
|
|
2227
|
-
import { Cuboid as Cuboid21, Colorize as
|
|
2228
|
-
import { Fragment as
|
|
2365
|
+
import { Cuboid as Cuboid21, Colorize as Colorize14, Union as Union7, Hull as Hull9, Translate as Translate13 } from "jscad-fiber";
|
|
2366
|
+
import { Fragment as Fragment30, jsx as jsx34, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2229
2367
|
var SMB = () => {
|
|
2230
2368
|
const bodyWidth = 4.4;
|
|
2231
2369
|
const bodyLength10 = 3.4;
|
|
@@ -2236,19 +2374,19 @@ var SMB = () => {
|
|
|
2236
2374
|
const leadHeight = 1.14;
|
|
2237
2375
|
const taperOffset = 0.4;
|
|
2238
2376
|
const straightHeight = bodyHeight * 0.5;
|
|
2239
|
-
const Body = /* @__PURE__ */
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
/* @__PURE__ */
|
|
2377
|
+
const Body = /* @__PURE__ */ jsx34(Colorize14, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs30(Union7, { children: [
|
|
2378
|
+
/* @__PURE__ */ jsxs30(Hull9, { children: [
|
|
2379
|
+
/* @__PURE__ */ jsx34(Translate13, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx34(
|
|
2242
2380
|
Cuboid21,
|
|
2243
2381
|
{
|
|
2244
2382
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2245
2383
|
}
|
|
2246
2384
|
) }),
|
|
2247
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ jsx34(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2248
2386
|
] }),
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsxs30(Hull9, { children: [
|
|
2388
|
+
/* @__PURE__ */ jsx34(Translate13, { z: straightHeight, children: /* @__PURE__ */ jsx34(Cuboid21, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2389
|
+
/* @__PURE__ */ jsx34(Translate13, { z: bodyHeight, children: /* @__PURE__ */ jsx34(
|
|
2252
2390
|
Cuboid21,
|
|
2253
2391
|
{
|
|
2254
2392
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2264,22 +2402,22 @@ var SMB = () => {
|
|
|
2264
2402
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2265
2403
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2266
2404
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2267
|
-
return /* @__PURE__ */
|
|
2268
|
-
/* @__PURE__ */
|
|
2405
|
+
return /* @__PURE__ */ jsx34(Colorize14, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs30(Union7, { children: [
|
|
2406
|
+
/* @__PURE__ */ jsx34(
|
|
2269
2407
|
Cuboid21,
|
|
2270
2408
|
{
|
|
2271
2409
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
2272
2410
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
2273
2411
|
}
|
|
2274
2412
|
),
|
|
2275
|
-
/* @__PURE__ */
|
|
2413
|
+
/* @__PURE__ */ jsx34(
|
|
2276
2414
|
Cuboid21,
|
|
2277
2415
|
{
|
|
2278
2416
|
size: [leadThickness, padWidth, leadHeight],
|
|
2279
2417
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
2280
2418
|
}
|
|
2281
2419
|
),
|
|
2282
|
-
/* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ jsx34(
|
|
2283
2421
|
Cuboid21,
|
|
2284
2422
|
{
|
|
2285
2423
|
size: [bridgeLength, padWidth, leadThickness],
|
|
@@ -2288,16 +2426,16 @@ var SMB = () => {
|
|
|
2288
2426
|
)
|
|
2289
2427
|
] }) });
|
|
2290
2428
|
};
|
|
2291
|
-
return /* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2293
|
-
/* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsxs30(Fragment30, { children: [
|
|
2430
|
+
/* @__PURE__ */ jsx34(Lead, { xDir: 1 }),
|
|
2431
|
+
/* @__PURE__ */ jsx34(Lead, { xDir: -1 }),
|
|
2294
2432
|
Body
|
|
2295
2433
|
] });
|
|
2296
2434
|
};
|
|
2297
2435
|
|
|
2298
2436
|
// lib/SMC.tsx
|
|
2299
|
-
import { Cuboid as Cuboid22, Colorize as
|
|
2300
|
-
import { Fragment as
|
|
2437
|
+
import { Cuboid as Cuboid22, Colorize as Colorize15, Union as Union8, Hull as Hull10, Translate as Translate14 } from "jscad-fiber";
|
|
2438
|
+
import { Fragment as Fragment31, jsx as jsx35, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2301
2439
|
var SMC = () => {
|
|
2302
2440
|
const bodyWidth = 6.8;
|
|
2303
2441
|
const bodyLength10 = 6;
|
|
@@ -2308,19 +2446,19 @@ var SMC = () => {
|
|
|
2308
2446
|
const leadHeight = 1.14;
|
|
2309
2447
|
const taperOffset = 0.4;
|
|
2310
2448
|
const straightHeight = bodyHeight * 0.5;
|
|
2311
|
-
const Body = /* @__PURE__ */
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */
|
|
2449
|
+
const Body = /* @__PURE__ */ jsx35(Colorize15, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs31(Union8, { children: [
|
|
2450
|
+
/* @__PURE__ */ jsxs31(Hull10, { children: [
|
|
2451
|
+
/* @__PURE__ */ jsx35(Translate14, { z: padThickness + 0.01, children: /* @__PURE__ */ jsx35(
|
|
2314
2452
|
Cuboid22,
|
|
2315
2453
|
{
|
|
2316
2454
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.03]
|
|
2317
2455
|
}
|
|
2318
2456
|
) }),
|
|
2319
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ jsx35(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) })
|
|
2320
2458
|
] }),
|
|
2321
|
-
/* @__PURE__ */
|
|
2322
|
-
/* @__PURE__ */
|
|
2323
|
-
/* @__PURE__ */
|
|
2459
|
+
/* @__PURE__ */ jsxs31(Hull10, { children: [
|
|
2460
|
+
/* @__PURE__ */ jsx35(Translate14, { z: straightHeight, children: /* @__PURE__ */ jsx35(Cuboid22, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2461
|
+
/* @__PURE__ */ jsx35(Translate14, { z: bodyHeight, children: /* @__PURE__ */ jsx35(
|
|
2324
2462
|
Cuboid22,
|
|
2325
2463
|
{
|
|
2326
2464
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2336,22 +2474,22 @@ var SMC = () => {
|
|
|
2336
2474
|
const bodyEdgeX = xDir * (bodyLength10 / 2 - leadThickness / 2);
|
|
2337
2475
|
const bridgeLength = Math.abs(bodyEdgeX - verticalLeadX);
|
|
2338
2476
|
const bridgeCenterX = (verticalLeadX + bodyEdgeX) / 2;
|
|
2339
|
-
return /* @__PURE__ */
|
|
2340
|
-
/* @__PURE__ */
|
|
2477
|
+
return /* @__PURE__ */ jsx35(Colorize15, { color: "#c0c0c0", children: /* @__PURE__ */ jsxs31(Union8, { children: [
|
|
2478
|
+
/* @__PURE__ */ jsx35(
|
|
2341
2479
|
Cuboid22,
|
|
2342
2480
|
{
|
|
2343
2481
|
size: [bodyHeight * 0.8, padWidth, leadThickness],
|
|
2344
2482
|
center: [lowerPadX, 0, leadThickness / 2]
|
|
2345
2483
|
}
|
|
2346
2484
|
),
|
|
2347
|
-
/* @__PURE__ */
|
|
2485
|
+
/* @__PURE__ */ jsx35(
|
|
2348
2486
|
Cuboid22,
|
|
2349
2487
|
{
|
|
2350
2488
|
size: [leadThickness, padWidth, leadHeight],
|
|
2351
2489
|
center: [verticalLeadX, 0, leadHeight / 2 + leadThickness]
|
|
2352
2490
|
}
|
|
2353
2491
|
),
|
|
2354
|
-
/* @__PURE__ */
|
|
2492
|
+
/* @__PURE__ */ jsx35(
|
|
2355
2493
|
Cuboid22,
|
|
2356
2494
|
{
|
|
2357
2495
|
size: [bridgeLength, padWidth, leadThickness],
|
|
@@ -2360,16 +2498,16 @@ var SMC = () => {
|
|
|
2360
2498
|
)
|
|
2361
2499
|
] }) });
|
|
2362
2500
|
};
|
|
2363
|
-
return /* @__PURE__ */
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
/* @__PURE__ */
|
|
2501
|
+
return /* @__PURE__ */ jsxs31(Fragment31, { children: [
|
|
2502
|
+
/* @__PURE__ */ jsx35(Lead, { xDir: 1 }),
|
|
2503
|
+
/* @__PURE__ */ jsx35(Lead, { xDir: -1 }),
|
|
2366
2504
|
Body
|
|
2367
2505
|
] });
|
|
2368
2506
|
};
|
|
2369
2507
|
|
|
2370
2508
|
// lib/SMF.tsx
|
|
2371
|
-
import { Colorize as
|
|
2372
|
-
import { Fragment as
|
|
2509
|
+
import { Colorize as Colorize16, Cuboid as Cuboid23, Hull as Hull11, Translate as Translate15, Union as Union9 } from "jscad-fiber";
|
|
2510
|
+
import { Fragment as Fragment32, jsx as jsx36, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2373
2511
|
var SMF = () => {
|
|
2374
2512
|
const fullWidth = 2.9;
|
|
2375
2513
|
const bodyLength10 = 1.9;
|
|
@@ -2382,11 +2520,11 @@ var SMF = () => {
|
|
|
2382
2520
|
const rightPadCenterX = 1.3;
|
|
2383
2521
|
const taperOffset = 0.2;
|
|
2384
2522
|
const straightHeight = bodyHeight * 0.5;
|
|
2385
|
-
const Body = /* @__PURE__ */
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2523
|
+
const Body = /* @__PURE__ */ jsx36(Colorize16, { color: "#222", children: /* @__PURE__ */ jsxs32(Union9, { children: [
|
|
2524
|
+
/* @__PURE__ */ jsx36(Translate15, { z: straightHeight / 2, children: /* @__PURE__ */ jsx36(Cuboid23, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
2525
|
+
/* @__PURE__ */ jsxs32(Hull11, { children: [
|
|
2526
|
+
/* @__PURE__ */ jsx36(Translate15, { z: straightHeight, children: /* @__PURE__ */ jsx36(Cuboid23, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
2527
|
+
/* @__PURE__ */ jsx36(Translate15, { z: bodyHeight, children: /* @__PURE__ */ jsx36(
|
|
2390
2528
|
Cuboid23,
|
|
2391
2529
|
{
|
|
2392
2530
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2394,8 +2532,8 @@ var SMF = () => {
|
|
|
2394
2532
|
) })
|
|
2395
2533
|
] })
|
|
2396
2534
|
] }) });
|
|
2397
|
-
return /* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2535
|
+
return /* @__PURE__ */ jsxs32(Fragment32, { children: [
|
|
2536
|
+
/* @__PURE__ */ jsx36(
|
|
2399
2537
|
Cuboid23,
|
|
2400
2538
|
{
|
|
2401
2539
|
color: "#ccc",
|
|
@@ -2403,7 +2541,7 @@ var SMF = () => {
|
|
|
2403
2541
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2404
2542
|
}
|
|
2405
2543
|
),
|
|
2406
|
-
/* @__PURE__ */
|
|
2544
|
+
/* @__PURE__ */ jsx36(
|
|
2407
2545
|
Cuboid23,
|
|
2408
2546
|
{
|
|
2409
2547
|
color: "#ccc",
|
|
@@ -2416,8 +2554,8 @@ var SMF = () => {
|
|
|
2416
2554
|
};
|
|
2417
2555
|
|
|
2418
2556
|
// lib/sod-123F.tsx
|
|
2419
|
-
import { Colorize as
|
|
2420
|
-
import { Fragment as
|
|
2557
|
+
import { Colorize as Colorize17, Cuboid as Cuboid24, Hull as Hull12, Translate as Translate16, Union as Union10 } from "jscad-fiber";
|
|
2558
|
+
import { Fragment as Fragment33, jsx as jsx37, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2421
2559
|
var SOD123F = () => {
|
|
2422
2560
|
const fullWidth = 2.7;
|
|
2423
2561
|
const bodyLength10 = 1.6;
|
|
@@ -2429,8 +2567,8 @@ var SOD123F = () => {
|
|
|
2429
2567
|
const rightPadCenterX = 1.3;
|
|
2430
2568
|
const taperOffset = 0.2;
|
|
2431
2569
|
const straightHeight = bodyHeight * 0.5;
|
|
2432
|
-
return /* @__PURE__ */
|
|
2433
|
-
/* @__PURE__ */
|
|
2570
|
+
return /* @__PURE__ */ jsxs33(Fragment33, { children: [
|
|
2571
|
+
/* @__PURE__ */ jsx37(
|
|
2434
2572
|
Cuboid24,
|
|
2435
2573
|
{
|
|
2436
2574
|
color: "#ccc",
|
|
@@ -2438,7 +2576,7 @@ var SOD123F = () => {
|
|
|
2438
2576
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2439
2577
|
}
|
|
2440
2578
|
),
|
|
2441
|
-
/* @__PURE__ */
|
|
2579
|
+
/* @__PURE__ */ jsx37(
|
|
2442
2580
|
Cuboid24,
|
|
2443
2581
|
{
|
|
2444
2582
|
color: "#ccc",
|
|
@@ -2446,11 +2584,11 @@ var SOD123F = () => {
|
|
|
2446
2584
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2447
2585
|
}
|
|
2448
2586
|
),
|
|
2449
|
-
/* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2451
|
-
/* @__PURE__ */
|
|
2452
|
-
/* @__PURE__ */
|
|
2453
|
-
/* @__PURE__ */
|
|
2587
|
+
/* @__PURE__ */ jsx37(Colorize17, { color: "#222", children: /* @__PURE__ */ jsxs33(Union10, { children: [
|
|
2588
|
+
/* @__PURE__ */ jsx37(Translate16, { z: straightHeight / 2, children: /* @__PURE__ */ jsx37(Cuboid24, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2589
|
+
/* @__PURE__ */ jsxs33(Hull12, { children: [
|
|
2590
|
+
/* @__PURE__ */ jsx37(Translate16, { z: straightHeight, children: /* @__PURE__ */ jsx37(Cuboid24, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2591
|
+
/* @__PURE__ */ jsx37(Translate16, { z: bodyHeight, children: /* @__PURE__ */ jsx37(
|
|
2454
2592
|
Cuboid24,
|
|
2455
2593
|
{
|
|
2456
2594
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2462,8 +2600,8 @@ var SOD123F = () => {
|
|
|
2462
2600
|
};
|
|
2463
2601
|
|
|
2464
2602
|
// lib/sod-123FL.tsx
|
|
2465
|
-
import { Colorize as
|
|
2466
|
-
import { Fragment as
|
|
2603
|
+
import { Colorize as Colorize18, Cuboid as Cuboid25, Hull as Hull13, Translate as Translate17, Union as Union11 } from "jscad-fiber";
|
|
2604
|
+
import { Fragment as Fragment34, jsx as jsx38, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2467
2605
|
var SOD123FL = () => {
|
|
2468
2606
|
const fullWidth = 2.75;
|
|
2469
2607
|
const bodyLength10 = 1.8;
|
|
@@ -2475,8 +2613,8 @@ var SOD123FL = () => {
|
|
|
2475
2613
|
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2476
2614
|
const taperOffset = 0.4;
|
|
2477
2615
|
const straightHeight = bodyHeight * 0.2;
|
|
2478
|
-
return /* @__PURE__ */
|
|
2479
|
-
/* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ jsxs34(Fragment34, { children: [
|
|
2617
|
+
/* @__PURE__ */ jsx38(
|
|
2480
2618
|
Cuboid25,
|
|
2481
2619
|
{
|
|
2482
2620
|
color: "#ccc",
|
|
@@ -2484,7 +2622,7 @@ var SOD123FL = () => {
|
|
|
2484
2622
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2485
2623
|
}
|
|
2486
2624
|
),
|
|
2487
|
-
/* @__PURE__ */
|
|
2625
|
+
/* @__PURE__ */ jsx38(
|
|
2488
2626
|
Cuboid25,
|
|
2489
2627
|
{
|
|
2490
2628
|
color: "#ccc",
|
|
@@ -2492,11 +2630,11 @@ var SOD123FL = () => {
|
|
|
2492
2630
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2493
2631
|
}
|
|
2494
2632
|
),
|
|
2495
|
-
/* @__PURE__ */
|
|
2496
|
-
/* @__PURE__ */
|
|
2497
|
-
/* @__PURE__ */
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ jsx38(Colorize18, { color: "#222", children: /* @__PURE__ */ jsxs34(Union11, { children: [
|
|
2634
|
+
/* @__PURE__ */ jsx38(Translate17, { z: straightHeight / 2, children: /* @__PURE__ */ jsx38(Cuboid25, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2635
|
+
/* @__PURE__ */ jsxs34(Hull13, { children: [
|
|
2636
|
+
/* @__PURE__ */ jsx38(Translate17, { z: straightHeight, children: /* @__PURE__ */ jsx38(Cuboid25, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2637
|
+
/* @__PURE__ */ jsx38(Translate17, { z: bodyHeight, children: /* @__PURE__ */ jsx38(
|
|
2500
2638
|
Cuboid25,
|
|
2501
2639
|
{
|
|
2502
2640
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2504,7 +2642,7 @@ var SOD123FL = () => {
|
|
|
2504
2642
|
) })
|
|
2505
2643
|
] })
|
|
2506
2644
|
] }) }),
|
|
2507
|
-
/* @__PURE__ */
|
|
2645
|
+
/* @__PURE__ */ jsx38(
|
|
2508
2646
|
Cuboid25,
|
|
2509
2647
|
{
|
|
2510
2648
|
color: "#777",
|
|
@@ -2516,8 +2654,8 @@ var SOD123FL = () => {
|
|
|
2516
2654
|
};
|
|
2517
2655
|
|
|
2518
2656
|
// lib/sod-123W.tsx
|
|
2519
|
-
import { Colorize as
|
|
2520
|
-
import { Fragment as
|
|
2657
|
+
import { Colorize as Colorize19, Cuboid as Cuboid26, Hull as Hull14, Translate as Translate18, Union as Union12 } from "jscad-fiber";
|
|
2658
|
+
import { Fragment as Fragment35, jsx as jsx39, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2521
2659
|
var SOD123W = () => {
|
|
2522
2660
|
const fullWidth = 2.6;
|
|
2523
2661
|
const bodyLength10 = 1.7;
|
|
@@ -2530,8 +2668,8 @@ var SOD123W = () => {
|
|
|
2530
2668
|
const taperOffset = 0.4;
|
|
2531
2669
|
const lowerTaperOffset = 0.1;
|
|
2532
2670
|
const straightHeight = bodyHeight * 0.2;
|
|
2533
|
-
return /* @__PURE__ */
|
|
2534
|
-
/* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsxs35(Fragment35, { children: [
|
|
2672
|
+
/* @__PURE__ */ jsx39(
|
|
2535
2673
|
Cuboid26,
|
|
2536
2674
|
{
|
|
2537
2675
|
color: "#ccc",
|
|
@@ -2539,7 +2677,7 @@ var SOD123W = () => {
|
|
|
2539
2677
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2540
2678
|
}
|
|
2541
2679
|
),
|
|
2542
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ jsx39(
|
|
2543
2681
|
Cuboid26,
|
|
2544
2682
|
{
|
|
2545
2683
|
color: "#ccc",
|
|
@@ -2547,9 +2685,9 @@ var SOD123W = () => {
|
|
|
2547
2685
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2548
2686
|
}
|
|
2549
2687
|
),
|
|
2550
|
-
/* @__PURE__ */
|
|
2551
|
-
/* @__PURE__ */
|
|
2552
|
-
/* @__PURE__ */
|
|
2688
|
+
/* @__PURE__ */ jsx39(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs35(Union12, { children: [
|
|
2689
|
+
/* @__PURE__ */ jsxs35(Hull14, { children: [
|
|
2690
|
+
/* @__PURE__ */ jsx39(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx39(
|
|
2553
2691
|
Cuboid26,
|
|
2554
2692
|
{
|
|
2555
2693
|
size: [
|
|
@@ -2559,7 +2697,7 @@ var SOD123W = () => {
|
|
|
2559
2697
|
]
|
|
2560
2698
|
}
|
|
2561
2699
|
) }),
|
|
2562
|
-
/* @__PURE__ */
|
|
2700
|
+
/* @__PURE__ */ jsx39(Translate18, { z: 0.01, children: /* @__PURE__ */ jsx39(
|
|
2563
2701
|
Cuboid26,
|
|
2564
2702
|
{
|
|
2565
2703
|
size: [
|
|
@@ -2570,9 +2708,9 @@ var SOD123W = () => {
|
|
|
2570
2708
|
}
|
|
2571
2709
|
) })
|
|
2572
2710
|
] }),
|
|
2573
|
-
/* @__PURE__ */
|
|
2574
|
-
/* @__PURE__ */
|
|
2575
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ jsxs35(Hull14, { children: [
|
|
2712
|
+
/* @__PURE__ */ jsx39(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx39(Cuboid26, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2713
|
+
/* @__PURE__ */ jsx39(Translate18, { z: bodyHeight, children: /* @__PURE__ */ jsx39(
|
|
2576
2714
|
Cuboid26,
|
|
2577
2715
|
{
|
|
2578
2716
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2580,7 +2718,7 @@ var SOD123W = () => {
|
|
|
2580
2718
|
) })
|
|
2581
2719
|
] })
|
|
2582
2720
|
] }) }),
|
|
2583
|
-
/* @__PURE__ */
|
|
2721
|
+
/* @__PURE__ */ jsx39(
|
|
2584
2722
|
Cuboid26,
|
|
2585
2723
|
{
|
|
2586
2724
|
color: "#777",
|
|
@@ -2592,8 +2730,8 @@ var SOD123W = () => {
|
|
|
2592
2730
|
};
|
|
2593
2731
|
|
|
2594
2732
|
// lib/sod-128.tsx
|
|
2595
|
-
import { Colorize as
|
|
2596
|
-
import { Fragment as
|
|
2733
|
+
import { Colorize as Colorize20, Cuboid as Cuboid27, Hull as Hull15, Translate as Translate19, Union as Union13 } from "jscad-fiber";
|
|
2734
|
+
import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2597
2735
|
var SOD128 = () => {
|
|
2598
2736
|
const fullWidth = 3.8;
|
|
2599
2737
|
const bodyLength10 = 2.5;
|
|
@@ -2606,8 +2744,8 @@ var SOD128 = () => {
|
|
|
2606
2744
|
const taperOffset = 0.4;
|
|
2607
2745
|
const lowerTaperOffset = 0.05;
|
|
2608
2746
|
const straightHeight = bodyHeight * 0.2;
|
|
2609
|
-
return /* @__PURE__ */
|
|
2610
|
-
/* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ jsxs36(Fragment36, { children: [
|
|
2748
|
+
/* @__PURE__ */ jsx40(
|
|
2611
2749
|
Cuboid27,
|
|
2612
2750
|
{
|
|
2613
2751
|
color: "#ccc",
|
|
@@ -2615,7 +2753,7 @@ var SOD128 = () => {
|
|
|
2615
2753
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2616
2754
|
}
|
|
2617
2755
|
),
|
|
2618
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ jsx40(
|
|
2619
2757
|
Cuboid27,
|
|
2620
2758
|
{
|
|
2621
2759
|
color: "#ccc",
|
|
@@ -2623,9 +2761,9 @@ var SOD128 = () => {
|
|
|
2623
2761
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2624
2762
|
}
|
|
2625
2763
|
),
|
|
2626
|
-
/* @__PURE__ */
|
|
2627
|
-
/* @__PURE__ */
|
|
2628
|
-
/* @__PURE__ */
|
|
2764
|
+
/* @__PURE__ */ jsx40(Colorize20, { color: "#222", children: /* @__PURE__ */ jsxs36(Union13, { children: [
|
|
2765
|
+
/* @__PURE__ */ jsxs36(Hull15, { children: [
|
|
2766
|
+
/* @__PURE__ */ jsx40(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx40(
|
|
2629
2767
|
Cuboid27,
|
|
2630
2768
|
{
|
|
2631
2769
|
size: [
|
|
@@ -2635,7 +2773,7 @@ var SOD128 = () => {
|
|
|
2635
2773
|
]
|
|
2636
2774
|
}
|
|
2637
2775
|
) }),
|
|
2638
|
-
/* @__PURE__ */
|
|
2776
|
+
/* @__PURE__ */ jsx40(Translate19, { z: 0.01, children: /* @__PURE__ */ jsx40(
|
|
2639
2777
|
Cuboid27,
|
|
2640
2778
|
{
|
|
2641
2779
|
size: [
|
|
@@ -2646,9 +2784,9 @@ var SOD128 = () => {
|
|
|
2646
2784
|
}
|
|
2647
2785
|
) })
|
|
2648
2786
|
] }),
|
|
2649
|
-
/* @__PURE__ */
|
|
2650
|
-
/* @__PURE__ */
|
|
2651
|
-
/* @__PURE__ */
|
|
2787
|
+
/* @__PURE__ */ jsxs36(Hull15, { children: [
|
|
2788
|
+
/* @__PURE__ */ jsx40(Translate19, { z: straightHeight, children: /* @__PURE__ */ jsx40(Cuboid27, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2789
|
+
/* @__PURE__ */ jsx40(Translate19, { z: bodyHeight, children: /* @__PURE__ */ jsx40(
|
|
2652
2790
|
Cuboid27,
|
|
2653
2791
|
{
|
|
2654
2792
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2656,7 +2794,7 @@ var SOD128 = () => {
|
|
|
2656
2794
|
) })
|
|
2657
2795
|
] })
|
|
2658
2796
|
] }) }),
|
|
2659
|
-
/* @__PURE__ */
|
|
2797
|
+
/* @__PURE__ */ jsx40(
|
|
2660
2798
|
Cuboid27,
|
|
2661
2799
|
{
|
|
2662
2800
|
color: "#777",
|
|
@@ -2668,8 +2806,8 @@ var SOD128 = () => {
|
|
|
2668
2806
|
};
|
|
2669
2807
|
|
|
2670
2808
|
// lib/SOD-923.tsx
|
|
2671
|
-
import { Colorize as
|
|
2672
|
-
import { Fragment as
|
|
2809
|
+
import { Colorize as Colorize21, Cuboid as Cuboid28, Hull as Hull16, Translate as Translate20, Union as Union14 } from "jscad-fiber";
|
|
2810
|
+
import { Fragment as Fragment37, jsx as jsx41, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2673
2811
|
var SOD923 = () => {
|
|
2674
2812
|
const fullWidth = 0.8;
|
|
2675
2813
|
const bodyLength10 = 0.6;
|
|
@@ -2681,8 +2819,8 @@ var SOD923 = () => {
|
|
|
2681
2819
|
const rightPadCenterX = fullWidth / 2;
|
|
2682
2820
|
const taperOffset = 0.1;
|
|
2683
2821
|
const straightHeight = padThickness;
|
|
2684
|
-
return /* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2822
|
+
return /* @__PURE__ */ jsxs37(Fragment37, { children: [
|
|
2823
|
+
/* @__PURE__ */ jsx41(
|
|
2686
2824
|
Cuboid28,
|
|
2687
2825
|
{
|
|
2688
2826
|
color: "#ccc",
|
|
@@ -2690,7 +2828,7 @@ var SOD923 = () => {
|
|
|
2690
2828
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2691
2829
|
}
|
|
2692
2830
|
),
|
|
2693
|
-
/* @__PURE__ */
|
|
2831
|
+
/* @__PURE__ */ jsx41(
|
|
2694
2832
|
Cuboid28,
|
|
2695
2833
|
{
|
|
2696
2834
|
color: "#ccc",
|
|
@@ -2698,11 +2836,11 @@ var SOD923 = () => {
|
|
|
2698
2836
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2699
2837
|
}
|
|
2700
2838
|
),
|
|
2701
|
-
/* @__PURE__ */
|
|
2702
|
-
/* @__PURE__ */
|
|
2703
|
-
/* @__PURE__ */
|
|
2704
|
-
/* @__PURE__ */
|
|
2705
|
-
/* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ jsx41(Colorize21, { color: "#222", children: /* @__PURE__ */ jsxs37(Union14, { children: [
|
|
2840
|
+
/* @__PURE__ */ jsx41(Translate20, { z: straightHeight / 2, children: /* @__PURE__ */ jsx41(Cuboid28, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
2841
|
+
/* @__PURE__ */ jsxs37(Hull16, { children: [
|
|
2842
|
+
/* @__PURE__ */ jsx41(Translate20, { z: straightHeight, children: /* @__PURE__ */ jsx41(Cuboid28, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2843
|
+
/* @__PURE__ */ jsx41(Translate20, { z: bodyHeight, children: /* @__PURE__ */ jsx41(
|
|
2706
2844
|
Cuboid28,
|
|
2707
2845
|
{
|
|
2708
2846
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -2714,7 +2852,7 @@ var SOD923 = () => {
|
|
|
2714
2852
|
};
|
|
2715
2853
|
|
|
2716
2854
|
// lib/SOT-223.tsx
|
|
2717
|
-
import { Fragment as
|
|
2855
|
+
import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2718
2856
|
var SOT223 = () => {
|
|
2719
2857
|
const fullWidth = 6.6;
|
|
2720
2858
|
const bodyWidth = 3.5;
|
|
@@ -2727,8 +2865,8 @@ var SOT223 = () => {
|
|
|
2727
2865
|
const padContactLength = 0.5;
|
|
2728
2866
|
const padPitch = 2.3;
|
|
2729
2867
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2730
|
-
return /* @__PURE__ */
|
|
2731
|
-
/* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ jsxs38(Fragment38, { children: [
|
|
2869
|
+
/* @__PURE__ */ jsx42(
|
|
2732
2870
|
SmdChipLead,
|
|
2733
2871
|
{
|
|
2734
2872
|
rotation: Math.PI,
|
|
@@ -2745,7 +2883,7 @@ var SOT223 = () => {
|
|
|
2745
2883
|
},
|
|
2746
2884
|
4
|
|
2747
2885
|
),
|
|
2748
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ jsx42(
|
|
2749
2887
|
SmdChipLead,
|
|
2750
2888
|
{
|
|
2751
2889
|
position: {
|
|
@@ -2761,7 +2899,7 @@ var SOT223 = () => {
|
|
|
2761
2899
|
},
|
|
2762
2900
|
3
|
|
2763
2901
|
),
|
|
2764
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsx42(
|
|
2765
2903
|
SmdChipLead,
|
|
2766
2904
|
{
|
|
2767
2905
|
position: {
|
|
@@ -2777,7 +2915,7 @@ var SOT223 = () => {
|
|
|
2777
2915
|
},
|
|
2778
2916
|
1
|
|
2779
2917
|
),
|
|
2780
|
-
/* @__PURE__ */
|
|
2918
|
+
/* @__PURE__ */ jsx42(
|
|
2781
2919
|
SmdChipLead,
|
|
2782
2920
|
{
|
|
2783
2921
|
position: {
|
|
@@ -2793,7 +2931,7 @@ var SOT223 = () => {
|
|
|
2793
2931
|
},
|
|
2794
2932
|
2
|
|
2795
2933
|
),
|
|
2796
|
-
/* @__PURE__ */
|
|
2934
|
+
/* @__PURE__ */ jsx42(
|
|
2797
2935
|
ChipBody,
|
|
2798
2936
|
{
|
|
2799
2937
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2809,7 +2947,7 @@ var SOT223 = () => {
|
|
|
2809
2947
|
};
|
|
2810
2948
|
|
|
2811
2949
|
// lib/tqfp.tsx
|
|
2812
|
-
import { Fragment as
|
|
2950
|
+
import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2813
2951
|
var TQFP = () => {
|
|
2814
2952
|
const pinCount = 64;
|
|
2815
2953
|
const pitch = 0.5;
|
|
@@ -2824,8 +2962,8 @@ var TQFP = () => {
|
|
|
2824
2962
|
const leadHeight = 0.65;
|
|
2825
2963
|
const leadThickness = 0.25;
|
|
2826
2964
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2827
|
-
return /* @__PURE__ */
|
|
2828
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2965
|
+
return /* @__PURE__ */ jsxs39(Fragment39, { children: [
|
|
2966
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx43(
|
|
2829
2967
|
SmdChipLead,
|
|
2830
2968
|
{
|
|
2831
2969
|
position: {
|
|
@@ -2841,7 +2979,7 @@ var TQFP = () => {
|
|
|
2841
2979
|
},
|
|
2842
2980
|
`left-${i}`
|
|
2843
2981
|
)),
|
|
2844
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2982
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx43(
|
|
2845
2983
|
SmdChipLead,
|
|
2846
2984
|
{
|
|
2847
2985
|
rotation: Math.PI,
|
|
@@ -2858,7 +2996,7 @@ var TQFP = () => {
|
|
|
2858
2996
|
},
|
|
2859
2997
|
`right-${i}`
|
|
2860
2998
|
)),
|
|
2861
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
2999
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx43(
|
|
2862
3000
|
SmdChipLead,
|
|
2863
3001
|
{
|
|
2864
3002
|
rotation: Math.PI / 2,
|
|
@@ -2875,7 +3013,7 @@ var TQFP = () => {
|
|
|
2875
3013
|
},
|
|
2876
3014
|
`bottom-${i}`
|
|
2877
3015
|
)),
|
|
2878
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3016
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx43(
|
|
2879
3017
|
SmdChipLead,
|
|
2880
3018
|
{
|
|
2881
3019
|
rotation: -Math.PI / 2,
|
|
@@ -2892,7 +3030,7 @@ var TQFP = () => {
|
|
|
2892
3030
|
},
|
|
2893
3031
|
`top-${i}`
|
|
2894
3032
|
)),
|
|
2895
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsx43(
|
|
2896
3034
|
ChipBody,
|
|
2897
3035
|
{
|
|
2898
3036
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2910,7 +3048,7 @@ var TQFP = () => {
|
|
|
2910
3048
|
var tqfp_default = TQFP;
|
|
2911
3049
|
|
|
2912
3050
|
// lib/SOT-323.tsx
|
|
2913
|
-
import { Fragment as
|
|
3051
|
+
import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2914
3052
|
var SOT323 = () => {
|
|
2915
3053
|
const fullWidth = 2.05;
|
|
2916
3054
|
const bodyWidth = 1.25;
|
|
@@ -2922,8 +3060,8 @@ var SOT323 = () => {
|
|
|
2922
3060
|
const padContactLength = 0.2;
|
|
2923
3061
|
const padPitch = 0.65;
|
|
2924
3062
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
2925
|
-
return /* @__PURE__ */
|
|
2926
|
-
/* @__PURE__ */
|
|
3063
|
+
return /* @__PURE__ */ jsxs40(Fragment40, { children: [
|
|
3064
|
+
/* @__PURE__ */ jsx44(
|
|
2927
3065
|
SmdChipLead,
|
|
2928
3066
|
{
|
|
2929
3067
|
rotation: Math.PI,
|
|
@@ -2940,7 +3078,7 @@ var SOT323 = () => {
|
|
|
2940
3078
|
},
|
|
2941
3079
|
4
|
|
2942
3080
|
),
|
|
2943
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ jsx44(
|
|
2944
3082
|
SmdChipLead,
|
|
2945
3083
|
{
|
|
2946
3084
|
position: {
|
|
@@ -2956,7 +3094,7 @@ var SOT323 = () => {
|
|
|
2956
3094
|
},
|
|
2957
3095
|
1
|
|
2958
3096
|
),
|
|
2959
|
-
/* @__PURE__ */
|
|
3097
|
+
/* @__PURE__ */ jsx44(
|
|
2960
3098
|
SmdChipLead,
|
|
2961
3099
|
{
|
|
2962
3100
|
position: {
|
|
@@ -2972,7 +3110,7 @@ var SOT323 = () => {
|
|
|
2972
3110
|
},
|
|
2973
3111
|
2
|
|
2974
3112
|
),
|
|
2975
|
-
/* @__PURE__ */
|
|
3113
|
+
/* @__PURE__ */ jsx44(
|
|
2976
3114
|
ChipBody,
|
|
2977
3115
|
{
|
|
2978
3116
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -2989,7 +3127,7 @@ var SOT323 = () => {
|
|
|
2989
3127
|
};
|
|
2990
3128
|
|
|
2991
3129
|
// lib/lqfp.tsx
|
|
2992
|
-
import { Fragment as
|
|
3130
|
+
import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2993
3131
|
var LQFP = ({
|
|
2994
3132
|
pinCount,
|
|
2995
3133
|
pitch,
|
|
@@ -3012,8 +3150,8 @@ var LQFP = ({
|
|
|
3012
3150
|
const leadHeight = 0.8;
|
|
3013
3151
|
const leadThickness = 0.2;
|
|
3014
3152
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
|
|
3015
|
-
return /* @__PURE__ */
|
|
3016
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3153
|
+
return /* @__PURE__ */ jsxs41(Fragment41, { children: [
|
|
3154
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx45(
|
|
3017
3155
|
SmdChipLead,
|
|
3018
3156
|
{
|
|
3019
3157
|
position: {
|
|
@@ -3029,7 +3167,7 @@ var LQFP = ({
|
|
|
3029
3167
|
},
|
|
3030
3168
|
`left-${i}`
|
|
3031
3169
|
)),
|
|
3032
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3170
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx45(
|
|
3033
3171
|
SmdChipLead,
|
|
3034
3172
|
{
|
|
3035
3173
|
rotation: Math.PI,
|
|
@@ -3046,7 +3184,7 @@ var LQFP = ({
|
|
|
3046
3184
|
},
|
|
3047
3185
|
`right-${i}`
|
|
3048
3186
|
)),
|
|
3049
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3187
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx45(
|
|
3050
3188
|
SmdChipLead,
|
|
3051
3189
|
{
|
|
3052
3190
|
rotation: Math.PI / 2,
|
|
@@ -3063,7 +3201,7 @@ var LQFP = ({
|
|
|
3063
3201
|
},
|
|
3064
3202
|
`bottom-${i}`
|
|
3065
3203
|
)),
|
|
3066
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3204
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx45(
|
|
3067
3205
|
SmdChipLead,
|
|
3068
3206
|
{
|
|
3069
3207
|
rotation: -Math.PI / 2,
|
|
@@ -3080,7 +3218,7 @@ var LQFP = ({
|
|
|
3080
3218
|
},
|
|
3081
3219
|
`top-${i}`
|
|
3082
3220
|
)),
|
|
3083
|
-
/* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsx45(
|
|
3084
3222
|
ChipBody,
|
|
3085
3223
|
{
|
|
3086
3224
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3102,8 +3240,8 @@ var LQFP = ({
|
|
|
3102
3240
|
};
|
|
3103
3241
|
|
|
3104
3242
|
// lib/SOT-723.tsx
|
|
3105
|
-
import { Cuboid as Cuboid29, Translate as Translate21, Colorize as
|
|
3106
|
-
import { Fragment as
|
|
3243
|
+
import { Cuboid as Cuboid29, Translate as Translate21, Colorize as Colorize22, Hull as Hull17, Union as Union15 } from "jscad-fiber";
|
|
3244
|
+
import { Fragment as Fragment42, jsx as jsx46, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
3107
3245
|
var SOT723 = () => {
|
|
3108
3246
|
const bodyWidth = 0.85;
|
|
3109
3247
|
const bodyLength10 = 1.2;
|
|
@@ -3120,18 +3258,18 @@ var SOT723 = () => {
|
|
|
3120
3258
|
const leftTopPadCenterY = 0.4;
|
|
3121
3259
|
const leftBottomPadCenterX = -0.55;
|
|
3122
3260
|
const leftBottomPadCenterY = -0.4;
|
|
3123
|
-
return /* @__PURE__ */
|
|
3124
|
-
/* @__PURE__ */
|
|
3125
|
-
/* @__PURE__ */
|
|
3261
|
+
return /* @__PURE__ */ jsxs42(Fragment42, { children: [
|
|
3262
|
+
/* @__PURE__ */ jsx46(Colorize22, { color: "#222", children: /* @__PURE__ */ jsxs42(Union15, { children: [
|
|
3263
|
+
/* @__PURE__ */ jsx46(
|
|
3126
3264
|
Cuboid29,
|
|
3127
3265
|
{
|
|
3128
3266
|
size: [bodyWidth, bodyLength10, straightHeight],
|
|
3129
3267
|
center: [0, 0, straightHeight / 2]
|
|
3130
3268
|
}
|
|
3131
3269
|
),
|
|
3132
|
-
/* @__PURE__ */
|
|
3133
|
-
/* @__PURE__ */
|
|
3134
|
-
/* @__PURE__ */
|
|
3270
|
+
/* @__PURE__ */ jsxs42(Hull17, { children: [
|
|
3271
|
+
/* @__PURE__ */ jsx46(Translate21, { z: straightHeight, children: /* @__PURE__ */ jsx46(Cuboid29, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
3272
|
+
/* @__PURE__ */ jsx46(Translate21, { z: bodyHeight, children: /* @__PURE__ */ jsx46(
|
|
3135
3273
|
Cuboid29,
|
|
3136
3274
|
{
|
|
3137
3275
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -3139,7 +3277,7 @@ var SOT723 = () => {
|
|
|
3139
3277
|
) })
|
|
3140
3278
|
] })
|
|
3141
3279
|
] }) }),
|
|
3142
|
-
/* @__PURE__ */
|
|
3280
|
+
/* @__PURE__ */ jsx46(
|
|
3143
3281
|
Cuboid29,
|
|
3144
3282
|
{
|
|
3145
3283
|
color: "#ccc",
|
|
@@ -3147,7 +3285,7 @@ var SOT723 = () => {
|
|
|
3147
3285
|
center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
|
|
3148
3286
|
}
|
|
3149
3287
|
),
|
|
3150
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx46(
|
|
3151
3289
|
Cuboid29,
|
|
3152
3290
|
{
|
|
3153
3291
|
color: "#ccc",
|
|
@@ -3155,7 +3293,7 @@ var SOT723 = () => {
|
|
|
3155
3293
|
center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
|
|
3156
3294
|
}
|
|
3157
3295
|
),
|
|
3158
|
-
/* @__PURE__ */
|
|
3296
|
+
/* @__PURE__ */ jsx46(
|
|
3159
3297
|
Cuboid29,
|
|
3160
3298
|
{
|
|
3161
3299
|
color: "#ccc",
|
|
@@ -3168,7 +3306,7 @@ var SOT723 = () => {
|
|
|
3168
3306
|
|
|
3169
3307
|
// lib/dfn.tsx
|
|
3170
3308
|
import { Cuboid as Cuboid30 } from "jscad-fiber";
|
|
3171
|
-
import { Fragment as
|
|
3309
|
+
import { Fragment as Fragment43, jsx as jsx47, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3172
3310
|
var DFN = ({
|
|
3173
3311
|
num_pins,
|
|
3174
3312
|
bodyWidth = 5.3,
|
|
@@ -3195,8 +3333,8 @@ var DFN = ({
|
|
|
3195
3333
|
const pinNumber = i + 1;
|
|
3196
3334
|
pinPositions.push({ pinNumber, x, y, padSizeX, padSizeY });
|
|
3197
3335
|
}
|
|
3198
|
-
return /* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ jsxs43(Fragment43, { children: [
|
|
3337
|
+
/* @__PURE__ */ jsx47(
|
|
3200
3338
|
ChipBody,
|
|
3201
3339
|
{
|
|
3202
3340
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3214,7 +3352,7 @@ var DFN = ({
|
|
|
3214
3352
|
}
|
|
3215
3353
|
}
|
|
3216
3354
|
),
|
|
3217
|
-
pinPositions.map((p, i) => /* @__PURE__ */
|
|
3355
|
+
pinPositions.map((p, i) => /* @__PURE__ */ jsx47(
|
|
3218
3356
|
Cuboid30,
|
|
3219
3357
|
{
|
|
3220
3358
|
center: [p.x, p.y, thermalPadThickness / 2],
|
|
@@ -3222,7 +3360,7 @@ var DFN = ({
|
|
|
3222
3360
|
},
|
|
3223
3361
|
i
|
|
3224
3362
|
)),
|
|
3225
|
-
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */
|
|
3363
|
+
thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx47(
|
|
3226
3364
|
Cuboid30,
|
|
3227
3365
|
{
|
|
3228
3366
|
center: [0, 0, thermalPadThickness / 2],
|
|
@@ -3237,8 +3375,8 @@ var DFN = ({
|
|
|
3237
3375
|
};
|
|
3238
3376
|
|
|
3239
3377
|
// lib/hc49.tsx
|
|
3240
|
-
import { Colorize as
|
|
3241
|
-
import { Fragment as
|
|
3378
|
+
import { Colorize as Colorize23, Cylinder as Cylinder5, Hull as Hull18, RoundedCylinder } from "jscad-fiber";
|
|
3379
|
+
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3242
3380
|
var HC49 = ({
|
|
3243
3381
|
bodyLength: bodyLength10 = 10.2,
|
|
3244
3382
|
bodyWidth = 4.65,
|
|
@@ -3254,10 +3392,10 @@ var HC49 = ({
|
|
|
3254
3392
|
const endCenterX = halfLength - endRadius;
|
|
3255
3393
|
const leadCenterX = leadSpacing / 2;
|
|
3256
3394
|
const baseHeight = 0.85;
|
|
3257
|
-
return /* @__PURE__ */
|
|
3258
|
-
/* @__PURE__ */
|
|
3259
|
-
/* @__PURE__ */
|
|
3260
|
-
/* @__PURE__ */
|
|
3395
|
+
return /* @__PURE__ */ jsxs44(Fragment44, { children: [
|
|
3396
|
+
/* @__PURE__ */ jsxs44(Colorize23, { color, children: [
|
|
3397
|
+
/* @__PURE__ */ jsxs44(Hull18, { children: [
|
|
3398
|
+
/* @__PURE__ */ jsx48(
|
|
3261
3399
|
RoundedCylinder,
|
|
3262
3400
|
{
|
|
3263
3401
|
height: bodyHeight,
|
|
@@ -3266,7 +3404,7 @@ var HC49 = ({
|
|
|
3266
3404
|
center: [-endCenterX, 0, bodyHeight]
|
|
3267
3405
|
}
|
|
3268
3406
|
),
|
|
3269
|
-
/* @__PURE__ */
|
|
3407
|
+
/* @__PURE__ */ jsx48(
|
|
3270
3408
|
RoundedCylinder,
|
|
3271
3409
|
{
|
|
3272
3410
|
height: bodyHeight,
|
|
@@ -3276,8 +3414,8 @@ var HC49 = ({
|
|
|
3276
3414
|
}
|
|
3277
3415
|
)
|
|
3278
3416
|
] }),
|
|
3279
|
-
/* @__PURE__ */
|
|
3280
|
-
/* @__PURE__ */
|
|
3417
|
+
/* @__PURE__ */ jsxs44(Hull18, { children: [
|
|
3418
|
+
/* @__PURE__ */ jsx48(
|
|
3281
3419
|
RoundedCylinder,
|
|
3282
3420
|
{
|
|
3283
3421
|
height: baseHeight,
|
|
@@ -3286,7 +3424,7 @@ var HC49 = ({
|
|
|
3286
3424
|
center: [-endCenterX, 0, bodyHeight / 2 + baseHeight / 2]
|
|
3287
3425
|
}
|
|
3288
3426
|
),
|
|
3289
|
-
/* @__PURE__ */
|
|
3427
|
+
/* @__PURE__ */ jsx48(
|
|
3290
3428
|
RoundedCylinder,
|
|
3291
3429
|
{
|
|
3292
3430
|
height: baseHeight,
|
|
@@ -3297,17 +3435,17 @@ var HC49 = ({
|
|
|
3297
3435
|
)
|
|
3298
3436
|
] })
|
|
3299
3437
|
] }),
|
|
3300
|
-
/* @__PURE__ */
|
|
3301
|
-
/* @__PURE__ */
|
|
3302
|
-
|
|
3438
|
+
/* @__PURE__ */ jsxs44(Colorize23, { color: leadColor, children: [
|
|
3439
|
+
/* @__PURE__ */ jsx48(
|
|
3440
|
+
Cylinder5,
|
|
3303
3441
|
{
|
|
3304
3442
|
height: leadLength + bodyHeight / 2,
|
|
3305
3443
|
radius: leadDiameter / 2,
|
|
3306
3444
|
center: [-leadCenterX + 0.06, 0, -(leadLength / 2) + bodyHeight / 2]
|
|
3307
3445
|
}
|
|
3308
3446
|
),
|
|
3309
|
-
/* @__PURE__ */
|
|
3310
|
-
|
|
3447
|
+
/* @__PURE__ */ jsx48(
|
|
3448
|
+
Cylinder5,
|
|
3311
3449
|
{
|
|
3312
3450
|
height: leadLength + bodyHeight / 2,
|
|
3313
3451
|
radius: leadDiameter / 2,
|
|
@@ -3320,13 +3458,13 @@ var HC49 = ({
|
|
|
3320
3458
|
|
|
3321
3459
|
// lib/MicroMELF.tsx
|
|
3322
3460
|
import {
|
|
3323
|
-
Colorize as
|
|
3324
|
-
Cylinder as
|
|
3461
|
+
Colorize as Colorize24,
|
|
3462
|
+
Cylinder as Cylinder6,
|
|
3325
3463
|
RoundedCylinder as RoundedCylinder2,
|
|
3326
3464
|
Rotate as Rotate7,
|
|
3327
3465
|
RoundedCuboid as RoundedCuboid2
|
|
3328
3466
|
} from "jscad-fiber";
|
|
3329
|
-
import { Fragment as
|
|
3467
|
+
import { Fragment as Fragment45, jsx as jsx49, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3330
3468
|
var MicroMELF = ({
|
|
3331
3469
|
bodyLength: bodyLength10 = 1.4,
|
|
3332
3470
|
bodyDiameter = 1.1,
|
|
@@ -3335,9 +3473,9 @@ var MicroMELF = ({
|
|
|
3335
3473
|
cathodeIdentification = "#111"
|
|
3336
3474
|
}) => {
|
|
3337
3475
|
const padLength = 0.2;
|
|
3338
|
-
return /* @__PURE__ */
|
|
3339
|
-
/* @__PURE__ */
|
|
3340
|
-
/* @__PURE__ */
|
|
3476
|
+
return /* @__PURE__ */ jsxs45(Fragment45, { children: [
|
|
3477
|
+
/* @__PURE__ */ jsx49(Colorize24, { color, children: /* @__PURE__ */ jsxs45(Rotate7, { rotation: [0, "90deg", 0], children: [
|
|
3478
|
+
/* @__PURE__ */ jsx49(
|
|
3341
3479
|
RoundedCuboid2,
|
|
3342
3480
|
{
|
|
3343
3481
|
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
@@ -3345,8 +3483,8 @@ var MicroMELF = ({
|
|
|
3345
3483
|
center: [-bodyDiameter / 2, 0, 0.05]
|
|
3346
3484
|
}
|
|
3347
3485
|
),
|
|
3348
|
-
/* @__PURE__ */
|
|
3349
|
-
|
|
3486
|
+
/* @__PURE__ */ jsx49(
|
|
3487
|
+
Cylinder6,
|
|
3350
3488
|
{
|
|
3351
3489
|
height: padLength / 2,
|
|
3352
3490
|
radius: bodyDiameter / 2 - padLength,
|
|
@@ -3354,7 +3492,7 @@ var MicroMELF = ({
|
|
|
3354
3492
|
}
|
|
3355
3493
|
)
|
|
3356
3494
|
] }) }),
|
|
3357
|
-
/* @__PURE__ */
|
|
3495
|
+
/* @__PURE__ */ jsx49(Colorize24, { color: cathodeIdentification, children: /* @__PURE__ */ jsx49(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx49(
|
|
3358
3496
|
RoundedCuboid2,
|
|
3359
3497
|
{
|
|
3360
3498
|
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
@@ -3362,7 +3500,7 @@ var MicroMELF = ({
|
|
|
3362
3500
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
3363
3501
|
}
|
|
3364
3502
|
) }) }),
|
|
3365
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ jsx49(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx49(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx49(
|
|
3366
3504
|
RoundedCylinder2,
|
|
3367
3505
|
{
|
|
3368
3506
|
height: padLength,
|
|
@@ -3371,7 +3509,7 @@ var MicroMELF = ({
|
|
|
3371
3509
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3372
3510
|
}
|
|
3373
3511
|
) }) }),
|
|
3374
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ jsx49(Colorize24, { color: contactColor, children: /* @__PURE__ */ jsx49(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx49(
|
|
3375
3513
|
RoundedCylinder2,
|
|
3376
3514
|
{
|
|
3377
3515
|
height: padLength,
|
|
@@ -3384,8 +3522,8 @@ var MicroMELF = ({
|
|
|
3384
3522
|
};
|
|
3385
3523
|
|
|
3386
3524
|
// lib/MINIMELF.tsx
|
|
3387
|
-
import { Colorize as
|
|
3388
|
-
import { Fragment as
|
|
3525
|
+
import { Colorize as Colorize25, RoundedCylinder as RoundedCylinder3, Rotate as Rotate8 } from "jscad-fiber";
|
|
3526
|
+
import { Fragment as Fragment46, jsx as jsx50, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3389
3527
|
var MINIMELF = ({
|
|
3390
3528
|
bodyLength: bodyLength10 = 3.5,
|
|
3391
3529
|
bodyDiameter = 1.5,
|
|
@@ -3393,8 +3531,8 @@ var MINIMELF = ({
|
|
|
3393
3531
|
contactColor = "#c6c6c6"
|
|
3394
3532
|
}) => {
|
|
3395
3533
|
const padLength = 0.5;
|
|
3396
|
-
return /* @__PURE__ */
|
|
3397
|
-
/* @__PURE__ */
|
|
3534
|
+
return /* @__PURE__ */ jsxs46(Fragment46, { children: [
|
|
3535
|
+
/* @__PURE__ */ jsx50(Colorize25, { color, children: /* @__PURE__ */ jsx50(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx50(
|
|
3398
3536
|
RoundedCylinder3,
|
|
3399
3537
|
{
|
|
3400
3538
|
height: bodyLength10,
|
|
@@ -3403,7 +3541,7 @@ var MINIMELF = ({
|
|
|
3403
3541
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3404
3542
|
}
|
|
3405
3543
|
) }) }),
|
|
3406
|
-
/* @__PURE__ */
|
|
3544
|
+
/* @__PURE__ */ jsx50(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx50(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx50(
|
|
3407
3545
|
RoundedCylinder3,
|
|
3408
3546
|
{
|
|
3409
3547
|
height: padLength,
|
|
@@ -3412,7 +3550,7 @@ var MINIMELF = ({
|
|
|
3412
3550
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3413
3551
|
}
|
|
3414
3552
|
) }) }),
|
|
3415
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ jsx50(Colorize25, { color: contactColor, children: /* @__PURE__ */ jsx50(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx50(
|
|
3416
3554
|
RoundedCylinder3,
|
|
3417
3555
|
{
|
|
3418
3556
|
height: padLength,
|
|
@@ -3425,8 +3563,8 @@ var MINIMELF = ({
|
|
|
3425
3563
|
};
|
|
3426
3564
|
|
|
3427
3565
|
// lib/MELF.tsx
|
|
3428
|
-
import { Colorize as
|
|
3429
|
-
import { Fragment as
|
|
3566
|
+
import { Colorize as Colorize26, RoundedCylinder as RoundedCylinder4, Rotate as Rotate9 } from "jscad-fiber";
|
|
3567
|
+
import { Fragment as Fragment47, jsx as jsx51, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3430
3568
|
var MELF = ({
|
|
3431
3569
|
bodyLength: bodyLength10 = 3.9,
|
|
3432
3570
|
bodyDiameter = 2.5,
|
|
@@ -3434,8 +3572,8 @@ var MELF = ({
|
|
|
3434
3572
|
contactColor = "#c6c6c6"
|
|
3435
3573
|
}) => {
|
|
3436
3574
|
const padLength = 0.55;
|
|
3437
|
-
return /* @__PURE__ */
|
|
3438
|
-
/* @__PURE__ */
|
|
3575
|
+
return /* @__PURE__ */ jsxs47(Fragment47, { children: [
|
|
3576
|
+
/* @__PURE__ */ jsx51(Colorize26, { color, children: /* @__PURE__ */ jsx51(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx51(
|
|
3439
3577
|
RoundedCylinder4,
|
|
3440
3578
|
{
|
|
3441
3579
|
height: bodyLength10,
|
|
@@ -3444,7 +3582,7 @@ var MELF = ({
|
|
|
3444
3582
|
center: [-bodyDiameter / 2, 0, 0]
|
|
3445
3583
|
}
|
|
3446
3584
|
) }) }),
|
|
3447
|
-
/* @__PURE__ */
|
|
3585
|
+
/* @__PURE__ */ jsx51(Colorize26, { color: contactColor, children: /* @__PURE__ */ jsx51(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx51(
|
|
3448
3586
|
RoundedCylinder4,
|
|
3449
3587
|
{
|
|
3450
3588
|
height: padLength,
|
|
@@ -3453,7 +3591,7 @@ var MELF = ({
|
|
|
3453
3591
|
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
3454
3592
|
}
|
|
3455
3593
|
) }) }),
|
|
3456
|
-
/* @__PURE__ */
|
|
3594
|
+
/* @__PURE__ */ jsx51(Colorize26, { color: contactColor, children: /* @__PURE__ */ jsx51(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx51(
|
|
3457
3595
|
RoundedCylinder4,
|
|
3458
3596
|
{
|
|
3459
3597
|
height: padLength,
|
|
@@ -3466,7 +3604,7 @@ var MELF = ({
|
|
|
3466
3604
|
};
|
|
3467
3605
|
|
|
3468
3606
|
// lib/ms012.tsx
|
|
3469
|
-
import { Fragment as
|
|
3607
|
+
import { Fragment as Fragment48, jsx as jsx52, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3470
3608
|
var MS012 = ({
|
|
3471
3609
|
pinCount,
|
|
3472
3610
|
padContactLength = 0.6,
|
|
@@ -3481,8 +3619,8 @@ var MS012 = ({
|
|
|
3481
3619
|
const bodyLength10 = 3.9;
|
|
3482
3620
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3483
3621
|
const leadThickness = 0.2;
|
|
3484
|
-
return /* @__PURE__ */
|
|
3485
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3622
|
+
return /* @__PURE__ */ jsxs48(Fragment48, { children: [
|
|
3623
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx52(
|
|
3486
3624
|
SmdChipLead,
|
|
3487
3625
|
{
|
|
3488
3626
|
position: {
|
|
@@ -3498,7 +3636,7 @@ var MS012 = ({
|
|
|
3498
3636
|
},
|
|
3499
3637
|
i
|
|
3500
3638
|
)),
|
|
3501
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3639
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx52(
|
|
3502
3640
|
SmdChipLead,
|
|
3503
3641
|
{
|
|
3504
3642
|
rotation: Math.PI,
|
|
@@ -3515,7 +3653,7 @@ var MS012 = ({
|
|
|
3515
3653
|
},
|
|
3516
3654
|
`right-${i}`
|
|
3517
3655
|
)),
|
|
3518
|
-
/* @__PURE__ */
|
|
3656
|
+
/* @__PURE__ */ jsx52(
|
|
3519
3657
|
ChipBody,
|
|
3520
3658
|
{
|
|
3521
3659
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -3535,7 +3673,7 @@ var MS012 = ({
|
|
|
3535
3673
|
};
|
|
3536
3674
|
|
|
3537
3675
|
// lib/ms013.tsx
|
|
3538
|
-
import { Fragment as
|
|
3676
|
+
import { Fragment as Fragment49, jsx as jsx53, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3539
3677
|
var MS013 = ({
|
|
3540
3678
|
pinCount = 16,
|
|
3541
3679
|
padContactLength = 0.6,
|
|
@@ -3550,8 +3688,8 @@ var MS013 = ({
|
|
|
3550
3688
|
const bodyLength10 = 10.3;
|
|
3551
3689
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
3552
3690
|
const leadThickness = 0.2;
|
|
3553
|
-
return /* @__PURE__ */
|
|
3554
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3691
|
+
return /* @__PURE__ */ jsxs49(Fragment49, { children: [
|
|
3692
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx53(
|
|
3555
3693
|
SmdChipLead,
|
|
3556
3694
|
{
|
|
3557
3695
|
position: {
|
|
@@ -3567,7 +3705,7 @@ var MS013 = ({
|
|
|
3567
3705
|
},
|
|
3568
3706
|
i
|
|
3569
3707
|
)),
|
|
3570
|
-
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */
|
|
3708
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx53(
|
|
3571
3709
|
SmdChipLead,
|
|
3572
3710
|
{
|
|
3573
3711
|
rotation: Math.PI,
|
|
@@ -3584,7 +3722,7 @@ var MS013 = ({
|
|
|
3584
3722
|
},
|
|
3585
3723
|
`right-${i}`
|
|
3586
3724
|
)),
|
|
3587
|
-
/* @__PURE__ */
|
|
3725
|
+
/* @__PURE__ */ jsx53(
|
|
3588
3726
|
ChipBody,
|
|
3589
3727
|
{
|
|
3590
3728
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
@@ -3605,15 +3743,15 @@ var MS013 = ({
|
|
|
3605
3743
|
|
|
3606
3744
|
// lib/TO220.tsx
|
|
3607
3745
|
import {
|
|
3608
|
-
Colorize as
|
|
3746
|
+
Colorize as Colorize27,
|
|
3609
3747
|
Cuboid as Cuboid33,
|
|
3610
|
-
Hull as
|
|
3748
|
+
Hull as Hull19,
|
|
3611
3749
|
Rotate as Rotate10,
|
|
3612
3750
|
Translate as Translate22,
|
|
3613
|
-
Cylinder as
|
|
3751
|
+
Cylinder as Cylinder7,
|
|
3614
3752
|
Subtract as Subtract4
|
|
3615
3753
|
} from "jscad-fiber";
|
|
3616
|
-
import { Fragment as
|
|
3754
|
+
import { Fragment as Fragment50, jsx as jsx54, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3617
3755
|
var TO220 = () => {
|
|
3618
3756
|
const fullLength10 = 20;
|
|
3619
3757
|
const bodyLength10 = 9.9;
|
|
@@ -3632,10 +3770,10 @@ var TO220 = () => {
|
|
|
3632
3770
|
const bodyBackX = fullLength10 + bodyLength10 / 2;
|
|
3633
3771
|
const prongCenterX = bodyFrontX - prongLength / 2;
|
|
3634
3772
|
const padCenterX = bodyBackX + padLength / 2;
|
|
3635
|
-
return /* @__PURE__ */
|
|
3636
|
-
/* @__PURE__ */
|
|
3637
|
-
/* @__PURE__ */
|
|
3638
|
-
/* @__PURE__ */
|
|
3773
|
+
return /* @__PURE__ */ jsx54(Translate22, { center: [0, 0, zOffset], children: /* @__PURE__ */ jsxs50(Fragment50, { children: [
|
|
3774
|
+
/* @__PURE__ */ jsxs50(Rotate10, { rotation: [0, 55, -55], children: [
|
|
3775
|
+
/* @__PURE__ */ jsxs50(Subtract4, { children: [
|
|
3776
|
+
/* @__PURE__ */ jsx54(
|
|
3639
3777
|
Cuboid33,
|
|
3640
3778
|
{
|
|
3641
3779
|
color: "#ccc",
|
|
@@ -3643,8 +3781,8 @@ var TO220 = () => {
|
|
|
3643
3781
|
center: [padCenterX, 0, padThickness - 2]
|
|
3644
3782
|
}
|
|
3645
3783
|
),
|
|
3646
|
-
/* @__PURE__ */
|
|
3647
|
-
|
|
3784
|
+
/* @__PURE__ */ jsx54(
|
|
3785
|
+
Cylinder7,
|
|
3648
3786
|
{
|
|
3649
3787
|
color: "black",
|
|
3650
3788
|
center: [padCenterX, 0, padThickness - 2],
|
|
@@ -3653,7 +3791,7 @@ var TO220 = () => {
|
|
|
3653
3791
|
}
|
|
3654
3792
|
)
|
|
3655
3793
|
] }),
|
|
3656
|
-
/* @__PURE__ */
|
|
3794
|
+
/* @__PURE__ */ jsx54(Colorize27, { color: "#222", children: /* @__PURE__ */ jsx54(
|
|
3657
3795
|
ChipBody,
|
|
3658
3796
|
{
|
|
3659
3797
|
width: bodyWidth,
|
|
@@ -3667,29 +3805,29 @@ var TO220 = () => {
|
|
|
3667
3805
|
}
|
|
3668
3806
|
) })
|
|
3669
3807
|
] }),
|
|
3670
|
-
/* @__PURE__ */
|
|
3808
|
+
/* @__PURE__ */ jsx54(Rotate10, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
|
|
3671
3809
|
const x = prongCenterX;
|
|
3672
3810
|
const y = (i - 1) * prongPitch;
|
|
3673
3811
|
const z = -prongHeight - 0.6;
|
|
3674
|
-
return /* @__PURE__ */
|
|
3675
|
-
/* @__PURE__ */
|
|
3676
|
-
/* @__PURE__ */
|
|
3677
|
-
/* @__PURE__ */
|
|
3812
|
+
return /* @__PURE__ */ jsxs50(Colorize27, { color: "gold", children: [
|
|
3813
|
+
/* @__PURE__ */ jsxs50(Hull19, { children: [
|
|
3814
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z], children: /* @__PURE__ */ jsx54(Cuboid33, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
|
|
3815
|
+
/* @__PURE__ */ jsx54(
|
|
3678
3816
|
Translate22,
|
|
3679
3817
|
{
|
|
3680
3818
|
center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z],
|
|
3681
|
-
children: /* @__PURE__ */
|
|
3819
|
+
children: /* @__PURE__ */ jsx54(Cuboid33, { size: [bodyHeight, prongWidth, prongHeight] })
|
|
3682
3820
|
}
|
|
3683
3821
|
)
|
|
3684
3822
|
] }),
|
|
3685
|
-
/* @__PURE__ */
|
|
3823
|
+
/* @__PURE__ */ jsx54(Translate22, { center: [x, y, z], children: /* @__PURE__ */ jsx54(Cuboid33, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
|
|
3686
3824
|
] }, `prong-${i}`);
|
|
3687
3825
|
}) })
|
|
3688
3826
|
] }) });
|
|
3689
3827
|
};
|
|
3690
3828
|
|
|
3691
3829
|
// lib/SOT-457.tsx
|
|
3692
|
-
import { Fragment as
|
|
3830
|
+
import { Fragment as Fragment51, jsx as jsx55, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3693
3831
|
var SOT457 = () => {
|
|
3694
3832
|
const fullWidth = 2.8;
|
|
3695
3833
|
const bodyWidth = 1.6;
|
|
@@ -3701,8 +3839,8 @@ var SOT457 = () => {
|
|
|
3701
3839
|
const padContactLength = 0.5;
|
|
3702
3840
|
const padPitch = 0.95;
|
|
3703
3841
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3704
|
-
return /* @__PURE__ */
|
|
3705
|
-
/* @__PURE__ */
|
|
3842
|
+
return /* @__PURE__ */ jsxs51(Fragment51, { children: [
|
|
3843
|
+
/* @__PURE__ */ jsx55(
|
|
3706
3844
|
SmdChipLead,
|
|
3707
3845
|
{
|
|
3708
3846
|
rotation: Math.PI,
|
|
@@ -3719,7 +3857,7 @@ var SOT457 = () => {
|
|
|
3719
3857
|
},
|
|
3720
3858
|
1
|
|
3721
3859
|
),
|
|
3722
|
-
/* @__PURE__ */
|
|
3860
|
+
/* @__PURE__ */ jsx55(
|
|
3723
3861
|
SmdChipLead,
|
|
3724
3862
|
{
|
|
3725
3863
|
rotation: Math.PI,
|
|
@@ -3736,7 +3874,7 @@ var SOT457 = () => {
|
|
|
3736
3874
|
},
|
|
3737
3875
|
2
|
|
3738
3876
|
),
|
|
3739
|
-
/* @__PURE__ */
|
|
3877
|
+
/* @__PURE__ */ jsx55(
|
|
3740
3878
|
SmdChipLead,
|
|
3741
3879
|
{
|
|
3742
3880
|
rotation: Math.PI,
|
|
@@ -3753,7 +3891,7 @@ var SOT457 = () => {
|
|
|
3753
3891
|
},
|
|
3754
3892
|
3
|
|
3755
3893
|
),
|
|
3756
|
-
/* @__PURE__ */
|
|
3894
|
+
/* @__PURE__ */ jsx55(
|
|
3757
3895
|
SmdChipLead,
|
|
3758
3896
|
{
|
|
3759
3897
|
position: {
|
|
@@ -3769,7 +3907,7 @@ var SOT457 = () => {
|
|
|
3769
3907
|
},
|
|
3770
3908
|
3
|
|
3771
3909
|
),
|
|
3772
|
-
/* @__PURE__ */
|
|
3910
|
+
/* @__PURE__ */ jsx55(
|
|
3773
3911
|
SmdChipLead,
|
|
3774
3912
|
{
|
|
3775
3913
|
position: {
|
|
@@ -3785,7 +3923,7 @@ var SOT457 = () => {
|
|
|
3785
3923
|
},
|
|
3786
3924
|
1
|
|
3787
3925
|
),
|
|
3788
|
-
/* @__PURE__ */
|
|
3926
|
+
/* @__PURE__ */ jsx55(
|
|
3789
3927
|
SmdChipLead,
|
|
3790
3928
|
{
|
|
3791
3929
|
position: {
|
|
@@ -3801,7 +3939,7 @@ var SOT457 = () => {
|
|
|
3801
3939
|
},
|
|
3802
3940
|
2
|
|
3803
3941
|
),
|
|
3804
|
-
/* @__PURE__ */
|
|
3942
|
+
/* @__PURE__ */ jsx55(
|
|
3805
3943
|
ChipBody,
|
|
3806
3944
|
{
|
|
3807
3945
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3822,7 +3960,7 @@ var SOT457 = () => {
|
|
|
3822
3960
|
|
|
3823
3961
|
// lib/SOT-963.tsx
|
|
3824
3962
|
import { Cuboid as Cuboid34 } from "jscad-fiber";
|
|
3825
|
-
import { Fragment as
|
|
3963
|
+
import { Fragment as Fragment52, jsx as jsx56, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
3826
3964
|
var SOT963 = () => {
|
|
3827
3965
|
const bodyWidth = 0.8;
|
|
3828
3966
|
const bodyLength10 = 1;
|
|
@@ -3833,8 +3971,8 @@ var SOT963 = () => {
|
|
|
3833
3971
|
const pitch = 0.35;
|
|
3834
3972
|
const pinsPerSide = 3;
|
|
3835
3973
|
const pinSpan = pitch * (pinsPerSide - 1);
|
|
3836
|
-
return /* @__PURE__ */
|
|
3837
|
-
/* @__PURE__ */
|
|
3974
|
+
return /* @__PURE__ */ jsxs52(Fragment52, { children: [
|
|
3975
|
+
/* @__PURE__ */ jsx56(
|
|
3838
3976
|
ChipBody,
|
|
3839
3977
|
{
|
|
3840
3978
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3854,7 +3992,7 @@ var SOT963 = () => {
|
|
|
3854
3992
|
),
|
|
3855
3993
|
[0, 1, 2].map((i) => {
|
|
3856
3994
|
const y = -pinSpan / 2 + i * pitch;
|
|
3857
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ jsx56(
|
|
3858
3996
|
Cuboid34,
|
|
3859
3997
|
{
|
|
3860
3998
|
center: [
|
|
@@ -3869,7 +4007,7 @@ var SOT963 = () => {
|
|
|
3869
4007
|
}),
|
|
3870
4008
|
[0, 1, 2].map((i) => {
|
|
3871
4009
|
const y = -pinSpan / 2 + i * pitch;
|
|
3872
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsx56(
|
|
3873
4011
|
Cuboid34,
|
|
3874
4012
|
{
|
|
3875
4013
|
center: [
|
|
@@ -3887,14 +4025,14 @@ var SOT963 = () => {
|
|
|
3887
4025
|
|
|
3888
4026
|
// lib/TO92.tsx
|
|
3889
4027
|
import {
|
|
3890
|
-
Colorize as
|
|
4028
|
+
Colorize as Colorize28,
|
|
3891
4029
|
Cuboid as Cuboid35,
|
|
3892
|
-
Hull as
|
|
4030
|
+
Hull as Hull20,
|
|
3893
4031
|
Translate as Translate23,
|
|
3894
|
-
Cylinder as
|
|
4032
|
+
Cylinder as Cylinder8,
|
|
3895
4033
|
Subtract as Subtract5
|
|
3896
4034
|
} from "jscad-fiber";
|
|
3897
|
-
import { jsx as
|
|
4035
|
+
import { jsx as jsx57, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3898
4036
|
var TO92 = () => {
|
|
3899
4037
|
const bodyRadius = 2.4;
|
|
3900
4038
|
const bodyHeight = 4.5;
|
|
@@ -3915,24 +4053,24 @@ var TO92 = () => {
|
|
|
3915
4053
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3916
4054
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3917
4055
|
const sideLeadZ = -7.5;
|
|
3918
|
-
return /* @__PURE__ */
|
|
3919
|
-
/* @__PURE__ */
|
|
3920
|
-
/* @__PURE__ */
|
|
3921
|
-
/* @__PURE__ */
|
|
4056
|
+
return /* @__PURE__ */ jsxs53(Translate23, { center: [0, 1, 10.5], children: [
|
|
4057
|
+
/* @__PURE__ */ jsx57(Colorize28, { color: bodyColor, children: /* @__PURE__ */ jsxs53(Subtract5, { children: [
|
|
4058
|
+
/* @__PURE__ */ jsx57(Translate23, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx57(Cylinder8, { radius: bodyRadius, height: bodyHeight }) }),
|
|
4059
|
+
/* @__PURE__ */ jsx57(Translate23, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx57(Cuboid35, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3922
4060
|
] }) }),
|
|
3923
|
-
/* @__PURE__ */
|
|
3924
|
-
/* @__PURE__ */
|
|
3925
|
-
/* @__PURE__ */
|
|
3926
|
-
/* @__PURE__ */
|
|
4061
|
+
/* @__PURE__ */ jsx57(Translate23, { center: leadTipPos1, children: /* @__PURE__ */ jsx57(Cuboid35, { size: leadTipSize }) }),
|
|
4062
|
+
/* @__PURE__ */ jsxs53(Hull20, { children: [
|
|
4063
|
+
/* @__PURE__ */ jsx57(Translate23, { center: leadMidPosA, children: /* @__PURE__ */ jsx57(Cuboid35, { size: leadSmallSize }) }),
|
|
4064
|
+
/* @__PURE__ */ jsx57(Translate23, { center: leadMidPosB, children: /* @__PURE__ */ jsx57(Cuboid35, { size: leadSmallSize }) })
|
|
3927
4065
|
] }),
|
|
3928
|
-
/* @__PURE__ */
|
|
3929
|
-
/* @__PURE__ */
|
|
3930
|
-
/* @__PURE__ */
|
|
4066
|
+
/* @__PURE__ */ jsx57(Translate23, { center: leadTipPos2, children: /* @__PURE__ */ jsx57(Cuboid35, { size: [leadLength, legWidth, 12.2] }) }),
|
|
4067
|
+
/* @__PURE__ */ jsx57(Translate23, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx57(Cuboid35, { size: [leadLength, legWidth, 15] }) }),
|
|
4068
|
+
/* @__PURE__ */ jsx57(Translate23, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx57(Cuboid35, { size: [leadLength, legWidth, 15] }) })
|
|
3931
4069
|
] });
|
|
3932
4070
|
};
|
|
3933
4071
|
|
|
3934
4072
|
// lib/SOT-363.tsx
|
|
3935
|
-
import { Fragment as
|
|
4073
|
+
import { Fragment as Fragment53, jsx as jsx58, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3936
4074
|
var SOT363 = () => {
|
|
3937
4075
|
const fullWidth = 2;
|
|
3938
4076
|
const bodyWidth = 1.25;
|
|
@@ -3943,8 +4081,8 @@ var SOT363 = () => {
|
|
|
3943
4081
|
const leadHeight = 0.85;
|
|
3944
4082
|
const padContactLength = 0.3;
|
|
3945
4083
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3946
|
-
return /* @__PURE__ */
|
|
3947
|
-
/* @__PURE__ */
|
|
4084
|
+
return /* @__PURE__ */ jsxs54(Fragment53, { children: [
|
|
4085
|
+
/* @__PURE__ */ jsx58(
|
|
3948
4086
|
SmdChipLead,
|
|
3949
4087
|
{
|
|
3950
4088
|
rotation: Math.PI,
|
|
@@ -3961,7 +4099,7 @@ var SOT363 = () => {
|
|
|
3961
4099
|
},
|
|
3962
4100
|
1
|
|
3963
4101
|
),
|
|
3964
|
-
/* @__PURE__ */
|
|
4102
|
+
/* @__PURE__ */ jsx58(
|
|
3965
4103
|
SmdChipLead,
|
|
3966
4104
|
{
|
|
3967
4105
|
rotation: Math.PI,
|
|
@@ -3978,7 +4116,7 @@ var SOT363 = () => {
|
|
|
3978
4116
|
},
|
|
3979
4117
|
2
|
|
3980
4118
|
),
|
|
3981
|
-
/* @__PURE__ */
|
|
4119
|
+
/* @__PURE__ */ jsx58(
|
|
3982
4120
|
SmdChipLead,
|
|
3983
4121
|
{
|
|
3984
4122
|
rotation: Math.PI,
|
|
@@ -3995,7 +4133,7 @@ var SOT363 = () => {
|
|
|
3995
4133
|
},
|
|
3996
4134
|
3
|
|
3997
4135
|
),
|
|
3998
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ jsx58(
|
|
3999
4137
|
SmdChipLead,
|
|
4000
4138
|
{
|
|
4001
4139
|
position: {
|
|
@@ -4011,7 +4149,7 @@ var SOT363 = () => {
|
|
|
4011
4149
|
},
|
|
4012
4150
|
3
|
|
4013
4151
|
),
|
|
4014
|
-
/* @__PURE__ */
|
|
4152
|
+
/* @__PURE__ */ jsx58(
|
|
4015
4153
|
SmdChipLead,
|
|
4016
4154
|
{
|
|
4017
4155
|
position: {
|
|
@@ -4027,7 +4165,7 @@ var SOT363 = () => {
|
|
|
4027
4165
|
},
|
|
4028
4166
|
1
|
|
4029
4167
|
),
|
|
4030
|
-
/* @__PURE__ */
|
|
4168
|
+
/* @__PURE__ */ jsx58(
|
|
4031
4169
|
SmdChipLead,
|
|
4032
4170
|
{
|
|
4033
4171
|
position: {
|
|
@@ -4043,7 +4181,7 @@ var SOT363 = () => {
|
|
|
4043
4181
|
},
|
|
4044
4182
|
2
|
|
4045
4183
|
),
|
|
4046
|
-
/* @__PURE__ */
|
|
4184
|
+
/* @__PURE__ */ jsx58(
|
|
4047
4185
|
ChipBody,
|
|
4048
4186
|
{
|
|
4049
4187
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4065,7 +4203,7 @@ var SOT_363_default = SOT363;
|
|
|
4065
4203
|
|
|
4066
4204
|
// lib/SOT-886.tsx
|
|
4067
4205
|
import { Cuboid as Cuboid36 } from "jscad-fiber";
|
|
4068
|
-
import { Fragment as
|
|
4206
|
+
import { Fragment as Fragment54, jsx as jsx59, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4069
4207
|
var SOT886 = () => {
|
|
4070
4208
|
const bodyWidth = 1;
|
|
4071
4209
|
const bodyLength10 = 1.45;
|
|
@@ -4076,8 +4214,8 @@ var SOT886 = () => {
|
|
|
4076
4214
|
const pitch = 0.5;
|
|
4077
4215
|
const pinsPerSide = 3;
|
|
4078
4216
|
const pinSpan = pitch * (pinsPerSide - 1);
|
|
4079
|
-
return /* @__PURE__ */
|
|
4080
|
-
/* @__PURE__ */
|
|
4217
|
+
return /* @__PURE__ */ jsxs55(Fragment54, { children: [
|
|
4218
|
+
/* @__PURE__ */ jsx59(
|
|
4081
4219
|
ChipBody,
|
|
4082
4220
|
{
|
|
4083
4221
|
center: { x: 0, y: 0, z: terminalThickness },
|
|
@@ -4092,7 +4230,7 @@ var SOT886 = () => {
|
|
|
4092
4230
|
),
|
|
4093
4231
|
[0, 1, 2].map((i) => {
|
|
4094
4232
|
const y = -pinSpan / 2 + i * pitch;
|
|
4095
|
-
return /* @__PURE__ */
|
|
4233
|
+
return /* @__PURE__ */ jsx59(
|
|
4096
4234
|
Cuboid36,
|
|
4097
4235
|
{
|
|
4098
4236
|
center: [
|
|
@@ -4107,7 +4245,7 @@ var SOT886 = () => {
|
|
|
4107
4245
|
}),
|
|
4108
4246
|
[0, 1, 2].map((i) => {
|
|
4109
4247
|
const y = -pinSpan / 2 + i * pitch;
|
|
4110
|
-
return /* @__PURE__ */
|
|
4248
|
+
return /* @__PURE__ */ jsx59(
|
|
4111
4249
|
Cuboid36,
|
|
4112
4250
|
{
|
|
4113
4251
|
center: [
|
|
@@ -4124,8 +4262,8 @@ var SOT886 = () => {
|
|
|
4124
4262
|
};
|
|
4125
4263
|
|
|
4126
4264
|
// lib/sod-323.tsx
|
|
4127
|
-
import { Colorize as
|
|
4128
|
-
import { Fragment as
|
|
4265
|
+
import { Colorize as Colorize29, Cuboid as Cuboid37 } from "jscad-fiber";
|
|
4266
|
+
import { Fragment as Fragment55, jsx as jsx60, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4129
4267
|
var SOD323 = () => {
|
|
4130
4268
|
const fullWidth = 2.5;
|
|
4131
4269
|
const bodyLength10 = 1.25;
|
|
@@ -4137,8 +4275,8 @@ var SOD323 = () => {
|
|
|
4137
4275
|
const padCenterX = bodyWidth / 2;
|
|
4138
4276
|
const bodyDistance = 0.45;
|
|
4139
4277
|
const leadHeight = 0.7;
|
|
4140
|
-
return /* @__PURE__ */
|
|
4141
|
-
/* @__PURE__ */
|
|
4278
|
+
return /* @__PURE__ */ jsxs56(Fragment55, { children: [
|
|
4279
|
+
/* @__PURE__ */ jsx60(
|
|
4142
4280
|
SmdChipLead,
|
|
4143
4281
|
{
|
|
4144
4282
|
position: {
|
|
@@ -4154,7 +4292,7 @@ var SOD323 = () => {
|
|
|
4154
4292
|
},
|
|
4155
4293
|
1
|
|
4156
4294
|
),
|
|
4157
|
-
/* @__PURE__ */
|
|
4295
|
+
/* @__PURE__ */ jsx60(
|
|
4158
4296
|
SmdChipLead,
|
|
4159
4297
|
{
|
|
4160
4298
|
rotation: Math.PI,
|
|
@@ -4171,7 +4309,7 @@ var SOD323 = () => {
|
|
|
4171
4309
|
},
|
|
4172
4310
|
1
|
|
4173
4311
|
),
|
|
4174
|
-
/* @__PURE__ */
|
|
4312
|
+
/* @__PURE__ */ jsx60(Colorize29, { color: "#222", children: /* @__PURE__ */ jsx60(
|
|
4175
4313
|
ChipBody,
|
|
4176
4314
|
{
|
|
4177
4315
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4184,7 +4322,7 @@ var SOD323 = () => {
|
|
|
4184
4322
|
heightAboveSurface: 0.05
|
|
4185
4323
|
}
|
|
4186
4324
|
) }),
|
|
4187
|
-
/* @__PURE__ */
|
|
4325
|
+
/* @__PURE__ */ jsx60(
|
|
4188
4326
|
Cuboid37,
|
|
4189
4327
|
{
|
|
4190
4328
|
color: "#777",
|
|
@@ -4196,8 +4334,8 @@ var SOD323 = () => {
|
|
|
4196
4334
|
};
|
|
4197
4335
|
|
|
4198
4336
|
// lib/sod-323F.tsx
|
|
4199
|
-
import { Colorize as
|
|
4200
|
-
import { Fragment as
|
|
4337
|
+
import { Colorize as Colorize30, Cuboid as Cuboid38, Hull as Hull22, Translate as Translate25, Union as Union17 } from "jscad-fiber";
|
|
4338
|
+
import { Fragment as Fragment56, jsx as jsx61, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
4201
4339
|
var SOD323F = () => {
|
|
4202
4340
|
const fullWidth = 1.7;
|
|
4203
4341
|
const bodyLength10 = 1.25;
|
|
@@ -4209,8 +4347,8 @@ var SOD323F = () => {
|
|
|
4209
4347
|
const rightPadCenterX = fullWidth / 2 + padLength / 2;
|
|
4210
4348
|
const taperOffset = 0.2;
|
|
4211
4349
|
const straightHeight = padThickness;
|
|
4212
|
-
return /* @__PURE__ */
|
|
4213
|
-
/* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ jsxs57(Fragment56, { children: [
|
|
4351
|
+
/* @__PURE__ */ jsx61(
|
|
4214
4352
|
Cuboid38,
|
|
4215
4353
|
{
|
|
4216
4354
|
color: "#ccc",
|
|
@@ -4218,7 +4356,7 @@ var SOD323F = () => {
|
|
|
4218
4356
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
4219
4357
|
}
|
|
4220
4358
|
),
|
|
4221
|
-
/* @__PURE__ */
|
|
4359
|
+
/* @__PURE__ */ jsx61(
|
|
4222
4360
|
Cuboid38,
|
|
4223
4361
|
{
|
|
4224
4362
|
color: "#ccc",
|
|
@@ -4226,11 +4364,11 @@ var SOD323F = () => {
|
|
|
4226
4364
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4227
4365
|
}
|
|
4228
4366
|
),
|
|
4229
|
-
/* @__PURE__ */
|
|
4230
|
-
/* @__PURE__ */
|
|
4231
|
-
/* @__PURE__ */
|
|
4232
|
-
/* @__PURE__ */
|
|
4233
|
-
/* @__PURE__ */
|
|
4367
|
+
/* @__PURE__ */ jsx61(Colorize30, { color: "#222", children: /* @__PURE__ */ jsxs57(Union17, { children: [
|
|
4368
|
+
/* @__PURE__ */ jsx61(Translate25, { z: straightHeight / 2, children: /* @__PURE__ */ jsx61(Cuboid38, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
4369
|
+
/* @__PURE__ */ jsxs57(Hull22, { children: [
|
|
4370
|
+
/* @__PURE__ */ jsx61(Translate25, { z: straightHeight, children: /* @__PURE__ */ jsx61(Cuboid38, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
4371
|
+
/* @__PURE__ */ jsx61(Translate25, { z: bodyHeight, children: /* @__PURE__ */ jsx61(
|
|
4234
4372
|
Cuboid38,
|
|
4235
4373
|
{
|
|
4236
4374
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -4238,7 +4376,7 @@ var SOD323F = () => {
|
|
|
4238
4376
|
) })
|
|
4239
4377
|
] })
|
|
4240
4378
|
] }) }),
|
|
4241
|
-
/* @__PURE__ */
|
|
4379
|
+
/* @__PURE__ */ jsx61(
|
|
4242
4380
|
Cuboid38,
|
|
4243
4381
|
{
|
|
4244
4382
|
color: "#777",
|
|
@@ -4250,8 +4388,8 @@ var SOD323F = () => {
|
|
|
4250
4388
|
};
|
|
4251
4389
|
|
|
4252
4390
|
// lib/sod-323FL.tsx
|
|
4253
|
-
import { Colorize as
|
|
4254
|
-
import { Fragment as
|
|
4391
|
+
import { Colorize as Colorize31, Cuboid as Cuboid39 } from "jscad-fiber";
|
|
4392
|
+
import { Fragment as Fragment57, jsx as jsx62, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4255
4393
|
var SOD323FL = () => {
|
|
4256
4394
|
const fullWidth = 1.775;
|
|
4257
4395
|
const bodyLength10 = 1.25;
|
|
@@ -4262,8 +4400,8 @@ var SOD323FL = () => {
|
|
|
4262
4400
|
const leftPadCenterX = -fullWidth / 2 - padLength / 2 + 0.04;
|
|
4263
4401
|
const rightPadCenterX = fullWidth / 2 + padLength / 2 - 0.04;
|
|
4264
4402
|
const taperOffset = 0.2;
|
|
4265
|
-
return /* @__PURE__ */
|
|
4266
|
-
/* @__PURE__ */
|
|
4403
|
+
return /* @__PURE__ */ jsxs58(Fragment57, { children: [
|
|
4404
|
+
/* @__PURE__ */ jsx62(
|
|
4267
4405
|
Cuboid39,
|
|
4268
4406
|
{
|
|
4269
4407
|
color: "#ccc",
|
|
@@ -4271,7 +4409,7 @@ var SOD323FL = () => {
|
|
|
4271
4409
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
4272
4410
|
}
|
|
4273
4411
|
),
|
|
4274
|
-
/* @__PURE__ */
|
|
4412
|
+
/* @__PURE__ */ jsx62(
|
|
4275
4413
|
Cuboid39,
|
|
4276
4414
|
{
|
|
4277
4415
|
color: "#ccc",
|
|
@@ -4279,7 +4417,7 @@ var SOD323FL = () => {
|
|
|
4279
4417
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4280
4418
|
}
|
|
4281
4419
|
),
|
|
4282
|
-
/* @__PURE__ */
|
|
4420
|
+
/* @__PURE__ */ jsx62(Colorize31, { color: "#222", children: /* @__PURE__ */ jsx62(
|
|
4283
4421
|
ChipBody,
|
|
4284
4422
|
{
|
|
4285
4423
|
width: fullWidth,
|
|
@@ -4292,7 +4430,7 @@ var SOD323FL = () => {
|
|
|
4292
4430
|
includeNotch: false
|
|
4293
4431
|
}
|
|
4294
4432
|
) }),
|
|
4295
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ jsx62(
|
|
4296
4434
|
Cuboid39,
|
|
4297
4435
|
{
|
|
4298
4436
|
color: "#777",
|
|
@@ -4304,30 +4442,30 @@ var SOD323FL = () => {
|
|
|
4304
4442
|
};
|
|
4305
4443
|
|
|
4306
4444
|
// lib/AxialCapacitor.tsx
|
|
4307
|
-
import { Colorize as
|
|
4308
|
-
import { Fragment as
|
|
4445
|
+
import { Colorize as Colorize32, Cylinder as Cylinder9, Rotate as Rotate11, Sphere as Sphere2, Translate as Translate27 } from "jscad-fiber";
|
|
4446
|
+
import { Fragment as Fragment58, jsx as jsx63, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4309
4447
|
var AxialCapacitor = ({ pitch = 10 }) => {
|
|
4310
4448
|
const heightToCenterOfCapacitor = 0.5 + 4 / 2;
|
|
4311
|
-
return /* @__PURE__ */
|
|
4312
|
-
/* @__PURE__ */
|
|
4313
|
-
/* @__PURE__ */
|
|
4449
|
+
return /* @__PURE__ */ jsxs59(Fragment58, { children: [
|
|
4450
|
+
/* @__PURE__ */ jsx63(Cylinder9, { height: 4, radius: 0.5, center: [-pitch / 2, 0, 0.5] }),
|
|
4451
|
+
/* @__PURE__ */ jsx63(
|
|
4314
4452
|
Sphere2,
|
|
4315
4453
|
{
|
|
4316
4454
|
radius: 0.5,
|
|
4317
4455
|
center: [-pitch / 2, 0, heightToCenterOfCapacitor]
|
|
4318
4456
|
}
|
|
4319
4457
|
),
|
|
4320
|
-
/* @__PURE__ */
|
|
4321
|
-
/* @__PURE__ */
|
|
4322
|
-
|
|
4458
|
+
/* @__PURE__ */ jsx63(Translate27, { x: -2.5, y: 0, z: heightToCenterOfCapacitor, children: /* @__PURE__ */ jsxs59(Rotate11, { rotation: [0, Math.PI / 2, 0], children: [
|
|
4459
|
+
/* @__PURE__ */ jsx63(
|
|
4460
|
+
Cylinder9,
|
|
4323
4461
|
{
|
|
4324
4462
|
height: pitch,
|
|
4325
4463
|
radius: 0.5,
|
|
4326
4464
|
center: [0, 0, heightToCenterOfCapacitor]
|
|
4327
4465
|
}
|
|
4328
4466
|
),
|
|
4329
|
-
/* @__PURE__ */
|
|
4330
|
-
|
|
4467
|
+
/* @__PURE__ */ jsx63(Colorize32, { color: "#d2b48c", children: /* @__PURE__ */ jsx63(
|
|
4468
|
+
Cylinder9,
|
|
4331
4469
|
{
|
|
4332
4470
|
height: 5,
|
|
4333
4471
|
radius: 1.3,
|
|
@@ -4335,14 +4473,14 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
4335
4473
|
}
|
|
4336
4474
|
) })
|
|
4337
4475
|
] }) }),
|
|
4338
|
-
/* @__PURE__ */
|
|
4339
|
-
/* @__PURE__ */
|
|
4476
|
+
/* @__PURE__ */ jsx63(Cylinder9, { height: 4, radius: 0.5, center: [pitch / 2, 0, 0.5] }),
|
|
4477
|
+
/* @__PURE__ */ jsx63(Sphere2, { radius: 0.5, center: [pitch / 2, 0, heightToCenterOfCapacitor] })
|
|
4340
4478
|
] });
|
|
4341
4479
|
};
|
|
4342
4480
|
|
|
4343
4481
|
// lib/stampboard.tsx
|
|
4344
|
-
import { Colorize as
|
|
4345
|
-
import { Fragment as
|
|
4482
|
+
import { Colorize as Colorize33, Cuboid as Cuboid40, Cylinder as Cylinder10, Subtract as Subtract6, Union as Union19 } from "jscad-fiber";
|
|
4483
|
+
import { Fragment as Fragment59, jsx as jsx64, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
4346
4484
|
var StampBoard = ({
|
|
4347
4485
|
bodyWidth = 21,
|
|
4348
4486
|
boardThickness = 0.5,
|
|
@@ -4440,15 +4578,15 @@ var StampBoard = ({
|
|
|
4440
4578
|
}
|
|
4441
4579
|
}
|
|
4442
4580
|
}
|
|
4443
|
-
const boardBody = /* @__PURE__ */
|
|
4444
|
-
/* @__PURE__ */
|
|
4581
|
+
const boardBody = /* @__PURE__ */ jsx64(Colorize33, { color: "#051a0a", children: /* @__PURE__ */ jsxs60(Subtract6, { children: [
|
|
4582
|
+
/* @__PURE__ */ jsx64(
|
|
4445
4583
|
Cuboid40,
|
|
4446
4584
|
{
|
|
4447
4585
|
center: [0, 0, boardCenterZ],
|
|
4448
4586
|
size: [bodyWidth, bodyLength10, boardThickness]
|
|
4449
4587
|
}
|
|
4450
4588
|
),
|
|
4451
|
-
pads.map((pad, index) => /* @__PURE__ */
|
|
4589
|
+
pads.map((pad, index) => /* @__PURE__ */ jsx64(
|
|
4452
4590
|
Cuboid40,
|
|
4453
4591
|
{
|
|
4454
4592
|
center: [pad.x, pad.y, boardCenterZ],
|
|
@@ -4457,8 +4595,8 @@ var StampBoard = ({
|
|
|
4457
4595
|
index
|
|
4458
4596
|
))
|
|
4459
4597
|
] }) });
|
|
4460
|
-
const holePads = innerHoles && holes.map((hole, index) => /* @__PURE__ */
|
|
4461
|
-
|
|
4598
|
+
const holePads = innerHoles && holes.map((hole, index) => /* @__PURE__ */ jsx64(
|
|
4599
|
+
Cylinder10,
|
|
4462
4600
|
{
|
|
4463
4601
|
color: "black",
|
|
4464
4602
|
center: [hole.x, hole.y, boardCenterZ],
|
|
@@ -4467,7 +4605,7 @@ var StampBoard = ({
|
|
|
4467
4605
|
},
|
|
4468
4606
|
index
|
|
4469
4607
|
));
|
|
4470
|
-
const rectPads = pads.map((pad, index) => /* @__PURE__ */
|
|
4608
|
+
const rectPads = pads.map((pad, index) => /* @__PURE__ */ jsx64(
|
|
4471
4609
|
Cuboid40,
|
|
4472
4610
|
{
|
|
4473
4611
|
center: [pad.x, pad.y, boardCenterZ],
|
|
@@ -4475,10 +4613,10 @@ var StampBoard = ({
|
|
|
4475
4613
|
},
|
|
4476
4614
|
index
|
|
4477
4615
|
));
|
|
4478
|
-
return /* @__PURE__ */
|
|
4616
|
+
return /* @__PURE__ */ jsxs60(Fragment59, { children: [
|
|
4479
4617
|
boardBody,
|
|
4480
|
-
/* @__PURE__ */
|
|
4481
|
-
/* @__PURE__ */
|
|
4618
|
+
/* @__PURE__ */ jsx64(Colorize33, { color: "#FFD700", children: innerHoles ? /* @__PURE__ */ jsxs60(Subtract6, { children: [
|
|
4619
|
+
/* @__PURE__ */ jsx64(Union19, { children: pads.map((pad, index) => /* @__PURE__ */ jsx64(
|
|
4482
4620
|
Cuboid40,
|
|
4483
4621
|
{
|
|
4484
4622
|
center: [pad.x, pad.y, boardCenterZ],
|
|
@@ -4492,11 +4630,11 @@ var StampBoard = ({
|
|
|
4492
4630
|
};
|
|
4493
4631
|
|
|
4494
4632
|
// lib/MountedPcbModule.tsx
|
|
4495
|
-
import { Colorize as
|
|
4633
|
+
import { Colorize as Colorize35, Cuboid as Cuboid42, Cylinder as Cylinder11, Subtract as Subtract8 } from "jscad-fiber";
|
|
4496
4634
|
|
|
4497
4635
|
// lib/Screen.tsx
|
|
4498
|
-
import { Colorize as
|
|
4499
|
-
import { jsx as
|
|
4636
|
+
import { Colorize as Colorize34, Cuboid as Cuboid41, Subtract as Subtract7, Translate as Translate28 } from "jscad-fiber";
|
|
4637
|
+
import { jsx as jsx65, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
4500
4638
|
var Screen = ({
|
|
4501
4639
|
width: width10 = 30,
|
|
4502
4640
|
height: height10 = 22,
|
|
@@ -4524,23 +4662,23 @@ var Screen = ({
|
|
|
4524
4662
|
const offsetX = offset?.x ?? 0;
|
|
4525
4663
|
const offsetY = offset?.y ?? 0;
|
|
4526
4664
|
const offsetZ = offset?.z ?? 0;
|
|
4527
|
-
return /* @__PURE__ */
|
|
4528
|
-
backBlockHeight > 0 && /* @__PURE__ */
|
|
4665
|
+
return /* @__PURE__ */ jsxs61(Translate28, { offset: { x: offsetX, y: offsetY, z: offsetZ }, children: [
|
|
4666
|
+
backBlockHeight > 0 && /* @__PURE__ */ jsx65(Colorize34, { color: bezelColor, children: /* @__PURE__ */ jsx65(
|
|
4529
4667
|
Cuboid41,
|
|
4530
4668
|
{
|
|
4531
4669
|
size: [w, h, backBlockHeight],
|
|
4532
4670
|
offset: [0, 0, backBlockHeight / 2]
|
|
4533
4671
|
}
|
|
4534
4672
|
) }),
|
|
4535
|
-
/* @__PURE__ */
|
|
4536
|
-
/* @__PURE__ */
|
|
4673
|
+
/* @__PURE__ */ jsx65(Colorize34, { color: bezelColor, children: /* @__PURE__ */ jsxs61(Subtract7, { children: [
|
|
4674
|
+
/* @__PURE__ */ jsx65(
|
|
4537
4675
|
Cuboid41,
|
|
4538
4676
|
{
|
|
4539
4677
|
size: [w, h, clampedBezelDepth],
|
|
4540
4678
|
offset: [0, 0, backBlockHeight + clampedBezelDepth / 2]
|
|
4541
4679
|
}
|
|
4542
4680
|
),
|
|
4543
|
-
/* @__PURE__ */
|
|
4681
|
+
/* @__PURE__ */ jsx65(
|
|
4544
4682
|
Cuboid41,
|
|
4545
4683
|
{
|
|
4546
4684
|
size: [innerWidth, innerHeight, clampedBezelDepth + 0.02],
|
|
@@ -4548,7 +4686,7 @@ var Screen = ({
|
|
|
4548
4686
|
}
|
|
4549
4687
|
)
|
|
4550
4688
|
] }) }),
|
|
4551
|
-
/* @__PURE__ */
|
|
4689
|
+
/* @__PURE__ */ jsx65(Colorize34, { color: screenColor, children: /* @__PURE__ */ jsx65(
|
|
4552
4690
|
Cuboid41,
|
|
4553
4691
|
{
|
|
4554
4692
|
size: [innerWidth, innerHeight, screenThickness],
|
|
@@ -4560,7 +4698,7 @@ var Screen = ({
|
|
|
4560
4698
|
var Display = Screen;
|
|
4561
4699
|
|
|
4562
4700
|
// lib/MountedPcbModule.tsx
|
|
4563
|
-
import { Fragment as
|
|
4701
|
+
import { Fragment as Fragment60, jsx as jsx66, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
4564
4702
|
var MountedPcbModule = ({
|
|
4565
4703
|
numPins = 5,
|
|
4566
4704
|
rows = 1,
|
|
@@ -4661,16 +4799,16 @@ var MountedPcbModule = ({
|
|
|
4661
4799
|
const shortSidePinLength = 3;
|
|
4662
4800
|
const boardOffsetZ = nopin || female ? 0 : pinBodyHeight;
|
|
4663
4801
|
const boardTopZ = boardOffsetZ + boardThickness;
|
|
4664
|
-
const boardBody = /* @__PURE__ */
|
|
4665
|
-
/* @__PURE__ */
|
|
4802
|
+
const boardBody = /* @__PURE__ */ jsx66(Colorize35, { color: "#008080", children: /* @__PURE__ */ jsxs62(Subtract8, { children: [
|
|
4803
|
+
/* @__PURE__ */ jsx66(
|
|
4666
4804
|
Cuboid42,
|
|
4667
4805
|
{
|
|
4668
4806
|
center: [0, 0, boardCenterZ + boardOffsetZ],
|
|
4669
4807
|
size: [finalWidth, finalHeight, boardThickness]
|
|
4670
4808
|
}
|
|
4671
4809
|
),
|
|
4672
|
-
holePositions.map((hole, index) => /* @__PURE__ */
|
|
4673
|
-
|
|
4810
|
+
holePositions.map((hole, index) => /* @__PURE__ */ jsx66(
|
|
4811
|
+
Cylinder11,
|
|
4674
4812
|
{
|
|
4675
4813
|
center: [hole.x, hole.y, boardCenterZ + boardOffsetZ],
|
|
4676
4814
|
radius: od / 2,
|
|
@@ -4678,8 +4816,8 @@ var MountedPcbModule = ({
|
|
|
4678
4816
|
},
|
|
4679
4817
|
`hole-${index}`
|
|
4680
4818
|
)),
|
|
4681
|
-
pins.map((pin, index) => /* @__PURE__ */
|
|
4682
|
-
|
|
4819
|
+
pins.map((pin, index) => /* @__PURE__ */ jsx66(
|
|
4820
|
+
Cylinder11,
|
|
4683
4821
|
{
|
|
4684
4822
|
center: [pin.x, pin.y, boardCenterZ + boardOffsetZ],
|
|
4685
4823
|
radius: od / 2,
|
|
@@ -4688,17 +4826,17 @@ var MountedPcbModule = ({
|
|
|
4688
4826
|
`pin-hole-${index}`
|
|
4689
4827
|
))
|
|
4690
4828
|
] }) });
|
|
4691
|
-
const platedHoles = pins.map((pin, index) => /* @__PURE__ */
|
|
4692
|
-
/* @__PURE__ */
|
|
4693
|
-
|
|
4829
|
+
const platedHoles = pins.map((pin, index) => /* @__PURE__ */ jsx66(Colorize35, { color: "#FFD700", children: /* @__PURE__ */ jsxs62(Subtract8, { children: [
|
|
4830
|
+
/* @__PURE__ */ jsx66(
|
|
4831
|
+
Cylinder11,
|
|
4694
4832
|
{
|
|
4695
4833
|
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
4696
4834
|
radius: od / 2,
|
|
4697
4835
|
height: boardThickness
|
|
4698
4836
|
}
|
|
4699
4837
|
),
|
|
4700
|
-
/* @__PURE__ */
|
|
4701
|
-
|
|
4838
|
+
/* @__PURE__ */ jsx66(
|
|
4839
|
+
Cylinder11,
|
|
4702
4840
|
{
|
|
4703
4841
|
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
4704
4842
|
radius: id / 2,
|
|
@@ -4706,7 +4844,7 @@ var MountedPcbModule = ({
|
|
|
4706
4844
|
}
|
|
4707
4845
|
)
|
|
4708
4846
|
] }) }, `pin-${index}`));
|
|
4709
|
-
const headerPins = pins.map((pin, index) => /* @__PURE__ */
|
|
4847
|
+
const headerPins = pins.map((pin, index) => /* @__PURE__ */ jsx66(
|
|
4710
4848
|
PinHeader,
|
|
4711
4849
|
{
|
|
4712
4850
|
x: pin.x,
|
|
@@ -4719,7 +4857,7 @@ var MountedPcbModule = ({
|
|
|
4719
4857
|
},
|
|
4720
4858
|
`pin-3d-${index}`
|
|
4721
4859
|
));
|
|
4722
|
-
const femaleHeaderRow = pins.map((pin, index) => /* @__PURE__ */
|
|
4860
|
+
const femaleHeaderRow = pins.map((pin, index) => /* @__PURE__ */ jsx66(
|
|
4723
4861
|
FemaleHeader,
|
|
4724
4862
|
{
|
|
4725
4863
|
x: pin.x,
|
|
@@ -4728,12 +4866,12 @@ var MountedPcbModule = ({
|
|
|
4728
4866
|
},
|
|
4729
4867
|
`female-pin-3d-${index}`
|
|
4730
4868
|
));
|
|
4731
|
-
return /* @__PURE__ */
|
|
4869
|
+
return /* @__PURE__ */ jsxs62(Fragment60, { children: [
|
|
4732
4870
|
boardBody,
|
|
4733
4871
|
platedHoles,
|
|
4734
4872
|
!female && !nopin && headerPins,
|
|
4735
4873
|
female && femaleHeaderRow,
|
|
4736
|
-
showScreen && /* @__PURE__ */
|
|
4874
|
+
showScreen && /* @__PURE__ */ jsx66(
|
|
4737
4875
|
Screen,
|
|
4738
4876
|
{
|
|
4739
4877
|
width: screenWidth ?? finalWidth * 0.8,
|
|
@@ -4749,8 +4887,8 @@ var MountedPcbModule = ({
|
|
|
4749
4887
|
};
|
|
4750
4888
|
|
|
4751
4889
|
// lib/SOD723.tsx
|
|
4752
|
-
import { Colorize as
|
|
4753
|
-
import { Fragment as
|
|
4890
|
+
import { Colorize as Colorize36, Cuboid as Cuboid43, Hull as Hull24, Translate as Translate29, Union as Union20 } from "jscad-fiber";
|
|
4891
|
+
import { Fragment as Fragment61, jsx as jsx67, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
4754
4892
|
var SOD723 = () => {
|
|
4755
4893
|
const fullWidth = 1.4;
|
|
4756
4894
|
const bodyLength10 = 0.6;
|
|
@@ -4763,8 +4901,8 @@ var SOD723 = () => {
|
|
|
4763
4901
|
const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
|
|
4764
4902
|
const taperOffset = 0.2;
|
|
4765
4903
|
const straightHeight = bodyHeight * 0.24;
|
|
4766
|
-
return /* @__PURE__ */
|
|
4767
|
-
/* @__PURE__ */
|
|
4904
|
+
return /* @__PURE__ */ jsxs63(Fragment61, { children: [
|
|
4905
|
+
/* @__PURE__ */ jsx67(
|
|
4768
4906
|
Cuboid43,
|
|
4769
4907
|
{
|
|
4770
4908
|
color: "#ccc",
|
|
@@ -4772,7 +4910,7 @@ var SOD723 = () => {
|
|
|
4772
4910
|
center: [leftPadCenterX, 0, padThickness / 2]
|
|
4773
4911
|
}
|
|
4774
4912
|
),
|
|
4775
|
-
/* @__PURE__ */
|
|
4913
|
+
/* @__PURE__ */ jsx67(
|
|
4776
4914
|
Cuboid43,
|
|
4777
4915
|
{
|
|
4778
4916
|
color: "#ccc",
|
|
@@ -4780,11 +4918,11 @@ var SOD723 = () => {
|
|
|
4780
4918
|
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4781
4919
|
}
|
|
4782
4920
|
),
|
|
4783
|
-
/* @__PURE__ */
|
|
4784
|
-
/* @__PURE__ */
|
|
4785
|
-
/* @__PURE__ */
|
|
4786
|
-
/* @__PURE__ */
|
|
4787
|
-
/* @__PURE__ */
|
|
4921
|
+
/* @__PURE__ */ jsx67(Colorize36, { color: "#222", children: /* @__PURE__ */ jsxs63(Union20, { children: [
|
|
4922
|
+
/* @__PURE__ */ jsx67(Translate29, { z: straightHeight / 2, children: /* @__PURE__ */ jsx67(Cuboid43, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
4923
|
+
/* @__PURE__ */ jsxs63(Hull24, { children: [
|
|
4924
|
+
/* @__PURE__ */ jsx67(Translate29, { z: straightHeight, children: /* @__PURE__ */ jsx67(Cuboid43, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
4925
|
+
/* @__PURE__ */ jsx67(Translate29, { z: bodyHeight, children: /* @__PURE__ */ jsx67(
|
|
4788
4926
|
Cuboid43,
|
|
4789
4927
|
{
|
|
4790
4928
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
@@ -4792,7 +4930,7 @@ var SOD723 = () => {
|
|
|
4792
4930
|
) })
|
|
4793
4931
|
] })
|
|
4794
4932
|
] }) }),
|
|
4795
|
-
/* @__PURE__ */
|
|
4933
|
+
/* @__PURE__ */ jsx67(
|
|
4796
4934
|
Cuboid43,
|
|
4797
4935
|
{
|
|
4798
4936
|
color: "#777",
|
|
@@ -4806,14 +4944,14 @@ var SOD723_default = SOD723;
|
|
|
4806
4944
|
|
|
4807
4945
|
// lib/JSTZH1_5mm.tsx
|
|
4808
4946
|
import {
|
|
4809
|
-
Colorize as
|
|
4947
|
+
Colorize as Colorize37,
|
|
4810
4948
|
Cuboid as Cuboid44,
|
|
4811
|
-
Cylinder as
|
|
4949
|
+
Cylinder as Cylinder12,
|
|
4812
4950
|
Rotate as Rotate12,
|
|
4813
4951
|
Subtract as Subtract9,
|
|
4814
4952
|
Translate as Translate30
|
|
4815
4953
|
} from "jscad-fiber";
|
|
4816
|
-
import { Fragment as
|
|
4954
|
+
import { Fragment as Fragment62, jsx as jsx68, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
4817
4955
|
var JSTZH1_5mm = ({
|
|
4818
4956
|
numPins = 7,
|
|
4819
4957
|
showPins = true,
|
|
@@ -4829,16 +4967,16 @@ var JSTZH1_5mm = ({
|
|
|
4829
4967
|
const pinLength = 6;
|
|
4830
4968
|
const bodyWidth = (numPins - 1) * pitch + 4;
|
|
4831
4969
|
const startX = -((numPins - 1) * pitch) / 2;
|
|
4832
|
-
return /* @__PURE__ */
|
|
4833
|
-
/* @__PURE__ */
|
|
4834
|
-
/* @__PURE__ */
|
|
4970
|
+
return /* @__PURE__ */ jsxs64(Fragment62, { children: [
|
|
4971
|
+
/* @__PURE__ */ jsx68(Translate30, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx68(Rotate12, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx68(Colorize37, { color: bodyColor, children: /* @__PURE__ */ jsxs64(Subtract9, { children: [
|
|
4972
|
+
/* @__PURE__ */ jsx68(
|
|
4835
4973
|
Cuboid44,
|
|
4836
4974
|
{
|
|
4837
4975
|
size: [bodyWidth, bodyDepth, bodyHeight],
|
|
4838
4976
|
center: [0, 0, bodyHeight / 2]
|
|
4839
4977
|
}
|
|
4840
4978
|
),
|
|
4841
|
-
/* @__PURE__ */
|
|
4979
|
+
/* @__PURE__ */ jsx68(
|
|
4842
4980
|
Cuboid44,
|
|
4843
4981
|
{
|
|
4844
4982
|
size: [
|
|
@@ -4849,14 +4987,14 @@ var JSTZH1_5mm = ({
|
|
|
4849
4987
|
center: [0, 0, hollowHeight / 2]
|
|
4850
4988
|
}
|
|
4851
4989
|
),
|
|
4852
|
-
/* @__PURE__ */
|
|
4990
|
+
/* @__PURE__ */ jsx68(
|
|
4853
4991
|
Cuboid44,
|
|
4854
4992
|
{
|
|
4855
4993
|
size: [bodyWidth, bodyDepth / 3, hollowHeight],
|
|
4856
4994
|
center: [0, 0, hollowHeight / 6]
|
|
4857
4995
|
}
|
|
4858
4996
|
),
|
|
4859
|
-
/* @__PURE__ */
|
|
4997
|
+
/* @__PURE__ */ jsx68(
|
|
4860
4998
|
Cuboid44,
|
|
4861
4999
|
{
|
|
4862
5000
|
size: [
|
|
@@ -4871,7 +5009,7 @@ var JSTZH1_5mm = ({
|
|
|
4871
5009
|
]
|
|
4872
5010
|
}
|
|
4873
5011
|
),
|
|
4874
|
-
/* @__PURE__ */
|
|
5012
|
+
/* @__PURE__ */ jsx68(
|
|
4875
5013
|
Cuboid44,
|
|
4876
5014
|
{
|
|
4877
5015
|
size: [
|
|
@@ -4886,28 +5024,28 @@ var JSTZH1_5mm = ({
|
|
|
4886
5024
|
]
|
|
4887
5025
|
}
|
|
4888
5026
|
),
|
|
4889
|
-
/* @__PURE__ */
|
|
5027
|
+
/* @__PURE__ */ jsx68(
|
|
4890
5028
|
Cuboid44,
|
|
4891
5029
|
{
|
|
4892
5030
|
size: [1, wallThickness + 2, 1],
|
|
4893
5031
|
center: [-bodyWidth / 4, bodyDepth / 2, bodyHeight / 2]
|
|
4894
5032
|
}
|
|
4895
5033
|
),
|
|
4896
|
-
/* @__PURE__ */
|
|
5034
|
+
/* @__PURE__ */ jsx68(
|
|
4897
5035
|
Cuboid44,
|
|
4898
5036
|
{
|
|
4899
5037
|
size: [1, wallThickness + 3, 1],
|
|
4900
5038
|
center: [bodyWidth / 4, bodyDepth / 2, bodyHeight / 2]
|
|
4901
5039
|
}
|
|
4902
5040
|
),
|
|
4903
|
-
/* @__PURE__ */
|
|
5041
|
+
/* @__PURE__ */ jsx68(
|
|
4904
5042
|
Cuboid44,
|
|
4905
5043
|
{
|
|
4906
5044
|
size: [1, wallThickness + 2, 1],
|
|
4907
5045
|
center: [-bodyWidth / 4, -bodyDepth / 2, bodyHeight / 2]
|
|
4908
5046
|
}
|
|
4909
5047
|
),
|
|
4910
|
-
/* @__PURE__ */
|
|
5048
|
+
/* @__PURE__ */ jsx68(
|
|
4911
5049
|
Cuboid44,
|
|
4912
5050
|
{
|
|
4913
5051
|
size: [1, wallThickness + 3, 1],
|
|
@@ -4915,8 +5053,8 @@ var JSTZH1_5mm = ({
|
|
|
4915
5053
|
}
|
|
4916
5054
|
)
|
|
4917
5055
|
] }) }) }) }),
|
|
4918
|
-
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */
|
|
4919
|
-
|
|
5056
|
+
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx68(Colorize37, { color: pinColor, children: /* @__PURE__ */ jsx68(
|
|
5057
|
+
Cylinder12,
|
|
4920
5058
|
{
|
|
4921
5059
|
height: pinLength,
|
|
4922
5060
|
radius: 0.35,
|
|
@@ -4951,7 +5089,7 @@ var JSTZH1_5mm = ({
|
|
|
4951
5089
|
layers: ["top", "bottom"],
|
|
4952
5090
|
port_hints: [`${i + 1}`]
|
|
4953
5091
|
};
|
|
4954
|
-
return /* @__PURE__ */
|
|
5092
|
+
return /* @__PURE__ */ jsx68(
|
|
4955
5093
|
FootprintPlatedHole,
|
|
4956
5094
|
{
|
|
4957
5095
|
hole,
|
|
@@ -4965,15 +5103,15 @@ var JSTZH1_5mm = ({
|
|
|
4965
5103
|
|
|
4966
5104
|
// lib/FPC.tsx
|
|
4967
5105
|
import {
|
|
4968
|
-
Colorize as
|
|
5106
|
+
Colorize as Colorize38,
|
|
4969
5107
|
Cuboid as Cuboid45,
|
|
4970
|
-
Cylinder as
|
|
5108
|
+
Cylinder as Cylinder13,
|
|
4971
5109
|
Rotate as Rotate13,
|
|
4972
5110
|
RoundedCuboid as RoundedCuboid3,
|
|
4973
5111
|
Subtract as Subtract10,
|
|
4974
5112
|
Translate as Translate31
|
|
4975
5113
|
} from "jscad-fiber";
|
|
4976
|
-
import { Fragment as
|
|
5114
|
+
import { Fragment as Fragment63, jsx as jsx69, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
4977
5115
|
var HOUSING_COLOR = "#303339";
|
|
4978
5116
|
var HOUSING_SHADOW = "#1f2227";
|
|
4979
5117
|
var ACTUATOR_COLOR = "#eee8d8";
|
|
@@ -5060,8 +5198,8 @@ var FPC = ({
|
|
|
5060
5198
|
const clipCapX = bodyWidth / 2 - 0.23;
|
|
5061
5199
|
const sideBossX = bodyWidth / 2 - 0.32;
|
|
5062
5200
|
const sideBossWidth = 0.68;
|
|
5063
|
-
return /* @__PURE__ */
|
|
5064
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5201
|
+
return /* @__PURE__ */ jsxs65(Fragment63, { children: [
|
|
5202
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx69(
|
|
5065
5203
|
Cuboid45,
|
|
5066
5204
|
{
|
|
5067
5205
|
color: TIN_COLOR,
|
|
@@ -5070,7 +5208,7 @@ var FPC = ({
|
|
|
5070
5208
|
},
|
|
5071
5209
|
`mount-pad:${direction}`
|
|
5072
5210
|
)),
|
|
5073
|
-
contactRows.map((contact) => /* @__PURE__ */
|
|
5211
|
+
contactRows.map((contact) => /* @__PURE__ */ jsx69(
|
|
5074
5212
|
Cuboid45,
|
|
5075
5213
|
{
|
|
5076
5214
|
color: TIN_COLOR,
|
|
@@ -5079,7 +5217,7 @@ var FPC = ({
|
|
|
5079
5217
|
},
|
|
5080
5218
|
`terminal:${contact.index}`
|
|
5081
5219
|
)),
|
|
5082
|
-
/* @__PURE__ */
|
|
5220
|
+
/* @__PURE__ */ jsx69(
|
|
5083
5221
|
RoundedCuboid3,
|
|
5084
5222
|
{
|
|
5085
5223
|
color: HOUSING_SHADOW,
|
|
@@ -5088,8 +5226,8 @@ var FPC = ({
|
|
|
5088
5226
|
roundRadius: 0.1
|
|
5089
5227
|
}
|
|
5090
5228
|
),
|
|
5091
|
-
/* @__PURE__ */
|
|
5092
|
-
/* @__PURE__ */
|
|
5229
|
+
/* @__PURE__ */ jsx69(Colorize38, { color: HOUSING_COLOR, children: /* @__PURE__ */ jsxs65(Subtract10, { children: [
|
|
5230
|
+
/* @__PURE__ */ jsx69(
|
|
5093
5231
|
RoundedCuboid3,
|
|
5094
5232
|
{
|
|
5095
5233
|
center: [0, housingCenterY, housingBaseHeight + housingHeight / 2],
|
|
@@ -5097,14 +5235,14 @@ var FPC = ({
|
|
|
5097
5235
|
roundRadius: 0.14
|
|
5098
5236
|
}
|
|
5099
5237
|
),
|
|
5100
|
-
/* @__PURE__ */
|
|
5238
|
+
/* @__PURE__ */ jsx69(
|
|
5101
5239
|
Cuboid45,
|
|
5102
5240
|
{
|
|
5103
5241
|
center: [0, throatCenterY, throatCenterZ],
|
|
5104
5242
|
size: [openingWidth, throatDepth, throatHeight]
|
|
5105
5243
|
}
|
|
5106
5244
|
),
|
|
5107
|
-
/* @__PURE__ */
|
|
5245
|
+
/* @__PURE__ */ jsx69(
|
|
5108
5246
|
Cuboid45,
|
|
5109
5247
|
{
|
|
5110
5248
|
center: [0, actuatorCenterY, overallHeight - actuatorHeight * 0.72],
|
|
@@ -5112,7 +5250,7 @@ var FPC = ({
|
|
|
5112
5250
|
}
|
|
5113
5251
|
)
|
|
5114
5252
|
] }) }),
|
|
5115
|
-
contactRows.map((contact) => /* @__PURE__ */
|
|
5253
|
+
contactRows.map((contact) => /* @__PURE__ */ jsx69(
|
|
5116
5254
|
RoundedCuboid3,
|
|
5117
5255
|
{
|
|
5118
5256
|
color: TIN_HIGHLIGHT,
|
|
@@ -5122,7 +5260,7 @@ var FPC = ({
|
|
|
5122
5260
|
},
|
|
5123
5261
|
`spring:${contact.index}`
|
|
5124
5262
|
)),
|
|
5125
|
-
contactRows.map((contact) => /* @__PURE__ */
|
|
5263
|
+
contactRows.map((contact) => /* @__PURE__ */ jsx69(
|
|
5126
5264
|
Cuboid45,
|
|
5127
5265
|
{
|
|
5128
5266
|
color: TIN_COLOR,
|
|
@@ -5135,7 +5273,7 @@ var FPC = ({
|
|
|
5135
5273
|
},
|
|
5136
5274
|
`terminal-rise:${contact.index}`
|
|
5137
5275
|
)),
|
|
5138
|
-
/* @__PURE__ */
|
|
5276
|
+
/* @__PURE__ */ jsx69(
|
|
5139
5277
|
Cuboid45,
|
|
5140
5278
|
{
|
|
5141
5279
|
color: HOUSING_SHADOW,
|
|
@@ -5147,7 +5285,7 @@ var FPC = ({
|
|
|
5147
5285
|
size: [openingWidth + 0.18, 0.16, 0.8]
|
|
5148
5286
|
}
|
|
5149
5287
|
),
|
|
5150
|
-
/* @__PURE__ */
|
|
5288
|
+
/* @__PURE__ */ jsx69(
|
|
5151
5289
|
RoundedCuboid3,
|
|
5152
5290
|
{
|
|
5153
5291
|
color: ACTUATOR_COLOR,
|
|
@@ -5156,7 +5294,7 @@ var FPC = ({
|
|
|
5156
5294
|
roundRadius: 0.11
|
|
5157
5295
|
}
|
|
5158
5296
|
),
|
|
5159
|
-
/* @__PURE__ */
|
|
5297
|
+
/* @__PURE__ */ jsx69(
|
|
5160
5298
|
Cuboid45,
|
|
5161
5299
|
{
|
|
5162
5300
|
color: ACTUATOR_HIGHLIGHT,
|
|
@@ -5168,7 +5306,7 @@ var FPC = ({
|
|
|
5168
5306
|
size: [actuatorWidth - 0.36, 0.24, 0.07]
|
|
5169
5307
|
}
|
|
5170
5308
|
),
|
|
5171
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5309
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx69(
|
|
5172
5310
|
RoundedCuboid3,
|
|
5173
5311
|
{
|
|
5174
5312
|
color: ACTUATOR_COLOR,
|
|
@@ -5178,14 +5316,14 @@ var FPC = ({
|
|
|
5178
5316
|
},
|
|
5179
5317
|
`actuator-ear:${direction}`
|
|
5180
5318
|
)),
|
|
5181
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5319
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx69(
|
|
5182
5320
|
Translate31,
|
|
5183
5321
|
{
|
|
5184
5322
|
x: direction * sideBossX,
|
|
5185
5323
|
y: hingeY,
|
|
5186
5324
|
z: hingeZ,
|
|
5187
|
-
children: /* @__PURE__ */
|
|
5188
|
-
|
|
5325
|
+
children: /* @__PURE__ */ jsx69(Rotate13, { rotation: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx69(
|
|
5326
|
+
Cylinder13,
|
|
5189
5327
|
{
|
|
5190
5328
|
color: ACTUATOR_HIGHLIGHT,
|
|
5191
5329
|
height: sideBossWidth + 0.12,
|
|
@@ -5195,7 +5333,7 @@ var FPC = ({
|
|
|
5195
5333
|
},
|
|
5196
5334
|
`hinge:${direction}`
|
|
5197
5335
|
)),
|
|
5198
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5336
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx69(
|
|
5199
5337
|
RoundedCuboid3,
|
|
5200
5338
|
{
|
|
5201
5339
|
color: HOLD_DOWN_COLOR,
|
|
@@ -5205,7 +5343,7 @@ var FPC = ({
|
|
|
5205
5343
|
},
|
|
5206
5344
|
`hold-down-wall:${direction}`
|
|
5207
5345
|
)),
|
|
5208
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5346
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx69(
|
|
5209
5347
|
RoundedCuboid3,
|
|
5210
5348
|
{
|
|
5211
5349
|
color: HOLD_DOWN_HIGHLIGHT,
|
|
@@ -5215,7 +5353,7 @@ var FPC = ({
|
|
|
5215
5353
|
},
|
|
5216
5354
|
`hold-down-cap:${direction}`
|
|
5217
5355
|
)),
|
|
5218
|
-
/* @__PURE__ */
|
|
5356
|
+
/* @__PURE__ */ jsx69(
|
|
5219
5357
|
Cuboid45,
|
|
5220
5358
|
{
|
|
5221
5359
|
color: HOUSING_SHADOW,
|
|
@@ -5223,7 +5361,7 @@ var FPC = ({
|
|
|
5223
5361
|
size: [openingWidth + 0.7, housingDepth * 0.58, 0.05]
|
|
5224
5362
|
}
|
|
5225
5363
|
),
|
|
5226
|
-
/* @__PURE__ */
|
|
5364
|
+
/* @__PURE__ */ jsx69(
|
|
5227
5365
|
Cuboid45,
|
|
5228
5366
|
{
|
|
5229
5367
|
color: HOUSING_SHADOW,
|
|
@@ -5239,8 +5377,8 @@ var FPC = ({
|
|
|
5239
5377
|
};
|
|
5240
5378
|
|
|
5241
5379
|
// lib/SmdPinHeader.tsx
|
|
5242
|
-
import { Colorize as
|
|
5243
|
-
import { Fragment as
|
|
5380
|
+
import { Colorize as Colorize39, Cuboid as Cuboid46, Hull as Hull25, Translate as Translate32 } from "jscad-fiber";
|
|
5381
|
+
import { Fragment as Fragment64, jsx as jsx70, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
5244
5382
|
var SmdPinHeader = ({
|
|
5245
5383
|
numberOfPins,
|
|
5246
5384
|
pitch = 2.54,
|
|
@@ -5255,13 +5393,13 @@ var SmdPinHeader = ({
|
|
|
5255
5393
|
const bodyTop = standoffHeight + bodyHeight;
|
|
5256
5394
|
const tailLength = tailSpan / 2;
|
|
5257
5395
|
const tipChamferHeight = pinThickness * 0.35;
|
|
5258
|
-
return /* @__PURE__ */
|
|
5396
|
+
return /* @__PURE__ */ jsx70(Fragment64, { children: Array.from({ length: numberOfPins }, (_, index) => {
|
|
5259
5397
|
const x = xStart + index * pitch;
|
|
5260
5398
|
const tailDirection = index % 2 === 0 ? 1 : -1;
|
|
5261
5399
|
const postBodyLength = matingPinLength - tipChamferHeight;
|
|
5262
5400
|
const verticalTailLength = standoffHeight - pinThickness / 2;
|
|
5263
|
-
return /* @__PURE__ */
|
|
5264
|
-
/* @__PURE__ */
|
|
5401
|
+
return /* @__PURE__ */ jsxs66(Translate32, { x, children: [
|
|
5402
|
+
/* @__PURE__ */ jsx70(
|
|
5265
5403
|
Cuboid46,
|
|
5266
5404
|
{
|
|
5267
5405
|
color: "#222",
|
|
@@ -5269,37 +5407,37 @@ var SmdPinHeader = ({
|
|
|
5269
5407
|
center: [0, 0, standoffHeight + bodyHeight / 2]
|
|
5270
5408
|
}
|
|
5271
5409
|
),
|
|
5272
|
-
/* @__PURE__ */
|
|
5273
|
-
/* @__PURE__ */
|
|
5410
|
+
/* @__PURE__ */ jsxs66(Colorize39, { color: "#d4af37", children: [
|
|
5411
|
+
/* @__PURE__ */ jsx70(
|
|
5274
5412
|
Cuboid46,
|
|
5275
5413
|
{
|
|
5276
5414
|
size: [pinThickness, tailLength, pinThickness],
|
|
5277
5415
|
center: [0, tailDirection * (tailLength / 2), pinThickness / 2]
|
|
5278
5416
|
}
|
|
5279
5417
|
),
|
|
5280
|
-
/* @__PURE__ */
|
|
5418
|
+
/* @__PURE__ */ jsx70(
|
|
5281
5419
|
Cuboid46,
|
|
5282
5420
|
{
|
|
5283
5421
|
size: [pinThickness, pinThickness, verticalTailLength],
|
|
5284
5422
|
center: [0, 0, pinThickness / 2 + verticalTailLength / 2]
|
|
5285
5423
|
}
|
|
5286
5424
|
),
|
|
5287
|
-
/* @__PURE__ */
|
|
5425
|
+
/* @__PURE__ */ jsx70(
|
|
5288
5426
|
Cuboid46,
|
|
5289
5427
|
{
|
|
5290
5428
|
size: [pinThickness, pinThickness, postBodyLength],
|
|
5291
5429
|
center: [0, 0, bodyTop + postBodyLength / 2]
|
|
5292
5430
|
}
|
|
5293
5431
|
),
|
|
5294
|
-
/* @__PURE__ */
|
|
5295
|
-
/* @__PURE__ */
|
|
5432
|
+
/* @__PURE__ */ jsxs66(Hull25, { children: [
|
|
5433
|
+
/* @__PURE__ */ jsx70(
|
|
5296
5434
|
Cuboid46,
|
|
5297
5435
|
{
|
|
5298
5436
|
size: [pinThickness, pinThickness, 0.01],
|
|
5299
5437
|
center: [0, 0, bodyTop + postBodyLength]
|
|
5300
5438
|
}
|
|
5301
5439
|
),
|
|
5302
|
-
/* @__PURE__ */
|
|
5440
|
+
/* @__PURE__ */ jsx70(
|
|
5303
5441
|
Cuboid46,
|
|
5304
5442
|
{
|
|
5305
5443
|
size: [pinThickness * 0.65, pinThickness * 0.65, 0.01],
|
|
@@ -5312,17 +5450,150 @@ var SmdPinHeader = ({
|
|
|
5312
5450
|
}) });
|
|
5313
5451
|
};
|
|
5314
5452
|
|
|
5315
|
-
// lib/
|
|
5453
|
+
// lib/Footprinter3d.tsx
|
|
5454
|
+
import { mm } from "@tscircuit/mm";
|
|
5455
|
+
|
|
5456
|
+
// lib/ParametricChip.tsx
|
|
5457
|
+
import { Cuboid as Cuboid47 } from "jscad-fiber";
|
|
5458
|
+
import { Fragment as Fragment65, jsx as jsx71, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
5459
|
+
var ParametricChip = ({
|
|
5460
|
+
padPitch,
|
|
5461
|
+
padHeight,
|
|
5462
|
+
color = "#333"
|
|
5463
|
+
}) => {
|
|
5464
|
+
const fullLength10 = padPitch;
|
|
5465
|
+
const width10 = padHeight * 0.85;
|
|
5466
|
+
const height10 = width10;
|
|
5467
|
+
const terminatorWidth9 = fullLength10 * 0.2;
|
|
5468
|
+
const bodyLength10 = fullLength10 - terminatorWidth9 * 2;
|
|
5469
|
+
return /* @__PURE__ */ jsxs67(Fragment65, { children: [
|
|
5470
|
+
/* @__PURE__ */ jsx71(
|
|
5471
|
+
Cuboid47,
|
|
5472
|
+
{
|
|
5473
|
+
size: [bodyLength10, width10, height10],
|
|
5474
|
+
offset: [0, 0, height10 / 2],
|
|
5475
|
+
color
|
|
5476
|
+
}
|
|
5477
|
+
),
|
|
5478
|
+
/* @__PURE__ */ jsx71(
|
|
5479
|
+
Cuboid47,
|
|
5480
|
+
{
|
|
5481
|
+
size: [terminatorWidth9, height10, width10],
|
|
5482
|
+
offset: [fullLength10 / 2 - terminatorWidth9 / 2, 0, height10 / 2],
|
|
5483
|
+
color: "#ccc"
|
|
5484
|
+
}
|
|
5485
|
+
),
|
|
5486
|
+
/* @__PURE__ */ jsx71(
|
|
5487
|
+
Cuboid47,
|
|
5488
|
+
{
|
|
5489
|
+
size: [terminatorWidth9, height10, width10],
|
|
5490
|
+
offset: [-fullLength10 / 2 + terminatorWidth9 / 2, 0, height10 / 2],
|
|
5491
|
+
color: "#ccc"
|
|
5492
|
+
}
|
|
5493
|
+
)
|
|
5494
|
+
] });
|
|
5495
|
+
};
|
|
5496
|
+
|
|
5497
|
+
// lib/Led5050.tsx
|
|
5316
5498
|
import {
|
|
5317
|
-
Colorize as
|
|
5318
|
-
Cuboid as
|
|
5319
|
-
Cylinder as
|
|
5499
|
+
Colorize as Colorize40,
|
|
5500
|
+
Cuboid as Cuboid48,
|
|
5501
|
+
Cylinder as Cylinder14,
|
|
5320
5502
|
Rotate as Rotate14,
|
|
5321
|
-
RoundedCuboid as RoundedCuboid4,
|
|
5322
5503
|
Subtract as Subtract11,
|
|
5323
5504
|
Translate as Translate33
|
|
5324
5505
|
} from "jscad-fiber";
|
|
5325
|
-
import { Fragment as
|
|
5506
|
+
import { Fragment as Fragment66, jsx as jsx72, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
5507
|
+
var Led5050 = ({
|
|
5508
|
+
color = "#ffff00",
|
|
5509
|
+
bodyColor = "#ffffff",
|
|
5510
|
+
leadColor = "#dedede"
|
|
5511
|
+
}) => {
|
|
5512
|
+
const bodySize = 5;
|
|
5513
|
+
const leadSpan = 5.4;
|
|
5514
|
+
const bodyBottom = 0.2;
|
|
5515
|
+
const bodyHeight = 1.3;
|
|
5516
|
+
const bodyTop = bodyBottom + bodyHeight;
|
|
5517
|
+
const leadLength = 1.4;
|
|
5518
|
+
const leadWidth = 1;
|
|
5519
|
+
const leadThickness = 0.2;
|
|
5520
|
+
const leadCenterX = leadSpan / 2 - leadLength / 2;
|
|
5521
|
+
const lensRadius = 2;
|
|
5522
|
+
const lensHeight = 0.25;
|
|
5523
|
+
const lensTop = 1.55;
|
|
5524
|
+
const cornerCutDepth = 0.3;
|
|
5525
|
+
const leadYPositions = [-1.7, 0, 1.7];
|
|
5526
|
+
const leadSides = [-1, 1];
|
|
5527
|
+
return /* @__PURE__ */ jsxs68(Fragment66, { children: [
|
|
5528
|
+
leadYPositions.flatMap(
|
|
5529
|
+
(y) => leadSides.map((side) => /* @__PURE__ */ jsx72(
|
|
5530
|
+
Cuboid48,
|
|
5531
|
+
{
|
|
5532
|
+
color: leadColor,
|
|
5533
|
+
size: [leadLength, leadWidth, leadThickness],
|
|
5534
|
+
center: [side * leadCenterX, y, leadThickness / 2]
|
|
5535
|
+
},
|
|
5536
|
+
`${side}-${y}`
|
|
5537
|
+
))
|
|
5538
|
+
),
|
|
5539
|
+
/* @__PURE__ */ jsx72(Colorize40, { color: bodyColor, children: /* @__PURE__ */ jsxs68(Subtract11, { children: [
|
|
5540
|
+
/* @__PURE__ */ jsx72(
|
|
5541
|
+
ChipBody,
|
|
5542
|
+
{
|
|
5543
|
+
width: bodySize,
|
|
5544
|
+
length: bodySize,
|
|
5545
|
+
height: bodyHeight,
|
|
5546
|
+
heightAboveSurface: bodyBottom,
|
|
5547
|
+
center: { x: 0, y: 0, z: 0 },
|
|
5548
|
+
color: bodyColor,
|
|
5549
|
+
taperRatio: 0.036,
|
|
5550
|
+
straightHeightRatio: 0.01,
|
|
5551
|
+
includeNotch: false
|
|
5552
|
+
}
|
|
5553
|
+
),
|
|
5554
|
+
/* @__PURE__ */ jsx72(
|
|
5555
|
+
Cylinder14,
|
|
5556
|
+
{
|
|
5557
|
+
radius: lensRadius,
|
|
5558
|
+
height: lensHeight,
|
|
5559
|
+
center: [0, 0, bodyTop - lensHeight / 2]
|
|
5560
|
+
}
|
|
5561
|
+
),
|
|
5562
|
+
/* @__PURE__ */ jsx72(
|
|
5563
|
+
Translate33,
|
|
5564
|
+
{
|
|
5565
|
+
offset: [
|
|
5566
|
+
-bodySize / 2,
|
|
5567
|
+
bodySize / 2,
|
|
5568
|
+
bodyTop - cornerCutDepth / 2 + 5e-3
|
|
5569
|
+
],
|
|
5570
|
+
children: /* @__PURE__ */ jsx72(Rotate14, { rotation: [0, 0, Math.PI / 4], children: /* @__PURE__ */ jsx72(Cuboid48, { size: [0.9, 0.9, cornerCutDepth + 0.01] }) })
|
|
5571
|
+
}
|
|
5572
|
+
)
|
|
5573
|
+
] }) }),
|
|
5574
|
+
/* @__PURE__ */ jsx72(
|
|
5575
|
+
Cylinder14,
|
|
5576
|
+
{
|
|
5577
|
+
color,
|
|
5578
|
+
radius: lensRadius,
|
|
5579
|
+
height: lensHeight,
|
|
5580
|
+
center: [0, 0, lensTop - lensHeight / 2]
|
|
5581
|
+
}
|
|
5582
|
+
)
|
|
5583
|
+
] });
|
|
5584
|
+
};
|
|
5585
|
+
|
|
5586
|
+
// lib/RJ45.tsx
|
|
5587
|
+
import {
|
|
5588
|
+
Colorize as Colorize41,
|
|
5589
|
+
Cuboid as Cuboid49,
|
|
5590
|
+
Cylinder as Cylinder15,
|
|
5591
|
+
Rotate as Rotate15,
|
|
5592
|
+
RoundedCuboid as RoundedCuboid4,
|
|
5593
|
+
Subtract as Subtract12,
|
|
5594
|
+
Translate as Translate34
|
|
5595
|
+
} from "jscad-fiber";
|
|
5596
|
+
import { Fragment as Fragment67, jsx as jsx73, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
5326
5597
|
var range2 = (length) => Array.from({ length }, (_, index) => index);
|
|
5327
5598
|
var RJ45 = ({
|
|
5328
5599
|
bodyWidth = 16.26,
|
|
@@ -5380,18 +5651,18 @@ var RJ45 = ({
|
|
|
5380
5651
|
const contactY = frontY - frontDirection * Math.max(cavityDepth * 0.48, 1.2);
|
|
5381
5652
|
const contactZ = openingCenterZ + openingHeight * 0.18;
|
|
5382
5653
|
const frontLipY = frontY + frontDirection * shellThickness * 0.2;
|
|
5383
|
-
return /* @__PURE__ */
|
|
5384
|
-
/* @__PURE__ */
|
|
5385
|
-
/* @__PURE__ */
|
|
5386
|
-
/* @__PURE__ */
|
|
5387
|
-
|
|
5654
|
+
return /* @__PURE__ */ jsxs69(Fragment67, { children: [
|
|
5655
|
+
/* @__PURE__ */ jsxs69(Colorize41, { color: shellColor, children: [
|
|
5656
|
+
/* @__PURE__ */ jsxs69(Subtract12, { children: [
|
|
5657
|
+
/* @__PURE__ */ jsx73(
|
|
5658
|
+
Cuboid49,
|
|
5388
5659
|
{
|
|
5389
5660
|
center: [0, bodyCenterY, bodyHeight / 2],
|
|
5390
5661
|
size: [bodyWidth, bodyDepth, bodyHeight]
|
|
5391
5662
|
}
|
|
5392
5663
|
),
|
|
5393
|
-
/* @__PURE__ */
|
|
5394
|
-
|
|
5664
|
+
/* @__PURE__ */ jsx73(
|
|
5665
|
+
Cuboid49,
|
|
5395
5666
|
{
|
|
5396
5667
|
center: [0, cavityCenterY, openingCenterZ],
|
|
5397
5668
|
size: [
|
|
@@ -5402,15 +5673,15 @@ var RJ45 = ({
|
|
|
5402
5673
|
}
|
|
5403
5674
|
)
|
|
5404
5675
|
] }),
|
|
5405
|
-
/* @__PURE__ */
|
|
5406
|
-
|
|
5676
|
+
/* @__PURE__ */ jsx73(
|
|
5677
|
+
Cuboid49,
|
|
5407
5678
|
{
|
|
5408
5679
|
center: [0, frontLipY, 0.72],
|
|
5409
5680
|
size: [openingWidth + 0.5, shellThickness * 1.25, 1.05]
|
|
5410
5681
|
}
|
|
5411
5682
|
),
|
|
5412
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5413
|
-
|
|
5683
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx73(
|
|
5684
|
+
Cuboid49,
|
|
5414
5685
|
{
|
|
5415
5686
|
center: [direction * shieldPinX, shieldPinY, 0.25],
|
|
5416
5687
|
size: [
|
|
@@ -5421,8 +5692,8 @@ var RJ45 = ({
|
|
|
5421
5692
|
},
|
|
5422
5693
|
`shield-tab:${direction}`
|
|
5423
5694
|
)),
|
|
5424
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5425
|
-
|
|
5695
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx73(
|
|
5696
|
+
Cuboid49,
|
|
5426
5697
|
{
|
|
5427
5698
|
center: [
|
|
5428
5699
|
direction * bodyWidth * 0.24,
|
|
@@ -5434,9 +5705,9 @@ var RJ45 = ({
|
|
|
5434
5705
|
`top-seam:${direction}`
|
|
5435
5706
|
))
|
|
5436
5707
|
] }),
|
|
5437
|
-
/* @__PURE__ */
|
|
5438
|
-
/* @__PURE__ */
|
|
5439
|
-
/* @__PURE__ */
|
|
5708
|
+
/* @__PURE__ */ jsxs69(Colorize41, { color: housingColor, children: [
|
|
5709
|
+
/* @__PURE__ */ jsxs69(Subtract12, { children: [
|
|
5710
|
+
/* @__PURE__ */ jsx73(
|
|
5440
5711
|
RoundedCuboid4,
|
|
5441
5712
|
{
|
|
5442
5713
|
center: [0, cavityCenterY, openingCenterZ],
|
|
@@ -5448,8 +5719,8 @@ var RJ45 = ({
|
|
|
5448
5719
|
roundRadius: 0.22
|
|
5449
5720
|
}
|
|
5450
5721
|
),
|
|
5451
|
-
/* @__PURE__ */
|
|
5452
|
-
|
|
5722
|
+
/* @__PURE__ */ jsx73(
|
|
5723
|
+
Cuboid49,
|
|
5453
5724
|
{
|
|
5454
5725
|
center: [
|
|
5455
5726
|
0,
|
|
@@ -5464,14 +5735,14 @@ var RJ45 = ({
|
|
|
5464
5735
|
}
|
|
5465
5736
|
)
|
|
5466
5737
|
] }),
|
|
5467
|
-
/* @__PURE__ */
|
|
5468
|
-
|
|
5738
|
+
/* @__PURE__ */ jsx73(
|
|
5739
|
+
Cuboid49,
|
|
5469
5740
|
{
|
|
5470
5741
|
center: [0, backWallY, openingCenterZ],
|
|
5471
5742
|
size: [openingWidth - 1.15, shellThickness, openingHeight - 1.25]
|
|
5472
5743
|
}
|
|
5473
5744
|
),
|
|
5474
|
-
/* @__PURE__ */
|
|
5745
|
+
/* @__PURE__ */ jsx73(
|
|
5475
5746
|
RoundedCuboid4,
|
|
5476
5747
|
{
|
|
5477
5748
|
center: [0, frontY - frontDirection * cavityDepth * 0.28, 1.55],
|
|
@@ -5479,8 +5750,8 @@ var RJ45 = ({
|
|
|
5479
5750
|
roundRadius: 0.16
|
|
5480
5751
|
}
|
|
5481
5752
|
),
|
|
5482
|
-
[-1, 1].map((direction) => /* @__PURE__ */
|
|
5483
|
-
|
|
5753
|
+
[-1, 1].map((direction) => /* @__PURE__ */ jsx73(
|
|
5754
|
+
Cylinder15,
|
|
5484
5755
|
{
|
|
5485
5756
|
center: [direction * locatorHoleX, locatorHoleY, -0.25],
|
|
5486
5757
|
radius: Math.max(locatorHoleDiameter * 0.41, 0.65),
|
|
@@ -5489,9 +5760,9 @@ var RJ45 = ({
|
|
|
5489
5760
|
`locator:${direction}`
|
|
5490
5761
|
))
|
|
5491
5762
|
] }),
|
|
5492
|
-
/* @__PURE__ */
|
|
5493
|
-
signalPinPositions.map(({ x, y }, index) => /* @__PURE__ */
|
|
5494
|
-
|
|
5763
|
+
/* @__PURE__ */ jsxs69(Colorize41, { color: contactColor, children: [
|
|
5764
|
+
signalPinPositions.map(({ x, y }, index) => /* @__PURE__ */ jsx73(
|
|
5765
|
+
Cylinder15,
|
|
5495
5766
|
{
|
|
5496
5767
|
center: [x, y, 0.15],
|
|
5497
5768
|
radius: signalLeadRadius,
|
|
@@ -5499,15 +5770,15 @@ var RJ45 = ({
|
|
|
5499
5770
|
},
|
|
5500
5771
|
`signal-lead:${index}`
|
|
5501
5772
|
)),
|
|
5502
|
-
range2(8).map((index) => /* @__PURE__ */
|
|
5503
|
-
|
|
5773
|
+
range2(8).map((index) => /* @__PURE__ */ jsx73(
|
|
5774
|
+
Translate34,
|
|
5504
5775
|
{
|
|
5505
5776
|
offset: [
|
|
5506
5777
|
(index - 3.5) * contactPitch,
|
|
5507
5778
|
contactY,
|
|
5508
5779
|
contactZ + (index % 2 === 0 ? 0.03 : -0.03)
|
|
5509
5780
|
],
|
|
5510
|
-
children: /* @__PURE__ */
|
|
5781
|
+
children: /* @__PURE__ */ jsx73(Rotate15, { rotation: [frontDirection * 0.2, 0, 0], children: /* @__PURE__ */ jsx73(
|
|
5511
5782
|
RoundedCuboid4,
|
|
5512
5783
|
{
|
|
5513
5784
|
size: [Math.max(contactPitch * 0.28, 0.28), 3.25, 0.16],
|
|
@@ -5517,8 +5788,8 @@ var RJ45 = ({
|
|
|
5517
5788
|
},
|
|
5518
5789
|
`socket-contact:${index}`
|
|
5519
5790
|
)),
|
|
5520
|
-
ledPins && ledPinPositions.map((x, index) => /* @__PURE__ */
|
|
5521
|
-
|
|
5791
|
+
ledPins && ledPinPositions.map((x, index) => /* @__PURE__ */ jsx73(
|
|
5792
|
+
Cylinder15,
|
|
5522
5793
|
{
|
|
5523
5794
|
center: [x, ledPinY, 0.15],
|
|
5524
5795
|
radius: signalLeadRadius,
|
|
@@ -5527,8 +5798,8 @@ var RJ45 = ({
|
|
|
5527
5798
|
`led-lead:${index}`
|
|
5528
5799
|
))
|
|
5529
5800
|
] }),
|
|
5530
|
-
ledPins && /* @__PURE__ */
|
|
5531
|
-
/* @__PURE__ */
|
|
5801
|
+
ledPins && /* @__PURE__ */ jsxs69(Fragment67, { children: [
|
|
5802
|
+
/* @__PURE__ */ jsx73(
|
|
5532
5803
|
RoundedCuboid4,
|
|
5533
5804
|
{
|
|
5534
5805
|
color: "#73b744",
|
|
@@ -5541,7 +5812,7 @@ var RJ45 = ({
|
|
|
5541
5812
|
roundRadius: 0.18
|
|
5542
5813
|
}
|
|
5543
5814
|
),
|
|
5544
|
-
/* @__PURE__ */
|
|
5815
|
+
/* @__PURE__ */ jsx73(
|
|
5545
5816
|
RoundedCuboid4,
|
|
5546
5817
|
{
|
|
5547
5818
|
color: "#e0aa35",
|
|
@@ -5559,7 +5830,7 @@ var RJ45 = ({
|
|
|
5559
5830
|
};
|
|
5560
5831
|
|
|
5561
5832
|
// lib/Footprinter3d.tsx
|
|
5562
|
-
import { jsx as
|
|
5833
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
5563
5834
|
var Footprinter3d = ({ footprint }) => {
|
|
5564
5835
|
let normalizedFootprint = footprint;
|
|
5565
5836
|
if (footprint.startsWith("jstzh1_5mm")) {
|
|
@@ -5568,13 +5839,25 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5568
5839
|
normalizedFootprint = `zh${numPins}`;
|
|
5569
5840
|
}
|
|
5570
5841
|
const fpJson = fp3.string(normalizedFootprint).json();
|
|
5842
|
+
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
5843
|
+
const color = colorMatch ? colorMatch[1] : void 0;
|
|
5571
5844
|
switch (fpJson.fn) {
|
|
5845
|
+
case "crystal":
|
|
5846
|
+
return /* @__PURE__ */ jsx74(
|
|
5847
|
+
Crystal,
|
|
5848
|
+
{
|
|
5849
|
+
horizontalPadPitch: fpJson.px,
|
|
5850
|
+
verticalPadPitch: fpJson.py,
|
|
5851
|
+
padWidth: fpJson.pw,
|
|
5852
|
+
padHeight: fpJson.ph
|
|
5853
|
+
}
|
|
5854
|
+
);
|
|
5572
5855
|
case "dip":
|
|
5573
|
-
return /* @__PURE__ */
|
|
5856
|
+
return /* @__PURE__ */ jsx74(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
5574
5857
|
case "axial":
|
|
5575
|
-
return /* @__PURE__ */
|
|
5858
|
+
return /* @__PURE__ */ jsx74(AxialCapacitor, { pitch: fpJson.p });
|
|
5576
5859
|
case "tssop":
|
|
5577
|
-
return /* @__PURE__ */
|
|
5860
|
+
return /* @__PURE__ */ jsx74(
|
|
5578
5861
|
Tssop,
|
|
5579
5862
|
{
|
|
5580
5863
|
pinCount: fpJson.num_pins,
|
|
@@ -5585,7 +5868,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5585
5868
|
}
|
|
5586
5869
|
);
|
|
5587
5870
|
case "msop":
|
|
5588
|
-
return /* @__PURE__ */
|
|
5871
|
+
return /* @__PURE__ */ jsx74(
|
|
5589
5872
|
MSOP,
|
|
5590
5873
|
{
|
|
5591
5874
|
pinCount: fpJson.num_pins,
|
|
@@ -5596,7 +5879,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5596
5879
|
}
|
|
5597
5880
|
);
|
|
5598
5881
|
case "vssop":
|
|
5599
|
-
return /* @__PURE__ */
|
|
5882
|
+
return /* @__PURE__ */ jsx74(
|
|
5600
5883
|
VSSOP,
|
|
5601
5884
|
{
|
|
5602
5885
|
pinCount: fpJson.num_pins,
|
|
@@ -5608,7 +5891,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5608
5891
|
}
|
|
5609
5892
|
);
|
|
5610
5893
|
case "qfp":
|
|
5611
|
-
return /* @__PURE__ */
|
|
5894
|
+
return /* @__PURE__ */ jsx74(
|
|
5612
5895
|
QFP,
|
|
5613
5896
|
{
|
|
5614
5897
|
pinCount: fpJson.num_pins,
|
|
@@ -5619,12 +5902,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5619
5902
|
}
|
|
5620
5903
|
);
|
|
5621
5904
|
case "tqfp":
|
|
5622
|
-
return /* @__PURE__ */
|
|
5905
|
+
return /* @__PURE__ */ jsx74(tqfp_default, {});
|
|
5623
5906
|
case "lqfp":
|
|
5624
|
-
return /* @__PURE__ */
|
|
5907
|
+
return /* @__PURE__ */ jsx74(LQFP, { pinCount: fpJson.num_pins });
|
|
5625
5908
|
case "qfn": {
|
|
5626
5909
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
5627
|
-
return /* @__PURE__ */
|
|
5910
|
+
return /* @__PURE__ */ jsx74(
|
|
5628
5911
|
qfn_default,
|
|
5629
5912
|
{
|
|
5630
5913
|
num_pins: fpJson.num_pins,
|
|
@@ -5642,7 +5925,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5642
5925
|
}
|
|
5643
5926
|
case "dfn": {
|
|
5644
5927
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
5645
|
-
return /* @__PURE__ */
|
|
5928
|
+
return /* @__PURE__ */ jsx74(
|
|
5646
5929
|
DFN,
|
|
5647
5930
|
{
|
|
5648
5931
|
num_pins: fpJson.num_pins,
|
|
@@ -5662,7 +5945,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5662
5945
|
const rowsMatch = footprint.match(/_rows(\d+)/);
|
|
5663
5946
|
const rows = rowsMatch && rowsMatch[1] ? parseInt(rowsMatch[1], 10) : 1;
|
|
5664
5947
|
if (fpJson.male)
|
|
5665
|
-
return /* @__PURE__ */
|
|
5948
|
+
return /* @__PURE__ */ jsx74(
|
|
5666
5949
|
PinRow,
|
|
5667
5950
|
{
|
|
5668
5951
|
numberOfPins: fpJson.num_pins,
|
|
@@ -5675,7 +5958,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5675
5958
|
}
|
|
5676
5959
|
);
|
|
5677
5960
|
if (fpJson.female)
|
|
5678
|
-
return /* @__PURE__ */
|
|
5961
|
+
return /* @__PURE__ */ jsx74(
|
|
5679
5962
|
FemaleHeaderRow,
|
|
5680
5963
|
{
|
|
5681
5964
|
numberOfPins: fpJson.num_pins,
|
|
@@ -5685,7 +5968,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5685
5968
|
);
|
|
5686
5969
|
}
|
|
5687
5970
|
case "smdpinheader":
|
|
5688
|
-
return /* @__PURE__ */
|
|
5971
|
+
return /* @__PURE__ */ jsx74(
|
|
5689
5972
|
SmdPinHeader,
|
|
5690
5973
|
{
|
|
5691
5974
|
numberOfPins: fpJson.num_pins,
|
|
@@ -5693,50 +5976,53 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5693
5976
|
bodyWidth: fpJson.bh
|
|
5694
5977
|
}
|
|
5695
5978
|
);
|
|
5979
|
+
case "led5050":
|
|
5980
|
+
return /* @__PURE__ */ jsx74(Led5050, { color });
|
|
5696
5981
|
case "cap": {
|
|
5697
5982
|
switch (fpJson.imperial) {
|
|
5698
5983
|
case "0402":
|
|
5699
|
-
return /* @__PURE__ */
|
|
5984
|
+
return /* @__PURE__ */ jsx74(A0402, { color: "#856c4d" });
|
|
5700
5985
|
case "0603":
|
|
5701
|
-
return /* @__PURE__ */
|
|
5986
|
+
return /* @__PURE__ */ jsx74(A0603, { color: "#856c4d" });
|
|
5702
5987
|
case "0805":
|
|
5703
|
-
return /* @__PURE__ */
|
|
5988
|
+
return /* @__PURE__ */ jsx74(A0805, { color: "#856c4d" });
|
|
5704
5989
|
case "0201":
|
|
5705
|
-
return /* @__PURE__ */
|
|
5990
|
+
return /* @__PURE__ */ jsx74(A0201, { color: "#856c4d" });
|
|
5706
5991
|
case "01005":
|
|
5707
|
-
return /* @__PURE__ */
|
|
5992
|
+
return /* @__PURE__ */ jsx74(A01005, { color: "#856c4d" });
|
|
5708
5993
|
case "1206":
|
|
5709
|
-
return /* @__PURE__ */
|
|
5994
|
+
return /* @__PURE__ */ jsx74(A1206, { color: "#856c4d" });
|
|
5710
5995
|
case "1210":
|
|
5711
|
-
return /* @__PURE__ */
|
|
5996
|
+
return /* @__PURE__ */ jsx74(A1210, { color: "#856c4d" });
|
|
5712
5997
|
case "2010":
|
|
5713
|
-
return /* @__PURE__ */
|
|
5998
|
+
return /* @__PURE__ */ jsx74(A2010, { color: "#856c4d" });
|
|
5714
5999
|
case "2512":
|
|
5715
|
-
return /* @__PURE__ */
|
|
6000
|
+
return /* @__PURE__ */ jsx74(A2512, { color: "#856c4d" });
|
|
5716
6001
|
}
|
|
6002
|
+
break;
|
|
5717
6003
|
}
|
|
5718
6004
|
case "sot235":
|
|
5719
|
-
return /* @__PURE__ */
|
|
6005
|
+
return /* @__PURE__ */ jsx74(SOT_235_default, {});
|
|
5720
6006
|
case "sot457":
|
|
5721
|
-
return /* @__PURE__ */
|
|
6007
|
+
return /* @__PURE__ */ jsx74(SOT457, {});
|
|
5722
6008
|
case "sot223":
|
|
5723
|
-
return /* @__PURE__ */
|
|
6009
|
+
return /* @__PURE__ */ jsx74(SOT223, {});
|
|
5724
6010
|
case "sot23w":
|
|
5725
|
-
return /* @__PURE__ */
|
|
6011
|
+
return /* @__PURE__ */ jsx74(SOT23W, {});
|
|
5726
6012
|
case "sot323":
|
|
5727
|
-
return /* @__PURE__ */
|
|
6013
|
+
return /* @__PURE__ */ jsx74(SOT323, {});
|
|
5728
6014
|
case "sod323f":
|
|
5729
|
-
return /* @__PURE__ */
|
|
6015
|
+
return /* @__PURE__ */ jsx74(SOD323F, {});
|
|
5730
6016
|
case "sod323fl":
|
|
5731
|
-
return /* @__PURE__ */
|
|
6017
|
+
return /* @__PURE__ */ jsx74(SOD323FL, {});
|
|
5732
6018
|
case "sot363":
|
|
5733
|
-
return /* @__PURE__ */
|
|
6019
|
+
return /* @__PURE__ */ jsx74(SOT_363_default, {});
|
|
5734
6020
|
case "sot886":
|
|
5735
|
-
return /* @__PURE__ */
|
|
6021
|
+
return /* @__PURE__ */ jsx74(SOT886, {});
|
|
5736
6022
|
case "sot963":
|
|
5737
|
-
return /* @__PURE__ */
|
|
6023
|
+
return /* @__PURE__ */ jsx74(SOT963, {});
|
|
5738
6024
|
case "pushbutton":
|
|
5739
|
-
return /* @__PURE__ */
|
|
6025
|
+
return /* @__PURE__ */ jsx74(
|
|
5740
6026
|
PushButton,
|
|
5741
6027
|
{
|
|
5742
6028
|
width: fpJson.w,
|
|
@@ -5746,11 +6032,11 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5746
6032
|
);
|
|
5747
6033
|
case "jst":
|
|
5748
6034
|
if (fpJson.zh) {
|
|
5749
|
-
return /* @__PURE__ */
|
|
6035
|
+
return /* @__PURE__ */ jsx74(JSTZH1_5mm, { numPins: fpJson.num_pins });
|
|
5750
6036
|
}
|
|
5751
6037
|
break;
|
|
5752
6038
|
case "fpc":
|
|
5753
|
-
return /* @__PURE__ */
|
|
6039
|
+
return /* @__PURE__ */ jsx74(
|
|
5754
6040
|
FPC,
|
|
5755
6041
|
{
|
|
5756
6042
|
pinCount: fpJson.num_pins,
|
|
@@ -5770,7 +6056,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5770
6056
|
}
|
|
5771
6057
|
);
|
|
5772
6058
|
case "rj45":
|
|
5773
|
-
return /* @__PURE__ */
|
|
6059
|
+
return /* @__PURE__ */ jsx74(
|
|
5774
6060
|
RJ45,
|
|
5775
6061
|
{
|
|
5776
6062
|
bodyWidth: fpJson.w,
|
|
@@ -5794,7 +6080,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5794
6080
|
}
|
|
5795
6081
|
);
|
|
5796
6082
|
case "soic":
|
|
5797
|
-
return /* @__PURE__ */
|
|
6083
|
+
return /* @__PURE__ */ jsx74(
|
|
5798
6084
|
SOIC,
|
|
5799
6085
|
{
|
|
5800
6086
|
pinCount: fpJson.num_pins,
|
|
@@ -5805,41 +6091,41 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5805
6091
|
}
|
|
5806
6092
|
);
|
|
5807
6093
|
case "sod523":
|
|
5808
|
-
return /* @__PURE__ */
|
|
6094
|
+
return /* @__PURE__ */ jsx74(SOD523, {});
|
|
5809
6095
|
case "sod723":
|
|
5810
|
-
return /* @__PURE__ */
|
|
6096
|
+
return /* @__PURE__ */ jsx74(SOD723_default, {});
|
|
5811
6097
|
case "sod882":
|
|
5812
|
-
return /* @__PURE__ */
|
|
6098
|
+
return /* @__PURE__ */ jsx74(SOD882, {});
|
|
5813
6099
|
case "sma":
|
|
5814
|
-
return /* @__PURE__ */
|
|
6100
|
+
return /* @__PURE__ */ jsx74(SMA, {});
|
|
5815
6101
|
case "smb":
|
|
5816
|
-
return /* @__PURE__ */
|
|
6102
|
+
return /* @__PURE__ */ jsx74(SMB, {});
|
|
5817
6103
|
case "smc":
|
|
5818
|
-
return /* @__PURE__ */
|
|
6104
|
+
return /* @__PURE__ */ jsx74(SMC, {});
|
|
5819
6105
|
case "smf":
|
|
5820
|
-
return /* @__PURE__ */
|
|
6106
|
+
return /* @__PURE__ */ jsx74(SMF, {});
|
|
5821
6107
|
case "sod123f":
|
|
5822
|
-
return /* @__PURE__ */
|
|
6108
|
+
return /* @__PURE__ */ jsx74(SOD123F, {});
|
|
5823
6109
|
case "sod123fl":
|
|
5824
|
-
return /* @__PURE__ */
|
|
6110
|
+
return /* @__PURE__ */ jsx74(SOD123FL, {});
|
|
5825
6111
|
case "sod123w":
|
|
5826
|
-
return /* @__PURE__ */
|
|
6112
|
+
return /* @__PURE__ */ jsx74(SOD123W, {});
|
|
5827
6113
|
case "sod128":
|
|
5828
|
-
return /* @__PURE__ */
|
|
6114
|
+
return /* @__PURE__ */ jsx74(SOD128, {});
|
|
5829
6115
|
case "sod323":
|
|
5830
|
-
return /* @__PURE__ */
|
|
6116
|
+
return /* @__PURE__ */ jsx74(SOD323, {});
|
|
5831
6117
|
case "sod923":
|
|
5832
|
-
return /* @__PURE__ */
|
|
6118
|
+
return /* @__PURE__ */ jsx74(SOD923, {});
|
|
5833
6119
|
case "hc49":
|
|
5834
|
-
return /* @__PURE__ */
|
|
6120
|
+
return /* @__PURE__ */ jsx74(HC49, {});
|
|
5835
6121
|
case "micromelf":
|
|
5836
|
-
return /* @__PURE__ */
|
|
6122
|
+
return /* @__PURE__ */ jsx74(MicroMELF, {});
|
|
5837
6123
|
case "minimelf":
|
|
5838
|
-
return /* @__PURE__ */
|
|
6124
|
+
return /* @__PURE__ */ jsx74(MINIMELF, {});
|
|
5839
6125
|
case "melf":
|
|
5840
|
-
return /* @__PURE__ */
|
|
6126
|
+
return /* @__PURE__ */ jsx74(MELF, {});
|
|
5841
6127
|
case "ms012":
|
|
5842
|
-
return /* @__PURE__ */
|
|
6128
|
+
return /* @__PURE__ */ jsx74(
|
|
5843
6129
|
MS012,
|
|
5844
6130
|
{
|
|
5845
6131
|
pinCount: fpJson.num_pins,
|
|
@@ -5849,7 +6135,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5849
6135
|
}
|
|
5850
6136
|
);
|
|
5851
6137
|
case "ms013":
|
|
5852
|
-
return /* @__PURE__ */
|
|
6138
|
+
return /* @__PURE__ */ jsx74(
|
|
5853
6139
|
MS013,
|
|
5854
6140
|
{
|
|
5855
6141
|
pinCount: fpJson.num_pins,
|
|
@@ -5859,14 +6145,14 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5859
6145
|
}
|
|
5860
6146
|
);
|
|
5861
6147
|
case "sot723":
|
|
5862
|
-
return /* @__PURE__ */
|
|
6148
|
+
return /* @__PURE__ */ jsx74(SOT723, {});
|
|
5863
6149
|
case "to220":
|
|
5864
|
-
return /* @__PURE__ */
|
|
6150
|
+
return /* @__PURE__ */ jsx74(TO220, {});
|
|
5865
6151
|
case "to92":
|
|
5866
|
-
return /* @__PURE__ */
|
|
6152
|
+
return /* @__PURE__ */ jsx74(TO92, {});
|
|
5867
6153
|
case "stampboard":
|
|
5868
6154
|
case "stampreceiver":
|
|
5869
|
-
return /* @__PURE__ */
|
|
6155
|
+
return /* @__PURE__ */ jsx74(
|
|
5870
6156
|
StampBoard,
|
|
5871
6157
|
{
|
|
5872
6158
|
bodyWidth: fpJson.w,
|
|
@@ -5890,7 +6176,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5890
6176
|
const pinRow = fpJson.pinrow;
|
|
5891
6177
|
const pinRowHoleEdgeToEdgeDist = fpJson.pinRowHoleEdgeToEdgeDist;
|
|
5892
6178
|
const holes = Array.isArray(fpJson.holes) ? fpJson.holes : [];
|
|
5893
|
-
return /* @__PURE__ */
|
|
6179
|
+
return /* @__PURE__ */ jsx74(
|
|
5894
6180
|
MountedPcbModule,
|
|
5895
6181
|
{
|
|
5896
6182
|
numPins: pinRow,
|
|
@@ -5915,33 +6201,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
5915
6201
|
);
|
|
5916
6202
|
}
|
|
5917
6203
|
}
|
|
5918
|
-
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
5919
|
-
const color = colorMatch ? colorMatch[1] : void 0;
|
|
5920
6204
|
switch (fpJson.imperial) {
|
|
5921
6205
|
case "0402":
|
|
5922
|
-
return /* @__PURE__ */
|
|
6206
|
+
return /* @__PURE__ */ jsx74(A0402, { color });
|
|
5923
6207
|
case "0603":
|
|
5924
|
-
return /* @__PURE__ */
|
|
6208
|
+
return /* @__PURE__ */ jsx74(A0603, { color });
|
|
5925
6209
|
case "0805":
|
|
5926
|
-
return /* @__PURE__ */
|
|
6210
|
+
return /* @__PURE__ */ jsx74(A0805, { color });
|
|
5927
6211
|
case "0201":
|
|
5928
|
-
return /* @__PURE__ */
|
|
6212
|
+
return /* @__PURE__ */ jsx74(A0201, { color });
|
|
5929
6213
|
case "01005":
|
|
5930
|
-
return /* @__PURE__ */
|
|
6214
|
+
return /* @__PURE__ */ jsx74(A01005, { color });
|
|
5931
6215
|
case "1206":
|
|
5932
|
-
return /* @__PURE__ */
|
|
6216
|
+
return /* @__PURE__ */ jsx74(A1206, { color });
|
|
5933
6217
|
case "1210":
|
|
5934
|
-
return /* @__PURE__ */
|
|
6218
|
+
return /* @__PURE__ */ jsx74(A1210, { color });
|
|
5935
6219
|
case "2010":
|
|
5936
|
-
return /* @__PURE__ */
|
|
6220
|
+
return /* @__PURE__ */ jsx74(A2010, { color });
|
|
5937
6221
|
case "2512":
|
|
5938
|
-
return /* @__PURE__ */
|
|
6222
|
+
return /* @__PURE__ */ jsx74(A2512, { color });
|
|
6223
|
+
}
|
|
6224
|
+
if ((fpJson.fn === "res" || fpJson.fn === "cap") && fpJson.p !== void 0 && fpJson.ph !== void 0) {
|
|
6225
|
+
const padPitch = mm(fpJson.p);
|
|
6226
|
+
const padHeight = mm(fpJson.ph);
|
|
6227
|
+
if (Number.isFinite(padPitch) && Number.isFinite(padHeight)) {
|
|
6228
|
+
return /* @__PURE__ */ jsx74(
|
|
6229
|
+
ParametricChip,
|
|
6230
|
+
{
|
|
6231
|
+
padPitch,
|
|
6232
|
+
padHeight,
|
|
6233
|
+
color: color ?? (fpJson.fn === "cap" ? "#856c4d" : void 0)
|
|
6234
|
+
}
|
|
6235
|
+
);
|
|
6236
|
+
}
|
|
5939
6237
|
}
|
|
5940
6238
|
return null;
|
|
5941
6239
|
};
|
|
5942
6240
|
|
|
5943
6241
|
// lib/SOT-23-3P.tsx
|
|
5944
|
-
import { Fragment as
|
|
6242
|
+
import { Fragment as Fragment68, jsx as jsx75, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
5945
6243
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
5946
6244
|
const bodyWidth = 1.3;
|
|
5947
6245
|
const bodyLength10 = 2.9;
|
|
@@ -5952,8 +6250,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5952
6250
|
const padContactLength = 0.4;
|
|
5953
6251
|
const padThickness = leadThickness / 2;
|
|
5954
6252
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
5955
|
-
return /* @__PURE__ */
|
|
5956
|
-
/* @__PURE__ */
|
|
6253
|
+
return /* @__PURE__ */ jsxs70(Fragment68, { children: [
|
|
6254
|
+
/* @__PURE__ */ jsx75(
|
|
5957
6255
|
SmdChipLead,
|
|
5958
6256
|
{
|
|
5959
6257
|
rotation: Math.PI,
|
|
@@ -5970,7 +6268,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5970
6268
|
},
|
|
5971
6269
|
1
|
|
5972
6270
|
),
|
|
5973
|
-
/* @__PURE__ */
|
|
6271
|
+
/* @__PURE__ */ jsx75(
|
|
5974
6272
|
SmdChipLead,
|
|
5975
6273
|
{
|
|
5976
6274
|
rotation: Math.PI,
|
|
@@ -5987,7 +6285,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5987
6285
|
},
|
|
5988
6286
|
2
|
|
5989
6287
|
),
|
|
5990
|
-
/* @__PURE__ */
|
|
6288
|
+
/* @__PURE__ */ jsx75(
|
|
5991
6289
|
SmdChipLead,
|
|
5992
6290
|
{
|
|
5993
6291
|
position: {
|
|
@@ -6003,7 +6301,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
6003
6301
|
},
|
|
6004
6302
|
3
|
|
6005
6303
|
),
|
|
6006
|
-
/* @__PURE__ */
|
|
6304
|
+
/* @__PURE__ */ jsx75(
|
|
6007
6305
|
ChipBody,
|
|
6008
6306
|
{
|
|
6009
6307
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -6016,8 +6314,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
6016
6314
|
};
|
|
6017
6315
|
|
|
6018
6316
|
// lib/SOT-563.tsx
|
|
6019
|
-
import { Cuboid as
|
|
6020
|
-
import { Fragment as
|
|
6317
|
+
import { Cuboid as Cuboid50, Translate as Translate35, Rotate as Rotate16, Colorize as Colorize42 } from "jscad-fiber";
|
|
6318
|
+
import { Fragment as Fragment69, jsx as jsx76, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
6021
6319
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
6022
6320
|
const bodyWidth = 1.2;
|
|
6023
6321
|
const bodyLength10 = 1.6;
|
|
@@ -6027,28 +6325,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
6027
6325
|
const leadHeight = 0.13;
|
|
6028
6326
|
const leadSpacing = 0.5;
|
|
6029
6327
|
const bodyZOffset = -0.4;
|
|
6030
|
-
return /* @__PURE__ */
|
|
6031
|
-
/* @__PURE__ */
|
|
6328
|
+
return /* @__PURE__ */ jsxs71(Fragment69, { children: [
|
|
6329
|
+
/* @__PURE__ */ jsx76(Rotate16, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx76(Translate35, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx76(Colorize42, { color: "grey", children: /* @__PURE__ */ jsx76(Cuboid50, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
6032
6330
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
6033
6331
|
// Left lead
|
|
6034
|
-
/* @__PURE__ */
|
|
6035
|
-
|
|
6332
|
+
/* @__PURE__ */ jsx76(
|
|
6333
|
+
Translate35,
|
|
6036
6334
|
{
|
|
6037
6335
|
center: [
|
|
6038
6336
|
-bodyWidth / 2 - 0.03,
|
|
6039
6337
|
yOffset * leadSpacing,
|
|
6040
6338
|
leadHeight / 2
|
|
6041
6339
|
],
|
|
6042
|
-
children: /* @__PURE__ */
|
|
6340
|
+
children: /* @__PURE__ */ jsx76(Cuboid50, { size: [leadLength, leadWidth, leadHeight] })
|
|
6043
6341
|
},
|
|
6044
6342
|
`left-${index}`
|
|
6045
6343
|
),
|
|
6046
6344
|
// Right lead
|
|
6047
|
-
/* @__PURE__ */
|
|
6048
|
-
|
|
6345
|
+
/* @__PURE__ */ jsx76(
|
|
6346
|
+
Translate35,
|
|
6049
6347
|
{
|
|
6050
6348
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
6051
|
-
children: /* @__PURE__ */
|
|
6349
|
+
children: /* @__PURE__ */ jsx76(Cuboid50, { size: [leadLength, leadWidth, leadHeight] })
|
|
6052
6350
|
},
|
|
6053
6351
|
`right-${index}`
|
|
6054
6352
|
)
|
|
@@ -6057,7 +6355,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
6057
6355
|
};
|
|
6058
6356
|
|
|
6059
6357
|
// lib/sod-123.tsx
|
|
6060
|
-
import { Fragment as
|
|
6358
|
+
import { Fragment as Fragment70, jsx as jsx77, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
6061
6359
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
6062
6360
|
const bodyWidth = 2.9;
|
|
6063
6361
|
const bodyLength10 = 1.3;
|
|
@@ -6068,8 +6366,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
6068
6366
|
const padContactLength = 0.4;
|
|
6069
6367
|
const padThickness = leadThickness / 2;
|
|
6070
6368
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
6071
|
-
return /* @__PURE__ */
|
|
6072
|
-
/* @__PURE__ */
|
|
6369
|
+
return /* @__PURE__ */ jsxs72(Fragment70, { children: [
|
|
6370
|
+
/* @__PURE__ */ jsx77(
|
|
6073
6371
|
SmdChipLead,
|
|
6074
6372
|
{
|
|
6075
6373
|
position: {
|
|
@@ -6085,7 +6383,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
6085
6383
|
},
|
|
6086
6384
|
1
|
|
6087
6385
|
),
|
|
6088
|
-
/* @__PURE__ */
|
|
6386
|
+
/* @__PURE__ */ jsx77(
|
|
6089
6387
|
SmdChipLead,
|
|
6090
6388
|
{
|
|
6091
6389
|
rotation: Math.PI,
|
|
@@ -6102,7 +6400,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
6102
6400
|
},
|
|
6103
6401
|
2
|
|
6104
6402
|
),
|
|
6105
|
-
/* @__PURE__ */
|
|
6403
|
+
/* @__PURE__ */ jsx77(
|
|
6106
6404
|
ChipBody,
|
|
6107
6405
|
{
|
|
6108
6406
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -6126,6 +6424,7 @@ export {
|
|
|
6126
6424
|
AxialCapacitor,
|
|
6127
6425
|
BGA,
|
|
6128
6426
|
ChipBody,
|
|
6427
|
+
Crystal,
|
|
6129
6428
|
DFN,
|
|
6130
6429
|
Display,
|
|
6131
6430
|
ExtrudedPads,
|
|
@@ -6138,6 +6437,7 @@ export {
|
|
|
6138
6437
|
HC49,
|
|
6139
6438
|
JSTZH1_5mm,
|
|
6140
6439
|
LQFP,
|
|
6440
|
+
Led5050,
|
|
6141
6441
|
MELF,
|
|
6142
6442
|
MINIMELF,
|
|
6143
6443
|
MS012,
|