jscad-electronics 0.0.98 → 0.0.100
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 +5 -1
- package/dist/index.js +211 -79
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +126 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -3575,6 +3575,128 @@ var SOT363 = () => {
|
|
|
3575
3575
|
};
|
|
3576
3576
|
var SOT_363_default = SOT363;
|
|
3577
3577
|
|
|
3578
|
+
// lib/sod-323.tsx
|
|
3579
|
+
var SOD323 = () => {
|
|
3580
|
+
const fullWidth = 2.5;
|
|
3581
|
+
const bodyLength10 = 1.25;
|
|
3582
|
+
const bodyWidth = 1.7;
|
|
3583
|
+
const bodyHeight = 0.95;
|
|
3584
|
+
const leadWidth = 0.3;
|
|
3585
|
+
const leadThickness = 0.175;
|
|
3586
|
+
const padContactLength = 0.3;
|
|
3587
|
+
const padCenterX = bodyWidth / 2;
|
|
3588
|
+
const bodyDistance = 0.45;
|
|
3589
|
+
const leadHeight = 0.7;
|
|
3590
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
3591
|
+
/* @__PURE__ */ jsx(
|
|
3592
|
+
SmdChipLead,
|
|
3593
|
+
{
|
|
3594
|
+
position: {
|
|
3595
|
+
x: -fullWidth / 2,
|
|
3596
|
+
y: 0,
|
|
3597
|
+
z: leadThickness / 2
|
|
3598
|
+
},
|
|
3599
|
+
width: leadWidth,
|
|
3600
|
+
thickness: leadThickness,
|
|
3601
|
+
padContactLength,
|
|
3602
|
+
bodyDistance,
|
|
3603
|
+
height: leadHeight
|
|
3604
|
+
},
|
|
3605
|
+
1
|
|
3606
|
+
),
|
|
3607
|
+
/* @__PURE__ */ jsx(
|
|
3608
|
+
SmdChipLead,
|
|
3609
|
+
{
|
|
3610
|
+
rotation: Math.PI,
|
|
3611
|
+
position: {
|
|
3612
|
+
x: fullWidth / 2,
|
|
3613
|
+
y: 0,
|
|
3614
|
+
z: leadThickness / 2
|
|
3615
|
+
},
|
|
3616
|
+
width: leadWidth,
|
|
3617
|
+
thickness: leadThickness,
|
|
3618
|
+
padContactLength,
|
|
3619
|
+
bodyDistance,
|
|
3620
|
+
height: leadHeight
|
|
3621
|
+
},
|
|
3622
|
+
1
|
|
3623
|
+
),
|
|
3624
|
+
/* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsx(
|
|
3625
|
+
ChipBody,
|
|
3626
|
+
{
|
|
3627
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3628
|
+
width: bodyWidth,
|
|
3629
|
+
length: bodyLength10,
|
|
3630
|
+
height: bodyHeight,
|
|
3631
|
+
includeNotch: false,
|
|
3632
|
+
taperRatio: 0.06,
|
|
3633
|
+
straightHeightRatio: 0.7,
|
|
3634
|
+
heightAboveSurface: 0.05
|
|
3635
|
+
}
|
|
3636
|
+
) }),
|
|
3637
|
+
/* @__PURE__ */ jsx(
|
|
3638
|
+
Cuboid,
|
|
3639
|
+
{
|
|
3640
|
+
color: "#777",
|
|
3641
|
+
size: [bodyWidth / 3, bodyLength10 - 0.075, 0.02],
|
|
3642
|
+
center: [-padCenterX * 2 / 3 + 0.035, 0, bodyHeight + 0.05]
|
|
3643
|
+
}
|
|
3644
|
+
)
|
|
3645
|
+
] });
|
|
3646
|
+
};
|
|
3647
|
+
|
|
3648
|
+
// lib/sod-323F.tsx
|
|
3649
|
+
var SOD323F = () => {
|
|
3650
|
+
const fullWidth = 1.7;
|
|
3651
|
+
const bodyLength10 = 1.25;
|
|
3652
|
+
const bodyHeight = 0.725;
|
|
3653
|
+
const padWidth = 0.325;
|
|
3654
|
+
const padLength = 0.4;
|
|
3655
|
+
const padThickness = 0.175;
|
|
3656
|
+
const leftPadCenterX = -fullWidth / 2 - padLength / 2;
|
|
3657
|
+
const rightPadCenterX = fullWidth / 2 + padLength / 2;
|
|
3658
|
+
const taperOffset = 0.2;
|
|
3659
|
+
const straightHeight = padThickness;
|
|
3660
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
3661
|
+
/* @__PURE__ */ jsx(
|
|
3662
|
+
Cuboid,
|
|
3663
|
+
{
|
|
3664
|
+
color: "#ccc",
|
|
3665
|
+
size: [padLength, padWidth, padThickness],
|
|
3666
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
3667
|
+
}
|
|
3668
|
+
),
|
|
3669
|
+
/* @__PURE__ */ jsx(
|
|
3670
|
+
Cuboid,
|
|
3671
|
+
{
|
|
3672
|
+
color: "#ccc",
|
|
3673
|
+
size: [padLength, padWidth, padThickness],
|
|
3674
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
3675
|
+
}
|
|
3676
|
+
),
|
|
3677
|
+
/* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
|
|
3678
|
+
/* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
3679
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
3680
|
+
/* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
3681
|
+
/* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
|
|
3682
|
+
Cuboid,
|
|
3683
|
+
{
|
|
3684
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
3685
|
+
}
|
|
3686
|
+
) })
|
|
3687
|
+
] })
|
|
3688
|
+
] }) }),
|
|
3689
|
+
/* @__PURE__ */ jsx(
|
|
3690
|
+
Cuboid,
|
|
3691
|
+
{
|
|
3692
|
+
color: "#777",
|
|
3693
|
+
size: [fullWidth / 3, bodyLength10 - taperOffset, 0.02],
|
|
3694
|
+
center: [leftPadCenterX + fullWidth / 4.4 + taperOffset, 0, bodyHeight]
|
|
3695
|
+
}
|
|
3696
|
+
)
|
|
3697
|
+
] });
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3578
3700
|
// lib/Footprinter3d.tsx
|
|
3579
3701
|
var Footprinter3d = ({ footprint }) => {
|
|
3580
3702
|
const fpJson = fp.string(footprint).json();
|
|
@@ -3703,6 +3825,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3703
3825
|
return /* @__PURE__ */ jsx(SOT23W, {});
|
|
3704
3826
|
case "sot323":
|
|
3705
3827
|
return /* @__PURE__ */ jsx(SOT323, {});
|
|
3828
|
+
case "sod323f":
|
|
3829
|
+
return /* @__PURE__ */ jsx(SOD323F, {});
|
|
3706
3830
|
case "sot363":
|
|
3707
3831
|
return /* @__PURE__ */ jsx(SOT_363_default, {});
|
|
3708
3832
|
case "pushbutton":
|
|
@@ -3745,6 +3869,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3745
3869
|
return /* @__PURE__ */ jsx(SOD123W, {});
|
|
3746
3870
|
case "sod128":
|
|
3747
3871
|
return /* @__PURE__ */ jsx(SOD128, {});
|
|
3872
|
+
case "sod323":
|
|
3873
|
+
return /* @__PURE__ */ jsx(SOD323, {});
|
|
3748
3874
|
case "sod923":
|
|
3749
3875
|
return /* @__PURE__ */ jsx(SOD923, {});
|
|
3750
3876
|
case "hc49":
|