jscad-electronics 0.0.93 → 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 +3 -1
- package/dist/index.js +227 -92
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +133 -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;
|
|
@@ -297,4 +299,4 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
297
299
|
|
|
298
300
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
299
301
|
|
|
300
|
-
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, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
|
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,6 +3172,138 @@ var TO220 = () => {
|
|
|
3172
3172
|
] }) });
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
+
// lib/SOT-457.tsx
|
|
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
|
+
|
|
3175
3307
|
// lib/TO92.tsx
|
|
3176
3308
|
import {
|
|
3177
3309
|
Colorize as Colorize25,
|
|
@@ -3181,7 +3313,7 @@ import {
|
|
|
3181
3313
|
Cylinder as Cylinder9,
|
|
3182
3314
|
Subtract as Subtract5
|
|
3183
3315
|
} from "jscad-fiber";
|
|
3184
|
-
import { jsx as
|
|
3316
|
+
import { jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3185
3317
|
var TO92 = () => {
|
|
3186
3318
|
const bodyRadius = 2.4;
|
|
3187
3319
|
const bodyHeight = 4.5;
|
|
@@ -3202,24 +3334,24 @@ var TO92 = () => {
|
|
|
3202
3334
|
const leadMidPosB = [0, 1.28, -2.72];
|
|
3203
3335
|
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3204
3336
|
const sideLeadZ = -7.5;
|
|
3205
|
-
return /* @__PURE__ */
|
|
3206
|
-
/* @__PURE__ */
|
|
3207
|
-
/* @__PURE__ */
|
|
3208
|
-
/* @__PURE__ */
|
|
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] }) })
|
|
3209
3341
|
] }) }),
|
|
3210
|
-
/* @__PURE__ */
|
|
3211
|
-
/* @__PURE__ */
|
|
3212
|
-
/* @__PURE__ */
|
|
3213
|
-
/* @__PURE__ */
|
|
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 }) })
|
|
3214
3346
|
] }),
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
/* @__PURE__ */
|
|
3217
|
-
/* @__PURE__ */
|
|
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] }) })
|
|
3218
3350
|
] });
|
|
3219
3351
|
};
|
|
3220
3352
|
|
|
3221
3353
|
// lib/SOT-363.tsx
|
|
3222
|
-
import { Fragment as
|
|
3354
|
+
import { Fragment as Fragment45, jsx as jsx50, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3223
3355
|
var SOT363 = () => {
|
|
3224
3356
|
const fullWidth = 2;
|
|
3225
3357
|
const bodyWidth = 1.25;
|
|
@@ -3230,8 +3362,8 @@ var SOT363 = () => {
|
|
|
3230
3362
|
const leadHeight = 0.85;
|
|
3231
3363
|
const padContactLength = 0.3;
|
|
3232
3364
|
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3233
|
-
return /* @__PURE__ */
|
|
3234
|
-
/* @__PURE__ */
|
|
3365
|
+
return /* @__PURE__ */ jsxs48(Fragment45, { children: [
|
|
3366
|
+
/* @__PURE__ */ jsx50(
|
|
3235
3367
|
SmdChipLead,
|
|
3236
3368
|
{
|
|
3237
3369
|
rotation: Math.PI,
|
|
@@ -3248,7 +3380,7 @@ var SOT363 = () => {
|
|
|
3248
3380
|
},
|
|
3249
3381
|
1
|
|
3250
3382
|
),
|
|
3251
|
-
/* @__PURE__ */
|
|
3383
|
+
/* @__PURE__ */ jsx50(
|
|
3252
3384
|
SmdChipLead,
|
|
3253
3385
|
{
|
|
3254
3386
|
rotation: Math.PI,
|
|
@@ -3265,7 +3397,7 @@ var SOT363 = () => {
|
|
|
3265
3397
|
},
|
|
3266
3398
|
2
|
|
3267
3399
|
),
|
|
3268
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ jsx50(
|
|
3269
3401
|
SmdChipLead,
|
|
3270
3402
|
{
|
|
3271
3403
|
rotation: Math.PI,
|
|
@@ -3282,7 +3414,7 @@ var SOT363 = () => {
|
|
|
3282
3414
|
},
|
|
3283
3415
|
3
|
|
3284
3416
|
),
|
|
3285
|
-
/* @__PURE__ */
|
|
3417
|
+
/* @__PURE__ */ jsx50(
|
|
3286
3418
|
SmdChipLead,
|
|
3287
3419
|
{
|
|
3288
3420
|
position: {
|
|
@@ -3298,7 +3430,7 @@ var SOT363 = () => {
|
|
|
3298
3430
|
},
|
|
3299
3431
|
3
|
|
3300
3432
|
),
|
|
3301
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ jsx50(
|
|
3302
3434
|
SmdChipLead,
|
|
3303
3435
|
{
|
|
3304
3436
|
position: {
|
|
@@ -3314,7 +3446,7 @@ var SOT363 = () => {
|
|
|
3314
3446
|
},
|
|
3315
3447
|
1
|
|
3316
3448
|
),
|
|
3317
|
-
/* @__PURE__ */
|
|
3449
|
+
/* @__PURE__ */ jsx50(
|
|
3318
3450
|
SmdChipLead,
|
|
3319
3451
|
{
|
|
3320
3452
|
position: {
|
|
@@ -3330,7 +3462,7 @@ var SOT363 = () => {
|
|
|
3330
3462
|
},
|
|
3331
3463
|
2
|
|
3332
3464
|
),
|
|
3333
|
-
/* @__PURE__ */
|
|
3465
|
+
/* @__PURE__ */ jsx50(
|
|
3334
3466
|
ChipBody,
|
|
3335
3467
|
{
|
|
3336
3468
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3351,14 +3483,14 @@ var SOT363 = () => {
|
|
|
3351
3483
|
var SOT_363_default = SOT363;
|
|
3352
3484
|
|
|
3353
3485
|
// lib/Footprinter3d.tsx
|
|
3354
|
-
import { jsx as
|
|
3486
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
3355
3487
|
var Footprinter3d = ({ footprint }) => {
|
|
3356
3488
|
const fpJson = fp3.string(footprint).json();
|
|
3357
3489
|
switch (fpJson.fn) {
|
|
3358
3490
|
case "dip":
|
|
3359
|
-
return /* @__PURE__ */
|
|
3491
|
+
return /* @__PURE__ */ jsx51(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3360
3492
|
case "tssop":
|
|
3361
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ jsx51(
|
|
3362
3494
|
Tssop,
|
|
3363
3495
|
{
|
|
3364
3496
|
pinCount: fpJson.num_pins,
|
|
@@ -3369,7 +3501,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3369
3501
|
}
|
|
3370
3502
|
);
|
|
3371
3503
|
case "msop":
|
|
3372
|
-
return /* @__PURE__ */
|
|
3504
|
+
return /* @__PURE__ */ jsx51(
|
|
3373
3505
|
MSOP,
|
|
3374
3506
|
{
|
|
3375
3507
|
pinCount: fpJson.num_pins,
|
|
@@ -3380,7 +3512,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3380
3512
|
}
|
|
3381
3513
|
);
|
|
3382
3514
|
case "vssop":
|
|
3383
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ jsx51(
|
|
3384
3516
|
VSSOP,
|
|
3385
3517
|
{
|
|
3386
3518
|
pinCount: fpJson.num_pins,
|
|
@@ -3392,7 +3524,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3392
3524
|
}
|
|
3393
3525
|
);
|
|
3394
3526
|
case "qfp":
|
|
3395
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ jsx51(
|
|
3396
3528
|
QFP,
|
|
3397
3529
|
{
|
|
3398
3530
|
pinCount: fpJson.num_pins,
|
|
@@ -3403,12 +3535,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3403
3535
|
}
|
|
3404
3536
|
);
|
|
3405
3537
|
case "tqfp":
|
|
3406
|
-
return /* @__PURE__ */
|
|
3538
|
+
return /* @__PURE__ */ jsx51(tqfp_default, {});
|
|
3407
3539
|
case "lqfp":
|
|
3408
|
-
return /* @__PURE__ */
|
|
3540
|
+
return /* @__PURE__ */ jsx51(LQFP, { pinCount: fpJson.num_pins });
|
|
3409
3541
|
case "qfn": {
|
|
3410
3542
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3411
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsx51(
|
|
3412
3544
|
qfn_default,
|
|
3413
3545
|
{
|
|
3414
3546
|
num_pins: fpJson.num_pins,
|
|
@@ -3426,7 +3558,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3426
3558
|
}
|
|
3427
3559
|
case "dfn": {
|
|
3428
3560
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3429
|
-
return /* @__PURE__ */
|
|
3561
|
+
return /* @__PURE__ */ jsx51(
|
|
3430
3562
|
DFN,
|
|
3431
3563
|
{
|
|
3432
3564
|
num_pins: fpJson.num_pins,
|
|
@@ -3444,41 +3576,43 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3444
3576
|
}
|
|
3445
3577
|
case "pinrow":
|
|
3446
3578
|
if (fpJson.male)
|
|
3447
|
-
return /* @__PURE__ */
|
|
3579
|
+
return /* @__PURE__ */ jsx51(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3448
3580
|
if (fpJson.female)
|
|
3449
|
-
return /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ jsx51(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3450
3582
|
case "cap": {
|
|
3451
3583
|
switch (fpJson.imperial) {
|
|
3452
3584
|
case "0402":
|
|
3453
|
-
return /* @__PURE__ */
|
|
3585
|
+
return /* @__PURE__ */ jsx51(A0402, { color: "#856c4d" });
|
|
3454
3586
|
case "0603":
|
|
3455
|
-
return /* @__PURE__ */
|
|
3587
|
+
return /* @__PURE__ */ jsx51(A0603, { color: "#856c4d" });
|
|
3456
3588
|
case "0805":
|
|
3457
|
-
return /* @__PURE__ */
|
|
3589
|
+
return /* @__PURE__ */ jsx51(A0805, { color: "#856c4d" });
|
|
3458
3590
|
case "0201":
|
|
3459
|
-
return /* @__PURE__ */
|
|
3591
|
+
return /* @__PURE__ */ jsx51(A0201, { color: "#856c4d" });
|
|
3460
3592
|
case "01005":
|
|
3461
|
-
return /* @__PURE__ */
|
|
3593
|
+
return /* @__PURE__ */ jsx51(A01005, { color: "#856c4d" });
|
|
3462
3594
|
case "1206":
|
|
3463
|
-
return /* @__PURE__ */
|
|
3595
|
+
return /* @__PURE__ */ jsx51(A1206, { color: "#856c4d" });
|
|
3464
3596
|
case "1210":
|
|
3465
|
-
return /* @__PURE__ */
|
|
3597
|
+
return /* @__PURE__ */ jsx51(A1210, { color: "#856c4d" });
|
|
3466
3598
|
case "2010":
|
|
3467
|
-
return /* @__PURE__ */
|
|
3599
|
+
return /* @__PURE__ */ jsx51(A2010, { color: "#856c4d" });
|
|
3468
3600
|
case "2512":
|
|
3469
|
-
return /* @__PURE__ */
|
|
3601
|
+
return /* @__PURE__ */ jsx51(A2512, { color: "#856c4d" });
|
|
3470
3602
|
}
|
|
3471
3603
|
}
|
|
3472
3604
|
case "sot235":
|
|
3473
|
-
return /* @__PURE__ */
|
|
3605
|
+
return /* @__PURE__ */ jsx51(SOT_235_default, {});
|
|
3606
|
+
case "sot457":
|
|
3607
|
+
return /* @__PURE__ */ jsx51(SOT457, {});
|
|
3474
3608
|
case "sot223":
|
|
3475
|
-
return /* @__PURE__ */
|
|
3609
|
+
return /* @__PURE__ */ jsx51(SOT223, {});
|
|
3476
3610
|
case "sot323":
|
|
3477
|
-
return /* @__PURE__ */
|
|
3611
|
+
return /* @__PURE__ */ jsx51(SOT323, {});
|
|
3478
3612
|
case "sot363":
|
|
3479
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ jsx51(SOT_363_default, {});
|
|
3480
3614
|
case "pushbutton":
|
|
3481
|
-
return /* @__PURE__ */
|
|
3615
|
+
return /* @__PURE__ */ jsx51(
|
|
3482
3616
|
PushButton,
|
|
3483
3617
|
{
|
|
3484
3618
|
width: fpJson.w,
|
|
@@ -3487,7 +3621,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3487
3621
|
}
|
|
3488
3622
|
);
|
|
3489
3623
|
case "soic":
|
|
3490
|
-
return /* @__PURE__ */
|
|
3624
|
+
return /* @__PURE__ */ jsx51(
|
|
3491
3625
|
SOIC,
|
|
3492
3626
|
{
|
|
3493
3627
|
pinCount: fpJson.num_pins,
|
|
@@ -3498,33 +3632,33 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3498
3632
|
}
|
|
3499
3633
|
);
|
|
3500
3634
|
case "sod523":
|
|
3501
|
-
return /* @__PURE__ */
|
|
3635
|
+
return /* @__PURE__ */ jsx51(SOD523, {});
|
|
3502
3636
|
case "sod882":
|
|
3503
|
-
return /* @__PURE__ */
|
|
3637
|
+
return /* @__PURE__ */ jsx51(SOD882, {});
|
|
3504
3638
|
case "sma":
|
|
3505
|
-
return /* @__PURE__ */
|
|
3639
|
+
return /* @__PURE__ */ jsx51(SMA, {});
|
|
3506
3640
|
case "smb":
|
|
3507
|
-
return /* @__PURE__ */
|
|
3641
|
+
return /* @__PURE__ */ jsx51(SMB, {});
|
|
3508
3642
|
case "smc":
|
|
3509
|
-
return /* @__PURE__ */
|
|
3643
|
+
return /* @__PURE__ */ jsx51(SMC, {});
|
|
3510
3644
|
case "smf":
|
|
3511
|
-
return /* @__PURE__ */
|
|
3645
|
+
return /* @__PURE__ */ jsx51(SMF, {});
|
|
3512
3646
|
case "sod123f":
|
|
3513
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsx51(SOD123F, {});
|
|
3514
3648
|
case "sod123fl":
|
|
3515
|
-
return /* @__PURE__ */
|
|
3649
|
+
return /* @__PURE__ */ jsx51(SOD123FL, {});
|
|
3516
3650
|
case "sod923":
|
|
3517
|
-
return /* @__PURE__ */
|
|
3651
|
+
return /* @__PURE__ */ jsx51(SOD923, {});
|
|
3518
3652
|
case "hc49":
|
|
3519
|
-
return /* @__PURE__ */
|
|
3653
|
+
return /* @__PURE__ */ jsx51(HC49, {});
|
|
3520
3654
|
case "micromelf":
|
|
3521
|
-
return /* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ jsx51(MicroMELF, {});
|
|
3522
3656
|
case "minimelf":
|
|
3523
|
-
return /* @__PURE__ */
|
|
3657
|
+
return /* @__PURE__ */ jsx51(MINIMELF, {});
|
|
3524
3658
|
case "melf":
|
|
3525
|
-
return /* @__PURE__ */
|
|
3659
|
+
return /* @__PURE__ */ jsx51(MELF, {});
|
|
3526
3660
|
case "ms012":
|
|
3527
|
-
return /* @__PURE__ */
|
|
3661
|
+
return /* @__PURE__ */ jsx51(
|
|
3528
3662
|
MS012,
|
|
3529
3663
|
{
|
|
3530
3664
|
pinCount: fpJson.num_pins,
|
|
@@ -3534,39 +3668,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3534
3668
|
}
|
|
3535
3669
|
);
|
|
3536
3670
|
case "sot723":
|
|
3537
|
-
return /* @__PURE__ */
|
|
3671
|
+
return /* @__PURE__ */ jsx51(SOT723, {});
|
|
3538
3672
|
case "to220":
|
|
3539
|
-
return /* @__PURE__ */
|
|
3673
|
+
return /* @__PURE__ */ jsx51(TO220, {});
|
|
3540
3674
|
case "to92":
|
|
3541
|
-
return /* @__PURE__ */
|
|
3675
|
+
return /* @__PURE__ */ jsx51(TO92, {});
|
|
3542
3676
|
}
|
|
3543
3677
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3544
3678
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3545
3679
|
switch (fpJson.imperial) {
|
|
3546
3680
|
case "0402":
|
|
3547
|
-
return /* @__PURE__ */
|
|
3681
|
+
return /* @__PURE__ */ jsx51(A0402, { color });
|
|
3548
3682
|
case "0603":
|
|
3549
|
-
return /* @__PURE__ */
|
|
3683
|
+
return /* @__PURE__ */ jsx51(A0603, { color });
|
|
3550
3684
|
case "0805":
|
|
3551
|
-
return /* @__PURE__ */
|
|
3685
|
+
return /* @__PURE__ */ jsx51(A0805, { color });
|
|
3552
3686
|
case "0201":
|
|
3553
|
-
return /* @__PURE__ */
|
|
3687
|
+
return /* @__PURE__ */ jsx51(A0201, { color });
|
|
3554
3688
|
case "01005":
|
|
3555
|
-
return /* @__PURE__ */
|
|
3689
|
+
return /* @__PURE__ */ jsx51(A01005, { color });
|
|
3556
3690
|
case "1206":
|
|
3557
|
-
return /* @__PURE__ */
|
|
3691
|
+
return /* @__PURE__ */ jsx51(A1206, { color });
|
|
3558
3692
|
case "1210":
|
|
3559
|
-
return /* @__PURE__ */
|
|
3693
|
+
return /* @__PURE__ */ jsx51(A1210, { color });
|
|
3560
3694
|
case "2010":
|
|
3561
|
-
return /* @__PURE__ */
|
|
3695
|
+
return /* @__PURE__ */ jsx51(A2010, { color });
|
|
3562
3696
|
case "2512":
|
|
3563
|
-
return /* @__PURE__ */
|
|
3697
|
+
return /* @__PURE__ */ jsx51(A2512, { color });
|
|
3564
3698
|
}
|
|
3565
3699
|
return null;
|
|
3566
3700
|
};
|
|
3567
3701
|
|
|
3568
3702
|
// lib/SOT-23-3P.tsx
|
|
3569
|
-
import { Fragment as
|
|
3703
|
+
import { Fragment as Fragment46, jsx as jsx52, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3570
3704
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3571
3705
|
const bodyWidth = 1.3;
|
|
3572
3706
|
const bodyLength10 = 2.9;
|
|
@@ -3577,8 +3711,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3577
3711
|
const padContactLength = 0.4;
|
|
3578
3712
|
const padThickness = leadThickness / 2;
|
|
3579
3713
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3580
|
-
return /* @__PURE__ */
|
|
3581
|
-
/* @__PURE__ */
|
|
3714
|
+
return /* @__PURE__ */ jsxs49(Fragment46, { children: [
|
|
3715
|
+
/* @__PURE__ */ jsx52(
|
|
3582
3716
|
SmdChipLead,
|
|
3583
3717
|
{
|
|
3584
3718
|
rotation: Math.PI,
|
|
@@ -3595,7 +3729,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3595
3729
|
},
|
|
3596
3730
|
1
|
|
3597
3731
|
),
|
|
3598
|
-
/* @__PURE__ */
|
|
3732
|
+
/* @__PURE__ */ jsx52(
|
|
3599
3733
|
SmdChipLead,
|
|
3600
3734
|
{
|
|
3601
3735
|
rotation: Math.PI,
|
|
@@ -3612,7 +3746,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3612
3746
|
},
|
|
3613
3747
|
2
|
|
3614
3748
|
),
|
|
3615
|
-
/* @__PURE__ */
|
|
3749
|
+
/* @__PURE__ */ jsx52(
|
|
3616
3750
|
SmdChipLead,
|
|
3617
3751
|
{
|
|
3618
3752
|
position: {
|
|
@@ -3628,7 +3762,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3628
3762
|
},
|
|
3629
3763
|
3
|
|
3630
3764
|
),
|
|
3631
|
-
/* @__PURE__ */
|
|
3765
|
+
/* @__PURE__ */ jsx52(
|
|
3632
3766
|
ChipBody,
|
|
3633
3767
|
{
|
|
3634
3768
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3642,7 +3776,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3642
3776
|
|
|
3643
3777
|
// lib/SOT-563.tsx
|
|
3644
3778
|
import { Cuboid as Cuboid33, Translate as Translate21, Rotate as Rotate10, Colorize as Colorize26 } from "jscad-fiber";
|
|
3645
|
-
import { Fragment as
|
|
3779
|
+
import { Fragment as Fragment47, jsx as jsx53, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3646
3780
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3647
3781
|
const bodyWidth = 1.2;
|
|
3648
3782
|
const bodyLength10 = 1.6;
|
|
@@ -3652,11 +3786,11 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3652
3786
|
const leadHeight = 0.13;
|
|
3653
3787
|
const leadSpacing = 0.5;
|
|
3654
3788
|
const bodyZOffset = -0.4;
|
|
3655
|
-
return /* @__PURE__ */
|
|
3656
|
-
/* @__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] }) }) }) }),
|
|
3657
3791
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3658
3792
|
// Left lead
|
|
3659
|
-
/* @__PURE__ */
|
|
3793
|
+
/* @__PURE__ */ jsx53(
|
|
3660
3794
|
Translate21,
|
|
3661
3795
|
{
|
|
3662
3796
|
center: [
|
|
@@ -3664,16 +3798,16 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3664
3798
|
yOffset * leadSpacing,
|
|
3665
3799
|
leadHeight / 2
|
|
3666
3800
|
],
|
|
3667
|
-
children: /* @__PURE__ */
|
|
3801
|
+
children: /* @__PURE__ */ jsx53(Cuboid33, { size: [leadLength, leadWidth, leadHeight] })
|
|
3668
3802
|
},
|
|
3669
3803
|
`left-${index}`
|
|
3670
3804
|
),
|
|
3671
3805
|
// Right lead
|
|
3672
|
-
/* @__PURE__ */
|
|
3806
|
+
/* @__PURE__ */ jsx53(
|
|
3673
3807
|
Translate21,
|
|
3674
3808
|
{
|
|
3675
3809
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3676
|
-
children: /* @__PURE__ */
|
|
3810
|
+
children: /* @__PURE__ */ jsx53(Cuboid33, { size: [leadLength, leadWidth, leadHeight] })
|
|
3677
3811
|
},
|
|
3678
3812
|
`right-${index}`
|
|
3679
3813
|
)
|
|
@@ -3682,7 +3816,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3682
3816
|
};
|
|
3683
3817
|
|
|
3684
3818
|
// lib/sod-123.tsx
|
|
3685
|
-
import { Fragment as
|
|
3819
|
+
import { Fragment as Fragment48, jsx as jsx54, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
3686
3820
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3687
3821
|
const bodyWidth = 2.9;
|
|
3688
3822
|
const bodyLength10 = 1.3;
|
|
@@ -3693,8 +3827,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3693
3827
|
const padContactLength = 0.4;
|
|
3694
3828
|
const padThickness = leadThickness / 2;
|
|
3695
3829
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3696
|
-
return /* @__PURE__ */
|
|
3697
|
-
/* @__PURE__ */
|
|
3830
|
+
return /* @__PURE__ */ jsxs51(Fragment48, { children: [
|
|
3831
|
+
/* @__PURE__ */ jsx54(
|
|
3698
3832
|
SmdChipLead,
|
|
3699
3833
|
{
|
|
3700
3834
|
position: {
|
|
@@ -3710,7 +3844,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3710
3844
|
},
|
|
3711
3845
|
1
|
|
3712
3846
|
),
|
|
3713
|
-
/* @__PURE__ */
|
|
3847
|
+
/* @__PURE__ */ jsx54(
|
|
3714
3848
|
SmdChipLead,
|
|
3715
3849
|
{
|
|
3716
3850
|
rotation: Math.PI,
|
|
@@ -3727,7 +3861,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3727
3861
|
},
|
|
3728
3862
|
2
|
|
3729
3863
|
),
|
|
3730
|
-
/* @__PURE__ */
|
|
3864
|
+
/* @__PURE__ */ jsx54(
|
|
3731
3865
|
ChipBody,
|
|
3732
3866
|
{
|
|
3733
3867
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3779,6 +3913,7 @@ export {
|
|
|
3779
3913
|
SOT233P,
|
|
3780
3914
|
SOT323,
|
|
3781
3915
|
SOT363,
|
|
3916
|
+
SOT457,
|
|
3782
3917
|
SOT563,
|
|
3783
3918
|
SOT723,
|
|
3784
3919
|
SmdChipLead,
|