jscad-electronics 0.0.92 → 0.0.94
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 +266 -82
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +172 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -235,6 +235,8 @@ declare const SOD923: () => react_jsx_runtime.JSX.Element;
|
|
|
235
235
|
|
|
236
236
|
declare const SOT223: () => react_jsx_runtime.JSX.Element;
|
|
237
237
|
|
|
238
|
+
declare const SOT457: () => react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
238
240
|
declare const SOT323: () => react_jsx_runtime.JSX.Element;
|
|
239
241
|
|
|
240
242
|
declare const SOT363: () => react_jsx_runtime.JSX.Element;
|
|
@@ -295,4 +297,6 @@ declare const MS012: ({ pinCount, padContactLength, leadWidth, pitch, }: {
|
|
|
295
297
|
|
|
296
298
|
declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
297
299
|
|
|
298
|
-
|
|
300
|
+
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
301
|
+
|
|
302
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, BGA, ChipBody, type ChipBodyProps, DFN, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MSOP, MicroMELF, type MicroMELFProps, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT323, SOT363, SOT457, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -3172,8 +3172,186 @@ var TO220 = () => {
|
|
|
3172
3172
|
] }) });
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
-
// lib/SOT-
|
|
3175
|
+
// lib/SOT-457.tsx
|
|
3176
3176
|
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3177
|
+
var SOT457 = () => {
|
|
3178
|
+
const fullWidth = 2.8;
|
|
3179
|
+
const bodyWidth = 1.6;
|
|
3180
|
+
const bodyLength10 = 2.9;
|
|
3181
|
+
const bodyHeight = 1.2;
|
|
3182
|
+
const leadWidth = 0.4;
|
|
3183
|
+
const leadThickness = 0.15;
|
|
3184
|
+
const leadHeight = 0.95;
|
|
3185
|
+
const padContactLength = 0.5;
|
|
3186
|
+
const padPitch = 0.95;
|
|
3187
|
+
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3188
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3189
|
+
/* @__PURE__ */ jsx48(
|
|
3190
|
+
SmdChipLead,
|
|
3191
|
+
{
|
|
3192
|
+
rotation: Math.PI,
|
|
3193
|
+
position: {
|
|
3194
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3195
|
+
y: -padPitch,
|
|
3196
|
+
z: leadThickness / 2
|
|
3197
|
+
},
|
|
3198
|
+
width: leadWidth,
|
|
3199
|
+
thickness: leadThickness,
|
|
3200
|
+
padContactLength,
|
|
3201
|
+
bodyDistance: extendedBodyDistance,
|
|
3202
|
+
height: leadHeight
|
|
3203
|
+
},
|
|
3204
|
+
1
|
|
3205
|
+
),
|
|
3206
|
+
/* @__PURE__ */ jsx48(
|
|
3207
|
+
SmdChipLead,
|
|
3208
|
+
{
|
|
3209
|
+
rotation: Math.PI,
|
|
3210
|
+
position: {
|
|
3211
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3212
|
+
y: 0,
|
|
3213
|
+
z: leadThickness / 2
|
|
3214
|
+
},
|
|
3215
|
+
width: leadWidth,
|
|
3216
|
+
thickness: leadThickness,
|
|
3217
|
+
padContactLength,
|
|
3218
|
+
bodyDistance: extendedBodyDistance,
|
|
3219
|
+
height: leadHeight
|
|
3220
|
+
},
|
|
3221
|
+
2
|
|
3222
|
+
),
|
|
3223
|
+
/* @__PURE__ */ jsx48(
|
|
3224
|
+
SmdChipLead,
|
|
3225
|
+
{
|
|
3226
|
+
rotation: Math.PI,
|
|
3227
|
+
position: {
|
|
3228
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3229
|
+
y: padPitch,
|
|
3230
|
+
z: leadThickness / 2
|
|
3231
|
+
},
|
|
3232
|
+
width: leadWidth,
|
|
3233
|
+
thickness: leadThickness,
|
|
3234
|
+
padContactLength,
|
|
3235
|
+
bodyDistance: extendedBodyDistance,
|
|
3236
|
+
height: leadHeight
|
|
3237
|
+
},
|
|
3238
|
+
3
|
|
3239
|
+
),
|
|
3240
|
+
/* @__PURE__ */ jsx48(
|
|
3241
|
+
SmdChipLead,
|
|
3242
|
+
{
|
|
3243
|
+
position: {
|
|
3244
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3245
|
+
y: 0,
|
|
3246
|
+
z: leadThickness / 2
|
|
3247
|
+
},
|
|
3248
|
+
width: leadWidth,
|
|
3249
|
+
thickness: leadThickness,
|
|
3250
|
+
padContactLength,
|
|
3251
|
+
bodyDistance: extendedBodyDistance,
|
|
3252
|
+
height: leadHeight
|
|
3253
|
+
},
|
|
3254
|
+
3
|
|
3255
|
+
),
|
|
3256
|
+
/* @__PURE__ */ jsx48(
|
|
3257
|
+
SmdChipLead,
|
|
3258
|
+
{
|
|
3259
|
+
position: {
|
|
3260
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3261
|
+
y: -padPitch,
|
|
3262
|
+
z: leadThickness / 2
|
|
3263
|
+
},
|
|
3264
|
+
width: leadWidth,
|
|
3265
|
+
thickness: leadThickness,
|
|
3266
|
+
padContactLength,
|
|
3267
|
+
bodyDistance: extendedBodyDistance,
|
|
3268
|
+
height: leadHeight
|
|
3269
|
+
},
|
|
3270
|
+
1
|
|
3271
|
+
),
|
|
3272
|
+
/* @__PURE__ */ jsx48(
|
|
3273
|
+
SmdChipLead,
|
|
3274
|
+
{
|
|
3275
|
+
position: {
|
|
3276
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3277
|
+
y: padPitch,
|
|
3278
|
+
z: leadThickness / 2
|
|
3279
|
+
},
|
|
3280
|
+
width: leadWidth,
|
|
3281
|
+
thickness: leadThickness,
|
|
3282
|
+
padContactLength,
|
|
3283
|
+
bodyDistance: extendedBodyDistance,
|
|
3284
|
+
height: leadHeight
|
|
3285
|
+
},
|
|
3286
|
+
2
|
|
3287
|
+
),
|
|
3288
|
+
/* @__PURE__ */ jsx48(
|
|
3289
|
+
ChipBody,
|
|
3290
|
+
{
|
|
3291
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3292
|
+
width: bodyWidth,
|
|
3293
|
+
length: bodyLength10,
|
|
3294
|
+
height: bodyHeight,
|
|
3295
|
+
straightHeightRatio: 0.6,
|
|
3296
|
+
notchPosition: {
|
|
3297
|
+
x: bodyWidth / 2 - 0.4,
|
|
3298
|
+
y: bodyHeight / 2 + 0.4,
|
|
3299
|
+
z: bodyHeight + 0.05
|
|
3300
|
+
},
|
|
3301
|
+
notchRadius: 0.1
|
|
3302
|
+
}
|
|
3303
|
+
)
|
|
3304
|
+
] });
|
|
3305
|
+
};
|
|
3306
|
+
|
|
3307
|
+
// lib/TO92.tsx
|
|
3308
|
+
import {
|
|
3309
|
+
Colorize as Colorize25,
|
|
3310
|
+
Cuboid as Cuboid32,
|
|
3311
|
+
Hull as Hull16,
|
|
3312
|
+
Translate as Translate20,
|
|
3313
|
+
Cylinder as Cylinder9,
|
|
3314
|
+
Subtract as Subtract5
|
|
3315
|
+
} from "jscad-fiber";
|
|
3316
|
+
import { jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3317
|
+
var TO92 = () => {
|
|
3318
|
+
const bodyRadius = 2.4;
|
|
3319
|
+
const bodyHeight = 4.5;
|
|
3320
|
+
const flatCut = 1.1;
|
|
3321
|
+
const legWidth = 0.4;
|
|
3322
|
+
const legThickness = 0.25;
|
|
3323
|
+
const bodyZ = bodyHeight / 2;
|
|
3324
|
+
const bodyColor = "#222";
|
|
3325
|
+
const leadLength = 0.43;
|
|
3326
|
+
const leadTipSize = [leadLength, legWidth, 1.32];
|
|
3327
|
+
const leadSmallSize = [
|
|
3328
|
+
leadLength,
|
|
3329
|
+
legWidth,
|
|
3330
|
+
legThickness
|
|
3331
|
+
];
|
|
3332
|
+
const leadTipPos1 = [0, 0, -0.66];
|
|
3333
|
+
const leadMidPosA = [0, 0, -1.32];
|
|
3334
|
+
const leadMidPosB = [0, 1.28, -2.72];
|
|
3335
|
+
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3336
|
+
const sideLeadZ = -7.5;
|
|
3337
|
+
return /* @__PURE__ */ jsxs47(Translate20, { center: [0, 1, 10.5], children: [
|
|
3338
|
+
/* @__PURE__ */ jsx49(Colorize25, { color: bodyColor, children: /* @__PURE__ */ jsxs47(Subtract5, { children: [
|
|
3339
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx49(Cylinder9, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3340
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3341
|
+
] }) }),
|
|
3342
|
+
/* @__PURE__ */ jsx49(Translate20, { center: leadTipPos1, children: /* @__PURE__ */ jsx49(Cuboid32, { size: leadTipSize }) }),
|
|
3343
|
+
/* @__PURE__ */ jsxs47(Hull16, { children: [
|
|
3344
|
+
/* @__PURE__ */ jsx49(Translate20, { center: leadMidPosA, children: /* @__PURE__ */ jsx49(Cuboid32, { size: leadSmallSize }) }),
|
|
3345
|
+
/* @__PURE__ */ jsx49(Translate20, { center: leadMidPosB, children: /* @__PURE__ */ jsx49(Cuboid32, { size: leadSmallSize }) })
|
|
3346
|
+
] }),
|
|
3347
|
+
/* @__PURE__ */ jsx49(Translate20, { center: leadTipPos2, children: /* @__PURE__ */ jsx49(Cuboid32, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3348
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [leadLength, legWidth, 15] }) }),
|
|
3349
|
+
/* @__PURE__ */ jsx49(Translate20, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx49(Cuboid32, { size: [leadLength, legWidth, 15] }) })
|
|
3350
|
+
] });
|
|
3351
|
+
};
|
|
3352
|
+
|
|
3353
|
+
// lib/SOT-363.tsx
|
|
3354
|
+
import { Fragment as Fragment45, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3177
3355
|
var SOT363 = () => {
|
|
3178
3356
|
const fullWidth = 2;
|
|
3179
3357
|
const bodyWidth = 1.25;
|
|
@@ -3184,8 +3362,8 @@ var SOT363 = () => {
|
|
|
3184
3362
|
const leadHeight = 0.85;
|
|
3185
3363
|
const padContactLength = 0.3;
|
|
3186
3364
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3187
|
-
return /* @__PURE__ */
|
|
3188
|
-
/* @__PURE__ */
|
|
3365
|
+
return /* @__PURE__ */ jsxs48(Fragment45, { children: [
|
|
3366
|
+
/* @__PURE__ */ jsx50(
|
|
3189
3367
|
SmdChipLead,
|
|
3190
3368
|
{
|
|
3191
3369
|
rotation: Math.PI,
|
|
@@ -3202,7 +3380,7 @@ var SOT363 = () => {
|
|
|
3202
3380
|
},
|
|
3203
3381
|
1
|
|
3204
3382
|
),
|
|
3205
|
-
/* @__PURE__ */
|
|
3383
|
+
/* @__PURE__ */ jsx50(
|
|
3206
3384
|
SmdChipLead,
|
|
3207
3385
|
{
|
|
3208
3386
|
rotation: Math.PI,
|
|
@@ -3219,7 +3397,7 @@ var SOT363 = () => {
|
|
|
3219
3397
|
},
|
|
3220
3398
|
2
|
|
3221
3399
|
),
|
|
3222
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ jsx50(
|
|
3223
3401
|
SmdChipLead,
|
|
3224
3402
|
{
|
|
3225
3403
|
rotation: Math.PI,
|
|
@@ -3236,7 +3414,7 @@ var SOT363 = () => {
|
|
|
3236
3414
|
},
|
|
3237
3415
|
3
|
|
3238
3416
|
),
|
|
3239
|
-
/* @__PURE__ */
|
|
3417
|
+
/* @__PURE__ */ jsx50(
|
|
3240
3418
|
SmdChipLead,
|
|
3241
3419
|
{
|
|
3242
3420
|
position: {
|
|
@@ -3252,7 +3430,7 @@ var SOT363 = () => {
|
|
|
3252
3430
|
},
|
|
3253
3431
|
3
|
|
3254
3432
|
),
|
|
3255
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ jsx50(
|
|
3256
3434
|
SmdChipLead,
|
|
3257
3435
|
{
|
|
3258
3436
|
position: {
|
|
@@ -3268,7 +3446,7 @@ var SOT363 = () => {
|
|
|
3268
3446
|
},
|
|
3269
3447
|
1
|
|
3270
3448
|
),
|
|
3271
|
-
/* @__PURE__ */
|
|
3449
|
+
/* @__PURE__ */ jsx50(
|
|
3272
3450
|
SmdChipLead,
|
|
3273
3451
|
{
|
|
3274
3452
|
position: {
|
|
@@ -3284,7 +3462,7 @@ var SOT363 = () => {
|
|
|
3284
3462
|
},
|
|
3285
3463
|
2
|
|
3286
3464
|
),
|
|
3287
|
-
/* @__PURE__ */
|
|
3465
|
+
/* @__PURE__ */ jsx50(
|
|
3288
3466
|
ChipBody,
|
|
3289
3467
|
{
|
|
3290
3468
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3305,14 +3483,14 @@ var SOT363 = () => {
|
|
|
3305
3483
|
var SOT_363_default = SOT363;
|
|
3306
3484
|
|
|
3307
3485
|
// lib/Footprinter3d.tsx
|
|
3308
|
-
import { jsx as
|
|
3486
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
3309
3487
|
var Footprinter3d = ({ footprint }) => {
|
|
3310
3488
|
const fpJson = fp3.string(footprint).json();
|
|
3311
3489
|
switch (fpJson.fn) {
|
|
3312
3490
|
case "dip":
|
|
3313
|
-
return /* @__PURE__ */
|
|
3491
|
+
return /* @__PURE__ */ jsx51(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3314
3492
|
case "tssop":
|
|
3315
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ jsx51(
|
|
3316
3494
|
Tssop,
|
|
3317
3495
|
{
|
|
3318
3496
|
pinCount: fpJson.num_pins,
|
|
@@ -3323,7 +3501,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3323
3501
|
}
|
|
3324
3502
|
);
|
|
3325
3503
|
case "msop":
|
|
3326
|
-
return /* @__PURE__ */
|
|
3504
|
+
return /* @__PURE__ */ jsx51(
|
|
3327
3505
|
MSOP,
|
|
3328
3506
|
{
|
|
3329
3507
|
pinCount: fpJson.num_pins,
|
|
@@ -3334,7 +3512,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3334
3512
|
}
|
|
3335
3513
|
);
|
|
3336
3514
|
case "vssop":
|
|
3337
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ jsx51(
|
|
3338
3516
|
VSSOP,
|
|
3339
3517
|
{
|
|
3340
3518
|
pinCount: fpJson.num_pins,
|
|
@@ -3346,7 +3524,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3346
3524
|
}
|
|
3347
3525
|
);
|
|
3348
3526
|
case "qfp":
|
|
3349
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ jsx51(
|
|
3350
3528
|
QFP,
|
|
3351
3529
|
{
|
|
3352
3530
|
pinCount: fpJson.num_pins,
|
|
@@ -3357,12 +3535,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3357
3535
|
}
|
|
3358
3536
|
);
|
|
3359
3537
|
case "tqfp":
|
|
3360
|
-
return /* @__PURE__ */
|
|
3538
|
+
return /* @__PURE__ */ jsx51(tqfp_default, {});
|
|
3361
3539
|
case "lqfp":
|
|
3362
|
-
return /* @__PURE__ */
|
|
3540
|
+
return /* @__PURE__ */ jsx51(LQFP, { pinCount: fpJson.num_pins });
|
|
3363
3541
|
case "qfn": {
|
|
3364
3542
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3365
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsx51(
|
|
3366
3544
|
qfn_default,
|
|
3367
3545
|
{
|
|
3368
3546
|
num_pins: fpJson.num_pins,
|
|
@@ -3380,7 +3558,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3380
3558
|
}
|
|
3381
3559
|
case "dfn": {
|
|
3382
3560
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3383
|
-
return /* @__PURE__ */
|
|
3561
|
+
return /* @__PURE__ */ jsx51(
|
|
3384
3562
|
DFN,
|
|
3385
3563
|
{
|
|
3386
3564
|
num_pins: fpJson.num_pins,
|
|
@@ -3398,41 +3576,43 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3398
3576
|
}
|
|
3399
3577
|
case "pinrow":
|
|
3400
3578
|
if (fpJson.male)
|
|
3401
|
-
return /* @__PURE__ */
|
|
3579
|
+
return /* @__PURE__ */ jsx51(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3402
3580
|
if (fpJson.female)
|
|
3403
|
-
return /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ jsx51(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3404
3582
|
case "cap": {
|
|
3405
3583
|
switch (fpJson.imperial) {
|
|
3406
3584
|
case "0402":
|
|
3407
|
-
return /* @__PURE__ */
|
|
3585
|
+
return /* @__PURE__ */ jsx51(A0402, { color: "#856c4d" });
|
|
3408
3586
|
case "0603":
|
|
3409
|
-
return /* @__PURE__ */
|
|
3587
|
+
return /* @__PURE__ */ jsx51(A0603, { color: "#856c4d" });
|
|
3410
3588
|
case "0805":
|
|
3411
|
-
return /* @__PURE__ */
|
|
3589
|
+
return /* @__PURE__ */ jsx51(A0805, { color: "#856c4d" });
|
|
3412
3590
|
case "0201":
|
|
3413
|
-
return /* @__PURE__ */
|
|
3591
|
+
return /* @__PURE__ */ jsx51(A0201, { color: "#856c4d" });
|
|
3414
3592
|
case "01005":
|
|
3415
|
-
return /* @__PURE__ */
|
|
3593
|
+
return /* @__PURE__ */ jsx51(A01005, { color: "#856c4d" });
|
|
3416
3594
|
case "1206":
|
|
3417
|
-
return /* @__PURE__ */
|
|
3595
|
+
return /* @__PURE__ */ jsx51(A1206, { color: "#856c4d" });
|
|
3418
3596
|
case "1210":
|
|
3419
|
-
return /* @__PURE__ */
|
|
3597
|
+
return /* @__PURE__ */ jsx51(A1210, { color: "#856c4d" });
|
|
3420
3598
|
case "2010":
|
|
3421
|
-
return /* @__PURE__ */
|
|
3599
|
+
return /* @__PURE__ */ jsx51(A2010, { color: "#856c4d" });
|
|
3422
3600
|
case "2512":
|
|
3423
|
-
return /* @__PURE__ */
|
|
3601
|
+
return /* @__PURE__ */ jsx51(A2512, { color: "#856c4d" });
|
|
3424
3602
|
}
|
|
3425
3603
|
}
|
|
3426
3604
|
case "sot235":
|
|
3427
|
-
return /* @__PURE__ */
|
|
3605
|
+
return /* @__PURE__ */ jsx51(SOT_235_default, {});
|
|
3606
|
+
case "sot457":
|
|
3607
|
+
return /* @__PURE__ */ jsx51(SOT457, {});
|
|
3428
3608
|
case "sot223":
|
|
3429
|
-
return /* @__PURE__ */
|
|
3609
|
+
return /* @__PURE__ */ jsx51(SOT223, {});
|
|
3430
3610
|
case "sot323":
|
|
3431
|
-
return /* @__PURE__ */
|
|
3611
|
+
return /* @__PURE__ */ jsx51(SOT323, {});
|
|
3432
3612
|
case "sot363":
|
|
3433
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ jsx51(SOT_363_default, {});
|
|
3434
3614
|
case "pushbutton":
|
|
3435
|
-
return /* @__PURE__ */
|
|
3615
|
+
return /* @__PURE__ */ jsx51(
|
|
3436
3616
|
PushButton,
|
|
3437
3617
|
{
|
|
3438
3618
|
width: fpJson.w,
|
|
@@ -3441,7 +3621,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3441
3621
|
}
|
|
3442
3622
|
);
|
|
3443
3623
|
case "soic":
|
|
3444
|
-
return /* @__PURE__ */
|
|
3624
|
+
return /* @__PURE__ */ jsx51(
|
|
3445
3625
|
SOIC,
|
|
3446
3626
|
{
|
|
3447
3627
|
pinCount: fpJson.num_pins,
|
|
@@ -3452,33 +3632,33 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3452
3632
|
}
|
|
3453
3633
|
);
|
|
3454
3634
|
case "sod523":
|
|
3455
|
-
return /* @__PURE__ */
|
|
3635
|
+
return /* @__PURE__ */ jsx51(SOD523, {});
|
|
3456
3636
|
case "sod882":
|
|
3457
|
-
return /* @__PURE__ */
|
|
3637
|
+
return /* @__PURE__ */ jsx51(SOD882, {});
|
|
3458
3638
|
case "sma":
|
|
3459
|
-
return /* @__PURE__ */
|
|
3639
|
+
return /* @__PURE__ */ jsx51(SMA, {});
|
|
3460
3640
|
case "smb":
|
|
3461
|
-
return /* @__PURE__ */
|
|
3641
|
+
return /* @__PURE__ */ jsx51(SMB, {});
|
|
3462
3642
|
case "smc":
|
|
3463
|
-
return /* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsx51(SMC, {});
|
|
3464
3644
|
case "smf":
|
|
3465
|
-
return /* @__PURE__ */
|
|
3645
|
+
return /* @__PURE__ */ jsx51(SMF, {});
|
|
3466
3646
|
case "sod123f":
|
|
3467
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsx51(SOD123F, {});
|
|
3468
3648
|
case "sod123fl":
|
|
3469
|
-
return /* @__PURE__ */
|
|
3649
|
+
return /* @__PURE__ */ jsx51(SOD123FL, {});
|
|
3470
3650
|
case "sod923":
|
|
3471
|
-
return /* @__PURE__ */
|
|
3651
|
+
return /* @__PURE__ */ jsx51(SOD923, {});
|
|
3472
3652
|
case "hc49":
|
|
3473
|
-
return /* @__PURE__ */
|
|
3653
|
+
return /* @__PURE__ */ jsx51(HC49, {});
|
|
3474
3654
|
case "micromelf":
|
|
3475
|
-
return /* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ jsx51(MicroMELF, {});
|
|
3476
3656
|
case "minimelf":
|
|
3477
|
-
return /* @__PURE__ */
|
|
3657
|
+
return /* @__PURE__ */ jsx51(MINIMELF, {});
|
|
3478
3658
|
case "melf":
|
|
3479
|
-
return /* @__PURE__ */
|
|
3659
|
+
return /* @__PURE__ */ jsx51(MELF, {});
|
|
3480
3660
|
case "ms012":
|
|
3481
|
-
return /* @__PURE__ */
|
|
3661
|
+
return /* @__PURE__ */ jsx51(
|
|
3482
3662
|
MS012,
|
|
3483
3663
|
{
|
|
3484
3664
|
pinCount: fpJson.num_pins,
|
|
@@ -3488,37 +3668,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3488
3668
|
}
|
|
3489
3669
|
);
|
|
3490
3670
|
case "sot723":
|
|
3491
|
-
return /* @__PURE__ */
|
|
3671
|
+
return /* @__PURE__ */ jsx51(SOT723, {});
|
|
3492
3672
|
case "to220":
|
|
3493
|
-
return /* @__PURE__ */
|
|
3673
|
+
return /* @__PURE__ */ jsx51(TO220, {});
|
|
3674
|
+
case "to92":
|
|
3675
|
+
return /* @__PURE__ */ jsx51(TO92, {});
|
|
3494
3676
|
}
|
|
3495
3677
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3496
3678
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3497
3679
|
switch (fpJson.imperial) {
|
|
3498
3680
|
case "0402":
|
|
3499
|
-
return /* @__PURE__ */
|
|
3681
|
+
return /* @__PURE__ */ jsx51(A0402, { color });
|
|
3500
3682
|
case "0603":
|
|
3501
|
-
return /* @__PURE__ */
|
|
3683
|
+
return /* @__PURE__ */ jsx51(A0603, { color });
|
|
3502
3684
|
case "0805":
|
|
3503
|
-
return /* @__PURE__ */
|
|
3685
|
+
return /* @__PURE__ */ jsx51(A0805, { color });
|
|
3504
3686
|
case "0201":
|
|
3505
|
-
return /* @__PURE__ */
|
|
3687
|
+
return /* @__PURE__ */ jsx51(A0201, { color });
|
|
3506
3688
|
case "01005":
|
|
3507
|
-
return /* @__PURE__ */
|
|
3689
|
+
return /* @__PURE__ */ jsx51(A01005, { color });
|
|
3508
3690
|
case "1206":
|
|
3509
|
-
return /* @__PURE__ */
|
|
3691
|
+
return /* @__PURE__ */ jsx51(A1206, { color });
|
|
3510
3692
|
case "1210":
|
|
3511
|
-
return /* @__PURE__ */
|
|
3693
|
+
return /* @__PURE__ */ jsx51(A1210, { color });
|
|
3512
3694
|
case "2010":
|
|
3513
|
-
return /* @__PURE__ */
|
|
3695
|
+
return /* @__PURE__ */ jsx51(A2010, { color });
|
|
3514
3696
|
case "2512":
|
|
3515
|
-
return /* @__PURE__ */
|
|
3697
|
+
return /* @__PURE__ */ jsx51(A2512, { color });
|
|
3516
3698
|
}
|
|
3517
3699
|
return null;
|
|
3518
3700
|
};
|
|
3519
3701
|
|
|
3520
3702
|
// lib/SOT-23-3P.tsx
|
|
3521
|
-
import { Fragment as
|
|
3703
|
+
import { Fragment as Fragment46, jsx as jsx52, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3522
3704
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3523
3705
|
const bodyWidth = 1.3;
|
|
3524
3706
|
const bodyLength10 = 2.9;
|
|
@@ -3529,8 +3711,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3529
3711
|
const padContactLength = 0.4;
|
|
3530
3712
|
const padThickness = leadThickness / 2;
|
|
3531
3713
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3532
|
-
return /* @__PURE__ */
|
|
3533
|
-
/* @__PURE__ */
|
|
3714
|
+
return /* @__PURE__ */ jsxs49(Fragment46, { children: [
|
|
3715
|
+
/* @__PURE__ */ jsx52(
|
|
3534
3716
|
SmdChipLead,
|
|
3535
3717
|
{
|
|
3536
3718
|
rotation: Math.PI,
|
|
@@ -3547,7 +3729,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3547
3729
|
},
|
|
3548
3730
|
1
|
|
3549
3731
|
),
|
|
3550
|
-
/* @__PURE__ */
|
|
3732
|
+
/* @__PURE__ */ jsx52(
|
|
3551
3733
|
SmdChipLead,
|
|
3552
3734
|
{
|
|
3553
3735
|
rotation: Math.PI,
|
|
@@ -3564,7 +3746,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3564
3746
|
},
|
|
3565
3747
|
2
|
|
3566
3748
|
),
|
|
3567
|
-
/* @__PURE__ */
|
|
3749
|
+
/* @__PURE__ */ jsx52(
|
|
3568
3750
|
SmdChipLead,
|
|
3569
3751
|
{
|
|
3570
3752
|
position: {
|
|
@@ -3580,7 +3762,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3580
3762
|
},
|
|
3581
3763
|
3
|
|
3582
3764
|
),
|
|
3583
|
-
/* @__PURE__ */
|
|
3765
|
+
/* @__PURE__ */ jsx52(
|
|
3584
3766
|
ChipBody,
|
|
3585
3767
|
{
|
|
3586
3768
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3593,8 +3775,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3593
3775
|
};
|
|
3594
3776
|
|
|
3595
3777
|
// lib/SOT-563.tsx
|
|
3596
|
-
import { Cuboid as
|
|
3597
|
-
import { Fragment as
|
|
3778
|
+
import { Cuboid as Cuboid33, Translate as Translate21, Rotate as Rotate10, Colorize as Colorize26 } from "jscad-fiber";
|
|
3779
|
+
import { Fragment as Fragment47, jsx as jsx53, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3598
3780
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3599
3781
|
const bodyWidth = 1.2;
|
|
3600
3782
|
const bodyLength10 = 1.6;
|
|
@@ -3604,28 +3786,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3604
3786
|
const leadHeight = 0.13;
|
|
3605
3787
|
const leadSpacing = 0.5;
|
|
3606
3788
|
const bodyZOffset = -0.4;
|
|
3607
|
-
return /* @__PURE__ */
|
|
3608
|
-
/* @__PURE__ */
|
|
3789
|
+
return /* @__PURE__ */ jsxs50(Fragment47, { children: [
|
|
3790
|
+
/* @__PURE__ */ jsx53(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx53(Translate21, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx53(Colorize26, { color: "grey", children: /* @__PURE__ */ jsx53(Cuboid33, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3609
3791
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3610
3792
|
// Left lead
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
|
|
3793
|
+
/* @__PURE__ */ jsx53(
|
|
3794
|
+
Translate21,
|
|
3613
3795
|
{
|
|
3614
3796
|
center: [
|
|
3615
3797
|
-bodyWidth / 2 - 0.03,
|
|
3616
3798
|
yOffset * leadSpacing,
|
|
3617
3799
|
leadHeight / 2
|
|
3618
3800
|
],
|
|
3619
|
-
children: /* @__PURE__ */
|
|
3801
|
+
children: /* @__PURE__ */ jsx53(Cuboid33, { size: [leadLength, leadWidth, leadHeight] })
|
|
3620
3802
|
},
|
|
3621
3803
|
`left-${index}`
|
|
3622
3804
|
),
|
|
3623
3805
|
// Right lead
|
|
3624
|
-
/* @__PURE__ */
|
|
3625
|
-
|
|
3806
|
+
/* @__PURE__ */ jsx53(
|
|
3807
|
+
Translate21,
|
|
3626
3808
|
{
|
|
3627
3809
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3628
|
-
children: /* @__PURE__ */
|
|
3810
|
+
children: /* @__PURE__ */ jsx53(Cuboid33, { size: [leadLength, leadWidth, leadHeight] })
|
|
3629
3811
|
},
|
|
3630
3812
|
`right-${index}`
|
|
3631
3813
|
)
|
|
@@ -3634,7 +3816,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3634
3816
|
};
|
|
3635
3817
|
|
|
3636
3818
|
// lib/sod-123.tsx
|
|
3637
|
-
import { Fragment as
|
|
3819
|
+
import { Fragment as Fragment48, jsx as jsx54, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3638
3820
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3639
3821
|
const bodyWidth = 2.9;
|
|
3640
3822
|
const bodyLength10 = 1.3;
|
|
@@ -3645,8 +3827,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3645
3827
|
const padContactLength = 0.4;
|
|
3646
3828
|
const padThickness = leadThickness / 2;
|
|
3647
3829
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3648
|
-
return /* @__PURE__ */
|
|
3649
|
-
/* @__PURE__ */
|
|
3830
|
+
return /* @__PURE__ */ jsxs51(Fragment48, { children: [
|
|
3831
|
+
/* @__PURE__ */ jsx54(
|
|
3650
3832
|
SmdChipLead,
|
|
3651
3833
|
{
|
|
3652
3834
|
position: {
|
|
@@ -3662,7 +3844,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3662
3844
|
},
|
|
3663
3845
|
1
|
|
3664
3846
|
),
|
|
3665
|
-
/* @__PURE__ */
|
|
3847
|
+
/* @__PURE__ */ jsx54(
|
|
3666
3848
|
SmdChipLead,
|
|
3667
3849
|
{
|
|
3668
3850
|
rotation: Math.PI,
|
|
@@ -3679,7 +3861,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3679
3861
|
},
|
|
3680
3862
|
2
|
|
3681
3863
|
),
|
|
3682
|
-
/* @__PURE__ */
|
|
3864
|
+
/* @__PURE__ */ jsx54(
|
|
3683
3865
|
ChipBody,
|
|
3684
3866
|
{
|
|
3685
3867
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3731,10 +3913,12 @@ export {
|
|
|
3731
3913
|
SOT233P,
|
|
3732
3914
|
SOT323,
|
|
3733
3915
|
SOT363,
|
|
3916
|
+
SOT457,
|
|
3734
3917
|
SOT563,
|
|
3735
3918
|
SOT723,
|
|
3736
3919
|
SmdChipLead,
|
|
3737
3920
|
TO220,
|
|
3921
|
+
TO92,
|
|
3738
3922
|
TQFP,
|
|
3739
3923
|
Tssop,
|
|
3740
3924
|
VSSOP
|