jscad-electronics 0.0.91 → 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 +5 -1
- package/dist/index.js +256 -72
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +172 -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,6 @@ declare const MS012: ({ pinCount, padContactLength, leadWidth, pitch, }: {
|
|
|
293
295
|
|
|
294
296
|
declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
295
297
|
|
|
296
|
-
|
|
298
|
+
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -3172,15 +3172,193 @@ var TO220 = () => {
|
|
|
3172
3172
|
] }) });
|
|
3173
3173
|
};
|
|
3174
3174
|
|
|
3175
|
+
// lib/TO92.tsx
|
|
3176
|
+
import {
|
|
3177
|
+
Colorize as Colorize25,
|
|
3178
|
+
Cuboid as Cuboid32,
|
|
3179
|
+
Hull as Hull16,
|
|
3180
|
+
Translate as Translate20,
|
|
3181
|
+
Cylinder as Cylinder9,
|
|
3182
|
+
Subtract as Subtract5
|
|
3183
|
+
} from "jscad-fiber";
|
|
3184
|
+
import { jsx as jsx48, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3185
|
+
var TO92 = () => {
|
|
3186
|
+
const bodyRadius = 2.4;
|
|
3187
|
+
const bodyHeight = 4.5;
|
|
3188
|
+
const flatCut = 1.1;
|
|
3189
|
+
const legWidth = 0.4;
|
|
3190
|
+
const legThickness = 0.25;
|
|
3191
|
+
const bodyZ = bodyHeight / 2;
|
|
3192
|
+
const bodyColor = "#222";
|
|
3193
|
+
const leadLength = 0.43;
|
|
3194
|
+
const leadTipSize = [leadLength, legWidth, 1.32];
|
|
3195
|
+
const leadSmallSize = [
|
|
3196
|
+
leadLength,
|
|
3197
|
+
legWidth,
|
|
3198
|
+
legThickness
|
|
3199
|
+
];
|
|
3200
|
+
const leadTipPos1 = [0, 0, -0.66];
|
|
3201
|
+
const leadMidPosA = [0, 0, -1.32];
|
|
3202
|
+
const leadMidPosB = [0, 1.28, -2.72];
|
|
3203
|
+
const leadTipPos2 = [0, 1.28, -8.9];
|
|
3204
|
+
const sideLeadZ = -7.5;
|
|
3205
|
+
return /* @__PURE__ */ jsxs46(Translate20, { center: [0, 1, 10.5], children: [
|
|
3206
|
+
/* @__PURE__ */ jsx48(Colorize25, { color: bodyColor, children: /* @__PURE__ */ jsxs46(Subtract5, { children: [
|
|
3207
|
+
/* @__PURE__ */ jsx48(Translate20, { center: [0, 0, bodyZ], children: /* @__PURE__ */ jsx48(Cylinder9, { radius: bodyRadius, height: bodyHeight }) }),
|
|
3208
|
+
/* @__PURE__ */ jsx48(Translate20, { center: [0, -(bodyRadius - flatCut / 2), bodyZ], children: /* @__PURE__ */ jsx48(Cuboid32, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] }) })
|
|
3209
|
+
] }) }),
|
|
3210
|
+
/* @__PURE__ */ jsx48(Translate20, { center: leadTipPos1, children: /* @__PURE__ */ jsx48(Cuboid32, { size: leadTipSize }) }),
|
|
3211
|
+
/* @__PURE__ */ jsxs46(Hull16, { children: [
|
|
3212
|
+
/* @__PURE__ */ jsx48(Translate20, { center: leadMidPosA, children: /* @__PURE__ */ jsx48(Cuboid32, { size: leadSmallSize }) }),
|
|
3213
|
+
/* @__PURE__ */ jsx48(Translate20, { center: leadMidPosB, children: /* @__PURE__ */ jsx48(Cuboid32, { size: leadSmallSize }) })
|
|
3214
|
+
] }),
|
|
3215
|
+
/* @__PURE__ */ jsx48(Translate20, { center: leadTipPos2, children: /* @__PURE__ */ jsx48(Cuboid32, { size: [leadLength, legWidth, 12.2] }) }),
|
|
3216
|
+
/* @__PURE__ */ jsx48(Translate20, { center: [1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx48(Cuboid32, { size: [leadLength, legWidth, 15] }) }),
|
|
3217
|
+
/* @__PURE__ */ jsx48(Translate20, { center: [-1.3, 0, sideLeadZ], children: /* @__PURE__ */ jsx48(Cuboid32, { size: [leadLength, legWidth, 15] }) })
|
|
3218
|
+
] });
|
|
3219
|
+
};
|
|
3220
|
+
|
|
3221
|
+
// lib/SOT-363.tsx
|
|
3222
|
+
import { Fragment as Fragment44, jsx as jsx49, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3223
|
+
var SOT363 = () => {
|
|
3224
|
+
const fullWidth = 2;
|
|
3225
|
+
const bodyWidth = 1.25;
|
|
3226
|
+
const bodyLength10 = 2;
|
|
3227
|
+
const bodyHeight = 1.1;
|
|
3228
|
+
const leadWidth = 0.25;
|
|
3229
|
+
const leadThickness = 0.15;
|
|
3230
|
+
const leadHeight = 0.85;
|
|
3231
|
+
const padContactLength = 0.3;
|
|
3232
|
+
const extendedBodyDistance = fullWidth - bodyWidth;
|
|
3233
|
+
return /* @__PURE__ */ jsxs47(Fragment44, { children: [
|
|
3234
|
+
/* @__PURE__ */ jsx49(
|
|
3235
|
+
SmdChipLead,
|
|
3236
|
+
{
|
|
3237
|
+
rotation: Math.PI,
|
|
3238
|
+
position: {
|
|
3239
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3240
|
+
y: -0.65,
|
|
3241
|
+
z: leadThickness / 2
|
|
3242
|
+
},
|
|
3243
|
+
width: leadWidth,
|
|
3244
|
+
thickness: leadThickness,
|
|
3245
|
+
padContactLength,
|
|
3246
|
+
bodyDistance: extendedBodyDistance,
|
|
3247
|
+
height: leadHeight
|
|
3248
|
+
},
|
|
3249
|
+
1
|
|
3250
|
+
),
|
|
3251
|
+
/* @__PURE__ */ jsx49(
|
|
3252
|
+
SmdChipLead,
|
|
3253
|
+
{
|
|
3254
|
+
rotation: Math.PI,
|
|
3255
|
+
position: {
|
|
3256
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3257
|
+
y: 0,
|
|
3258
|
+
z: leadThickness / 2
|
|
3259
|
+
},
|
|
3260
|
+
width: leadWidth,
|
|
3261
|
+
thickness: leadThickness,
|
|
3262
|
+
padContactLength,
|
|
3263
|
+
bodyDistance: extendedBodyDistance,
|
|
3264
|
+
height: leadHeight
|
|
3265
|
+
},
|
|
3266
|
+
2
|
|
3267
|
+
),
|
|
3268
|
+
/* @__PURE__ */ jsx49(
|
|
3269
|
+
SmdChipLead,
|
|
3270
|
+
{
|
|
3271
|
+
rotation: Math.PI,
|
|
3272
|
+
position: {
|
|
3273
|
+
x: fullWidth / 2 + extendedBodyDistance / 4,
|
|
3274
|
+
y: 0.65,
|
|
3275
|
+
z: leadThickness / 2
|
|
3276
|
+
},
|
|
3277
|
+
width: leadWidth,
|
|
3278
|
+
thickness: leadThickness,
|
|
3279
|
+
padContactLength,
|
|
3280
|
+
bodyDistance: extendedBodyDistance,
|
|
3281
|
+
height: leadHeight
|
|
3282
|
+
},
|
|
3283
|
+
3
|
|
3284
|
+
),
|
|
3285
|
+
/* @__PURE__ */ jsx49(
|
|
3286
|
+
SmdChipLead,
|
|
3287
|
+
{
|
|
3288
|
+
position: {
|
|
3289
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3290
|
+
y: 0,
|
|
3291
|
+
z: leadThickness / 2
|
|
3292
|
+
},
|
|
3293
|
+
width: leadWidth,
|
|
3294
|
+
thickness: leadThickness,
|
|
3295
|
+
padContactLength,
|
|
3296
|
+
bodyDistance: extendedBodyDistance,
|
|
3297
|
+
height: leadHeight
|
|
3298
|
+
},
|
|
3299
|
+
3
|
|
3300
|
+
),
|
|
3301
|
+
/* @__PURE__ */ jsx49(
|
|
3302
|
+
SmdChipLead,
|
|
3303
|
+
{
|
|
3304
|
+
position: {
|
|
3305
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3306
|
+
y: -0.65,
|
|
3307
|
+
z: leadThickness / 2
|
|
3308
|
+
},
|
|
3309
|
+
width: leadWidth,
|
|
3310
|
+
thickness: leadThickness,
|
|
3311
|
+
padContactLength,
|
|
3312
|
+
bodyDistance: extendedBodyDistance,
|
|
3313
|
+
height: leadHeight
|
|
3314
|
+
},
|
|
3315
|
+
1
|
|
3316
|
+
),
|
|
3317
|
+
/* @__PURE__ */ jsx49(
|
|
3318
|
+
SmdChipLead,
|
|
3319
|
+
{
|
|
3320
|
+
position: {
|
|
3321
|
+
x: -fullWidth / 2 - extendedBodyDistance / 4,
|
|
3322
|
+
y: 0.65,
|
|
3323
|
+
z: leadThickness / 2
|
|
3324
|
+
},
|
|
3325
|
+
width: leadWidth,
|
|
3326
|
+
thickness: leadThickness,
|
|
3327
|
+
padContactLength,
|
|
3328
|
+
bodyDistance: extendedBodyDistance,
|
|
3329
|
+
height: leadHeight
|
|
3330
|
+
},
|
|
3331
|
+
2
|
|
3332
|
+
),
|
|
3333
|
+
/* @__PURE__ */ jsx49(
|
|
3334
|
+
ChipBody,
|
|
3335
|
+
{
|
|
3336
|
+
center: { x: 0, y: 0, z: 0 },
|
|
3337
|
+
width: bodyWidth,
|
|
3338
|
+
length: bodyLength10,
|
|
3339
|
+
height: bodyHeight,
|
|
3340
|
+
straightHeightRatio: 0.6,
|
|
3341
|
+
notchPosition: {
|
|
3342
|
+
x: bodyWidth / 2 - 0.25,
|
|
3343
|
+
y: bodyHeight / 2 + 0.2,
|
|
3344
|
+
z: bodyHeight
|
|
3345
|
+
},
|
|
3346
|
+
heightAboveSurface: 0.1
|
|
3347
|
+
}
|
|
3348
|
+
)
|
|
3349
|
+
] });
|
|
3350
|
+
};
|
|
3351
|
+
var SOT_363_default = SOT363;
|
|
3352
|
+
|
|
3175
3353
|
// lib/Footprinter3d.tsx
|
|
3176
|
-
import { jsx as
|
|
3354
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
3177
3355
|
var Footprinter3d = ({ footprint }) => {
|
|
3178
3356
|
const fpJson = fp3.string(footprint).json();
|
|
3179
3357
|
switch (fpJson.fn) {
|
|
3180
3358
|
case "dip":
|
|
3181
|
-
return /* @__PURE__ */
|
|
3359
|
+
return /* @__PURE__ */ jsx50(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
3182
3360
|
case "tssop":
|
|
3183
|
-
return /* @__PURE__ */
|
|
3361
|
+
return /* @__PURE__ */ jsx50(
|
|
3184
3362
|
Tssop,
|
|
3185
3363
|
{
|
|
3186
3364
|
pinCount: fpJson.num_pins,
|
|
@@ -3191,7 +3369,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3191
3369
|
}
|
|
3192
3370
|
);
|
|
3193
3371
|
case "msop":
|
|
3194
|
-
return /* @__PURE__ */
|
|
3372
|
+
return /* @__PURE__ */ jsx50(
|
|
3195
3373
|
MSOP,
|
|
3196
3374
|
{
|
|
3197
3375
|
pinCount: fpJson.num_pins,
|
|
@@ -3202,7 +3380,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3202
3380
|
}
|
|
3203
3381
|
);
|
|
3204
3382
|
case "vssop":
|
|
3205
|
-
return /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ jsx50(
|
|
3206
3384
|
VSSOP,
|
|
3207
3385
|
{
|
|
3208
3386
|
pinCount: fpJson.num_pins,
|
|
@@ -3214,7 +3392,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3214
3392
|
}
|
|
3215
3393
|
);
|
|
3216
3394
|
case "qfp":
|
|
3217
|
-
return /* @__PURE__ */
|
|
3395
|
+
return /* @__PURE__ */ jsx50(
|
|
3218
3396
|
QFP,
|
|
3219
3397
|
{
|
|
3220
3398
|
pinCount: fpJson.num_pins,
|
|
@@ -3225,12 +3403,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3225
3403
|
}
|
|
3226
3404
|
);
|
|
3227
3405
|
case "tqfp":
|
|
3228
|
-
return /* @__PURE__ */
|
|
3406
|
+
return /* @__PURE__ */ jsx50(tqfp_default, {});
|
|
3229
3407
|
case "lqfp":
|
|
3230
|
-
return /* @__PURE__ */
|
|
3408
|
+
return /* @__PURE__ */ jsx50(LQFP, { pinCount: fpJson.num_pins });
|
|
3231
3409
|
case "qfn": {
|
|
3232
3410
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3233
|
-
return /* @__PURE__ */
|
|
3411
|
+
return /* @__PURE__ */ jsx50(
|
|
3234
3412
|
qfn_default,
|
|
3235
3413
|
{
|
|
3236
3414
|
num_pins: fpJson.num_pins,
|
|
@@ -3248,7 +3426,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3248
3426
|
}
|
|
3249
3427
|
case "dfn": {
|
|
3250
3428
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
3251
|
-
return /* @__PURE__ */
|
|
3429
|
+
return /* @__PURE__ */ jsx50(
|
|
3252
3430
|
DFN,
|
|
3253
3431
|
{
|
|
3254
3432
|
num_pins: fpJson.num_pins,
|
|
@@ -3266,39 +3444,41 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3266
3444
|
}
|
|
3267
3445
|
case "pinrow":
|
|
3268
3446
|
if (fpJson.male)
|
|
3269
|
-
return /* @__PURE__ */
|
|
3447
|
+
return /* @__PURE__ */ jsx50(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3270
3448
|
if (fpJson.female)
|
|
3271
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsx50(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
3272
3450
|
case "cap": {
|
|
3273
3451
|
switch (fpJson.imperial) {
|
|
3274
3452
|
case "0402":
|
|
3275
|
-
return /* @__PURE__ */
|
|
3453
|
+
return /* @__PURE__ */ jsx50(A0402, { color: "#856c4d" });
|
|
3276
3454
|
case "0603":
|
|
3277
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsx50(A0603, { color: "#856c4d" });
|
|
3278
3456
|
case "0805":
|
|
3279
|
-
return /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ jsx50(A0805, { color: "#856c4d" });
|
|
3280
3458
|
case "0201":
|
|
3281
|
-
return /* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ jsx50(A0201, { color: "#856c4d" });
|
|
3282
3460
|
case "01005":
|
|
3283
|
-
return /* @__PURE__ */
|
|
3461
|
+
return /* @__PURE__ */ jsx50(A01005, { color: "#856c4d" });
|
|
3284
3462
|
case "1206":
|
|
3285
|
-
return /* @__PURE__ */
|
|
3463
|
+
return /* @__PURE__ */ jsx50(A1206, { color: "#856c4d" });
|
|
3286
3464
|
case "1210":
|
|
3287
|
-
return /* @__PURE__ */
|
|
3465
|
+
return /* @__PURE__ */ jsx50(A1210, { color: "#856c4d" });
|
|
3288
3466
|
case "2010":
|
|
3289
|
-
return /* @__PURE__ */
|
|
3467
|
+
return /* @__PURE__ */ jsx50(A2010, { color: "#856c4d" });
|
|
3290
3468
|
case "2512":
|
|
3291
|
-
return /* @__PURE__ */
|
|
3469
|
+
return /* @__PURE__ */ jsx50(A2512, { color: "#856c4d" });
|
|
3292
3470
|
}
|
|
3293
3471
|
}
|
|
3294
3472
|
case "sot235":
|
|
3295
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ jsx50(SOT_235_default, {});
|
|
3296
3474
|
case "sot223":
|
|
3297
|
-
return /* @__PURE__ */
|
|
3475
|
+
return /* @__PURE__ */ jsx50(SOT223, {});
|
|
3298
3476
|
case "sot323":
|
|
3299
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ jsx50(SOT323, {});
|
|
3478
|
+
case "sot363":
|
|
3479
|
+
return /* @__PURE__ */ jsx50(SOT_363_default, {});
|
|
3300
3480
|
case "pushbutton":
|
|
3301
|
-
return /* @__PURE__ */
|
|
3481
|
+
return /* @__PURE__ */ jsx50(
|
|
3302
3482
|
PushButton,
|
|
3303
3483
|
{
|
|
3304
3484
|
width: fpJson.w,
|
|
@@ -3307,7 +3487,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3307
3487
|
}
|
|
3308
3488
|
);
|
|
3309
3489
|
case "soic":
|
|
3310
|
-
return /* @__PURE__ */
|
|
3490
|
+
return /* @__PURE__ */ jsx50(
|
|
3311
3491
|
SOIC,
|
|
3312
3492
|
{
|
|
3313
3493
|
pinCount: fpJson.num_pins,
|
|
@@ -3318,33 +3498,33 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3318
3498
|
}
|
|
3319
3499
|
);
|
|
3320
3500
|
case "sod523":
|
|
3321
|
-
return /* @__PURE__ */
|
|
3501
|
+
return /* @__PURE__ */ jsx50(SOD523, {});
|
|
3322
3502
|
case "sod882":
|
|
3323
|
-
return /* @__PURE__ */
|
|
3503
|
+
return /* @__PURE__ */ jsx50(SOD882, {});
|
|
3324
3504
|
case "sma":
|
|
3325
|
-
return /* @__PURE__ */
|
|
3505
|
+
return /* @__PURE__ */ jsx50(SMA, {});
|
|
3326
3506
|
case "smb":
|
|
3327
|
-
return /* @__PURE__ */
|
|
3507
|
+
return /* @__PURE__ */ jsx50(SMB, {});
|
|
3328
3508
|
case "smc":
|
|
3329
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx50(SMC, {});
|
|
3330
3510
|
case "smf":
|
|
3331
|
-
return /* @__PURE__ */
|
|
3511
|
+
return /* @__PURE__ */ jsx50(SMF, {});
|
|
3332
3512
|
case "sod123f":
|
|
3333
|
-
return /* @__PURE__ */
|
|
3513
|
+
return /* @__PURE__ */ jsx50(SOD123F, {});
|
|
3334
3514
|
case "sod123fl":
|
|
3335
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ jsx50(SOD123FL, {});
|
|
3336
3516
|
case "sod923":
|
|
3337
|
-
return /* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ jsx50(SOD923, {});
|
|
3338
3518
|
case "hc49":
|
|
3339
|
-
return /* @__PURE__ */
|
|
3519
|
+
return /* @__PURE__ */ jsx50(HC49, {});
|
|
3340
3520
|
case "micromelf":
|
|
3341
|
-
return /* @__PURE__ */
|
|
3521
|
+
return /* @__PURE__ */ jsx50(MicroMELF, {});
|
|
3342
3522
|
case "minimelf":
|
|
3343
|
-
return /* @__PURE__ */
|
|
3523
|
+
return /* @__PURE__ */ jsx50(MINIMELF, {});
|
|
3344
3524
|
case "melf":
|
|
3345
|
-
return /* @__PURE__ */
|
|
3525
|
+
return /* @__PURE__ */ jsx50(MELF, {});
|
|
3346
3526
|
case "ms012":
|
|
3347
|
-
return /* @__PURE__ */
|
|
3527
|
+
return /* @__PURE__ */ jsx50(
|
|
3348
3528
|
MS012,
|
|
3349
3529
|
{
|
|
3350
3530
|
pinCount: fpJson.num_pins,
|
|
@@ -3354,37 +3534,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3354
3534
|
}
|
|
3355
3535
|
);
|
|
3356
3536
|
case "sot723":
|
|
3357
|
-
return /* @__PURE__ */
|
|
3537
|
+
return /* @__PURE__ */ jsx50(SOT723, {});
|
|
3358
3538
|
case "to220":
|
|
3359
|
-
return /* @__PURE__ */
|
|
3539
|
+
return /* @__PURE__ */ jsx50(TO220, {});
|
|
3540
|
+
case "to92":
|
|
3541
|
+
return /* @__PURE__ */ jsx50(TO92, {});
|
|
3360
3542
|
}
|
|
3361
3543
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
3362
3544
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
3363
3545
|
switch (fpJson.imperial) {
|
|
3364
3546
|
case "0402":
|
|
3365
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ jsx50(A0402, { color });
|
|
3366
3548
|
case "0603":
|
|
3367
|
-
return /* @__PURE__ */
|
|
3549
|
+
return /* @__PURE__ */ jsx50(A0603, { color });
|
|
3368
3550
|
case "0805":
|
|
3369
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ jsx50(A0805, { color });
|
|
3370
3552
|
case "0201":
|
|
3371
|
-
return /* @__PURE__ */
|
|
3553
|
+
return /* @__PURE__ */ jsx50(A0201, { color });
|
|
3372
3554
|
case "01005":
|
|
3373
|
-
return /* @__PURE__ */
|
|
3555
|
+
return /* @__PURE__ */ jsx50(A01005, { color });
|
|
3374
3556
|
case "1206":
|
|
3375
|
-
return /* @__PURE__ */
|
|
3557
|
+
return /* @__PURE__ */ jsx50(A1206, { color });
|
|
3376
3558
|
case "1210":
|
|
3377
|
-
return /* @__PURE__ */
|
|
3559
|
+
return /* @__PURE__ */ jsx50(A1210, { color });
|
|
3378
3560
|
case "2010":
|
|
3379
|
-
return /* @__PURE__ */
|
|
3561
|
+
return /* @__PURE__ */ jsx50(A2010, { color });
|
|
3380
3562
|
case "2512":
|
|
3381
|
-
return /* @__PURE__ */
|
|
3563
|
+
return /* @__PURE__ */ jsx50(A2512, { color });
|
|
3382
3564
|
}
|
|
3383
3565
|
return null;
|
|
3384
3566
|
};
|
|
3385
3567
|
|
|
3386
3568
|
// lib/SOT-23-3P.tsx
|
|
3387
|
-
import { Fragment as
|
|
3569
|
+
import { Fragment as Fragment45, jsx as jsx51, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
3388
3570
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
3389
3571
|
const bodyWidth = 1.3;
|
|
3390
3572
|
const bodyLength10 = 2.9;
|
|
@@ -3395,8 +3577,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3395
3577
|
const padContactLength = 0.4;
|
|
3396
3578
|
const padThickness = leadThickness / 2;
|
|
3397
3579
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
3398
|
-
return /* @__PURE__ */
|
|
3399
|
-
/* @__PURE__ */
|
|
3580
|
+
return /* @__PURE__ */ jsxs48(Fragment45, { children: [
|
|
3581
|
+
/* @__PURE__ */ jsx51(
|
|
3400
3582
|
SmdChipLead,
|
|
3401
3583
|
{
|
|
3402
3584
|
rotation: Math.PI,
|
|
@@ -3413,7 +3595,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3413
3595
|
},
|
|
3414
3596
|
1
|
|
3415
3597
|
),
|
|
3416
|
-
/* @__PURE__ */
|
|
3598
|
+
/* @__PURE__ */ jsx51(
|
|
3417
3599
|
SmdChipLead,
|
|
3418
3600
|
{
|
|
3419
3601
|
rotation: Math.PI,
|
|
@@ -3430,7 +3612,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3430
3612
|
},
|
|
3431
3613
|
2
|
|
3432
3614
|
),
|
|
3433
|
-
/* @__PURE__ */
|
|
3615
|
+
/* @__PURE__ */ jsx51(
|
|
3434
3616
|
SmdChipLead,
|
|
3435
3617
|
{
|
|
3436
3618
|
position: {
|
|
@@ -3446,7 +3628,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3446
3628
|
},
|
|
3447
3629
|
3
|
|
3448
3630
|
),
|
|
3449
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ jsx51(
|
|
3450
3632
|
ChipBody,
|
|
3451
3633
|
{
|
|
3452
3634
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3459,8 +3641,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
3459
3641
|
};
|
|
3460
3642
|
|
|
3461
3643
|
// lib/SOT-563.tsx
|
|
3462
|
-
import { Cuboid as
|
|
3463
|
-
import { Fragment as
|
|
3644
|
+
import { Cuboid as Cuboid33, Translate as Translate21, Rotate as Rotate10, Colorize as Colorize26 } from "jscad-fiber";
|
|
3645
|
+
import { Fragment as Fragment46, jsx as jsx52, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
3464
3646
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
3465
3647
|
const bodyWidth = 1.2;
|
|
3466
3648
|
const bodyLength10 = 1.6;
|
|
@@ -3470,28 +3652,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3470
3652
|
const leadHeight = 0.13;
|
|
3471
3653
|
const leadSpacing = 0.5;
|
|
3472
3654
|
const bodyZOffset = -0.4;
|
|
3473
|
-
return /* @__PURE__ */
|
|
3474
|
-
/* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ jsxs49(Fragment46, { children: [
|
|
3656
|
+
/* @__PURE__ */ jsx52(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx52(Translate21, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx52(Colorize26, { color: "grey", children: /* @__PURE__ */ jsx52(Cuboid33, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
3475
3657
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
3476
3658
|
// Left lead
|
|
3477
|
-
/* @__PURE__ */
|
|
3478
|
-
|
|
3659
|
+
/* @__PURE__ */ jsx52(
|
|
3660
|
+
Translate21,
|
|
3479
3661
|
{
|
|
3480
3662
|
center: [
|
|
3481
3663
|
-bodyWidth / 2 - 0.03,
|
|
3482
3664
|
yOffset * leadSpacing,
|
|
3483
3665
|
leadHeight / 2
|
|
3484
3666
|
],
|
|
3485
|
-
children: /* @__PURE__ */
|
|
3667
|
+
children: /* @__PURE__ */ jsx52(Cuboid33, { size: [leadLength, leadWidth, leadHeight] })
|
|
3486
3668
|
},
|
|
3487
3669
|
`left-${index}`
|
|
3488
3670
|
),
|
|
3489
3671
|
// Right lead
|
|
3490
|
-
/* @__PURE__ */
|
|
3491
|
-
|
|
3672
|
+
/* @__PURE__ */ jsx52(
|
|
3673
|
+
Translate21,
|
|
3492
3674
|
{
|
|
3493
3675
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
3494
|
-
children: /* @__PURE__ */
|
|
3676
|
+
children: /* @__PURE__ */ jsx52(Cuboid33, { size: [leadLength, leadWidth, leadHeight] })
|
|
3495
3677
|
},
|
|
3496
3678
|
`right-${index}`
|
|
3497
3679
|
)
|
|
@@ -3500,7 +3682,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3500
3682
|
};
|
|
3501
3683
|
|
|
3502
3684
|
// lib/sod-123.tsx
|
|
3503
|
-
import { Fragment as
|
|
3685
|
+
import { Fragment as Fragment47, jsx as jsx53, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
3504
3686
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
3505
3687
|
const bodyWidth = 2.9;
|
|
3506
3688
|
const bodyLength10 = 1.3;
|
|
@@ -3511,8 +3693,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3511
3693
|
const padContactLength = 0.4;
|
|
3512
3694
|
const padThickness = leadThickness / 2;
|
|
3513
3695
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
3514
|
-
return /* @__PURE__ */
|
|
3515
|
-
/* @__PURE__ */
|
|
3696
|
+
return /* @__PURE__ */ jsxs50(Fragment47, { children: [
|
|
3697
|
+
/* @__PURE__ */ jsx53(
|
|
3516
3698
|
SmdChipLead,
|
|
3517
3699
|
{
|
|
3518
3700
|
position: {
|
|
@@ -3528,7 +3710,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3528
3710
|
},
|
|
3529
3711
|
1
|
|
3530
3712
|
),
|
|
3531
|
-
/* @__PURE__ */
|
|
3713
|
+
/* @__PURE__ */ jsx53(
|
|
3532
3714
|
SmdChipLead,
|
|
3533
3715
|
{
|
|
3534
3716
|
rotation: Math.PI,
|
|
@@ -3545,7 +3727,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
3545
3727
|
},
|
|
3546
3728
|
2
|
|
3547
3729
|
),
|
|
3548
|
-
/* @__PURE__ */
|
|
3730
|
+
/* @__PURE__ */ jsx53(
|
|
3549
3731
|
ChipBody,
|
|
3550
3732
|
{
|
|
3551
3733
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -3596,10 +3778,12 @@ export {
|
|
|
3596
3778
|
SOT223,
|
|
3597
3779
|
SOT233P,
|
|
3598
3780
|
SOT323,
|
|
3781
|
+
SOT363,
|
|
3599
3782
|
SOT563,
|
|
3600
3783
|
SOT723,
|
|
3601
3784
|
SmdChipLead,
|
|
3602
3785
|
TO220,
|
|
3786
|
+
TO92,
|
|
3603
3787
|
TQFP,
|
|
3604
3788
|
Tssop,
|
|
3605
3789
|
VSSOP
|