jscad-electronics 0.0.27 → 0.0.29

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 +163 -84
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7730,7 +7730,7 @@ var require_react_reconciler_development = __commonJS({
7730
7730
  var HostPortal = 4;
7731
7731
  var HostComponent = 5;
7732
7732
  var HostText = 6;
7733
- var Fragment24 = 7;
7733
+ var Fragment25 = 7;
7734
7734
  var Mode = 8;
7735
7735
  var ContextConsumer = 9;
7736
7736
  var ContextProvider = 10;
@@ -7870,7 +7870,7 @@ var require_react_reconciler_development = __commonJS({
7870
7870
  return "DehydratedFragment";
7871
7871
  case ForwardRef:
7872
7872
  return getWrappedName$1(type, type.render, "ForwardRef");
7873
- case Fragment24:
7873
+ case Fragment25:
7874
7874
  return "Fragment";
7875
7875
  case HostComponent:
7876
7876
  return type;
@@ -11004,7 +11004,7 @@ var require_react_reconciler_development = __commonJS({
11004
11004
  }
11005
11005
  }
11006
11006
  function updateFragment2(returnFiber, current2, fragment, lanes, key) {
11007
- if (current2 === null || current2.tag !== Fragment24) {
11007
+ if (current2 === null || current2.tag !== Fragment25) {
11008
11008
  var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
11009
11009
  created.return = returnFiber;
11010
11010
  return created;
@@ -11407,7 +11407,7 @@ var require_react_reconciler_development = __commonJS({
11407
11407
  if (child.key === key) {
11408
11408
  var elementType = element.type;
11409
11409
  if (elementType === REACT_FRAGMENT_TYPE) {
11410
- if (child.tag === Fragment24) {
11410
+ if (child.tag === Fragment25) {
11411
11411
  deleteRemainingChildren(returnFiber, child.sibling);
11412
11412
  var existing = useFiber(child, element.props.children);
11413
11413
  existing.return = returnFiber;
@@ -16898,7 +16898,7 @@ var require_react_reconciler_development = __commonJS({
16898
16898
  var _resolvedProps2 = workInProgress2.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
16899
16899
  return updateForwardRef(current2, workInProgress2, type, _resolvedProps2, renderLanes2);
16900
16900
  }
16901
- case Fragment24:
16901
+ case Fragment25:
16902
16902
  return updateFragment(current2, workInProgress2, renderLanes2);
16903
16903
  case Mode:
16904
16904
  return updateMode(current2, workInProgress2, renderLanes2);
@@ -17335,7 +17335,7 @@ var require_react_reconciler_development = __commonJS({
17335
17335
  case SimpleMemoComponent:
17336
17336
  case FunctionComponent:
17337
17337
  case ForwardRef:
17338
- case Fragment24:
17338
+ case Fragment25:
17339
17339
  case Mode:
17340
17340
  case Profiler:
17341
17341
  case ContextConsumer:
@@ -22103,7 +22103,7 @@ var require_react_reconciler_development = __commonJS({
22103
22103
  return fiber;
22104
22104
  }
22105
22105
  function createFiberFromFragment(elements, mode, lanes, key) {
22106
- var fiber = createFiber(Fragment24, elements, key, mode);
22106
+ var fiber = createFiber(Fragment25, elements, key, mode);
22107
22107
  fiber.lanes = lanes;
22108
22108
  return fiber;
22109
22109
  }
@@ -23704,11 +23704,11 @@ var require_react_jsx_runtime_development = __commonJS({
23704
23704
  return jsxWithValidation(type, props, key, false);
23705
23705
  }
23706
23706
  }
23707
- var jsx29 = jsxWithValidationDynamic;
23708
- var jsxs25 = jsxWithValidationStatic;
23707
+ var jsx30 = jsxWithValidationDynamic;
23708
+ var jsxs26 = jsxWithValidationStatic;
23709
23709
  exports.Fragment = REACT_FRAGMENT_TYPE;
23710
- exports.jsx = jsx29;
23711
- exports.jsxs = jsxs25;
23710
+ exports.jsx = jsx30;
23711
+ exports.jsxs = jsxs26;
23712
23712
  })();
23713
23713
  }
23714
23714
  }
@@ -77300,7 +77300,7 @@ var require_dist = __commonJS({
77300
77300
  Cube: () => Cube2,
77301
77301
  Cuboid: () => Cuboid19,
77302
77302
  Custom: () => Custom,
77303
- Cylinder: () => Cylinder4,
77303
+ Cylinder: () => Cylinder5,
77304
77304
  CylinderElliptic: () => CylinderElliptic,
77305
77305
  Ellipsoid: () => Ellipsoid,
77306
77306
  ExtrudeFromSlices: () => ExtrudeFromSlices,
@@ -77715,9 +77715,9 @@ var require_dist = __commonJS({
77715
77715
  };
77716
77716
  return hostConfig2;
77717
77717
  }
77718
- var import_jsx_runtime29 = require_jsx_runtime();
77718
+ var import_jsx_runtime30 = require_jsx_runtime();
77719
77719
  function Circle({ radius }) {
77720
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("circle", { radius });
77720
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("circle", { radius });
77721
77721
  }
77722
77722
  var import_color = __toESM2(require_color(), 1);
77723
77723
  var import_jsx_runtime210 = require_jsx_runtime();
@@ -77841,7 +77841,7 @@ var require_dist = __commonJS({
77841
77841
  var CylinderBase = ({ radius, height: height10 }) => {
77842
77842
  return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("cylinder", { radius, height: height10 });
77843
77843
  };
77844
- var Cylinder4 = withColorProp(
77844
+ var Cylinder5 = withColorProp(
77845
77845
  withOffsetProp(withRotationProp(CylinderBase))
77846
77846
  );
77847
77847
  var import_jsx_runtime122 = require_jsx_runtime();
@@ -78027,7 +78027,7 @@ var require_dist = __commonJS({
78027
78027
  function Union4({ children }) {
78028
78028
  return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)("union", { children });
78029
78029
  }
78030
- var import_jsx_runtime30 = require_jsx_runtime();
78030
+ var import_jsx_runtime302 = require_jsx_runtime();
78031
78031
  var ExtrudeFromSlicesBase = ({
78032
78032
  numberOfSlices,
78033
78033
  capStart,
@@ -78037,7 +78037,7 @@ var require_dist = __commonJS({
78037
78037
  baseSlice,
78038
78038
  callback
78039
78039
  }) => {
78040
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
78040
+ return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
78041
78041
  "extrudeFromSlices",
78042
78042
  {
78043
78043
  numberOfSlices,
@@ -79006,7 +79006,7 @@ var Tssop = ({
79006
79006
  width: leadWidth,
79007
79007
  thickness: leadThickness,
79008
79008
  padContactLength: leadLength,
79009
- bodyDistance: leadLength,
79009
+ bodyDistance: leadLength + 1,
79010
79010
  height: 0.8
79011
79011
  },
79012
79012
  i
@@ -79023,7 +79023,7 @@ var Tssop = ({
79023
79023
  width: leadWidth,
79024
79024
  thickness: leadThickness,
79025
79025
  padContactLength: leadLength,
79026
- bodyDistance: leadLength + 0.4,
79026
+ bodyDistance: leadLength + 1,
79027
79027
  height: 0.8
79028
79028
  },
79029
79029
  i
@@ -79032,7 +79032,7 @@ var Tssop = ({
79032
79032
  ChipBody,
79033
79033
  {
79034
79034
  center: { x: 0, y: 0, z: leadThickness / 2 },
79035
- width: bodyWidth,
79035
+ width: bodyWidth - leadWidth - 1,
79036
79036
  length: fullLength10,
79037
79037
  height: 1.5
79038
79038
  }
@@ -79533,11 +79533,14 @@ var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
79533
79533
  var FemaleHeader = ({
79534
79534
  numberOfPins,
79535
79535
  pitch = 2.54,
79536
- legsLength = 3
79536
+ legsLength = 3,
79537
+ outerDiameter = 0.945,
79538
+ innerDiameter = 0.945
79537
79539
  }) => {
79538
- const pinThickness = 0.63;
79540
+ const pinThickness = innerDiameter / 1.5;
79541
+ const bodyDepth = pinThickness * 2 + outerDiameter;
79539
79542
  const bodyHeight = 5;
79540
- const bodyWidth = numberOfPins * pitch;
79543
+ const bodyWidth = (numberOfPins - 1) * pitch + outerDiameter + pitch / 2;
79541
79544
  const gapWidth = pinThickness * 1.6;
79542
79545
  const xoff = -((numberOfPins - 1) / 2) * pitch;
79543
79546
  const Body = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jscad_fiber18.Colorize, { color: "#1a1a1a", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jscad_fiber18.Subtract, { children: [
@@ -79545,21 +79548,34 @@ var FemaleHeader = ({
79545
79548
  import_jscad_fiber18.Cuboid,
79546
79549
  {
79547
79550
  color: "#000",
79548
- size: [bodyWidth, pinThickness * 3, bodyHeight],
79551
+ size: [bodyWidth, bodyDepth, bodyHeight],
79549
79552
  center: [0, 0, bodyHeight / 2]
79550
79553
  }
79551
79554
  ),
79552
- Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79553
- import_jscad_fiber18.Cuboid,
79554
- {
79555
- size: [gapWidth, gapWidth, bodyHeight],
79556
- center: [xoff + i * pitch, 0, bodyHeight / 2]
79557
- }
79558
- ))
79555
+ Array.from(
79556
+ { length: numberOfPins },
79557
+ (_, i) => innerDiameter ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79558
+ import_jscad_fiber18.Cylinder,
79559
+ {
79560
+ height: bodyHeight + 0.1,
79561
+ radius: innerDiameter / 2,
79562
+ center: [xoff + i * pitch, 0, bodyHeight / 2],
79563
+ color: "#222"
79564
+ },
79565
+ i
79566
+ ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79567
+ import_jscad_fiber18.Cuboid,
79568
+ {
79569
+ size: [gapWidth, gapWidth, bodyHeight],
79570
+ center: [xoff + i * pitch, 0, bodyHeight / 2]
79571
+ },
79572
+ i
79573
+ )
79574
+ )
79559
79575
  ] }) });
79560
79576
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
79561
79577
  Body,
79562
- Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jscad_fiber18.Colorize, { color: "silver", children: [
79578
+ Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jscad_fiber18.Colorize, { color: "silver", children: [
79563
79579
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jscad_fiber18.Hull, { children: [
79564
79580
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79565
79581
  import_jscad_fiber18.Cuboid,
@@ -79586,7 +79602,7 @@ var FemaleHeader = ({
79586
79602
  center: [xoff + i * pitch, 0, gapWidth / 2 * 0.5]
79587
79603
  }
79588
79604
  )
79589
- ] }) }))
79605
+ ] }, i))
79590
79606
  ] });
79591
79607
  };
79592
79608
 
@@ -79767,15 +79783,78 @@ var PushButtonLeg = (props) => {
79767
79783
  ) });
79768
79784
  };
79769
79785
 
79770
- // lib/Footprinter3d.tsx
79786
+ // lib/SOIC.tsx
79771
79787
  var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
79788
+ var SOIC = ({
79789
+ pinCount,
79790
+ leadLength,
79791
+ leadWidth,
79792
+ pitch,
79793
+ bodyWidth
79794
+ }) => {
79795
+ const sidePinCount = Math.ceil(pinCount / 2);
79796
+ const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
79797
+ const leadThickness = 0.25;
79798
+ const bodyHeight = 1;
79799
+ const leadHeight = 0.8;
79800
+ const leadBodyOffset = leadLength * 0;
79801
+ const fullLength10 = pitch * (sidePinCount - 1) + leadWidth + 0.2;
79802
+ const bodyWidthAdjusted = bodyWidth * 0.55;
79803
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
79804
+ Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79805
+ SmdChipLead,
79806
+ {
79807
+ position: {
79808
+ x: -bodyWidth / 2 - leadBodyOffset,
79809
+ y: i * pitch - pinOffsetToCenter,
79810
+ z: leadThickness / 2
79811
+ },
79812
+ width: leadWidth,
79813
+ thickness: leadThickness,
79814
+ padContactLength: leadLength / 2,
79815
+ bodyDistance: leadLength + 0.2,
79816
+ height: leadHeight
79817
+ },
79818
+ i
79819
+ )),
79820
+ Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79821
+ SmdChipLead,
79822
+ {
79823
+ rotation: Math.PI,
79824
+ position: {
79825
+ x: bodyWidth / 2 + leadBodyOffset,
79826
+ y: i * pitch - pinOffsetToCenter,
79827
+ z: leadThickness / 2
79828
+ },
79829
+ width: leadWidth,
79830
+ thickness: leadThickness,
79831
+ padContactLength: leadLength / 2,
79832
+ bodyDistance: leadLength + 0.2,
79833
+ height: leadHeight
79834
+ },
79835
+ i
79836
+ )),
79837
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79838
+ ChipBody,
79839
+ {
79840
+ center: { x: 0, y: 0, z: leadThickness / 2 },
79841
+ width: bodyWidthAdjusted,
79842
+ length: fullLength10,
79843
+ height: bodyHeight
79844
+ }
79845
+ )
79846
+ ] });
79847
+ };
79848
+
79849
+ // lib/Footprinter3d.tsx
79850
+ var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
79772
79851
  var Footprinter3d = ({ footprint }) => {
79773
79852
  const fpJson = fp3.string(footprint).json();
79774
79853
  switch (fpJson.fn) {
79775
79854
  case "dip":
79776
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
79855
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
79777
79856
  case "tssop":
79778
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79857
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79779
79858
  Tssop,
79780
79859
  {
79781
79860
  pinCount: fpJson.num_pins,
@@ -79786,7 +79865,7 @@ var Footprinter3d = ({ footprint }) => {
79786
79865
  }
79787
79866
  );
79788
79867
  case "qfp":
79789
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79868
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79790
79869
  QFP,
79791
79870
  {
79792
79871
  pinCount: fpJson.num_pins,
@@ -79797,7 +79876,7 @@ var Footprinter3d = ({ footprint }) => {
79797
79876
  }
79798
79877
  );
79799
79878
  case "qfn":
79800
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79879
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79801
79880
  qfn_default,
79802
79881
  {
79803
79882
  num_pins: fpJson.num_pins,
@@ -79814,35 +79893,35 @@ var Footprinter3d = ({ footprint }) => {
79814
79893
  );
79815
79894
  case "pinrow":
79816
79895
  if (fpJson.male)
79817
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79896
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79818
79897
  if (fpJson.female)
79819
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79898
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79820
79899
  case "cap": {
79821
79900
  switch (fpJson.imperial) {
79822
79901
  case "0402":
79823
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0402, { color: "#856c4d" });
79902
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0402, { color: "#856c4d" });
79824
79903
  case "0603":
79825
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0603, { color: "#856c4d" });
79904
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0603, { color: "#856c4d" });
79826
79905
  case "0805":
79827
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0805, { color: "#856c4d" });
79906
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0805, { color: "#856c4d" });
79828
79907
  case "0201":
79829
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0201, { color: "#856c4d" });
79908
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0201, { color: "#856c4d" });
79830
79909
  case "01005":
79831
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A01005, { color: "#856c4d" });
79910
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A01005, { color: "#856c4d" });
79832
79911
  case "1206":
79833
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A1206, { color: "#856c4d" });
79912
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1206, { color: "#856c4d" });
79834
79913
  case "1210":
79835
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A1210, { color: "#856c4d" });
79914
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1210, { color: "#856c4d" });
79836
79915
  case "2010":
79837
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A2010, { color: "#856c4d" });
79916
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2010, { color: "#856c4d" });
79838
79917
  case "2512":
79839
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A2512, { color: "#856c4d" });
79918
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2512, { color: "#856c4d" });
79840
79919
  }
79841
79920
  }
79842
79921
  case "sot235":
79843
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SOT_235_default, {});
79922
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SOT_235_default, {});
79844
79923
  case "pushbutton":
79845
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79924
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79846
79925
  PushButton,
79847
79926
  {
79848
79927
  width: fpJson.w,
@@ -79851,8 +79930,8 @@ var Footprinter3d = ({ footprint }) => {
79851
79930
  }
79852
79931
  );
79853
79932
  case "soic":
79854
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79855
- Tssop,
79933
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79934
+ SOIC,
79856
79935
  {
79857
79936
  pinCount: fpJson.num_pins,
79858
79937
  leadLength: fpJson.pl,
@@ -79864,29 +79943,29 @@ var Footprinter3d = ({ footprint }) => {
79864
79943
  }
79865
79944
  switch (fpJson.imperial) {
79866
79945
  case "0402":
79867
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0402, {});
79946
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0402, {});
79868
79947
  case "0603":
79869
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0603, {});
79948
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0603, {});
79870
79949
  case "0805":
79871
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0805, {});
79950
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0805, {});
79872
79951
  case "0201":
79873
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A0201, {});
79952
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0201, {});
79874
79953
  case "01005":
79875
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A01005, {});
79954
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A01005, {});
79876
79955
  case "1206":
79877
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A1206, {});
79956
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1206, {});
79878
79957
  case "1210":
79879
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A1210, {});
79958
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1210, {});
79880
79959
  case "2010":
79881
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A2010, {});
79960
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2010, {});
79882
79961
  case "2512":
79883
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(A2512, {});
79962
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2512, {});
79884
79963
  }
79885
79964
  return null;
79886
79965
  };
79887
79966
 
79888
79967
  // lib/SOT-23-3P.tsx
79889
- var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
79968
+ var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
79890
79969
  var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79891
79970
  const bodyWidth = 1.3;
79892
79971
  const bodyLength10 = 2.9;
@@ -79896,8 +79975,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79896
79975
  const leadHeight = 0.95;
79897
79976
  const padContactLength = 0.4;
79898
79977
  const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
79899
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
79900
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79978
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
79979
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79901
79980
  SmdChipLead,
79902
79981
  {
79903
79982
  rotation: Math.PI,
@@ -79914,7 +79993,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79914
79993
  },
79915
79994
  1
79916
79995
  ),
79917
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79996
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79918
79997
  SmdChipLead,
79919
79998
  {
79920
79999
  rotation: Math.PI,
@@ -79931,7 +80010,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79931
80010
  },
79932
80011
  2
79933
80012
  ),
79934
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
80013
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79935
80014
  SmdChipLead,
79936
80015
  {
79937
80016
  position: {
@@ -79947,7 +80026,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79947
80026
  },
79948
80027
  3
79949
80028
  ),
79950
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
80029
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79951
80030
  ChipBody,
79952
80031
  {
79953
80032
  center: { x: 0, y: 0, z: 0 },
@@ -79961,7 +80040,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79961
80040
 
79962
80041
  // lib/SOT-563.tsx
79963
80042
  var import_jscad_fiber20 = __toESM(require_dist(), 1);
79964
- var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
80043
+ var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
79965
80044
  var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
79966
80045
  const bodyWidth = 1.2;
79967
80046
  const bodyLength10 = 1.6;
@@ -79971,24 +80050,24 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
79971
80050
  const leadHeight = 0.13;
79972
80051
  const leadSpacing = 0.5;
79973
80052
  const bodyZOffset = -0.3;
79974
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
79975
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
80053
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
80054
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
79976
80055
  [-1, 0, 1].flatMap((yOffset, index) => [
79977
80056
  // Left lead
79978
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
80057
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
79979
80058
  import_jscad_fiber20.Translate,
79980
80059
  {
79981
80060
  center: [-bodyWidth / 2 - 0.03, yOffset * leadSpacing, 0],
79982
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
80061
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79983
80062
  },
79984
80063
  `left-${index}`
79985
80064
  ),
79986
80065
  // Right lead
79987
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
80066
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
79988
80067
  import_jscad_fiber20.Translate,
79989
80068
  {
79990
80069
  center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, 0],
79991
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
80070
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79992
80071
  },
79993
80072
  `right-${index}`
79994
80073
  )
@@ -79998,7 +80077,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
79998
80077
 
79999
80078
  // lib/SOT-723.tsx
80000
80079
  var import_jscad_fiber21 = __toESM(require_dist(), 1);
80001
- var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
80080
+ var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
80002
80081
  var getCcwSot723Coords = (pn) => {
80003
80082
  if (pn === 1) {
80004
80083
  return { x: 0, y: 0 };
@@ -80016,11 +80095,11 @@ var SOT723 = () => {
80016
80095
  const leadLength = 0.3;
80017
80096
  const leadHeight = 0.1;
80018
80097
  const centerLeadWidth = 0.42;
80019
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
80020
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber21.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber21.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber21.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber21.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
80098
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
80099
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
80021
80100
  [1, 2, 3].map((pn) => {
80022
80101
  const { x, y } = getCcwSot723Coords(pn);
80023
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber21.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
80102
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
80024
80103
  import_jscad_fiber21.Cuboid,
80025
80104
  {
80026
80105
  size: [
@@ -80035,7 +80114,7 @@ var SOT723 = () => {
80035
80114
  };
80036
80115
 
80037
80116
  // lib/sod-123.tsx
80038
- var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
80117
+ var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
80039
80118
  var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
80040
80119
  const bodyWidth = 2.9;
80041
80120
  const bodyLength10 = 1.3;
@@ -80047,8 +80126,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
80047
80126
  const leadYOffset = leadHeight / 1 - 0.4;
80048
80127
  const bodyYOffset = leadHeight / 2 - 0.4;
80049
80128
  const bodyDistance = (fullWidth - bodyWidth) / 2;
80050
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
80051
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
80129
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
80130
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
80052
80131
  SmdChipLead,
80053
80132
  {
80054
80133
  position: {
@@ -80064,7 +80143,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
80064
80143
  },
80065
80144
  1
80066
80145
  ),
80067
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
80146
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
80068
80147
  SmdChipLead,
80069
80148
  {
80070
80149
  rotation: Math.PI,
@@ -80081,7 +80160,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
80081
80160
  },
80082
80161
  2
80083
80162
  ),
80084
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
80163
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
80085
80164
  ChipBody,
80086
80165
  {
80087
80166
  center: { x: 0, y: bodyYOffset, z: 0 },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscad-electronics",
3
3
  "type": "module",
4
- "version": "0.0.27",
4
+ "version": "0.0.29",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {
7
7
  "type": "git",