jscad-electronics 0.0.88 → 0.0.89
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.js +22 -19
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +22 -19
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -540,13 +540,13 @@ var QFP = ({
|
|
|
540
540
|
const fullWidth = fullLength10;
|
|
541
541
|
const leadHeight = 0.8;
|
|
542
542
|
const leadThickness = 0.15;
|
|
543
|
-
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.
|
|
543
|
+
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.5;
|
|
544
544
|
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
545
545
|
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx(
|
|
546
546
|
SmdChipLead,
|
|
547
547
|
{
|
|
548
548
|
position: {
|
|
549
|
-
x: -fullWidth / 2,
|
|
549
|
+
x: -fullWidth / 2 - 0.4,
|
|
550
550
|
y: i * pitch - pinOffsetToCenter,
|
|
551
551
|
z: leadThickness / 2
|
|
552
552
|
},
|
|
@@ -563,7 +563,7 @@ var QFP = ({
|
|
|
563
563
|
{
|
|
564
564
|
rotation: Math.PI,
|
|
565
565
|
position: {
|
|
566
|
-
x: fullWidth / 2,
|
|
566
|
+
x: fullWidth / 2 + 0.4,
|
|
567
567
|
y: i * pitch - pinOffsetToCenter,
|
|
568
568
|
z: leadThickness / 2
|
|
569
569
|
},
|
|
@@ -581,7 +581,7 @@ var QFP = ({
|
|
|
581
581
|
rotation: Math.PI / 2,
|
|
582
582
|
position: {
|
|
583
583
|
x: i * pitch - pinOffsetToCenter,
|
|
584
|
-
y: -fullLength10 / 2,
|
|
584
|
+
y: -fullLength10 / 2 - 0.4,
|
|
585
585
|
z: leadThickness / 2
|
|
586
586
|
},
|
|
587
587
|
width: leadWidth,
|
|
@@ -598,7 +598,7 @@ var QFP = ({
|
|
|
598
598
|
rotation: -Math.PI / 2,
|
|
599
599
|
position: {
|
|
600
600
|
x: i * pitch - pinOffsetToCenter,
|
|
601
|
-
y: fullLength10 / 2,
|
|
601
|
+
y: fullLength10 / 2 + 0.4,
|
|
602
602
|
z: leadThickness / 2
|
|
603
603
|
},
|
|
604
604
|
width: leadWidth,
|
|
@@ -612,12 +612,12 @@ var QFP = ({
|
|
|
612
612
|
/* @__PURE__ */ jsx(
|
|
613
613
|
ChipBody,
|
|
614
614
|
{
|
|
615
|
-
center: { x: 0, y: 0, z:
|
|
615
|
+
center: { x: 0, y: 0, z: 0 },
|
|
616
616
|
width: bodyWidth,
|
|
617
617
|
length: bodyLength10,
|
|
618
618
|
height: 1.5,
|
|
619
619
|
taperRatio: 0.03,
|
|
620
|
-
chamferSize:
|
|
620
|
+
chamferSize: 0.7,
|
|
621
621
|
notchPosition: {
|
|
622
622
|
x: bodyLength10 / 2 - 1.5,
|
|
623
623
|
y: bodyWidth / 2 - 1.5,
|
|
@@ -643,14 +643,17 @@ var getPitch = (pinCount, width10) => {
|
|
|
643
643
|
};
|
|
644
644
|
var getPadContactLength = (pinCount) => {
|
|
645
645
|
switch (pinCount) {
|
|
646
|
-
case
|
|
646
|
+
case 32:
|
|
647
|
+
return 0.6;
|
|
648
|
+
case 40:
|
|
649
|
+
return 0.6;
|
|
647
650
|
case 52:
|
|
648
651
|
case 64:
|
|
649
|
-
return
|
|
652
|
+
return 0.65;
|
|
650
653
|
case 208:
|
|
651
654
|
return 1.65;
|
|
652
655
|
default:
|
|
653
|
-
return
|
|
656
|
+
return 0.6;
|
|
654
657
|
}
|
|
655
658
|
};
|
|
656
659
|
var getLeadWidth = (pinCount, width10) => {
|
|
@@ -2219,7 +2222,7 @@ var TQFP = () => {
|
|
|
2219
2222
|
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
2220
2223
|
const fullLength10 = bodyLength10 + 2 * padContactLength + 0.6;
|
|
2221
2224
|
const fullWidth = fullLength10;
|
|
2222
|
-
const leadHeight = 0.
|
|
2225
|
+
const leadHeight = 0.65;
|
|
2223
2226
|
const leadThickness = 0.25;
|
|
2224
2227
|
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
|
|
2225
2228
|
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
@@ -2293,11 +2296,11 @@ var TQFP = () => {
|
|
|
2293
2296
|
/* @__PURE__ */ jsx(
|
|
2294
2297
|
ChipBody,
|
|
2295
2298
|
{
|
|
2296
|
-
center: { x: 0, y: 0, z:
|
|
2299
|
+
center: { x: 0, y: 0, z: 0 },
|
|
2297
2300
|
width: bodyWidth,
|
|
2298
2301
|
length: bodyLength10,
|
|
2299
2302
|
height: 1.2,
|
|
2300
|
-
chamferSize: 0.
|
|
2303
|
+
chamferSize: 0.7,
|
|
2301
2304
|
taperRatio: 0.05,
|
|
2302
2305
|
notchPosition: { x: 3.5, y: 3.5, z: 1.2 },
|
|
2303
2306
|
notchRadius: 1.2 / 2
|
|
@@ -2407,13 +2410,13 @@ var LQFP = ({
|
|
|
2407
2410
|
const fullWidth = fullLength10;
|
|
2408
2411
|
const leadHeight = 0.8;
|
|
2409
2412
|
const leadThickness = 0.2;
|
|
2410
|
-
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.
|
|
2413
|
+
const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
|
|
2411
2414
|
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
2412
2415
|
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx(
|
|
2413
2416
|
SmdChipLead,
|
|
2414
2417
|
{
|
|
2415
2418
|
position: {
|
|
2416
|
-
x: -fullWidth /
|
|
2419
|
+
x: -fullWidth / 2 - 0.36,
|
|
2417
2420
|
y: i * pitch - pinOffsetToCenter,
|
|
2418
2421
|
z: leadThickness / 2
|
|
2419
2422
|
},
|
|
@@ -2430,7 +2433,7 @@ var LQFP = ({
|
|
|
2430
2433
|
{
|
|
2431
2434
|
rotation: Math.PI,
|
|
2432
2435
|
position: {
|
|
2433
|
-
x: fullWidth /
|
|
2436
|
+
x: fullWidth / 2 + 0.36,
|
|
2434
2437
|
y: i * pitch - pinOffsetToCenter,
|
|
2435
2438
|
z: leadThickness / 2
|
|
2436
2439
|
},
|
|
@@ -2448,7 +2451,7 @@ var LQFP = ({
|
|
|
2448
2451
|
rotation: Math.PI / 2,
|
|
2449
2452
|
position: {
|
|
2450
2453
|
x: i * pitch - pinOffsetToCenter,
|
|
2451
|
-
y: -fullLength10 /
|
|
2454
|
+
y: -fullLength10 / 2 - 0.36,
|
|
2452
2455
|
z: leadThickness / 2
|
|
2453
2456
|
},
|
|
2454
2457
|
width: leadWidth,
|
|
@@ -2465,7 +2468,7 @@ var LQFP = ({
|
|
|
2465
2468
|
rotation: -Math.PI / 2,
|
|
2466
2469
|
position: {
|
|
2467
2470
|
x: i * pitch - pinOffsetToCenter,
|
|
2468
|
-
y: fullLength10 /
|
|
2471
|
+
y: fullLength10 / 2 + 0.36,
|
|
2469
2472
|
z: leadThickness / 2
|
|
2470
2473
|
},
|
|
2471
2474
|
width: leadWidth,
|
|
@@ -2479,7 +2482,7 @@ var LQFP = ({
|
|
|
2479
2482
|
/* @__PURE__ */ jsx(
|
|
2480
2483
|
ChipBody,
|
|
2481
2484
|
{
|
|
2482
|
-
center: { x: 0, y: 0, z:
|
|
2485
|
+
center: { x: 0, y: 0, z: 0 },
|
|
2483
2486
|
width: bodyWidth,
|
|
2484
2487
|
length: bodyLength10,
|
|
2485
2488
|
height: 1.5,
|