jscad-electronics 0.0.111 → 0.0.112
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 +6 -1
- package/dist/index.js +124 -84
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +37 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,11 @@ declare const PinRow: ({ numberOfPins, pitch, longSidePinLength, invert, faceup,
|
|
|
227
227
|
rightangle?: boolean;
|
|
228
228
|
}) => react_jsx_runtime.JSX.Element;
|
|
229
229
|
|
|
230
|
+
interface AxialCapacitorProps {
|
|
231
|
+
pitch: number;
|
|
232
|
+
}
|
|
233
|
+
declare const AxialCapacitor: ({ pitch }: AxialCapacitorProps) => react_jsx_runtime.JSX.Element;
|
|
234
|
+
|
|
230
235
|
declare const SOD523: () => react_jsx_runtime.JSX.Element;
|
|
231
236
|
|
|
232
237
|
declare const SOD882: () => react_jsx_runtime.JSX.Element;
|
|
@@ -332,4 +337,4 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
332
337
|
|
|
333
338
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
334
339
|
|
|
335
|
-
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, MS013, MSOP, MicroMELF, type MicroMELFProps, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD323F, SOD323FL, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
|
340
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, ChipBody, type ChipBodyProps, DFN, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, MicroMELF, type MicroMELFProps, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD323F, SOD323FL, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, SmdChipLead, type SmdChipLeadProps, TO220, TO92, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -4159,15 +4159,54 @@ var SOD323FL = () => {
|
|
|
4159
4159
|
] });
|
|
4160
4160
|
};
|
|
4161
4161
|
|
|
4162
|
+
// lib/AxialCapacitor.tsx
|
|
4163
|
+
import { Colorize as Colorize31, Cylinder as Cylinder9, Rotate as Rotate11, Sphere as Sphere2, Translate as Translate27 } from "jscad-fiber";
|
|
4164
|
+
import { Fragment as Fragment55, jsx as jsx60, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4165
|
+
var AxialCapacitor = ({ pitch = 10 }) => {
|
|
4166
|
+
const heightToCenterOfCapacitor = 0.5 + 4 / 2;
|
|
4167
|
+
return /* @__PURE__ */ jsxs58(Fragment55, { children: [
|
|
4168
|
+
/* @__PURE__ */ jsx60(Cylinder9, { height: 4, radius: 0.5, center: [-pitch / 2, 0, 0.5] }),
|
|
4169
|
+
/* @__PURE__ */ jsx60(
|
|
4170
|
+
Sphere2,
|
|
4171
|
+
{
|
|
4172
|
+
radius: 0.5,
|
|
4173
|
+
center: [-pitch / 2, 0, heightToCenterOfCapacitor]
|
|
4174
|
+
}
|
|
4175
|
+
),
|
|
4176
|
+
/* @__PURE__ */ jsx60(Translate27, { x: -2.5, y: 0, z: heightToCenterOfCapacitor, children: /* @__PURE__ */ jsxs58(Rotate11, { rotation: [0, Math.PI / 2, 0], children: [
|
|
4177
|
+
/* @__PURE__ */ jsx60(
|
|
4178
|
+
Cylinder9,
|
|
4179
|
+
{
|
|
4180
|
+
height: pitch,
|
|
4181
|
+
radius: 0.5,
|
|
4182
|
+
center: [0, 0, heightToCenterOfCapacitor]
|
|
4183
|
+
}
|
|
4184
|
+
),
|
|
4185
|
+
/* @__PURE__ */ jsx60(Colorize31, { color: "#d2b48c", children: /* @__PURE__ */ jsx60(
|
|
4186
|
+
Cylinder9,
|
|
4187
|
+
{
|
|
4188
|
+
height: 5,
|
|
4189
|
+
radius: 1.3,
|
|
4190
|
+
center: [0, 0, heightToCenterOfCapacitor]
|
|
4191
|
+
}
|
|
4192
|
+
) })
|
|
4193
|
+
] }) }),
|
|
4194
|
+
/* @__PURE__ */ jsx60(Cylinder9, { height: 4, radius: 0.5, center: [pitch / 2, 0, 0.5] }),
|
|
4195
|
+
/* @__PURE__ */ jsx60(Sphere2, { radius: 0.5, center: [pitch / 2, 0, heightToCenterOfCapacitor] })
|
|
4196
|
+
] });
|
|
4197
|
+
};
|
|
4198
|
+
|
|
4162
4199
|
// lib/Footprinter3d.tsx
|
|
4163
|
-
import { jsx as
|
|
4200
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
4164
4201
|
var Footprinter3d = ({ footprint }) => {
|
|
4165
4202
|
const fpJson = fp3.string(footprint).json();
|
|
4166
4203
|
switch (fpJson.fn) {
|
|
4167
4204
|
case "dip":
|
|
4168
|
-
return /* @__PURE__ */
|
|
4205
|
+
return /* @__PURE__ */ jsx61(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
4206
|
+
case "axial":
|
|
4207
|
+
return /* @__PURE__ */ jsx61(AxialCapacitor, { pitch: fpJson.p });
|
|
4169
4208
|
case "tssop":
|
|
4170
|
-
return /* @__PURE__ */
|
|
4209
|
+
return /* @__PURE__ */ jsx61(
|
|
4171
4210
|
Tssop,
|
|
4172
4211
|
{
|
|
4173
4212
|
pinCount: fpJson.num_pins,
|
|
@@ -4178,7 +4217,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4178
4217
|
}
|
|
4179
4218
|
);
|
|
4180
4219
|
case "msop":
|
|
4181
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ jsx61(
|
|
4182
4221
|
MSOP,
|
|
4183
4222
|
{
|
|
4184
4223
|
pinCount: fpJson.num_pins,
|
|
@@ -4189,7 +4228,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4189
4228
|
}
|
|
4190
4229
|
);
|
|
4191
4230
|
case "vssop":
|
|
4192
|
-
return /* @__PURE__ */
|
|
4231
|
+
return /* @__PURE__ */ jsx61(
|
|
4193
4232
|
VSSOP,
|
|
4194
4233
|
{
|
|
4195
4234
|
pinCount: fpJson.num_pins,
|
|
@@ -4201,7 +4240,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4201
4240
|
}
|
|
4202
4241
|
);
|
|
4203
4242
|
case "qfp":
|
|
4204
|
-
return /* @__PURE__ */
|
|
4243
|
+
return /* @__PURE__ */ jsx61(
|
|
4205
4244
|
QFP,
|
|
4206
4245
|
{
|
|
4207
4246
|
pinCount: fpJson.num_pins,
|
|
@@ -4212,12 +4251,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4212
4251
|
}
|
|
4213
4252
|
);
|
|
4214
4253
|
case "tqfp":
|
|
4215
|
-
return /* @__PURE__ */
|
|
4254
|
+
return /* @__PURE__ */ jsx61(tqfp_default, {});
|
|
4216
4255
|
case "lqfp":
|
|
4217
|
-
return /* @__PURE__ */
|
|
4256
|
+
return /* @__PURE__ */ jsx61(LQFP, { pinCount: fpJson.num_pins });
|
|
4218
4257
|
case "qfn": {
|
|
4219
4258
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4220
|
-
return /* @__PURE__ */
|
|
4259
|
+
return /* @__PURE__ */ jsx61(
|
|
4221
4260
|
qfn_default,
|
|
4222
4261
|
{
|
|
4223
4262
|
num_pins: fpJson.num_pins,
|
|
@@ -4235,7 +4274,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4235
4274
|
}
|
|
4236
4275
|
case "dfn": {
|
|
4237
4276
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4238
|
-
return /* @__PURE__ */
|
|
4277
|
+
return /* @__PURE__ */ jsx61(
|
|
4239
4278
|
DFN,
|
|
4240
4279
|
{
|
|
4241
4280
|
num_pins: fpJson.num_pins,
|
|
@@ -4255,7 +4294,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4255
4294
|
const rowsMatch = footprint.match(/_rows(\d+)/);
|
|
4256
4295
|
const rows = rowsMatch && rowsMatch[1] ? parseInt(rowsMatch[1], 10) : 1;
|
|
4257
4296
|
if (fpJson.male)
|
|
4258
|
-
return /* @__PURE__ */
|
|
4297
|
+
return /* @__PURE__ */ jsx61(
|
|
4259
4298
|
PinRow,
|
|
4260
4299
|
{
|
|
4261
4300
|
numberOfPins: fpJson.num_pins,
|
|
@@ -4268,7 +4307,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4268
4307
|
}
|
|
4269
4308
|
);
|
|
4270
4309
|
if (fpJson.female)
|
|
4271
|
-
return /* @__PURE__ */
|
|
4310
|
+
return /* @__PURE__ */ jsx61(
|
|
4272
4311
|
FemaleHeader,
|
|
4273
4312
|
{
|
|
4274
4313
|
numberOfPins: fpJson.num_pins,
|
|
@@ -4280,47 +4319,47 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4280
4319
|
case "cap": {
|
|
4281
4320
|
switch (fpJson.imperial) {
|
|
4282
4321
|
case "0402":
|
|
4283
|
-
return /* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ jsx61(A0402, { color: "#856c4d" });
|
|
4284
4323
|
case "0603":
|
|
4285
|
-
return /* @__PURE__ */
|
|
4324
|
+
return /* @__PURE__ */ jsx61(A0603, { color: "#856c4d" });
|
|
4286
4325
|
case "0805":
|
|
4287
|
-
return /* @__PURE__ */
|
|
4326
|
+
return /* @__PURE__ */ jsx61(A0805, { color: "#856c4d" });
|
|
4288
4327
|
case "0201":
|
|
4289
|
-
return /* @__PURE__ */
|
|
4328
|
+
return /* @__PURE__ */ jsx61(A0201, { color: "#856c4d" });
|
|
4290
4329
|
case "01005":
|
|
4291
|
-
return /* @__PURE__ */
|
|
4330
|
+
return /* @__PURE__ */ jsx61(A01005, { color: "#856c4d" });
|
|
4292
4331
|
case "1206":
|
|
4293
|
-
return /* @__PURE__ */
|
|
4332
|
+
return /* @__PURE__ */ jsx61(A1206, { color: "#856c4d" });
|
|
4294
4333
|
case "1210":
|
|
4295
|
-
return /* @__PURE__ */
|
|
4334
|
+
return /* @__PURE__ */ jsx61(A1210, { color: "#856c4d" });
|
|
4296
4335
|
case "2010":
|
|
4297
|
-
return /* @__PURE__ */
|
|
4336
|
+
return /* @__PURE__ */ jsx61(A2010, { color: "#856c4d" });
|
|
4298
4337
|
case "2512":
|
|
4299
|
-
return /* @__PURE__ */
|
|
4338
|
+
return /* @__PURE__ */ jsx61(A2512, { color: "#856c4d" });
|
|
4300
4339
|
}
|
|
4301
4340
|
}
|
|
4302
4341
|
case "sot235":
|
|
4303
|
-
return /* @__PURE__ */
|
|
4342
|
+
return /* @__PURE__ */ jsx61(SOT_235_default, {});
|
|
4304
4343
|
case "sot457":
|
|
4305
|
-
return /* @__PURE__ */
|
|
4344
|
+
return /* @__PURE__ */ jsx61(SOT457, {});
|
|
4306
4345
|
case "sot223":
|
|
4307
|
-
return /* @__PURE__ */
|
|
4346
|
+
return /* @__PURE__ */ jsx61(SOT223, {});
|
|
4308
4347
|
case "sot23w":
|
|
4309
|
-
return /* @__PURE__ */
|
|
4348
|
+
return /* @__PURE__ */ jsx61(SOT23W, {});
|
|
4310
4349
|
case "sot323":
|
|
4311
|
-
return /* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ jsx61(SOT323, {});
|
|
4312
4351
|
case "sod323f":
|
|
4313
|
-
return /* @__PURE__ */
|
|
4352
|
+
return /* @__PURE__ */ jsx61(SOD323F, {});
|
|
4314
4353
|
case "sod323fl":
|
|
4315
|
-
return /* @__PURE__ */
|
|
4354
|
+
return /* @__PURE__ */ jsx61(SOD323FL, {});
|
|
4316
4355
|
case "sot363":
|
|
4317
|
-
return /* @__PURE__ */
|
|
4356
|
+
return /* @__PURE__ */ jsx61(SOT_363_default, {});
|
|
4318
4357
|
case "sot886":
|
|
4319
|
-
return /* @__PURE__ */
|
|
4358
|
+
return /* @__PURE__ */ jsx61(SOT886, {});
|
|
4320
4359
|
case "sot963":
|
|
4321
|
-
return /* @__PURE__ */
|
|
4360
|
+
return /* @__PURE__ */ jsx61(SOT963, {});
|
|
4322
4361
|
case "pushbutton":
|
|
4323
|
-
return /* @__PURE__ */
|
|
4362
|
+
return /* @__PURE__ */ jsx61(
|
|
4324
4363
|
PushButton,
|
|
4325
4364
|
{
|
|
4326
4365
|
width: fpJson.w,
|
|
@@ -4329,7 +4368,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4329
4368
|
}
|
|
4330
4369
|
);
|
|
4331
4370
|
case "soic":
|
|
4332
|
-
return /* @__PURE__ */
|
|
4371
|
+
return /* @__PURE__ */ jsx61(
|
|
4333
4372
|
SOIC,
|
|
4334
4373
|
{
|
|
4335
4374
|
pinCount: fpJson.num_pins,
|
|
@@ -4340,39 +4379,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4340
4379
|
}
|
|
4341
4380
|
);
|
|
4342
4381
|
case "sod523":
|
|
4343
|
-
return /* @__PURE__ */
|
|
4382
|
+
return /* @__PURE__ */ jsx61(SOD523, {});
|
|
4344
4383
|
case "sod882":
|
|
4345
|
-
return /* @__PURE__ */
|
|
4384
|
+
return /* @__PURE__ */ jsx61(SOD882, {});
|
|
4346
4385
|
case "sma":
|
|
4347
|
-
return /* @__PURE__ */
|
|
4386
|
+
return /* @__PURE__ */ jsx61(SMA, {});
|
|
4348
4387
|
case "smb":
|
|
4349
|
-
return /* @__PURE__ */
|
|
4388
|
+
return /* @__PURE__ */ jsx61(SMB, {});
|
|
4350
4389
|
case "smc":
|
|
4351
|
-
return /* @__PURE__ */
|
|
4390
|
+
return /* @__PURE__ */ jsx61(SMC, {});
|
|
4352
4391
|
case "smf":
|
|
4353
|
-
return /* @__PURE__ */
|
|
4392
|
+
return /* @__PURE__ */ jsx61(SMF, {});
|
|
4354
4393
|
case "sod123f":
|
|
4355
|
-
return /* @__PURE__ */
|
|
4394
|
+
return /* @__PURE__ */ jsx61(SOD123F, {});
|
|
4356
4395
|
case "sod123fl":
|
|
4357
|
-
return /* @__PURE__ */
|
|
4396
|
+
return /* @__PURE__ */ jsx61(SOD123FL, {});
|
|
4358
4397
|
case "sod123w":
|
|
4359
|
-
return /* @__PURE__ */
|
|
4398
|
+
return /* @__PURE__ */ jsx61(SOD123W, {});
|
|
4360
4399
|
case "sod128":
|
|
4361
|
-
return /* @__PURE__ */
|
|
4400
|
+
return /* @__PURE__ */ jsx61(SOD128, {});
|
|
4362
4401
|
case "sod323":
|
|
4363
|
-
return /* @__PURE__ */
|
|
4402
|
+
return /* @__PURE__ */ jsx61(SOD323, {});
|
|
4364
4403
|
case "sod923":
|
|
4365
|
-
return /* @__PURE__ */
|
|
4404
|
+
return /* @__PURE__ */ jsx61(SOD923, {});
|
|
4366
4405
|
case "hc49":
|
|
4367
|
-
return /* @__PURE__ */
|
|
4406
|
+
return /* @__PURE__ */ jsx61(HC49, {});
|
|
4368
4407
|
case "micromelf":
|
|
4369
|
-
return /* @__PURE__ */
|
|
4408
|
+
return /* @__PURE__ */ jsx61(MicroMELF, {});
|
|
4370
4409
|
case "minimelf":
|
|
4371
|
-
return /* @__PURE__ */
|
|
4410
|
+
return /* @__PURE__ */ jsx61(MINIMELF, {});
|
|
4372
4411
|
case "melf":
|
|
4373
|
-
return /* @__PURE__ */
|
|
4412
|
+
return /* @__PURE__ */ jsx61(MELF, {});
|
|
4374
4413
|
case "ms012":
|
|
4375
|
-
return /* @__PURE__ */
|
|
4414
|
+
return /* @__PURE__ */ jsx61(
|
|
4376
4415
|
MS012,
|
|
4377
4416
|
{
|
|
4378
4417
|
pinCount: fpJson.num_pins,
|
|
@@ -4382,7 +4421,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4382
4421
|
}
|
|
4383
4422
|
);
|
|
4384
4423
|
case "ms013":
|
|
4385
|
-
return /* @__PURE__ */
|
|
4424
|
+
return /* @__PURE__ */ jsx61(
|
|
4386
4425
|
MS013,
|
|
4387
4426
|
{
|
|
4388
4427
|
pinCount: fpJson.num_pins,
|
|
@@ -4392,39 +4431,39 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4392
4431
|
}
|
|
4393
4432
|
);
|
|
4394
4433
|
case "sot723":
|
|
4395
|
-
return /* @__PURE__ */
|
|
4434
|
+
return /* @__PURE__ */ jsx61(SOT723, {});
|
|
4396
4435
|
case "to220":
|
|
4397
|
-
return /* @__PURE__ */
|
|
4436
|
+
return /* @__PURE__ */ jsx61(TO220, {});
|
|
4398
4437
|
case "to92":
|
|
4399
|
-
return /* @__PURE__ */
|
|
4438
|
+
return /* @__PURE__ */ jsx61(TO92, {});
|
|
4400
4439
|
}
|
|
4401
4440
|
const colorMatch = footprint.match(/_color\(([^)]+)\)/);
|
|
4402
4441
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
4403
4442
|
switch (fpJson.imperial) {
|
|
4404
4443
|
case "0402":
|
|
4405
|
-
return /* @__PURE__ */
|
|
4444
|
+
return /* @__PURE__ */ jsx61(A0402, { color });
|
|
4406
4445
|
case "0603":
|
|
4407
|
-
return /* @__PURE__ */
|
|
4446
|
+
return /* @__PURE__ */ jsx61(A0603, { color });
|
|
4408
4447
|
case "0805":
|
|
4409
|
-
return /* @__PURE__ */
|
|
4448
|
+
return /* @__PURE__ */ jsx61(A0805, { color });
|
|
4410
4449
|
case "0201":
|
|
4411
|
-
return /* @__PURE__ */
|
|
4450
|
+
return /* @__PURE__ */ jsx61(A0201, { color });
|
|
4412
4451
|
case "01005":
|
|
4413
|
-
return /* @__PURE__ */
|
|
4452
|
+
return /* @__PURE__ */ jsx61(A01005, { color });
|
|
4414
4453
|
case "1206":
|
|
4415
|
-
return /* @__PURE__ */
|
|
4454
|
+
return /* @__PURE__ */ jsx61(A1206, { color });
|
|
4416
4455
|
case "1210":
|
|
4417
|
-
return /* @__PURE__ */
|
|
4456
|
+
return /* @__PURE__ */ jsx61(A1210, { color });
|
|
4418
4457
|
case "2010":
|
|
4419
|
-
return /* @__PURE__ */
|
|
4458
|
+
return /* @__PURE__ */ jsx61(A2010, { color });
|
|
4420
4459
|
case "2512":
|
|
4421
|
-
return /* @__PURE__ */
|
|
4460
|
+
return /* @__PURE__ */ jsx61(A2512, { color });
|
|
4422
4461
|
}
|
|
4423
4462
|
return null;
|
|
4424
4463
|
};
|
|
4425
4464
|
|
|
4426
4465
|
// lib/SOT-23-3P.tsx
|
|
4427
|
-
import { Fragment as
|
|
4466
|
+
import { Fragment as Fragment56, jsx as jsx62, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4428
4467
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4429
4468
|
const bodyWidth = 1.3;
|
|
4430
4469
|
const bodyLength10 = 2.9;
|
|
@@ -4435,8 +4474,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4435
4474
|
const padContactLength = 0.4;
|
|
4436
4475
|
const padThickness = leadThickness / 2;
|
|
4437
4476
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4438
|
-
return /* @__PURE__ */
|
|
4439
|
-
/* @__PURE__ */
|
|
4477
|
+
return /* @__PURE__ */ jsxs59(Fragment56, { children: [
|
|
4478
|
+
/* @__PURE__ */ jsx62(
|
|
4440
4479
|
SmdChipLead,
|
|
4441
4480
|
{
|
|
4442
4481
|
rotation: Math.PI,
|
|
@@ -4453,7 +4492,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4453
4492
|
},
|
|
4454
4493
|
1
|
|
4455
4494
|
),
|
|
4456
|
-
/* @__PURE__ */
|
|
4495
|
+
/* @__PURE__ */ jsx62(
|
|
4457
4496
|
SmdChipLead,
|
|
4458
4497
|
{
|
|
4459
4498
|
rotation: Math.PI,
|
|
@@ -4470,7 +4509,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4470
4509
|
},
|
|
4471
4510
|
2
|
|
4472
4511
|
),
|
|
4473
|
-
/* @__PURE__ */
|
|
4512
|
+
/* @__PURE__ */ jsx62(
|
|
4474
4513
|
SmdChipLead,
|
|
4475
4514
|
{
|
|
4476
4515
|
position: {
|
|
@@ -4486,7 +4525,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4486
4525
|
},
|
|
4487
4526
|
3
|
|
4488
4527
|
),
|
|
4489
|
-
/* @__PURE__ */
|
|
4528
|
+
/* @__PURE__ */ jsx62(
|
|
4490
4529
|
ChipBody,
|
|
4491
4530
|
{
|
|
4492
4531
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4499,8 +4538,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4499
4538
|
};
|
|
4500
4539
|
|
|
4501
4540
|
// lib/SOT-563.tsx
|
|
4502
|
-
import { Cuboid as Cuboid40, Translate as
|
|
4503
|
-
import { Fragment as
|
|
4541
|
+
import { Cuboid as Cuboid40, Translate as Translate28, Rotate as Rotate12, Colorize as Colorize32 } from "jscad-fiber";
|
|
4542
|
+
import { Fragment as Fragment57, jsx as jsx63, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
4504
4543
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
4505
4544
|
const bodyWidth = 1.2;
|
|
4506
4545
|
const bodyLength10 = 1.6;
|
|
@@ -4510,28 +4549,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4510
4549
|
const leadHeight = 0.13;
|
|
4511
4550
|
const leadSpacing = 0.5;
|
|
4512
4551
|
const bodyZOffset = -0.4;
|
|
4513
|
-
return /* @__PURE__ */
|
|
4514
|
-
/* @__PURE__ */
|
|
4552
|
+
return /* @__PURE__ */ jsxs60(Fragment57, { children: [
|
|
4553
|
+
/* @__PURE__ */ jsx63(Rotate12, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx63(Translate28, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx63(Colorize32, { color: "grey", children: /* @__PURE__ */ jsx63(Cuboid40, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
4515
4554
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
4516
4555
|
// Left lead
|
|
4517
|
-
/* @__PURE__ */
|
|
4518
|
-
|
|
4556
|
+
/* @__PURE__ */ jsx63(
|
|
4557
|
+
Translate28,
|
|
4519
4558
|
{
|
|
4520
4559
|
center: [
|
|
4521
4560
|
-bodyWidth / 2 - 0.03,
|
|
4522
4561
|
yOffset * leadSpacing,
|
|
4523
4562
|
leadHeight / 2
|
|
4524
4563
|
],
|
|
4525
|
-
children: /* @__PURE__ */
|
|
4564
|
+
children: /* @__PURE__ */ jsx63(Cuboid40, { size: [leadLength, leadWidth, leadHeight] })
|
|
4526
4565
|
},
|
|
4527
4566
|
`left-${index}`
|
|
4528
4567
|
),
|
|
4529
4568
|
// Right lead
|
|
4530
|
-
/* @__PURE__ */
|
|
4531
|
-
|
|
4569
|
+
/* @__PURE__ */ jsx63(
|
|
4570
|
+
Translate28,
|
|
4532
4571
|
{
|
|
4533
4572
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
4534
|
-
children: /* @__PURE__ */
|
|
4573
|
+
children: /* @__PURE__ */ jsx63(Cuboid40, { size: [leadLength, leadWidth, leadHeight] })
|
|
4535
4574
|
},
|
|
4536
4575
|
`right-${index}`
|
|
4537
4576
|
)
|
|
@@ -4540,7 +4579,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4540
4579
|
};
|
|
4541
4580
|
|
|
4542
4581
|
// lib/sod-123.tsx
|
|
4543
|
-
import { Fragment as
|
|
4582
|
+
import { Fragment as Fragment58, jsx as jsx64, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
4544
4583
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
4545
4584
|
const bodyWidth = 2.9;
|
|
4546
4585
|
const bodyLength10 = 1.3;
|
|
@@ -4551,8 +4590,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4551
4590
|
const padContactLength = 0.4;
|
|
4552
4591
|
const padThickness = leadThickness / 2;
|
|
4553
4592
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
4554
|
-
return /* @__PURE__ */
|
|
4555
|
-
/* @__PURE__ */
|
|
4593
|
+
return /* @__PURE__ */ jsxs61(Fragment58, { children: [
|
|
4594
|
+
/* @__PURE__ */ jsx64(
|
|
4556
4595
|
SmdChipLead,
|
|
4557
4596
|
{
|
|
4558
4597
|
position: {
|
|
@@ -4568,7 +4607,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4568
4607
|
},
|
|
4569
4608
|
1
|
|
4570
4609
|
),
|
|
4571
|
-
/* @__PURE__ */
|
|
4610
|
+
/* @__PURE__ */ jsx64(
|
|
4572
4611
|
SmdChipLead,
|
|
4573
4612
|
{
|
|
4574
4613
|
rotation: Math.PI,
|
|
@@ -4585,7 +4624,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
4585
4624
|
},
|
|
4586
4625
|
2
|
|
4587
4626
|
),
|
|
4588
|
-
/* @__PURE__ */
|
|
4627
|
+
/* @__PURE__ */ jsx64(
|
|
4589
4628
|
ChipBody,
|
|
4590
4629
|
{
|
|
4591
4630
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -4606,6 +4645,7 @@ export {
|
|
|
4606
4645
|
A1210,
|
|
4607
4646
|
A2010,
|
|
4608
4647
|
A2512,
|
|
4648
|
+
AxialCapacitor,
|
|
4609
4649
|
BGA,
|
|
4610
4650
|
ChipBody,
|
|
4611
4651
|
DFN,
|