jscad-electronics 0.0.83 → 0.0.84
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 +10 -1
- package/dist/index.js +162 -94
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +59 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -2578,6 +2578,63 @@ var HC49 = ({
|
|
|
2578
2578
|
] });
|
|
2579
2579
|
};
|
|
2580
2580
|
|
|
2581
|
+
// lib/MicroMELF.tsx
|
|
2582
|
+
var MicroMELF = ({
|
|
2583
|
+
bodyLength: bodyLength10 = 1.4,
|
|
2584
|
+
bodyDiameter = 1.1,
|
|
2585
|
+
color = "#3a3a3aff",
|
|
2586
|
+
contactColor = "#c6c6c6",
|
|
2587
|
+
cathodeIdentification = "#111"
|
|
2588
|
+
}) => {
|
|
2589
|
+
const padLength = 0.2;
|
|
2590
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
2591
|
+
/* @__PURE__ */ jsx(Colorize, { color, children: /* @__PURE__ */ jsxs(Rotate, { rotation: [0, "90deg", 0], children: [
|
|
2592
|
+
/* @__PURE__ */ jsx(
|
|
2593
|
+
RoundedCuboid,
|
|
2594
|
+
{
|
|
2595
|
+
size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
|
|
2596
|
+
roundRadius: padLength,
|
|
2597
|
+
center: [-bodyDiameter / 2, 0, 0.05]
|
|
2598
|
+
}
|
|
2599
|
+
),
|
|
2600
|
+
/* @__PURE__ */ jsx(
|
|
2601
|
+
Cylinder,
|
|
2602
|
+
{
|
|
2603
|
+
height: padLength / 2,
|
|
2604
|
+
radius: bodyDiameter / 2 - padLength,
|
|
2605
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2 + padLength / 2]
|
|
2606
|
+
}
|
|
2607
|
+
)
|
|
2608
|
+
] }) }),
|
|
2609
|
+
/* @__PURE__ */ jsx(Colorize, { color: cathodeIdentification, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
|
|
2610
|
+
RoundedCuboid,
|
|
2611
|
+
{
|
|
2612
|
+
size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
|
|
2613
|
+
roundRadius: padLength,
|
|
2614
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
|
|
2615
|
+
}
|
|
2616
|
+
) }) }),
|
|
2617
|
+
/* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
|
|
2618
|
+
RoundedCylinder,
|
|
2619
|
+
{
|
|
2620
|
+
height: padLength,
|
|
2621
|
+
radius: bodyDiameter / 2,
|
|
2622
|
+
roundRadius: padLength / 3,
|
|
2623
|
+
center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
|
|
2624
|
+
}
|
|
2625
|
+
) }) }),
|
|
2626
|
+
/* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
|
|
2627
|
+
RoundedCylinder,
|
|
2628
|
+
{
|
|
2629
|
+
height: padLength,
|
|
2630
|
+
radius: bodyDiameter / 2,
|
|
2631
|
+
roundRadius: padLength / 3,
|
|
2632
|
+
center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
|
|
2633
|
+
}
|
|
2634
|
+
) }) })
|
|
2635
|
+
] });
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2581
2638
|
// lib/MINIMELF.tsx
|
|
2582
2639
|
var MINIMELF = ({
|
|
2583
2640
|
bodyLength: bodyLength10 = 3.5,
|
|
@@ -2882,6 +2939,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
2882
2939
|
return /* @__PURE__ */ jsx(SOD923, {});
|
|
2883
2940
|
case "hc49":
|
|
2884
2941
|
return /* @__PURE__ */ jsx(HC49, {});
|
|
2942
|
+
case "micromelf":
|
|
2943
|
+
return /* @__PURE__ */ jsx(MicroMELF, {});
|
|
2885
2944
|
case "minimelf":
|
|
2886
2945
|
return /* @__PURE__ */ jsx(MINIMELF, {});
|
|
2887
2946
|
case "melf":
|