jscad-electronics 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/dist/index.js +26 -29
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78785,9 +78785,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78785
78785
  const leadWidth = 0.4;
78786
78786
  const leadThickness = 0.15;
78787
78787
  const leadHeight = 0.95;
78788
- const padContactLength = 0.6;
78789
- const leadYOffset = 0.1;
78790
- const bodyYOffset = -0.11;
78788
+ const padContactLength = 0.4;
78791
78789
  const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
78792
78790
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
78793
78791
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
@@ -78795,9 +78793,9 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78795
78793
  {
78796
78794
  rotation: Math.PI,
78797
78795
  position: {
78798
- x: fullWidth / 2 + 0.2,
78799
- y: leadYOffset,
78800
- z: -0.95
78796
+ x: fullWidth / 2,
78797
+ y: -1,
78798
+ z: 0
78801
78799
  },
78802
78800
  width: leadWidth,
78803
78801
  thickness: leadThickness,
@@ -78812,9 +78810,9 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78812
78810
  {
78813
78811
  rotation: Math.PI,
78814
78812
  position: {
78815
- x: fullWidth / 2 + 0.2,
78816
- y: leadYOffset,
78817
- z: 0.95
78813
+ x: fullWidth / 2,
78814
+ y: 1,
78815
+ z: 0
78818
78816
  },
78819
78817
  width: leadWidth,
78820
78818
  thickness: leadThickness,
@@ -78828,8 +78826,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78828
78826
  SmdChipLead,
78829
78827
  {
78830
78828
  position: {
78831
- x: -fullWidth / 2 - 0.2,
78832
- y: leadYOffset,
78829
+ x: -fullWidth / 2,
78830
+ y: 0,
78833
78831
  z: 0
78834
78832
  },
78835
78833
  width: leadWidth,
@@ -78843,7 +78841,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78843
78841
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78844
78842
  ChipBody,
78845
78843
  {
78846
- center: { x: 0, y: bodyHeight / 2 + bodyYOffset, z: 0 },
78844
+ center: { x: 0, y: 0, z: 0 },
78847
78845
  width: bodyWidth,
78848
78846
  length: bodyLength4,
78849
78847
  height: bodyHeight
@@ -78855,25 +78853,24 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78855
78853
  // lib/SOT-563.tsx
78856
78854
  var import_jscad_fiber10 = __toESM(require_dist(), 1);
78857
78855
  var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
78858
- var SOT563 = ({ fullWidth = 2, fullLength: fullLength4 = 1.6 }) => {
78859
- const bodyWidth = 1.6;
78856
+ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength4 = 1.6 }) => {
78857
+ const bodyWidth = 1.2;
78860
78858
  const bodyLength4 = 1.6;
78861
78859
  const bodyHeight = 0.55;
78862
78860
  const leadWidth = 0.3;
78863
- const leadLength = 0.2;
78864
- const leadHeight = 0.1;
78861
+ const leadLength = 0.67;
78862
+ const leadHeight = 0.13;
78865
78863
  const leadSpacing = 0.5;
78866
- const bodyYOffset = leadHeight / 2;
78867
78864
  const bodyZOffset = -0.3;
78868
78865
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
78869
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Rotate, { rotation: [90 / 180 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Translate, { center: [0, bodyYOffset, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
78866
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
78870
78867
  [-1, 0, 1].flatMap((yOffset, index) => [
78871
78868
  // Left lead
78872
78869
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
78873
78870
  import_jscad_fiber10.Translate,
78874
78871
  {
78875
- center: [-fullWidth / 2 + leadWidth / 2, 0, yOffset * leadSpacing],
78876
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Cuboid, { size: [leadWidth, leadHeight, leadLength] })
78872
+ center: [-bodyWidth / 2 - 0.03, yOffset * leadSpacing, 0],
78873
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
78877
78874
  },
78878
78875
  `left-${index}`
78879
78876
  ),
@@ -78881,8 +78878,8 @@ var SOT563 = ({ fullWidth = 2, fullLength: fullLength4 = 1.6 }) => {
78881
78878
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
78882
78879
  import_jscad_fiber10.Translate,
78883
78880
  {
78884
- center: [fullWidth / 2 - leadWidth / 2, 0, yOffset * leadSpacing],
78885
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Cuboid, { size: [leadWidth, leadHeight, leadLength] })
78881
+ center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, 0],
78882
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jscad_fiber10.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
78886
78883
  },
78887
78884
  `right-${index}`
78888
78885
  )
@@ -78897,13 +78894,13 @@ var getCcwSot723Coords = (pn) => {
78897
78894
  if (pn === 1) {
78898
78895
  return { x: 0, y: 0 };
78899
78896
  } else if (pn === 2) {
78900
- return { x: 0.95, y: -0.4 };
78897
+ return { x: 1, y: -0.4 };
78901
78898
  } else {
78902
- return { x: 0.95, y: 0.4 };
78899
+ return { x: 1, y: 0.4 };
78903
78900
  }
78904
78901
  };
78905
78902
  var SOT723 = () => {
78906
- const bodyWidth = 1.2;
78903
+ const bodyWidth = 0.8;
78907
78904
  const bodyLength4 = 1.2;
78908
78905
  const bodyHeight = 0.5;
78909
78906
  const leadWidth = 0.32;
@@ -78911,16 +78908,16 @@ var SOT723 = () => {
78911
78908
  const leadHeight = 0.1;
78912
78909
  const centerLeadWidth = 0.42;
78913
78910
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
78914
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Rotate, { rotation: [90 / 180 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Translate, { center: [0.475, leadHeight / 2, 0], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Cuboid, { size: [bodyWidth - 0.5, bodyLength4, bodyHeight] }) }) }) }),
78911
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
78915
78912
  [1, 2, 3].map((pn) => {
78916
78913
  const { x, y } = getCcwSot723Coords(pn);
78917
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Translate, { center: [x, 0, y], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
78914
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber11.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
78918
78915
  import_jscad_fiber11.Cuboid,
78919
78916
  {
78920
78917
  size: [
78918
+ leadLength,
78921
78919
  pn === 1 ? centerLeadWidth : leadWidth,
78922
- leadHeight,
78923
- leadLength
78920
+ leadHeight
78924
78921
  ]
78925
78922
  }
78926
78923
  ) }, `lead-${pn}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscad-electronics",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {
7
7
  "type": "git",