jscad-electronics 0.0.86 → 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/index.js +153 -151
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +38 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -2497,6 +2497,42 @@ var LQFP = ({
|
|
|
2497
2497
|
] });
|
|
2498
2498
|
};
|
|
2499
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
|
+
|
|
2500
2536
|
// lib/dfn.tsx
|
|
2501
2537
|
var DFN = ({
|
|
2502
2538
|
num_pins,
|
|
@@ -3024,6 +3060,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3024
3060
|
pitch: fpJson.p
|
|
3025
3061
|
}
|
|
3026
3062
|
);
|
|
3063
|
+
case "sot723":
|
|
3064
|
+
return /* @__PURE__ */ jsx(SOT723, {});
|
|
3027
3065
|
}
|
|
3028
3066
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3029
3067
|
const color = colorMatch ? colorMatch[1] : void 0;
|