jscad-electronics 0.0.61 → 0.0.62

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
@@ -1804,6 +1804,50 @@ var SMF = () => {
1804
1804
  ] });
1805
1805
  };
1806
1806
 
1807
+ // lib/sod-123F.tsx
1808
+ var SOD123F = () => {
1809
+ const fullWidth = 2.7;
1810
+ const bodyLength10 = 1.6;
1811
+ const bodyHeight = 1.1;
1812
+ const padWidth = 0.6;
1813
+ const padLength = 1;
1814
+ const padThickness = 0.12;
1815
+ const leftPadCenterX = -1.3;
1816
+ const rightPadCenterX = 1.3;
1817
+ const taperOffset = 0.2;
1818
+ const straightHeight = bodyHeight * 0.5;
1819
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
1820
+ /* @__PURE__ */ jsx(
1821
+ Cuboid,
1822
+ {
1823
+ color: "#ccc",
1824
+ size: [padLength, padWidth, padThickness],
1825
+ center: [leftPadCenterX, 0, padThickness / 2]
1826
+ }
1827
+ ),
1828
+ /* @__PURE__ */ jsx(
1829
+ Cuboid,
1830
+ {
1831
+ color: "#ccc",
1832
+ size: [padLength, padWidth, padThickness],
1833
+ center: [rightPadCenterX, 0, padThickness / 2]
1834
+ }
1835
+ ),
1836
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
1837
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, straightHeight] }) }),
1838
+ /* @__PURE__ */ jsxs(Hull, { children: [
1839
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
1840
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
1841
+ Cuboid,
1842
+ {
1843
+ size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
1844
+ }
1845
+ ) })
1846
+ ] })
1847
+ ] }) })
1848
+ ] });
1849
+ };
1850
+
1807
1851
  // lib/Footprinter3d.tsx
1808
1852
  var Footprinter3d = ({ footprint }) => {
1809
1853
  const fpJson = fp.string(footprint).json();
@@ -1920,6 +1964,8 @@ var Footprinter3d = ({ footprint }) => {
1920
1964
  return /* @__PURE__ */ jsx(SMC, {});
1921
1965
  case "smf":
1922
1966
  return /* @__PURE__ */ jsx(SMF, {});
1967
+ case "sod123f":
1968
+ return /* @__PURE__ */ jsx(SOD123F, {});
1923
1969
  }
1924
1970
  const colorMatch = footprint.match(/_color\(([^)]+)\)/);
1925
1971
  const color = colorMatch ? colorMatch[1] : void 0;