jscad-electronics 0.0.95 → 0.0.97
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 +5 -1
- package/dist/index.js +390 -232
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +152 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -2147,6 +2147,154 @@ var SOD123FL = () => {
|
|
|
2147
2147
|
] });
|
|
2148
2148
|
};
|
|
2149
2149
|
|
|
2150
|
+
// lib/sod-123W.tsx
|
|
2151
|
+
var SOD123W = () => {
|
|
2152
|
+
const fullWidth = 2.6;
|
|
2153
|
+
const bodyLength10 = 1.7;
|
|
2154
|
+
const bodyHeight = 1;
|
|
2155
|
+
const padWidth = 0.9;
|
|
2156
|
+
const padLength = 0.9;
|
|
2157
|
+
const padThickness = 0.2;
|
|
2158
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2159
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2160
|
+
const taperOffset = 0.4;
|
|
2161
|
+
const lowerTaperOffset = 0.1;
|
|
2162
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2163
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
2164
|
+
/* @__PURE__ */ jsx(
|
|
2165
|
+
Cuboid,
|
|
2166
|
+
{
|
|
2167
|
+
color: "#ccc",
|
|
2168
|
+
size: [padLength, padWidth, padThickness],
|
|
2169
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2170
|
+
}
|
|
2171
|
+
),
|
|
2172
|
+
/* @__PURE__ */ jsx(
|
|
2173
|
+
Cuboid,
|
|
2174
|
+
{
|
|
2175
|
+
color: "#ccc",
|
|
2176
|
+
size: [padLength, padWidth, padThickness],
|
|
2177
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2178
|
+
}
|
|
2179
|
+
),
|
|
2180
|
+
/* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
|
|
2181
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
2182
|
+
/* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(
|
|
2183
|
+
Cuboid,
|
|
2184
|
+
{
|
|
2185
|
+
size: [
|
|
2186
|
+
fullWidth - lowerTaperOffset / 2,
|
|
2187
|
+
bodyLength10 - lowerTaperOffset / 2,
|
|
2188
|
+
0.01
|
|
2189
|
+
]
|
|
2190
|
+
}
|
|
2191
|
+
) }),
|
|
2192
|
+
/* @__PURE__ */ jsx(Translate, { z: 0.01, children: /* @__PURE__ */ jsx(
|
|
2193
|
+
Cuboid,
|
|
2194
|
+
{
|
|
2195
|
+
size: [
|
|
2196
|
+
fullWidth - lowerTaperOffset,
|
|
2197
|
+
bodyLength10 - lowerTaperOffset,
|
|
2198
|
+
0.01
|
|
2199
|
+
]
|
|
2200
|
+
}
|
|
2201
|
+
) })
|
|
2202
|
+
] }),
|
|
2203
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
2204
|
+
/* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2205
|
+
/* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
|
|
2206
|
+
Cuboid,
|
|
2207
|
+
{
|
|
2208
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2209
|
+
}
|
|
2210
|
+
) })
|
|
2211
|
+
] })
|
|
2212
|
+
] }) }),
|
|
2213
|
+
/* @__PURE__ */ jsx(
|
|
2214
|
+
Cuboid,
|
|
2215
|
+
{
|
|
2216
|
+
color: "#777",
|
|
2217
|
+
size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
|
|
2218
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2219
|
+
}
|
|
2220
|
+
)
|
|
2221
|
+
] });
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2224
|
+
// lib/sod-128.tsx
|
|
2225
|
+
var SOD128 = () => {
|
|
2226
|
+
const fullWidth = 3.8;
|
|
2227
|
+
const bodyLength10 = 2.5;
|
|
2228
|
+
const bodyHeight = 1;
|
|
2229
|
+
const padWidth = 1.75;
|
|
2230
|
+
const padLength = 0.9;
|
|
2231
|
+
const padThickness = 0.2;
|
|
2232
|
+
const leftPadCenterX = -(fullWidth / 2 - 0.075);
|
|
2233
|
+
const rightPadCenterX = fullWidth / 2 - 0.075;
|
|
2234
|
+
const taperOffset = 0.4;
|
|
2235
|
+
const lowerTaperOffset = 0.05;
|
|
2236
|
+
const straightHeight = bodyHeight * 0.2;
|
|
2237
|
+
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
2238
|
+
/* @__PURE__ */ jsx(
|
|
2239
|
+
Cuboid,
|
|
2240
|
+
{
|
|
2241
|
+
color: "#ccc",
|
|
2242
|
+
size: [padLength, padWidth, padThickness],
|
|
2243
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
2244
|
+
}
|
|
2245
|
+
),
|
|
2246
|
+
/* @__PURE__ */ jsx(
|
|
2247
|
+
Cuboid,
|
|
2248
|
+
{
|
|
2249
|
+
color: "#ccc",
|
|
2250
|
+
size: [padLength, padWidth, padThickness],
|
|
2251
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
2252
|
+
}
|
|
2253
|
+
),
|
|
2254
|
+
/* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
|
|
2255
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
2256
|
+
/* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(
|
|
2257
|
+
Cuboid,
|
|
2258
|
+
{
|
|
2259
|
+
size: [
|
|
2260
|
+
fullWidth - lowerTaperOffset / 2,
|
|
2261
|
+
bodyLength10 - lowerTaperOffset / 2,
|
|
2262
|
+
0.01
|
|
2263
|
+
]
|
|
2264
|
+
}
|
|
2265
|
+
) }),
|
|
2266
|
+
/* @__PURE__ */ jsx(Translate, { z: 0.01, children: /* @__PURE__ */ jsx(
|
|
2267
|
+
Cuboid,
|
|
2268
|
+
{
|
|
2269
|
+
size: [
|
|
2270
|
+
fullWidth - lowerTaperOffset,
|
|
2271
|
+
bodyLength10 - lowerTaperOffset,
|
|
2272
|
+
0.01
|
|
2273
|
+
]
|
|
2274
|
+
}
|
|
2275
|
+
) })
|
|
2276
|
+
] }),
|
|
2277
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
2278
|
+
/* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
2279
|
+
/* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
|
|
2280
|
+
Cuboid,
|
|
2281
|
+
{
|
|
2282
|
+
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
2283
|
+
}
|
|
2284
|
+
) })
|
|
2285
|
+
] })
|
|
2286
|
+
] }) }),
|
|
2287
|
+
/* @__PURE__ */ jsx(
|
|
2288
|
+
Cuboid,
|
|
2289
|
+
{
|
|
2290
|
+
color: "#777",
|
|
2291
|
+
size: [padThickness * 2.7, bodyLength10 - taperOffset, 0.02],
|
|
2292
|
+
center: [leftPadCenterX + taperOffset, 0, bodyHeight]
|
|
2293
|
+
}
|
|
2294
|
+
)
|
|
2295
|
+
] });
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2150
2298
|
// lib/SOD-923.tsx
|
|
2151
2299
|
var SOD923 = () => {
|
|
2152
2300
|
const fullWidth = 0.8;
|
|
@@ -3525,6 +3673,10 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3525
3673
|
return /* @__PURE__ */ jsx(SOD123F, {});
|
|
3526
3674
|
case "sod123fl":
|
|
3527
3675
|
return /* @__PURE__ */ jsx(SOD123FL, {});
|
|
3676
|
+
case "sod123w":
|
|
3677
|
+
return /* @__PURE__ */ jsx(SOD123W, {});
|
|
3678
|
+
case "sod128":
|
|
3679
|
+
return /* @__PURE__ */ jsx(SOD128, {});
|
|
3528
3680
|
case "sod923":
|
|
3529
3681
|
return /* @__PURE__ */ jsx(SOD923, {});
|
|
3530
3682
|
case "hc49":
|