jscad-electronics 0.0.92 → 0.0.93
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.d.ts +3 -1
- package/dist/index.js +131 -82
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +39 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -2985,6 +2985,43 @@ var TO220 = () => {
|
|
|
2985
2985
|
] }) });
|
|
2986
2986
|
};
|
|
2987
2987
|
|
|
2988
|
+
// lib/TO92.tsx
|
|
2989
|
+
var TO92 = () => {
|
|
2990
|
+
const bodyRadius = 2.4;
|
|
2991
|
+
const bodyHeight = 4.5;
|
|
2992
|
+
const flatCut = 1.1;
|
|
2993
|
+
const legWidth = 0.4;
|
|
2994
|
+
const legThickness = 0.25;
|
|
2995
|
+
const bodyZ = bodyHeight / 2;
|
|
2996
|
+
const bodyColor = "#222";
|
|
2997
|
+
const leadLength = 0.43;
|
|
2998
|
+
const leadTipSize = [leadLength, legWidth, 1.32];
|
|
2999
|
+
const leadSmallSize = [
|
|
3000
|
+
leadLength,
|
|
3001
|
+
legWidth,
|
|
3002
|
+
legThickness
|
|
3003
|
+
];
|
|
3004
|
+
const leadTipPos1 = [0, 0, -0.66];
|
|
3005
|
+
const leadMidPosA = [0, 0, -1.32];
|
|
3006
|
+
const leadMidPosB = [0, 1.28, -2.72];
|
|
3007
|
+
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3008
|
+
const sideLeadZ = -7.5;
|
|
3009
|
+
return /* @__PURE__ */ jsxs(Translate, { center: [0, 1, 10.5], children: [
|
|
3010
|
+
/* @__PURE__ */ jsx(Colorize, { color: bodyColor, children: /* @__PURE__ */ jsxs(Subtract, { children: [
|
|
3011
|
+
/* @__PURE__ */ jsx(Translate, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx(Cylinder, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3012
|
+
/* @__PURE__ */ jsx(Translate, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3013
|
+
] }) }),
|
|
3014
|
+
/* @__PURE__ */ jsx(Translate, { center: leadTipPos1, children: /* @__PURE__ */ jsx(Cuboid, { size: leadTipSize }) }),
|
|
3015
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
3016
|
+
/* @__PURE__ */ jsx(Translate, { center: leadMidPosA, children: /* @__PURE__ */ jsx(Cuboid, { size: leadSmallSize }) }),
|
|
3017
|
+
/* @__PURE__ */ jsx(Translate, { center: leadMidPosB, children: /* @__PURE__ */ jsx(Cuboid, { size: leadSmallSize }) })
|
|
3018
|
+
] }),
|
|
3019
|
+
/* @__PURE__ */ jsx(Translate, { center: leadTipPos2, children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3020
|
+
/* @__PURE__ */ jsx(Translate, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 15] }) }),
|
|
3021
|
+
/* @__PURE__ */ jsx(Translate, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx(Cuboid, { size: [leadLength, legWidth, 15] }) })
|
|
3022
|
+
] });
|
|
3023
|
+
};
|
|
3024
|
+
|
|
2988
3025
|
// lib/SOT-363.tsx
|
|
2989
3026
|
var SOT363 = () => {
|
|
2990
3027
|
const fullWidth = 2;
|
|
@@ -3302,6 +3339,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3302
3339
|
return /* @__PURE__ */ jsx(SOT723, {});
|
|
3303
3340
|
case "to220":
|
|
3304
3341
|
return /* @__PURE__ */ jsx(TO220, {});
|
|
3342
|
+
case "to92":
|
|
3343
|
+
return /* @__PURE__ */ jsx(TO92, {});
|
|
3305
3344
|
}
|
|
3306
3345
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3307
3346
|
const color = colorMatch ? colorMatch[1] : void 0;
|