jscad-electronics 0.0.65 → 0.0.67

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
@@ -1515,18 +1515,6 @@ var SOD523 = () => {
1515
1515
  const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
1516
1516
  const taperOffset = 0.2;
1517
1517
  const straightHeight = bodyHeight * 0.5;
1518
- const Body = /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
1519
- /* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
1520
- /* @__PURE__ */ jsxs(Hull, { children: [
1521
- /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, 0.01] }) }),
1522
- /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
1523
- Cuboid,
1524
- {
1525
- size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
1526
- }
1527
- ) })
1528
- ] })
1529
- ] }) });
1530
1518
  return /* @__PURE__ */ jsxs(Fragment2, { children: [
1531
1519
  /* @__PURE__ */ jsx(
1532
1520
  Cuboid,
@@ -1544,7 +1532,18 @@ var SOD523 = () => {
1544
1532
  center: [rightPadCenterX, 0, padThickness / 2]
1545
1533
  }
1546
1534
  ),
1547
- Body
1535
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
1536
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
1537
+ /* @__PURE__ */ jsxs(Hull, { children: [
1538
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, 0.01] }) }),
1539
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
1540
+ Cuboid,
1541
+ {
1542
+ size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
1543
+ }
1544
+ ) })
1545
+ ] })
1546
+ ] }) })
1548
1547
  ] });
1549
1548
  };
1550
1549
 
@@ -1848,6 +1847,50 @@ var SOD123F = () => {
1848
1847
  ] });
1849
1848
  };
1850
1849
 
1850
+ // lib/SOD-923.tsx
1851
+ var SOD923 = () => {
1852
+ const fullWidth = 0.8;
1853
+ const bodyLength10 = 0.6;
1854
+ const bodyHeight = 0.37;
1855
+ const padWidth = 0.25;
1856
+ const padLength = 0.4;
1857
+ const padThickness = 0.14;
1858
+ const leftPadCenterX = -(fullWidth / 2);
1859
+ const rightPadCenterX = fullWidth / 2;
1860
+ const taperOffset = 0.1;
1861
+ const straightHeight = padThickness;
1862
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
1863
+ /* @__PURE__ */ jsx(
1864
+ Cuboid,
1865
+ {
1866
+ color: "#ccc",
1867
+ size: [padLength, padWidth, padThickness],
1868
+ center: [leftPadCenterX, 0, padThickness / 2]
1869
+ }
1870
+ ),
1871
+ /* @__PURE__ */ jsx(
1872
+ Cuboid,
1873
+ {
1874
+ color: "#ccc",
1875
+ size: [padLength, padWidth, padThickness],
1876
+ center: [rightPadCenterX, 0, padThickness / 2]
1877
+ }
1878
+ ),
1879
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
1880
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, straightHeight] }) }),
1881
+ /* @__PURE__ */ jsxs(Hull, { children: [
1882
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
1883
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
1884
+ Cuboid,
1885
+ {
1886
+ size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
1887
+ }
1888
+ ) })
1889
+ ] })
1890
+ ] }) })
1891
+ ] });
1892
+ };
1893
+
1851
1894
  // lib/Footprinter3d.tsx
1852
1895
  var Footprinter3d = ({ footprint }) => {
1853
1896
  const fpJson = fp.string(footprint).json();
@@ -1966,6 +2009,8 @@ var Footprinter3d = ({ footprint }) => {
1966
2009
  return /* @__PURE__ */ jsx(SMF, {});
1967
2010
  case "sod123f":
1968
2011
  return /* @__PURE__ */ jsx(SOD123F, {});
2012
+ case "sod923":
2013
+ return /* @__PURE__ */ jsx(SOD923, {});
1969
2014
  }
1970
2015
  const colorMatch = footprint.match(/_color\(([^)]+)\)/);
1971
2016
  const color = colorMatch ? colorMatch[1] : void 0;