jscad-electronics 0.0.89 → 0.0.90

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
@@ -2659,40 +2659,67 @@ var LQFP = ({
2659
2659
  };
2660
2660
 
2661
2661
  // lib/SOT-723.tsx
2662
- import { Cuboid as Cuboid27, Translate as Translate18, Rotate as Rotate6, Colorize as Colorize19 } from "jscad-fiber";
2662
+ import { Cuboid as Cuboid27, Translate as Translate18, Colorize as Colorize19, Hull as Hull13, Union as Union14 } from "jscad-fiber";
2663
2663
  import { Fragment as Fragment36, jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
2664
- var getCcwSot723Coords = (pn) => {
2665
- if (pn === 1) {
2666
- return { x: 0, y: 0 };
2667
- } else if (pn === 2) {
2668
- return { x: 1, y: -0.4 };
2669
- } else {
2670
- return { x: 1, y: 0.4 };
2671
- }
2672
- };
2673
2664
  var SOT723 = () => {
2674
- const bodyWidth = 0.8;
2665
+ const bodyWidth = 0.85;
2675
2666
  const bodyLength10 = 1.2;
2676
- const bodyHeight = 0.5;
2677
- const leadWidth = 0.32;
2678
- const leadLength = 0.3;
2679
- const leadHeight = 0.1;
2680
- const centerLeadWidth = 0.42;
2667
+ const bodyHeight = 0.38;
2668
+ const straightHeight = bodyHeight * 0.55;
2669
+ const taperOffset = 0.1;
2670
+ const padLength = 0.3;
2671
+ const padThickness = 0.1;
2672
+ const leftPadWidth = 0.2;
2673
+ const rightPadWidth = 0.25;
2674
+ const rightPadCenterX = 0.55;
2675
+ const rightPadCenterY = 0;
2676
+ const leftTopPadCenterX = -0.55;
2677
+ const leftTopPadCenterY = 0.4;
2678
+ const leftBottomPadCenterX = -0.55;
2679
+ const leftBottomPadCenterY = -0.4;
2681
2680
  return /* @__PURE__ */ jsxs38(Fragment36, { children: [
2682
- /* @__PURE__ */ jsx40(Rotate6, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx40(Translate18, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ jsx40(Colorize19, { color: "grey", children: /* @__PURE__ */ jsx40(Cuboid27, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
2683
- [1, 2, 3].map((pn) => {
2684
- const { x, y } = getCcwSot723Coords(pn);
2685
- return /* @__PURE__ */ jsx40(Translate18, { center: [x, y, 0.05], children: /* @__PURE__ */ jsx40(
2681
+ /* @__PURE__ */ jsx40(Colorize19, { color: "#222", children: /* @__PURE__ */ jsxs38(Union14, { children: [
2682
+ /* @__PURE__ */ jsx40(
2686
2683
  Cuboid27,
2687
2684
  {
2688
- size: [
2689
- leadLength,
2690
- pn === 1 ? centerLeadWidth : leadWidth,
2691
- leadHeight
2692
- ]
2685
+ size: [bodyWidth, bodyLength10, straightHeight],
2686
+ center: [0, 0, straightHeight / 2]
2693
2687
  }
2694
- ) }, `lead-${pn}`);
2695
- })
2688
+ ),
2689
+ /* @__PURE__ */ jsxs38(Hull13, { children: [
2690
+ /* @__PURE__ */ jsx40(Translate18, { z: straightHeight, children: /* @__PURE__ */ jsx40(Cuboid27, { size: [bodyWidth, bodyLength10, 0.01] }) }),
2691
+ /* @__PURE__ */ jsx40(Translate18, { z: bodyHeight, children: /* @__PURE__ */ jsx40(
2692
+ Cuboid27,
2693
+ {
2694
+ size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
2695
+ }
2696
+ ) })
2697
+ ] })
2698
+ ] }) }),
2699
+ /* @__PURE__ */ jsx40(
2700
+ Cuboid27,
2701
+ {
2702
+ color: "#ccc",
2703
+ size: [padLength, rightPadWidth, padThickness],
2704
+ center: [rightPadCenterX, rightPadCenterY, padThickness / 2]
2705
+ }
2706
+ ),
2707
+ /* @__PURE__ */ jsx40(
2708
+ Cuboid27,
2709
+ {
2710
+ color: "#ccc",
2711
+ size: [padLength, leftPadWidth, padThickness],
2712
+ center: [leftTopPadCenterX, leftTopPadCenterY, padThickness / 2]
2713
+ }
2714
+ ),
2715
+ /* @__PURE__ */ jsx40(
2716
+ Cuboid27,
2717
+ {
2718
+ color: "#ccc",
2719
+ size: [padLength, leftPadWidth, padThickness],
2720
+ center: [leftBottomPadCenterX, leftBottomPadCenterY, padThickness / 2]
2721
+ }
2722
+ )
2696
2723
  ] });
2697
2724
  };
2698
2725
 
@@ -2767,7 +2794,7 @@ var DFN = ({
2767
2794
  };
2768
2795
 
2769
2796
  // lib/hc49.tsx
2770
- import { Colorize as Colorize20, Cylinder as Cylinder6, Hull as Hull13, RoundedCylinder } from "jscad-fiber";
2797
+ import { Colorize as Colorize20, Cylinder as Cylinder6, Hull as Hull14, RoundedCylinder } from "jscad-fiber";
2771
2798
  import { Fragment as Fragment38, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
2772
2799
  var HC49 = ({
2773
2800
  bodyLength: bodyLength10 = 10.2,
@@ -2786,7 +2813,7 @@ var HC49 = ({
2786
2813
  const baseHeight = 0.85;
2787
2814
  return /* @__PURE__ */ jsxs40(Fragment38, { children: [
2788
2815
  /* @__PURE__ */ jsxs40(Colorize20, { color, children: [
2789
- /* @__PURE__ */ jsxs40(Hull13, { children: [
2816
+ /* @__PURE__ */ jsxs40(Hull14, { children: [
2790
2817
  /* @__PURE__ */ jsx42(
2791
2818
  RoundedCylinder,
2792
2819
  {
@@ -2806,7 +2833,7 @@ var HC49 = ({
2806
2833
  }
2807
2834
  )
2808
2835
  ] }),
2809
- /* @__PURE__ */ jsxs40(Hull13, { children: [
2836
+ /* @__PURE__ */ jsxs40(Hull14, { children: [
2810
2837
  /* @__PURE__ */ jsx42(
2811
2838
  RoundedCylinder,
2812
2839
  {
@@ -2853,7 +2880,7 @@ import {
2853
2880
  Colorize as Colorize21,
2854
2881
  Cylinder as Cylinder7,
2855
2882
  RoundedCylinder as RoundedCylinder2,
2856
- Rotate as Rotate7,
2883
+ Rotate as Rotate6,
2857
2884
  RoundedCuboid as RoundedCuboid2
2858
2885
  } from "jscad-fiber";
2859
2886
  import { Fragment as Fragment39, jsx as jsx43, jsxs as jsxs41 } from "react/jsx-runtime";
@@ -2866,7 +2893,7 @@ var MicroMELF = ({
2866
2893
  }) => {
2867
2894
  const padLength = 0.2;
2868
2895
  return /* @__PURE__ */ jsxs41(Fragment39, { children: [
2869
- /* @__PURE__ */ jsx43(Colorize21, { color, children: /* @__PURE__ */ jsxs41(Rotate7, { rotation: [0, "90deg", 0], children: [
2896
+ /* @__PURE__ */ jsx43(Colorize21, { color, children: /* @__PURE__ */ jsxs41(Rotate6, { rotation: [0, "90deg", 0], children: [
2870
2897
  /* @__PURE__ */ jsx43(
2871
2898
  RoundedCuboid2,
2872
2899
  {
@@ -2884,7 +2911,7 @@ var MicroMELF = ({
2884
2911
  }
2885
2912
  )
2886
2913
  ] }) }),
2887
- /* @__PURE__ */ jsx43(Colorize21, { color: cathodeIdentification, children: /* @__PURE__ */ jsx43(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
2914
+ /* @__PURE__ */ jsx43(Colorize21, { color: cathodeIdentification, children: /* @__PURE__ */ jsx43(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
2888
2915
  RoundedCuboid2,
2889
2916
  {
2890
2917
  size: [bodyDiameter * 1.01, bodyDiameter * 1.01, bodyLength10 / 3],
@@ -2892,7 +2919,7 @@ var MicroMELF = ({
2892
2919
  center: [-bodyDiameter / 2, 0, -bodyLength10 / 4 + 0.1]
2893
2920
  }
2894
2921
  ) }) }),
2895
- /* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
2922
+ /* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
2896
2923
  RoundedCylinder2,
2897
2924
  {
2898
2925
  height: padLength,
@@ -2901,7 +2928,7 @@ var MicroMELF = ({
2901
2928
  center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
2902
2929
  }
2903
2930
  ) }) }),
2904
- /* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
2931
+ /* @__PURE__ */ jsx43(Colorize21, { color: contactColor, children: /* @__PURE__ */ jsx43(Rotate6, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx43(
2905
2932
  RoundedCylinder2,
2906
2933
  {
2907
2934
  height: padLength,
@@ -2914,7 +2941,7 @@ var MicroMELF = ({
2914
2941
  };
2915
2942
 
2916
2943
  // lib/MINIMELF.tsx
2917
- import { Colorize as Colorize22, RoundedCylinder as RoundedCylinder3, Rotate as Rotate8 } from "jscad-fiber";
2944
+ import { Colorize as Colorize22, RoundedCylinder as RoundedCylinder3, Rotate as Rotate7 } from "jscad-fiber";
2918
2945
  import { Fragment as Fragment40, jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
2919
2946
  var MINIMELF = ({
2920
2947
  bodyLength: bodyLength10 = 3.5,
@@ -2924,7 +2951,7 @@ var MINIMELF = ({
2924
2951
  }) => {
2925
2952
  const padLength = 0.5;
2926
2953
  return /* @__PURE__ */ jsxs42(Fragment40, { children: [
2927
- /* @__PURE__ */ jsx44(Colorize22, { color, children: /* @__PURE__ */ jsx44(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
2954
+ /* @__PURE__ */ jsx44(Colorize22, { color, children: /* @__PURE__ */ jsx44(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
2928
2955
  RoundedCylinder3,
2929
2956
  {
2930
2957
  height: bodyLength10,
@@ -2933,7 +2960,7 @@ var MINIMELF = ({
2933
2960
  center: [-bodyDiameter / 2, 0, 0]
2934
2961
  }
2935
2962
  ) }) }),
2936
- /* @__PURE__ */ jsx44(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx44(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
2963
+ /* @__PURE__ */ jsx44(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx44(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
2937
2964
  RoundedCylinder3,
2938
2965
  {
2939
2966
  height: padLength,
@@ -2942,7 +2969,7 @@ var MINIMELF = ({
2942
2969
  center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
2943
2970
  }
2944
2971
  ) }) }),
2945
- /* @__PURE__ */ jsx44(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx44(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
2972
+ /* @__PURE__ */ jsx44(Colorize22, { color: contactColor, children: /* @__PURE__ */ jsx44(Rotate7, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx44(
2946
2973
  RoundedCylinder3,
2947
2974
  {
2948
2975
  height: padLength,
@@ -2955,7 +2982,7 @@ var MINIMELF = ({
2955
2982
  };
2956
2983
 
2957
2984
  // lib/MELF.tsx
2958
- import { Colorize as Colorize23, RoundedCylinder as RoundedCylinder4, Rotate as Rotate9 } from "jscad-fiber";
2985
+ import { Colorize as Colorize23, RoundedCylinder as RoundedCylinder4, Rotate as Rotate8 } from "jscad-fiber";
2959
2986
  import { Fragment as Fragment41, jsx as jsx45, jsxs as jsxs43 } from "react/jsx-runtime";
2960
2987
  var MELF = ({
2961
2988
  bodyLength: bodyLength10 = 3.9,
@@ -2965,7 +2992,7 @@ var MELF = ({
2965
2992
  }) => {
2966
2993
  const padLength = 0.55;
2967
2994
  return /* @__PURE__ */ jsxs43(Fragment41, { children: [
2968
- /* @__PURE__ */ jsx45(Colorize23, { color, children: /* @__PURE__ */ jsx45(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
2995
+ /* @__PURE__ */ jsx45(Colorize23, { color, children: /* @__PURE__ */ jsx45(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
2969
2996
  RoundedCylinder4,
2970
2997
  {
2971
2998
  height: bodyLength10,
@@ -2974,7 +3001,7 @@ var MELF = ({
2974
3001
  center: [-bodyDiameter / 2, 0, 0]
2975
3002
  }
2976
3003
  ) }) }),
2977
- /* @__PURE__ */ jsx45(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
3004
+ /* @__PURE__ */ jsx45(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
2978
3005
  RoundedCylinder4,
2979
3006
  {
2980
3007
  height: padLength,
@@ -2983,7 +3010,7 @@ var MELF = ({
2983
3010
  center: [-bodyDiameter / 2, 0, -bodyLength10 / 2]
2984
3011
  }
2985
3012
  ) }) }),
2986
- /* @__PURE__ */ jsx45(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
3013
+ /* @__PURE__ */ jsx45(Colorize23, { color: contactColor, children: /* @__PURE__ */ jsx45(Rotate8, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx45(
2987
3014
  RoundedCylinder4,
2988
3015
  {
2989
3016
  height: padLength,
@@ -3345,7 +3372,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
3345
3372
  };
3346
3373
 
3347
3374
  // lib/SOT-563.tsx
3348
- import { Cuboid as Cuboid31, Translate as Translate19, Rotate as Rotate10, Colorize as Colorize24 } from "jscad-fiber";
3375
+ import { Cuboid as Cuboid31, Translate as Translate19, Rotate as Rotate9, Colorize as Colorize24 } from "jscad-fiber";
3349
3376
  import { Fragment as Fragment44, jsx as jsx49, jsxs as jsxs46 } from "react/jsx-runtime";
3350
3377
  var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
3351
3378
  const bodyWidth = 1.2;
@@ -3357,7 +3384,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
3357
3384
  const leadSpacing = 0.5;
3358
3385
  const bodyZOffset = -0.4;
3359
3386
  return /* @__PURE__ */ jsxs46(Fragment44, { children: [
3360
- /* @__PURE__ */ jsx49(Rotate10, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx49(Translate19, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx49(Colorize24, { color: "grey", children: /* @__PURE__ */ jsx49(Cuboid31, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
3387
+ /* @__PURE__ */ jsx49(Rotate9, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx49(Translate19, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx49(Colorize24, { color: "grey", children: /* @__PURE__ */ jsx49(Cuboid31, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
3361
3388
  [-1, 0, 1].flatMap((yOffset, index) => [
3362
3389
  // Left lead
3363
3390
  /* @__PURE__ */ jsx49(