jscad-electronics 0.0.84 → 0.0.86

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
  ] });
@@ -1652,6 +1653,70 @@ var SOD523 = () => {
1652
1653
  ] });
1653
1654
  };
1654
1655
 
1656
+ // lib/SOD882.tsx
1657
+ var SOD882 = () => {
1658
+ const bodyLength10 = 0.98;
1659
+ const bodyHeight = 0.47;
1660
+ const pitch = 0.65;
1661
+ const padWidth = 0.51;
1662
+ const padLength = 0.26;
1663
+ const padThickness = 0.12;
1664
+ const bodyWidth = 0.58;
1665
+ const leftPadCenterX = -pitch / 2;
1666
+ const rightPadCenterX = pitch / 2;
1667
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
1668
+ /* @__PURE__ */ jsx(
1669
+ Cuboid,
1670
+ {
1671
+ color: "#ccc",
1672
+ size: [padLength, padWidth, padThickness],
1673
+ center: [leftPadCenterX, 0, padThickness / 2]
1674
+ }
1675
+ ),
1676
+ /* @__PURE__ */ jsx(
1677
+ Cuboid,
1678
+ {
1679
+ color: "#ccc",
1680
+ size: [padLength, padWidth, padThickness],
1681
+ center: [rightPadCenterX, 0, padThickness / 2]
1682
+ }
1683
+ ),
1684
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsx(Translate, { z: bodyHeight / 2 + 0.02, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyLength10, bodyWidth, bodyHeight] }) }) }),
1685
+ /* @__PURE__ */ jsx(
1686
+ Cuboid,
1687
+ {
1688
+ color: "#ccc",
1689
+ size: [bodyLength10 + 1e-3, padLength / 2, padLength / 4],
1690
+ center: [0, padLength / 2, bodyHeight / 4]
1691
+ }
1692
+ ),
1693
+ /* @__PURE__ */ jsx(
1694
+ Cuboid,
1695
+ {
1696
+ color: "#ccc",
1697
+ size: [bodyLength10 + 1e-3, padLength / 2, padLength / 4],
1698
+ center: [0, -padLength / 2, bodyHeight / 4]
1699
+ }
1700
+ ),
1701
+ /* @__PURE__ */ jsx(
1702
+ Cuboid,
1703
+ {
1704
+ color: "#ccc",
1705
+ size: [padLength / 1.5, bodyWidth + 1e-3, padLength / 4],
1706
+ center: [pitch / 2, 0, bodyHeight / 4]
1707
+ }
1708
+ ),
1709
+ /* @__PURE__ */ jsx(
1710
+ Cuboid,
1711
+ {
1712
+ color: "#ccc",
1713
+ size: [padLength / 1.5, bodyWidth + 1e-3, padLength / 4],
1714
+ center: [-pitch / 2, 0, bodyHeight / 4]
1715
+ }
1716
+ )
1717
+ ] });
1718
+ };
1719
+
1655
1720
  // lib/SMA.tsx
1656
1721
  var SMA = () => {
1657
1722
  const bodyWidth = 4.4;
@@ -2234,7 +2299,8 @@ var TQFP = () => {
2234
2299
  height: 1.2,
2235
2300
  chamferSize: 0.6,
2236
2301
  taperRatio: 0.05,
2237
- notchPosition: { x: 3.5, y: 3.5, z: 1.2 }
2302
+ notchPosition: { x: 3.5, y: 3.5, z: 1.2 },
2303
+ notchRadius: 1.2 / 2
2238
2304
  }
2239
2305
  )
2240
2306
  ] });
@@ -2424,7 +2490,8 @@ var LQFP = ({
2424
2490
  x: bodyLength10 / 2 - 1.5,
2425
2491
  y: bodyLength10 / 2 - 1.5,
2426
2492
  z: 1.5
2427
- }
2493
+ },
2494
+ notchRadius: 1.5 / 2
2428
2495
  }
2429
2496
  )
2430
2497
  ] });
@@ -2923,6 +2990,8 @@ var Footprinter3d = ({ footprint }) => {
2923
2990
  );
2924
2991
  case "sod523":
2925
2992
  return /* @__PURE__ */ jsx(SOD523, {});
2993
+ case "sod882":
2994
+ return /* @__PURE__ */ jsx(SOD882, {});
2926
2995
  case "sma":
2927
2996
  return /* @__PURE__ */ jsx(SMA, {});
2928
2997
  case "smb":