jscad-electronics 0.0.82 → 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/vanilla.js CHANGED
@@ -2578,6 +2578,141 @@ 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
+
2638
+ // lib/MINIMELF.tsx
2639
+ var MINIMELF = ({
2640
+ bodyLength: bodyLength10 = 3.5,
2641
+ bodyDiameter = 1.5,
2642
+ color = "#3a3a3aff",
2643
+ contactColor = "#c6c6c6"
2644
+ }) => {
2645
+ const padLength = 0.5;
2646
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
2647
+ /* @__PURE__ */ jsx(Colorize, { color, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2648
+ RoundedCylinder,
2649
+ {
2650
+ height: bodyLength10,
2651
+ radius: bodyDiameter / 2,
2652
+ roundRadius: 0.3,
2653
+ center: [-bodyDiameter / 2, 0, 0]
2654
+ }
2655
+ ) }) }),
2656
+ /* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2657
+ RoundedCylinder,
2658
+ {
2659
+ height: padLength,
2660
+ radius: bodyDiameter / 2,
2661
+ roundRadius: 0.2,
2662
+ center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
2663
+ }
2664
+ ) }) }),
2665
+ /* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2666
+ RoundedCylinder,
2667
+ {
2668
+ height: padLength,
2669
+ radius: bodyDiameter / 2,
2670
+ roundRadius: 0.2,
2671
+ center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
2672
+ }
2673
+ ) }) })
2674
+ ] });
2675
+ };
2676
+
2677
+ // lib/MELF.tsx
2678
+ var MELF = ({
2679
+ bodyLength: bodyLength10 = 3.9,
2680
+ bodyDiameter = 2.5,
2681
+ color = "#3a3a3aff",
2682
+ contactColor = "#c6c6c6"
2683
+ }) => {
2684
+ const padLength = 0.55;
2685
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
2686
+ /* @__PURE__ */ jsx(Colorize, { color, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2687
+ RoundedCylinder,
2688
+ {
2689
+ height: bodyLength10,
2690
+ radius: bodyDiameter / 2,
2691
+ roundRadius: 0.3,
2692
+ center: [-bodyDiameter / 2, 0, 0]
2693
+ }
2694
+ ) }) }),
2695
+ /* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2696
+ RoundedCylinder,
2697
+ {
2698
+ height: padLength,
2699
+ radius: bodyDiameter / 2,
2700
+ roundRadius: 0.2,
2701
+ center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
2702
+ }
2703
+ ) }) }),
2704
+ /* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2705
+ RoundedCylinder,
2706
+ {
2707
+ height: padLength,
2708
+ radius: bodyDiameter / 2,
2709
+ roundRadius: 0.2,
2710
+ center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
2711
+ }
2712
+ ) }) })
2713
+ ] });
2714
+ };
2715
+
2581
2716
  // lib/ms012.tsx
2582
2717
  var MS012 = ({
2583
2718
  pinCount,
@@ -2804,6 +2939,12 @@ var Footprinter3d = ({ footprint }) => {
2804
2939
  return /* @__PURE__ */ jsx(SOD923, {});
2805
2940
  case "hc49":
2806
2941
  return /* @__PURE__ */ jsx(HC49, {});
2942
+ case "micromelf":
2943
+ return /* @__PURE__ */ jsx(MicroMELF, {});
2944
+ case "minimelf":
2945
+ return /* @__PURE__ */ jsx(MINIMELF, {});
2946
+ case "melf":
2947
+ return /* @__PURE__ */ jsx(MELF, {});
2807
2948
  case "ms012":
2808
2949
  return /* @__PURE__ */ jsx(
2809
2950
  MS012,