jscad-electronics 0.0.65 → 0.0.66

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
@@ -1848,6 +1848,50 @@ var SOD123F = () => {
1848
1848
  ] });
1849
1849
  };
1850
1850
 
1851
+ // lib/SOD-923.tsx
1852
+ var SOD923 = () => {
1853
+ const fullWidth = 0.8;
1854
+ const bodyLength10 = 0.6;
1855
+ const bodyHeight = 0.37;
1856
+ const padWidth = 0.25;
1857
+ const padLength = 0.4;
1858
+ const padThickness = 0.14;
1859
+ const leftPadCenterX = -(fullWidth / 2);
1860
+ const rightPadCenterX = fullWidth / 2;
1861
+ const taperOffset = 0.1;
1862
+ const straightHeight = padThickness;
1863
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
1864
+ /* @__PURE__ */ jsx(
1865
+ Cuboid,
1866
+ {
1867
+ color: "#ccc",
1868
+ size: [padLength, padWidth, padThickness],
1869
+ center: [leftPadCenterX, 0, padThickness / 2]
1870
+ }
1871
+ ),
1872
+ /* @__PURE__ */ jsx(
1873
+ Cuboid,
1874
+ {
1875
+ color: "#ccc",
1876
+ size: [padLength, padWidth, padThickness],
1877
+ center: [rightPadCenterX, 0, padThickness / 2]
1878
+ }
1879
+ ),
1880
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
1881
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, straightHeight] }) }),
1882
+ /* @__PURE__ */ jsxs(Hull, { children: [
1883
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
1884
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
1885
+ Cuboid,
1886
+ {
1887
+ size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
1888
+ }
1889
+ ) })
1890
+ ] })
1891
+ ] }) })
1892
+ ] });
1893
+ };
1894
+
1851
1895
  // lib/Footprinter3d.tsx
1852
1896
  var Footprinter3d = ({ footprint }) => {
1853
1897
  const fpJson = fp.string(footprint).json();
@@ -1966,6 +2010,8 @@ var Footprinter3d = ({ footprint }) => {
1966
2010
  return /* @__PURE__ */ jsx(SMF, {});
1967
2011
  case "sod123f":
1968
2012
  return /* @__PURE__ */ jsx(SOD123F, {});
2013
+ case "sod923":
2014
+ return /* @__PURE__ */ jsx(SOD923, {});
1969
2015
  }
1970
2016
  const colorMatch = footprint.match(/_color\(([^)]+)\)/);
1971
2017
  const color = colorMatch ? colorMatch[1] : void 0;