jscad-electronics 0.0.85 → 0.0.87

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
@@ -1653,6 +1653,70 @@ var SOD523 = () => {
1653
1653
  ] });
1654
1654
  };
1655
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
+
1656
1720
  // lib/SMA.tsx
1657
1721
  var SMA = () => {
1658
1722
  const bodyWidth = 4.4;
@@ -2433,6 +2497,42 @@ var LQFP = ({
2433
2497
  ] });
2434
2498
  };
2435
2499
 
2500
+ // lib/SOT-723.tsx
2501
+ var getCcwSot723Coords = (pn) => {
2502
+ if (pn === 1) {
2503
+ return { x: 0, y: 0 };
2504
+ } else if (pn === 2) {
2505
+ return { x: 1, y: -0.4 };
2506
+ } else {
2507
+ return { x: 1, y: 0.4 };
2508
+ }
2509
+ };
2510
+ var SOT723 = () => {
2511
+ const bodyWidth = 0.8;
2512
+ const bodyLength10 = 1.2;
2513
+ const bodyHeight = 0.5;
2514
+ const leadWidth = 0.32;
2515
+ const leadLength = 0.3;
2516
+ const leadHeight = 0.1;
2517
+ const centerLeadWidth = 0.42;
2518
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
2519
+ /* @__PURE__ */ jsx(Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx(Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx(Colorize, { color: "grey", children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
2520
+ [1, 2, 3].map((pn) => {
2521
+ const { x, y } = getCcwSot723Coords(pn);
2522
+ return /* @__PURE__ */ jsx(Translate, { center: [x, y, 0.05], children: /* @__PURE__ */ jsx(
2523
+ Cuboid,
2524
+ {
2525
+ size: [
2526
+ leadLength,
2527
+ pn === 1 ? centerLeadWidth : leadWidth,
2528
+ leadHeight
2529
+ ]
2530
+ }
2531
+ ) }, `lead-${pn}`);
2532
+ })
2533
+ ] });
2534
+ };
2535
+
2436
2536
  // lib/dfn.tsx
2437
2537
  var DFN = ({
2438
2538
  num_pins,
@@ -2926,6 +3026,8 @@ var Footprinter3d = ({ footprint }) => {
2926
3026
  );
2927
3027
  case "sod523":
2928
3028
  return /* @__PURE__ */ jsx(SOD523, {});
3029
+ case "sod882":
3030
+ return /* @__PURE__ */ jsx(SOD882, {});
2929
3031
  case "sma":
2930
3032
  return /* @__PURE__ */ jsx(SMA, {});
2931
3033
  case "smb":
@@ -2958,6 +3060,8 @@ var Footprinter3d = ({ footprint }) => {
2958
3060
  pitch: fpJson.p
2959
3061
  }
2960
3062
  );
3063
+ case "sot723":
3064
+ return /* @__PURE__ */ jsx(SOT723, {});
2961
3065
  }
2962
3066
  const colorMatch = footprint.match(/_color\(([^)]+)\)/);
2963
3067
  const color = colorMatch ? colorMatch[1] : void 0;