jscad-electronics 0.0.89 → 0.0.90

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
@@ -2501,38 +2501,65 @@ var LQFP = ({
2501
2501
  };
2502
2502
 
2503
2503
  // lib/SOT-723.tsx
2504
- var getCcwSot723Coords = (pn) => {
2505
- if (pn === 1) {
2506
- return { x: 0, y: 0 };
2507
- } else if (pn === 2) {
2508
- return { x: 1, y: -0.4 };
2509
- } else {
2510
- return { x: 1, y: 0.4 };
2511
- }
2512
- };
2513
2504
  var SOT723 = () => {
2514
- const bodyWidth = 0.8;
2505
+ const bodyWidth = 0.85;
2515
2506
  const bodyLength10 = 1.2;
2516
- const bodyHeight = 0.5;
2517
- const leadWidth = 0.32;
2518
- const leadLength = 0.3;
2519
- const leadHeight = 0.1;
2520
- const centerLeadWidth = 0.42;
2507
+ const bodyHeight = 0.38;
2508
+ const straightHeight = bodyHeight * 0.55;
2509
+ const taperOffset = 0.1;
2510
+ const padLength = 0.3;
2511
+ const padThickness = 0.1;
2512
+ const leftPadWidth = 0.2;
2513
+ const rightPadWidth = 0.25;
2514
+ const rightPadCenterX = 0.55;
2515
+ const rightPadCenterY = 0;
2516
+ const leftTopPadCenterX = -0.55;
2517
+ const leftTopPadCenterY = 0.4;
2518
+ const leftBottomPadCenterX = -0.55;
2519
+ const leftBottomPadCenterY = -0.4;
2521
2520
  return /* @__PURE__ */ jsxs(Fragment2, { children: [
2522
- /* @__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] }) }) }) }),
2523
- [1, 2, 3].map((pn) => {
2524
- const { x, y } = getCcwSot723Coords(pn);
2525
- return /* @__PURE__ */ jsx(Translate, { center: [x, y, 0.05], children: /* @__PURE__ */ jsx(
2521
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
2522
+ /* @__PURE__ */ jsx(
2526
2523
  Cuboid,
2527
2524
  {
2528
- size: [
2529
- leadLength,
2530
- pn === 1 ? centerLeadWidth : leadWidth,
2531
- leadHeight
2532
- ]
2525
+ size: [bodyWidth, bodyLength10, straightHeight],
2526
+ center: [0, 0, straightHeight / 2]
2533
2527
  }
2534
- ) }, `lead-${pn}`);
2535
- })
2528
+ ),
2529
+ /* @__PURE__ */ jsxs(Hull, { children: [
2530
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, 0.01] }) }),
2531
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
2532
+ Cuboid,
2533
+ {
2534
+ size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
2535
+ }
2536
+ ) })
2537
+ ] })
2538
+ ] }) }),
2539
+ /* @__PURE__ */ jsx(
2540
+ Cuboid,
2541
+ {
2542
+ color: "#ccc",
2543
+ size: [padLength, rightPadWidth, padThickness],
2544
+ center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
2545
+ }
2546
+ ),
2547
+ /* @__PURE__ */ jsx(
2548
+ Cuboid,
2549
+ {
2550
+ color: "#ccc",
2551
+ size: [padLength, leftPadWidth, padThickness],
2552
+ center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
2553
+ }
2554
+ ),
2555
+ /* @__PURE__ */ jsx(
2556
+ Cuboid,
2557
+ {
2558
+ color: "#ccc",
2559
+ size: [padLength, leftPadWidth, padThickness],
2560
+ center: [leftBottomPadCenterX, leftBottomPadCenterY, padThickness / 2]
2561
+ }
2562
+ )
2536
2563
  ] });
2537
2564
  };
2538
2565