jscad-electronics 0.0.91 → 0.0.92
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 +204 -69
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +133 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -237,6 +237,8 @@ declare const SOT223: () => react_jsx_runtime.JSX.Element;
|
|
|
237
237
|
|
|
238
238
|
declare const SOT323: () => react_jsx_runtime.JSX.Element;
|
|
239
239
|
|
|
240
|
+
declare const SOT363: () => react_jsx_runtime.JSX.Element;
|
|
241
|
+
|
|
240
242
|
interface MINIMELFProps {
|
|
241
243
|
bodyLength?: number;
|
|
242
244
|
bodyDiameter?: number;
|
|
@@ -293,4 +295,4 @@ declare const MS012: ({ pinCount, padContactLength, leadWidth, pitch, }: {
|
|
|
293
295
|
|
|
294
296
|
declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
295
297
|
|
|
296
|
-
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, SOT563, SOT723, SmdChipLead, type SmdChipLeadProps, TO220, TQFP, Tssop, VSSOP };
|
|
298
|
+
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, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -3172,15 +3172,147 @@ var TO220 = () => {
|
|
|
3172
3172
|
] }) });
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
+
// lib/SOT-363.tsx
|
|
3176
|
+
import { Fragment as Fragment44, jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3177
|
+
var SOT363 = () => {
|
|
3178
|
+
const fullWidth = 2;
|
|
3179
|
+
const bodyWidth = 1.25;
|
|
3180
|
+
const bodyLength10 = 2;
|
|
3181
|
+
const bodyHeight = 1.1;
|
|
3182
|
+
const leadWidth = 0.25;
|
|
3183
|
+
const leadThickness = 0.15;
|
|
3184
|
+
const leadHeight = 0.85;
|
|
3185
|
+
const padContactLength = 0.3;
|
|
3186
|
+
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3187
|
+
return /* @__PURE__ */ jsxs46(Fragment44, { children: [
|
|
3188
|
+
/* @__PURE__ */ jsx48(
|
|
3189
|
+
SmdChipLead,
|
|
3190
|
+
{
|
|
3191
|
+
rotation: Math.PI,
|
|
3192
|
+
position: {
|
|
3193
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3194
|
+
y: -0.65,
|
|
3195
|
+
z: leadThickness / 2
|
|
3196
|
+
},
|
|
3197
|
+
width: leadWidth,
|
|
3198
|
+
thickness: leadThickness,
|
|
3199
|
+
padContactLength,
|
|
3200
|
+
bodyDistance: extendedBodyDistance,
|
|
3201
|
+
height: leadHeight
|
|
3202
|
+
},
|
|
3203
|
+
1
|
|
3204
|
+
),
|
|
3205
|
+
/* @__PURE__ */ jsx48(
|
|
3206
|
+
SmdChipLead,
|
|
3207
|
+
{
|
|
3208
|
+
rotation: Math.PI,
|
|
3209
|
+
position: {
|
|
3210
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3211
|
+
y: 0,
|
|
3212
|
+
z: leadThickness / 2
|
|
3213
|
+
},
|
|
3214
|
+
width: leadWidth,
|
|
3215
|
+
thickness: leadThickness,
|
|
3216
|
+
padContactLength,
|
|
3217
|
+
bodyDistance: extendedBodyDistance,
|
|
3218
|
+
height: leadHeight
|
|
3219
|
+
},
|
|
3220
|
+
2
|
|
3221
|
+
),
|
|
3222
|
+
/* @__PURE__ */ jsx48(
|
|
3223
|
+
SmdChipLead,
|
|
3224
|
+
{
|
|
3225
|
+
rotation: Math.PI,
|
|
3226
|
+
position: {
|
|
3227
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3228
|
+
y: 0.65,
|
|
3229
|
+
z: leadThickness / 2
|
|
3230
|
+
},
|
|
3231
|
+
width: leadWidth,
|
|
3232
|
+
thickness: leadThickness,
|
|
3233
|
+
padContactLength,
|
|
3234
|
+
bodyDistance: extendedBodyDistance,
|
|
3235
|
+
height: leadHeight
|
|
3236
|
+
},
|
|
3237
|
+
3
|
|
3238
|
+
),
|
|
3239
|
+
/* @__PURE__ */ jsx48(
|
|
3240
|
+
SmdChipLead,
|
|
3241
|
+
{
|
|
3242
|
+
position: {
|
|
3243
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3244
|
+
y: 0,
|
|
3245
|
+
z: leadThickness / 2
|
|
3246
|
+
},
|
|
3247
|
+
width: leadWidth,
|
|
3248
|
+
thickness: leadThickness,
|
|
3249
|
+
padContactLength,
|
|
3250
|
+
bodyDistance: extendedBodyDistance,
|
|
3251
|
+
height: leadHeight
|
|
3252
|
+
},
|
|
3253
|
+
3
|
|
3254
|
+
),
|
|
3255
|
+
/* @__PURE__ */ jsx48(
|
|
3256
|
+
SmdChipLead,
|
|
3257
|
+
{
|
|
3258
|
+
position: {
|
|
3259
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3260
|
+
y: -0.65,
|
|
3261
|
+
z: leadThickness / 2
|
|
3262
|
+
},
|
|
3263
|
+
width: leadWidth,
|
|
3264
|
+
thickness: leadThickness,
|
|
3265
|
+
padContactLength,
|
|
3266
|
+
bodyDistance: extendedBodyDistance,
|
|
3267
|
+
height: leadHeight
|
|
3268
|
+
},
|
|
3269
|
+
1
|
|
3270
|
+
),
|
|
3271
|
+
/* @__PURE__ */ jsx48(
|
|
3272
|
+
SmdChipLead,
|
|
3273
|
+
{
|
|
3274
|
+
position: {
|
|
3275
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3276
|
+
y: 0.65,
|
|
3277
|
+
z: leadThickness / 2
|
|
3278
|
+
},
|
|
3279
|
+
width: leadWidth,
|
|
3280
|
+
thickness: leadThickness,
|
|
3281
|
+
padContactLength,
|
|
3282
|
+
bodyDistance: extendedBodyDistance,
|
|
3283
|
+
height: leadHeight
|
|
3284
|
+
},
|
|
3285
|
+
2
|
|
3286
|
+
),
|
|
3287
|
+
/* @__PURE__ */ jsx48(
|
|
3288
|
+
ChipBody,
|
|
3289
|
+
{
|
|
3290
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3291
|
+
width: bodyWidth,
|
|
3292
|
+
length: bodyLength10,
|
|
3293
|
+
height: bodyHeight,
|
|
3294
|
+
straightHeightRatio: 0.6,
|
|
3295
|
+
notchPosition: {
|
|
3296
|
+
x: bodyWidth / 2 - 0.25,
|
|
3297
|
+
y: bodyHeight / 2 + 0.2,
|
|
3298
|
+
z: bodyHeight
|
|
3299
|
+
},
|
|
3300
|
+
heightAboveSurface: 0.1
|
|
3301
|
+
}
|
|
3302
|
+
)
|
|
3303
|
+
] });
|
|
3304
|
+
};
|
|
3305
|
+
var SOT_363_default = SOT363;
|
|
3306
|
+
|
|
3175
3307
|
// lib/Footprinter3d.tsx
|
|
3176
|
-
import { jsx as
|
|
3308
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
3177
3309
|
var Footprinter3d = ({ footprint }) => {
|
|
3178
3310
|
const fpJson = fp3.string(footprint).json();
|
|
3179
3311
|
switch (fpJson.fn) {
|
|
3180
3312
|
case "dip":
|
|
3181
|
-
return /* @__PURE__ */
|
|
3313
|
+
return /* @__PURE__ */ jsx49(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3182
3314
|
case "tssop":
|
|
3183
|
-
return /* @__PURE__ */
|
|
3315
|
+
return /* @__PURE__ */ jsx49(
|
|
3184
3316
|
Tssop,
|
|
3185
3317
|
{
|
|
3186
3318
|
pinCount: fpJson.num_pins,
|
|
@@ -3191,7 +3323,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3191
3323
|
}
|
|
3192
3324
|
);
|
|
3193
3325
|
case "msop":
|
|
3194
|
-
return /* @__PURE__ */
|
|
3326
|
+
return /* @__PURE__ */ jsx49(
|
|
3195
3327
|
MSOP,
|
|
3196
3328
|
{
|
|
3197
3329
|
pinCount: fpJson.num_pins,
|
|
@@ -3202,7 +3334,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3202
3334
|
}
|
|
3203
3335
|
);
|
|
3204
3336
|
case "vssop":
|
|
3205
|
-
return /* @__PURE__ */
|
|
3337
|
+
return /* @__PURE__ */ jsx49(
|
|
3206
3338
|
VSSOP,
|
|
3207
3339
|
{
|
|
3208
3340
|
pinCount: fpJson.num_pins,
|
|
@@ -3214,7 +3346,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3214
3346
|
}
|
|
3215
3347
|
);
|
|
3216
3348
|
case "qfp":
|
|
3217
|
-
return /* @__PURE__ */
|
|
3349
|
+
return /* @__PURE__ */ jsx49(
|
|
3218
3350
|
QFP,
|
|
3219
3351
|
{
|
|
3220
3352
|
pinCount: fpJson.num_pins,
|
|
@@ -3225,12 +3357,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3225
3357
|
}
|
|
3226
3358
|
);
|
|
3227
3359
|
case "tqfp":
|
|
3228
|
-
return /* @__PURE__ */
|
|
3360
|
+
return /* @__PURE__ */ jsx49(tqfp_default, {});
|
|
3229
3361
|
case "lqfp":
|
|
3230
|
-
return /* @__PURE__ */
|
|
3362
|
+
return /* @__PURE__ */ jsx49(LQFP, { pinCount: fpJson.num_pins });
|
|
3231
3363
|
case "qfn": {
|
|
3232
3364
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3233
|
-
return /* @__PURE__ */
|
|
3365
|
+
return /* @__PURE__ */ jsx49(
|
|
3234
3366
|
qfn_default,
|
|
3235
3367
|
{
|
|
3236
3368
|
num_pins: fpJson.num_pins,
|
|
@@ -3248,7 +3380,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3248
3380
|
}
|
|
3249
3381
|
case "dfn": {
|
|
3250
3382
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3251
|
-
return /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ jsx49(
|
|
3252
3384
|
DFN,
|
|
3253
3385
|
{
|
|
3254
3386
|
num_pins: fpJson.num_pins,
|
|
@@ -3266,39 +3398,41 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3266
3398
|
}
|
|
3267
3399
|
case "pinrow":
|
|
3268
3400
|
if (fpJson.male)
|
|
3269
|
-
return /* @__PURE__ */
|
|
3401
|
+
return /* @__PURE__ */ jsx49(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3270
3402
|
if (fpJson.female)
|
|
3271
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ jsx49(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3272
3404
|
case "cap": {
|
|
3273
3405
|
switch (fpJson.imperial) {
|
|
3274
3406
|
case "0402":
|
|
3275
|
-
return /* @__PURE__ */
|
|
3407
|
+
return /* @__PURE__ */ jsx49(A0402, { color: "#856c4d" });
|
|
3276
3408
|
case "0603":
|
|
3277
|
-
return /* @__PURE__ */
|
|
3409
|
+
return /* @__PURE__ */ jsx49(A0603, { color: "#856c4d" });
|
|
3278
3410
|
case "0805":
|
|
3279
|
-
return /* @__PURE__ */
|
|
3411
|
+
return /* @__PURE__ */ jsx49(A0805, { color: "#856c4d" });
|
|
3280
3412
|
case "0201":
|
|
3281
|
-
return /* @__PURE__ */
|
|
3413
|
+
return /* @__PURE__ */ jsx49(A0201, { color: "#856c4d" });
|
|
3282
3414
|
case "01005":
|
|
3283
|
-
return /* @__PURE__ */
|
|
3415
|
+
return /* @__PURE__ */ jsx49(A01005, { color: "#856c4d" });
|
|
3284
3416
|
case "1206":
|
|
3285
|
-
return /* @__PURE__ */
|
|
3417
|
+
return /* @__PURE__ */ jsx49(A1206, { color: "#856c4d" });
|
|
3286
3418
|
case "1210":
|
|
3287
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ jsx49(A1210, { color: "#856c4d" });
|
|
3288
3420
|
case "2010":
|
|
3289
|
-
return /* @__PURE__ */
|
|
3421
|
+
return /* @__PURE__ */ jsx49(A2010, { color: "#856c4d" });
|
|
3290
3422
|
case "2512":
|
|
3291
|
-
return /* @__PURE__ */
|
|
3423
|
+
return /* @__PURE__ */ jsx49(A2512, { color: "#856c4d" });
|
|
3292
3424
|
}
|
|
3293
3425
|
}
|
|
3294
3426
|
case "sot235":
|
|
3295
|
-
return /* @__PURE__ */
|
|
3427
|
+
return /* @__PURE__ */ jsx49(SOT_235_default, {});
|
|
3296
3428
|
case "sot223":
|
|
3297
|
-
return /* @__PURE__ */
|
|
3429
|
+
return /* @__PURE__ */ jsx49(SOT223, {});
|
|
3298
3430
|
case "sot323":
|
|
3299
|
-
return /* @__PURE__ */
|
|
3431
|
+
return /* @__PURE__ */ jsx49(SOT323, {});
|
|
3432
|
+
case "sot363":
|
|
3433
|
+
return /* @__PURE__ */ jsx49(SOT_363_default, {});
|
|
3300
3434
|
case "pushbutton":
|
|
3301
|
-
return /* @__PURE__ */
|
|
3435
|
+
return /* @__PURE__ */ jsx49(
|
|
3302
3436
|
PushButton,
|
|
3303
3437
|
{
|
|
3304
3438
|
width: fpJson.w,
|
|
@@ -3307,7 +3441,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3307
3441
|
}
|
|
3308
3442
|
);
|
|
3309
3443
|
case "soic":
|
|
3310
|
-
return /* @__PURE__ */
|
|
3444
|
+
return /* @__PURE__ */ jsx49(
|
|
3311
3445
|
SOIC,
|
|
3312
3446
|
{
|
|
3313
3447
|
pinCount: fpJson.num_pins,
|
|
@@ -3318,33 +3452,33 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3318
3452
|
}
|
|
3319
3453
|
);
|
|
3320
3454
|
case "sod523":
|
|
3321
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsx49(SOD523, {});
|
|
3322
3456
|
case "sod882":
|
|
3323
|
-
return /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ jsx49(SOD882, {});
|
|
3324
3458
|
case "sma":
|
|
3325
|
-
return /* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ jsx49(SMA, {});
|
|
3326
3460
|
case "smb":
|
|
3327
|
-
return /* @__PURE__ */
|
|
3461
|
+
return /* @__PURE__ */ jsx49(SMB, {});
|
|
3328
3462
|
case "smc":
|
|
3329
|
-
return /* @__PURE__ */
|
|
3463
|
+
return /* @__PURE__ */ jsx49(SMC, {});
|
|
3330
3464
|
case "smf":
|
|
3331
|
-
return /* @__PURE__ */
|
|
3465
|
+
return /* @__PURE__ */ jsx49(SMF, {});
|
|
3332
3466
|
case "sod123f":
|
|
3333
|
-
return /* @__PURE__ */
|
|
3467
|
+
return /* @__PURE__ */ jsx49(SOD123F, {});
|
|
3334
3468
|
case "sod123fl":
|
|
3335
|
-
return /* @__PURE__ */
|
|
3469
|
+
return /* @__PURE__ */ jsx49(SOD123FL, {});
|
|
3336
3470
|
case "sod923":
|
|
3337
|
-
return /* @__PURE__ */
|
|
3471
|
+
return /* @__PURE__ */ jsx49(SOD923, {});
|
|
3338
3472
|
case "hc49":
|
|
3339
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ jsx49(HC49, {});
|
|
3340
3474
|
case "micromelf":
|
|
3341
|
-
return /* @__PURE__ */
|
|
3475
|
+
return /* @__PURE__ */ jsx49(MicroMELF, {});
|
|
3342
3476
|
case "minimelf":
|
|
3343
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ jsx49(MINIMELF, {});
|
|
3344
3478
|
case "melf":
|
|
3345
|
-
return /* @__PURE__ */
|
|
3479
|
+
return /* @__PURE__ */ jsx49(MELF, {});
|
|
3346
3480
|
case "ms012":
|
|
3347
|
-
return /* @__PURE__ */
|
|
3481
|
+
return /* @__PURE__ */ jsx49(
|
|
3348
3482
|
MS012,
|
|
3349
3483
|
{
|
|
3350
3484
|
pinCount: fpJson.num_pins,
|
|
@@ -3354,37 +3488,37 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3354
3488
|
}
|
|
3355
3489
|
);
|
|
3356
3490
|
case "sot723":
|
|
3357
|
-
return /* @__PURE__ */
|
|
3491
|
+
return /* @__PURE__ */ jsx49(SOT723, {});
|
|
3358
3492
|
case "to220":
|
|
3359
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ jsx49(TO220, {});
|
|
3360
3494
|
}
|
|
3361
3495
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3362
3496
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3363
3497
|
switch (fpJson.imperial) {
|
|
3364
3498
|
case "0402":
|
|
3365
|
-
return /* @__PURE__ */
|
|
3499
|
+
return /* @__PURE__ */ jsx49(A0402, { color });
|
|
3366
3500
|
case "0603":
|
|
3367
|
-
return /* @__PURE__ */
|
|
3501
|
+
return /* @__PURE__ */ jsx49(A0603, { color });
|
|
3368
3502
|
case "0805":
|
|
3369
|
-
return /* @__PURE__ */
|
|
3503
|
+
return /* @__PURE__ */ jsx49(A0805, { color });
|
|
3370
3504
|
case "0201":
|
|
3371
|
-
return /* @__PURE__ */
|
|
3505
|
+
return /* @__PURE__ */ jsx49(A0201, { color });
|
|
3372
3506
|
case "01005":
|
|
3373
|
-
return /* @__PURE__ */
|
|
3507
|
+
return /* @__PURE__ */ jsx49(A01005, { color });
|
|
3374
3508
|
case "1206":
|
|
3375
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx49(A1206, { color });
|
|
3376
3510
|
case "1210":
|
|
3377
|
-
return /* @__PURE__ */
|
|
3511
|
+
return /* @__PURE__ */ jsx49(A1210, { color });
|
|
3378
3512
|
case "2010":
|
|
3379
|
-
return /* @__PURE__ */
|
|
3513
|
+
return /* @__PURE__ */ jsx49(A2010, { color });
|
|
3380
3514
|
case "2512":
|
|
3381
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ jsx49(A2512, { color });
|
|
3382
3516
|
}
|
|
3383
3517
|
return null;
|
|
3384
3518
|
};
|
|
3385
3519
|
|
|
3386
3520
|
// lib/SOT-23-3P.tsx
|
|
3387
|
-
import { Fragment as
|
|
3521
|
+
import { Fragment as Fragment45, jsx as jsx50, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3388
3522
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3389
3523
|
const bodyWidth = 1.3;
|
|
3390
3524
|
const bodyLength10 = 2.9;
|
|
@@ -3395,8 +3529,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3395
3529
|
const padContactLength = 0.4;
|
|
3396
3530
|
const padThickness = leadThickness / 2;
|
|
3397
3531
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3398
|
-
return /* @__PURE__ */
|
|
3399
|
-
/* @__PURE__ */
|
|
3532
|
+
return /* @__PURE__ */ jsxs47(Fragment45, { children: [
|
|
3533
|
+
/* @__PURE__ */ jsx50(
|
|
3400
3534
|
SmdChipLead,
|
|
3401
3535
|
{
|
|
3402
3536
|
rotation: Math.PI,
|
|
@@ -3413,7 +3547,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3413
3547
|
},
|
|
3414
3548
|
1
|
|
3415
3549
|
),
|
|
3416
|
-
/* @__PURE__ */
|
|
3550
|
+
/* @__PURE__ */ jsx50(
|
|
3417
3551
|
SmdChipLead,
|
|
3418
3552
|
{
|
|
3419
3553
|
rotation: Math.PI,
|
|
@@ -3430,7 +3564,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3430
3564
|
},
|
|
3431
3565
|
2
|
|
3432
3566
|
),
|
|
3433
|
-
/* @__PURE__ */
|
|
3567
|
+
/* @__PURE__ */ jsx50(
|
|
3434
3568
|
SmdChipLead,
|
|
3435
3569
|
{
|
|
3436
3570
|
position: {
|
|
@@ -3446,7 +3580,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3446
3580
|
},
|
|
3447
3581
|
3
|
|
3448
3582
|
),
|
|
3449
|
-
/* @__PURE__ */
|
|
3583
|
+
/* @__PURE__ */ jsx50(
|
|
3450
3584
|
ChipBody,
|
|
3451
3585
|
{
|
|
3452
3586
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3460,7 +3594,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3460
3594
|
|
|
3461
3595
|
// lib/SOT-563.tsx
|
|
3462
3596
|
import { Cuboid as Cuboid32, Translate as Translate20, Rotate as Rotate10, Colorize as Colorize25 } from "jscad-fiber";
|
|
3463
|
-
import { Fragment as
|
|
3597
|
+
import { Fragment as Fragment46, jsx as jsx51, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3464
3598
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3465
3599
|
const bodyWidth = 1.2;
|
|
3466
3600
|
const bodyLength10 = 1.6;
|
|
@@ -3470,11 +3604,11 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3470
3604
|
const leadHeight = 0.13;
|
|
3471
3605
|
const leadSpacing = 0.5;
|
|
3472
3606
|
const bodyZOffset = -0.4;
|
|
3473
|
-
return /* @__PURE__ */
|
|
3474
|
-
/* @__PURE__ */
|
|
3607
|
+
return /* @__PURE__ */ jsxs48(Fragment46, { children: [
|
|
3608
|
+
/* @__PURE__ */ jsx51(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx51(Translate20, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx51(Colorize25, { color: "grey", children: /* @__PURE__ */ jsx51(Cuboid32, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3475
3609
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3476
3610
|
// Left lead
|
|
3477
|
-
/* @__PURE__ */
|
|
3611
|
+
/* @__PURE__ */ jsx51(
|
|
3478
3612
|
Translate20,
|
|
3479
3613
|
{
|
|
3480
3614
|
center: [
|
|
@@ -3482,16 +3616,16 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3482
3616
|
yOffset * leadSpacing,
|
|
3483
3617
|
leadHeight / 2
|
|
3484
3618
|
],
|
|
3485
|
-
children: /* @__PURE__ */
|
|
3619
|
+
children: /* @__PURE__ */ jsx51(Cuboid32, { size: [leadLength, leadWidth, leadHeight] })
|
|
3486
3620
|
},
|
|
3487
3621
|
`left-${index}`
|
|
3488
3622
|
),
|
|
3489
3623
|
// Right lead
|
|
3490
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ jsx51(
|
|
3491
3625
|
Translate20,
|
|
3492
3626
|
{
|
|
3493
3627
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3494
|
-
children: /* @__PURE__ */
|
|
3628
|
+
children: /* @__PURE__ */ jsx51(Cuboid32, { size: [leadLength, leadWidth, leadHeight] })
|
|
3495
3629
|
},
|
|
3496
3630
|
`right-${index}`
|
|
3497
3631
|
)
|
|
@@ -3500,7 +3634,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3500
3634
|
};
|
|
3501
3635
|
|
|
3502
3636
|
// lib/sod-123.tsx
|
|
3503
|
-
import { Fragment as
|
|
3637
|
+
import { Fragment as Fragment47, jsx as jsx52, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3504
3638
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3505
3639
|
const bodyWidth = 2.9;
|
|
3506
3640
|
const bodyLength10 = 1.3;
|
|
@@ -3511,8 +3645,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3511
3645
|
const padContactLength = 0.4;
|
|
3512
3646
|
const padThickness = leadThickness / 2;
|
|
3513
3647
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3514
|
-
return /* @__PURE__ */
|
|
3515
|
-
/* @__PURE__ */
|
|
3648
|
+
return /* @__PURE__ */ jsxs49(Fragment47, { children: [
|
|
3649
|
+
/* @__PURE__ */ jsx52(
|
|
3516
3650
|
SmdChipLead,
|
|
3517
3651
|
{
|
|
3518
3652
|
position: {
|
|
@@ -3528,7 +3662,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3528
3662
|
},
|
|
3529
3663
|
1
|
|
3530
3664
|
),
|
|
3531
|
-
/* @__PURE__ */
|
|
3665
|
+
/* @__PURE__ */ jsx52(
|
|
3532
3666
|
SmdChipLead,
|
|
3533
3667
|
{
|
|
3534
3668
|
rotation: Math.PI,
|
|
@@ -3545,7 +3679,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3545
3679
|
},
|
|
3546
3680
|
2
|
|
3547
3681
|
),
|
|
3548
|
-
/* @__PURE__ */
|
|
3682
|
+
/* @__PURE__ */ jsx52(
|
|
3549
3683
|
ChipBody,
|
|
3550
3684
|
{
|
|
3551
3685
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3596,6 +3730,7 @@ export {
|
|
|
3596
3730
|
SOT223,
|
|
3597
3731
|
SOT233P,
|
|
3598
3732
|
SOT323,
|
|
3733
|
+
SOT363,
|
|
3599
3734
|
SOT563,
|
|
3600
3735
|
SOT723,
|
|
3601
3736
|
SmdChipLead,
|