jscad-electronics 0.0.98 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +154 -79
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +72 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -3575,6 +3575,76 @@ 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
|
+
|
|
3578
3648
|
// lib/Footprinter3d.tsx
|
|
3579
3649
|
var Footprinter3d = ({ footprint }) => {
|
|
3580
3650
|
const fpJson = fp.string(footprint).json();
|
|
@@ -3745,6 +3815,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3745
3815
|
return /* @__PURE__ */ jsx(SOD123W, {});
|
|
3746
3816
|
case "sod128":
|
|
3747
3817
|
return /* @__PURE__ */ jsx(SOD128, {});
|
|
3818
|
+
case "sod323":
|
|
3819
|
+
return /* @__PURE__ */ jsx(SOD323, {});
|
|
3748
3820
|
case "sod923":
|
|
3749
3821
|
return /* @__PURE__ */ jsx(SOD923, {});
|
|
3750
3822
|
case "hc49":
|