jscad-electronics 0.0.87 → 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 CHANGED
@@ -865,13 +865,13 @@ var QFP = ({
865
865
  const fullWidth = fullLength10;
866
866
  const leadHeight = 0.8;
867
867
  const leadThickness = 0.15;
868
- const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
868
+ const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.5;
869
869
  return /* @__PURE__ */ jsxs17(Fragment15, { children: [
870
870
  Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx19(
871
871
  SmdChipLead,
872
872
  {
873
873
  position: {
874
- x: -fullWidth / 2,
874
+ x: -fullWidth / 2 - 0.4,
875
875
  y: i * pitch - pinOffsetToCenter,
876
876
  z: leadThickness / 2
877
877
  },
@@ -888,7 +888,7 @@ var QFP = ({
888
888
  {
889
889
  rotation: Math.PI,
890
890
  position: {
891
- x: fullWidth / 2,
891
+ x: fullWidth / 2 + 0.4,
892
892
  y: i * pitch - pinOffsetToCenter,
893
893
  z: leadThickness / 2
894
894
  },
@@ -906,7 +906,7 @@ var QFP = ({
906
906
  rotation: Math.PI / 2,
907
907
  position: {
908
908
  x: i * pitch - pinOffsetToCenter,
909
- y: -fullLength10 / 2,
909
+ y: -fullLength10 / 2 - 0.4,
910
910
  z: leadThickness / 2
911
911
  },
912
912
  width: leadWidth,
@@ -923,7 +923,7 @@ var QFP = ({
923
923
  rotation: -Math.PI / 2,
924
924
  position: {
925
925
  x: i * pitch - pinOffsetToCenter,
926
- y: fullLength10 / 2,
926
+ y: fullLength10 / 2 + 0.4,
927
927
  z: leadThickness / 2
928
928
  },
929
929
  width: leadWidth,
@@ -937,12 +937,12 @@ var QFP = ({
937
937
  /* @__PURE__ */ jsx19(
938
938
  ChipBody,
939
939
  {
940
- center: { x: 0, y: 0, z: leadThickness / 2 },
940
+ center: { x: 0, y: 0, z: 0 },
941
941
  width: bodyWidth,
942
942
  length: bodyLength10,
943
943
  height: 1.5,
944
944
  taperRatio: 0.03,
945
- chamferSize: 1,
945
+ chamferSize: 0.7,
946
946
  notchPosition: {
947
947
  x: bodyLength10 / 2 - 1.5,
948
948
  y: bodyWidth / 2 - 1.5,
@@ -968,14 +968,17 @@ var getPitch = (pinCount, width10) => {
968
968
  };
969
969
  var getPadContactLength = (pinCount) => {
970
970
  switch (pinCount) {
971
- case 44:
971
+ case 32:
972
+ return 0.6;
973
+ case 40:
974
+ return 0.6;
972
975
  case 52:
973
976
  case 64:
974
- return 2.25;
977
+ return 0.65;
975
978
  case 208:
976
979
  return 1.65;
977
980
  default:
978
- return 1;
981
+ return 0.6;
979
982
  }
980
983
  };
981
984
  var getLeadWidth = (pinCount, width10) => {
@@ -2375,7 +2378,7 @@ var TQFP = () => {
2375
2378
  const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
2376
2379
  const fullLength10 = bodyLength10 + 2 * padContactLength + 0.6;
2377
2380
  const fullWidth = fullLength10;
2378
- const leadHeight = 0.8;
2381
+ const leadHeight = 0.65;
2379
2382
  const leadThickness = 0.25;
2380
2383
  const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
2381
2384
  return /* @__PURE__ */ jsxs35(Fragment33, { children: [
@@ -2449,11 +2452,11 @@ var TQFP = () => {
2449
2452
  /* @__PURE__ */ jsx37(
2450
2453
  ChipBody,
2451
2454
  {
2452
- center: { x: 0, y: 0, z: leadThickness / 2 },
2455
+ center: { x: 0, y: 0, z: 0 },
2453
2456
  width: bodyWidth,
2454
2457
  length: bodyLength10,
2455
2458
  height: 1.2,
2456
- chamferSize: 0.6,
2459
+ chamferSize: 0.7,
2457
2460
  taperRatio: 0.05,
2458
2461
  notchPosition: { x: 3.5, y: 3.5, z: 1.2 },
2459
2462
  notchRadius: 1.2 / 2
@@ -2565,13 +2568,13 @@ var LQFP = ({
2565
2568
  const fullWidth = fullLength10;
2566
2569
  const leadHeight = 0.8;
2567
2570
  const leadThickness = 0.2;
2568
- const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.2;
2571
+ const bodyDistance = (fullWidth - bodyWidth) / 2 + 0.4;
2569
2572
  return /* @__PURE__ */ jsxs37(Fragment35, { children: [
2570
2573
  Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ jsx39(
2571
2574
  SmdChipLead,
2572
2575
  {
2573
2576
  position: {
2574
- x: -fullWidth / 1.98,
2577
+ x: -fullWidth / 2 - 0.36,
2575
2578
  y: i * pitch - pinOffsetToCenter,
2576
2579
  z: leadThickness / 2
2577
2580
  },
@@ -2588,7 +2591,7 @@ var LQFP = ({
2588
2591
  {
2589
2592
  rotation: Math.PI,
2590
2593
  position: {
2591
- x: fullWidth / 1.98,
2594
+ x: fullWidth / 2 + 0.36,
2592
2595
  y: i * pitch - pinOffsetToCenter,
2593
2596
  z: leadThickness / 2
2594
2597
  },
@@ -2606,7 +2609,7 @@ var LQFP = ({
2606
2609
  rotation: Math.PI / 2,
2607
2610
  position: {
2608
2611
  x: i * pitch - pinOffsetToCenter,
2609
- y: -fullLength10 / 1.98,
2612
+ y: -fullLength10 / 2 - 0.36,
2610
2613
  z: leadThickness / 2
2611
2614
  },
2612
2615
  width: leadWidth,
@@ -2623,7 +2626,7 @@ var LQFP = ({
2623
2626
  rotation: -Math.PI / 2,
2624
2627
  position: {
2625
2628
  x: i * pitch - pinOffsetToCenter,
2626
- y: fullLength10 / 1.98,
2629
+ y: fullLength10 / 2 + 0.36,
2627
2630
  z: leadThickness / 2
2628
2631
  },
2629
2632
  width: leadWidth,
@@ -2637,7 +2640,7 @@ var LQFP = ({
2637
2640
  /* @__PURE__ */ jsx39(
2638
2641
  ChipBody,
2639
2642
  {
2640
- center: { x: 0, y: 0, z: leadThickness / 2 },
2643
+ center: { x: 0, y: 0, z: 0 },
2641
2644
  width: bodyWidth,
2642
2645
  length: bodyLength10,
2643
2646
  height: 1.5,