jscad-electronics 0.0.83 → 0.0.85

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
@@ -622,7 +622,8 @@ var QFP = ({
622
622
  x: bodyLength10 / 2 - 1.5,
623
623
  y: bodyWidth / 2 - 1.5,
624
624
  z: 1.5
625
- }
625
+ },
626
+ notchRadius: 1.5 / 2
626
627
  }
627
628
  )
628
629
  ] });
@@ -2234,7 +2235,8 @@ var TQFP = () => {
2234
2235
  height: 1.2,
2235
2236
  chamferSize: 0.6,
2236
2237
  taperRatio: 0.05,
2237
- notchPosition: { x: 3.5, y: 3.5, z: 1.2 }
2238
+ notchPosition: { x: 3.5, y: 3.5, z: 1.2 },
2239
+ notchRadius: 1.2 / 2
2238
2240
  }
2239
2241
  )
2240
2242
  ] });
@@ -2424,7 +2426,8 @@ var LQFP = ({
2424
2426
  x: bodyLength10 / 2 - 1.5,
2425
2427
  y: bodyLength10 / 2 - 1.5,
2426
2428
  z: 1.5
2427
- }
2429
+ },
2430
+ notchRadius: 1.5 / 2
2428
2431
  }
2429
2432
  )
2430
2433
  ] });
@@ -2578,6 +2581,63 @@ var HC49 = ({
2578
2581
  ] });
2579
2582
  };
2580
2583
 
2584
+ // lib/MicroMELF.tsx
2585
+ var MicroMELF = ({
2586
+ bodyLength: bodyLength10 = 1.4,
2587
+ bodyDiameter = 1.1,
2588
+ color = "#3a3a3aff",
2589
+ contactColor = "#c6c6c6",
2590
+ cathodeIdentification = "#111"
2591
+ }) => {
2592
+ const padLength = 0.2;
2593
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
2594
+ /* @__PURE__ */ jsx(Colorize, { color, children: /* @__PURE__ */ jsxs(Rotate, { rotation: [0, "90deg", 0], children: [
2595
+ /* @__PURE__ */ jsx(
2596
+ RoundedCuboid,
2597
+ {
2598
+ size: [bodyDiameter, bodyDiameter, bodyLength10 - padLength],
2599
+ roundRadius: padLength,
2600
+ center: [-bodyDiameter / 2, 0, 0.05]
2601
+ }
2602
+ ),
2603
+ /* @__PURE__ */ jsx(
2604
+ Cylinder,
2605
+ {
2606
+ height: padLength / 2,
2607
+ radius: bodyDiameter / 2 - padLength,
2608
+ center: [-bodyDiameter / 2, 0, -bodyLength10 / 2 + padLength / 2]
2609
+ }
2610
+ )
2611
+ ] }) }),
2612
+ /* @__PURE__ */ jsx(Colorize, { color: cathodeIdentification, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2613
+ RoundedCuboid,
2614
+ {
2615
+ size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
2616
+ roundRadius: padLength,
2617
+ center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
2618
+ }
2619
+ ) }) }),
2620
+ /* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2621
+ RoundedCylinder,
2622
+ {
2623
+ height: padLength,
2624
+ radius: bodyDiameter / 2,
2625
+ roundRadius: padLength / 3,
2626
+ center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
2627
+ }
2628
+ ) }) }),
2629
+ /* @__PURE__ */ jsx(Colorize, { color: contactColor, children: /* @__PURE__ */ jsx(Rotate, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx(
2630
+ RoundedCylinder,
2631
+ {
2632
+ height: padLength,
2633
+ radius: bodyDiameter / 2,
2634
+ roundRadius: padLength / 3,
2635
+ center: [-bodyDiameter / 2, 0, bodyLength10 / 2]
2636
+ }
2637
+ ) }) })
2638
+ ] });
2639
+ };
2640
+
2581
2641
  // lib/MINIMELF.tsx
2582
2642
  var MINIMELF = ({
2583
2643
  bodyLength: bodyLength10 = 3.5,
@@ -2882,6 +2942,8 @@ var Footprinter3d = ({ footprint }) => {
2882
2942
  return /* @__PURE__ */ jsx(SOD923, {});
2883
2943
  case "hc49":
2884
2944
  return /* @__PURE__ */ jsx(HC49, {});
2945
+ case "micromelf":
2946
+ return /* @__PURE__ */ jsx(MicroMELF, {});
2885
2947
  case "minimelf":
2886
2948
  return /* @__PURE__ */ jsx(MINIMELF, {});
2887
2949
  case "melf":