jscad-electronics 0.0.111 → 0.0.112

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
@@ -3933,12 +3933,49 @@ var SOD323FL = () => {
3933
3933
  ] });
3934
3934
  };
3935
3935
 
3936
+ // lib/AxialCapacitor.tsx
3937
+ var AxialCapacitor = ({ pitch = 10 }) => {
3938
+ const heightToCenterOfCapacitor = 0.5 + 4 / 2;
3939
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
3940
+ /* @__PURE__ */ jsx(Cylinder, { height: 4, radius: 0.5, center: [-pitch / 2, 0, 0.5] }),
3941
+ /* @__PURE__ */ jsx(
3942
+ Sphere,
3943
+ {
3944
+ radius: 0.5,
3945
+ center: [-pitch / 2, 0, heightToCenterOfCapacitor]
3946
+ }
3947
+ ),
3948
+ /* @__PURE__ */ jsx(Translate, { x: -2.5, y: 0, z: heightToCenterOfCapacitor, children: /* @__PURE__ */ jsxs(Rotate, { rotation: [0, Math.PI / 2, 0], children: [
3949
+ /* @__PURE__ */ jsx(
3950
+ Cylinder,
3951
+ {
3952
+ height: pitch,
3953
+ radius: 0.5,
3954
+ center: [0, 0, heightToCenterOfCapacitor]
3955
+ }
3956
+ ),
3957
+ /* @__PURE__ */ jsx(Colorize, { color: "#d2b48c", children: /* @__PURE__ */ jsx(
3958
+ Cylinder,
3959
+ {
3960
+ height: 5,
3961
+ radius: 1.3,
3962
+ center: [0, 0, heightToCenterOfCapacitor]
3963
+ }
3964
+ ) })
3965
+ ] }) }),
3966
+ /* @__PURE__ */ jsx(Cylinder, { height: 4, radius: 0.5, center: [pitch / 2, 0, 0.5] }),
3967
+ /* @__PURE__ */ jsx(Sphere, { radius: 0.5, center: [pitch / 2, 0, heightToCenterOfCapacitor] })
3968
+ ] });
3969
+ };
3970
+
3936
3971
  // lib/Footprinter3d.tsx
3937
3972
  var Footprinter3d = ({ footprint }) => {
3938
3973
  const fpJson = fp.string(footprint).json();
3939
3974
  switch (fpJson.fn) {
3940
3975
  case "dip":
3941
3976
  return /* @__PURE__ */ jsx(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
3977
+ case "axial":
3978
+ return /* @__PURE__ */ jsx(AxialCapacitor, { pitch: fpJson.p });
3942
3979
  case "tssop":
3943
3980
  return /* @__PURE__ */ jsx(
3944
3981
  Tssop,