jscad-electronics 0.0.25 → 0.0.26

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 +145 -79
  2. package/package.json +2 -2
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 Fragment22 = 7;
7733
+ var Fragment23 = 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 Fragment22:
7873
+ case Fragment23:
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 !== Fragment22) {
11007
+ if (current2 === null || current2.tag !== Fragment23) {
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 === Fragment22) {
11410
+ if (child.tag === Fragment23) {
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 Fragment22:
16901
+ case Fragment23:
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 Fragment22:
17338
+ case Fragment23:
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(Fragment22, elements, key, mode);
22106
+ var fiber = createFiber(Fragment23, 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 jsx27 = jsxWithValidationDynamic;
23708
- var jsxs23 = jsxWithValidationStatic;
23707
+ var jsx28 = jsxWithValidationDynamic;
23708
+ var jsxs24 = jsxWithValidationStatic;
23709
23709
  exports.Fragment = REACT_FRAGMENT_TYPE;
23710
- exports.jsx = jsx27;
23711
- exports.jsxs = jsxs23;
23710
+ exports.jsx = jsx28;
23711
+ exports.jsxs = jsxs24;
23712
23712
  })();
23713
23713
  }
23714
23714
  }
@@ -77296,9 +77296,9 @@ var require_dist = __commonJS({
77296
77296
  var lib_exports = {};
77297
77297
  __export2(lib_exports, {
77298
77298
  Circle: () => Circle,
77299
- Colorize: () => Colorize10,
77299
+ Colorize: () => Colorize11,
77300
77300
  Cube: () => Cube2,
77301
- Cuboid: () => Cuboid17,
77301
+ Cuboid: () => Cuboid18,
77302
77302
  Custom: () => Custom,
77303
77303
  Cylinder: () => Cylinder3,
77304
77304
  CylinderElliptic: () => CylinderElliptic,
@@ -77309,7 +77309,7 @@ var require_dist = __commonJS({
77309
77309
  ExtrudeRectangular: () => ExtrudeRectangular,
77310
77310
  ExtrudeRotate: () => ExtrudeRotate,
77311
77311
  GeodesicSphere: () => GeodesicSphere,
77312
- Hull: () => Hull2,
77312
+ Hull: () => Hull3,
77313
77313
  HullChain: () => HullChain2,
77314
77314
  JSCadThreeMesh: () => JSCadThreeMesh,
77315
77315
  JsCadView: () => JsCadView,
@@ -77320,7 +77320,7 @@ var require_dist = __commonJS({
77320
77320
  RoundedCuboid: () => RoundedCuboid2,
77321
77321
  RoundedCylinder: () => RoundedCylinder,
77322
77322
  Sphere: () => Sphere2,
77323
- Subtract: () => Subtract2,
77323
+ Subtract: () => Subtract3,
77324
77324
  Torus: () => Torus,
77325
77325
  Translate: () => Translate10,
77326
77326
  Union: () => Union4,
@@ -77715,17 +77715,17 @@ var require_dist = __commonJS({
77715
77715
  };
77716
77716
  return hostConfig2;
77717
77717
  }
77718
- var import_jsx_runtime27 = require_jsx_runtime();
77718
+ var import_jsx_runtime28 = require_jsx_runtime();
77719
77719
  function Circle({ radius }) {
77720
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("circle", { radius });
77720
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("circle", { radius });
77721
77721
  }
77722
77722
  var import_color = __toESM2(require_color(), 1);
77723
- var import_jsx_runtime28 = require_jsx_runtime();
77724
- function Colorize10({ color, children }) {
77723
+ var import_jsx_runtime29 = require_jsx_runtime();
77724
+ function Colorize11({ color, children }) {
77725
77725
  if (!Array.isArray(color)) {
77726
77726
  color = (0, import_color.default)(color).rgb().array().map((v) => v / 255);
77727
77727
  }
77728
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("colorize", { color, children });
77728
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("colorize", { color, children });
77729
77729
  }
77730
77730
  var import_jsx_runtime32 = require_jsx_runtime();
77731
77731
  function withColorProp(WrappedComponent) {
@@ -77734,7 +77734,7 @@ var require_dist = __commonJS({
77734
77734
  if (!color) {
77735
77735
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WrappedComponent, { ...restProps });
77736
77736
  }
77737
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Colorize10, { color, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WrappedComponent, { ...restProps }) });
77737
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Colorize11, { color, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WrappedComponent, { ...restProps }) });
77738
77738
  };
77739
77739
  WithColor.displayName = `WithColor(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
77740
77740
  return WithColor;
@@ -77785,7 +77785,7 @@ var require_dist = __commonJS({
77785
77785
  var CuboidBase = ({ size }) => {
77786
77786
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("cuboid", { size });
77787
77787
  };
77788
- var Cuboid17 = withOffsetProp(withColorProp(CuboidBase));
77788
+ var Cuboid18 = withOffsetProp(withColorProp(CuboidBase));
77789
77789
  var import_jsx_runtime82 = require_jsx_runtime();
77790
77790
  function Custom({ geometry }) {
77791
77791
  return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("custom", { geometry });
@@ -77945,7 +77945,7 @@ var require_dist = __commonJS({
77945
77945
  var HullBase = ({ children }) => {
77946
77946
  return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("hull", { children });
77947
77947
  };
77948
- var Hull2 = withOffsetProp(withColorProp(HullBase));
77948
+ var Hull3 = withOffsetProp(withColorProp(HullBase));
77949
77949
  var import_jsx_runtime202 = require_jsx_runtime();
77950
77950
  var HullChainBase = ({ children }) => {
77951
77951
  return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("hullChain", { children });
@@ -77998,7 +77998,7 @@ var require_dist = __commonJS({
77998
77998
  }
77999
77999
  return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("subtract", { children });
78000
78000
  };
78001
- var Subtract2 = withOffsetProp(withColorProp(SubtractBase));
78001
+ var Subtract3 = withOffsetProp(withColorProp(SubtractBase));
78002
78002
  var import_jsx_runtime282 = require_jsx_runtime();
78003
78003
  var TorusBase = ({
78004
78004
  innerRadius,
@@ -78023,9 +78023,9 @@ var require_dist = __commonJS({
78023
78023
  );
78024
78024
  };
78025
78025
  var Torus = withOffsetProp(withColorProp(TorusBase));
78026
- var import_jsx_runtime29 = require_jsx_runtime();
78026
+ var import_jsx_runtime292 = require_jsx_runtime();
78027
78027
  function Union4({ children }) {
78028
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("union", { children });
78028
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)("union", { children });
78029
78029
  }
78030
78030
  var import_jsx_runtime30 = require_jsx_runtime();
78031
78031
  var ExtrudeFromSlicesBase = ({
@@ -79527,15 +79527,78 @@ var SOT235 = () => {
79527
79527
  };
79528
79528
  var SOT_235_default = SOT235;
79529
79529
 
79530
- // lib/Footprinter3d.tsx
79530
+ // lib/FemaleHeader.tsx
79531
+ var import_jscad_fiber18 = __toESM(require_dist(), 1);
79531
79532
  var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
79533
+ var FemaleHeader = ({
79534
+ numberOfPins,
79535
+ pitch = 2.54,
79536
+ legsLength = 3
79537
+ }) => {
79538
+ const pinThickness = 0.63;
79539
+ const bodyHeight = 5;
79540
+ const bodyWidth = numberOfPins * pitch;
79541
+ const gapWidth = pinThickness * 1.6;
79542
+ const xoff = -((numberOfPins - 1) / 2) * pitch;
79543
+ 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: [
79544
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79545
+ import_jscad_fiber18.Cuboid,
79546
+ {
79547
+ color: "#000",
79548
+ size: [bodyWidth, pinThickness * 3, bodyHeight],
79549
+ center: [0, 0, bodyHeight / 2]
79550
+ }
79551
+ ),
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
+ ))
79559
+ ] }) });
79560
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
79561
+ 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: [
79563
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jscad_fiber18.Hull, { children: [
79564
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79565
+ import_jscad_fiber18.Cuboid,
79566
+ {
79567
+ color: "silver",
79568
+ size: [pinThickness, pinThickness, legsLength * 0.9],
79569
+ center: [xoff + i * pitch, 0, -legsLength / 2 * 0.9]
79570
+ }
79571
+ ),
79572
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79573
+ import_jscad_fiber18.Cuboid,
79574
+ {
79575
+ color: "silver",
79576
+ size: [pinThickness / 1.8, pinThickness / 1.8, legsLength],
79577
+ center: [xoff + i * pitch, 0, -legsLength / 2]
79578
+ }
79579
+ )
79580
+ ] }),
79581
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79582
+ import_jscad_fiber18.Cuboid,
79583
+ {
79584
+ color: "silver",
79585
+ size: [gapWidth, gapWidth, gapWidth * 0.5],
79586
+ center: [xoff + i * pitch, 0, gapWidth / 2 * 0.5]
79587
+ }
79588
+ )
79589
+ ] }) }))
79590
+ ] });
79591
+ };
79592
+
79593
+ // lib/Footprinter3d.tsx
79594
+ var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
79532
79595
  var Footprinter3d = ({ footprint }) => {
79533
79596
  const fpJson = fp3.string(footprint).json();
79534
79597
  switch (fpJson.fn) {
79535
79598
  case "dip":
79536
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
79599
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
79537
79600
  case "tssop":
79538
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79601
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79539
79602
  Tssop,
79540
79603
  {
79541
79604
  pinCount: fpJson.num_pins,
@@ -79546,7 +79609,7 @@ var Footprinter3d = ({ footprint }) => {
79546
79609
  }
79547
79610
  );
79548
79611
  case "qfp":
79549
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79612
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79550
79613
  QFP,
79551
79614
  {
79552
79615
  pinCount: fpJson.num_pins,
@@ -79557,7 +79620,7 @@ var Footprinter3d = ({ footprint }) => {
79557
79620
  }
79558
79621
  );
79559
79622
  case "qfn":
79560
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79623
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79561
79624
  qfn_default,
79562
79625
  {
79563
79626
  num_pins: fpJson.num_pins,
@@ -79573,33 +79636,36 @@ var Footprinter3d = ({ footprint }) => {
79573
79636
  }
79574
79637
  );
79575
79638
  case "pinrow":
79576
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79639
+ if (fpJson.male)
79640
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79641
+ if (fpJson.female)
79642
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
79577
79643
  case "cap": {
79578
79644
  switch (fpJson.imperial) {
79579
79645
  case "0402":
79580
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0402, { color: "#856c4d" });
79646
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0402, { color: "#856c4d" });
79581
79647
  case "0603":
79582
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0603, { color: "#856c4d" });
79648
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0603, { color: "#856c4d" });
79583
79649
  case "0805":
79584
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0805, { color: "#856c4d" });
79650
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0805, { color: "#856c4d" });
79585
79651
  case "0201":
79586
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0201, { color: "#856c4d" });
79652
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0201, { color: "#856c4d" });
79587
79653
  case "01005":
79588
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A01005, { color: "#856c4d" });
79654
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A01005, { color: "#856c4d" });
79589
79655
  case "1206":
79590
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A1206, { color: "#856c4d" });
79656
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A1206, { color: "#856c4d" });
79591
79657
  case "1210":
79592
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A1210, { color: "#856c4d" });
79658
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A1210, { color: "#856c4d" });
79593
79659
  case "2010":
79594
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A2010, { color: "#856c4d" });
79660
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A2010, { color: "#856c4d" });
79595
79661
  case "2512":
79596
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A2512, { color: "#856c4d" });
79662
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A2512, { color: "#856c4d" });
79597
79663
  }
79598
79664
  }
79599
79665
  case "sot235":
79600
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SOT_235_default, {});
79666
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SOT_235_default, {});
79601
79667
  case "soic":
79602
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
79668
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79603
79669
  Tssop,
79604
79670
  {
79605
79671
  pinCount: fpJson.num_pins,
@@ -79612,29 +79678,29 @@ var Footprinter3d = ({ footprint }) => {
79612
79678
  }
79613
79679
  switch (fpJson.imperial) {
79614
79680
  case "0402":
79615
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0402, {});
79681
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0402, {});
79616
79682
  case "0603":
79617
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0603, {});
79683
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0603, {});
79618
79684
  case "0805":
79619
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0805, {});
79685
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0805, {});
79620
79686
  case "0201":
79621
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A0201, {});
79687
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A0201, {});
79622
79688
  case "01005":
79623
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A01005, {});
79689
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A01005, {});
79624
79690
  case "1206":
79625
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A1206, {});
79691
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A1206, {});
79626
79692
  case "1210":
79627
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A1210, {});
79693
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A1210, {});
79628
79694
  case "2010":
79629
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A2010, {});
79695
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A2010, {});
79630
79696
  case "2512":
79631
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(A2512, {});
79697
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(A2512, {});
79632
79698
  }
79633
79699
  return null;
79634
79700
  };
79635
79701
 
79636
79702
  // lib/SOT-23-3P.tsx
79637
- var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
79703
+ var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
79638
79704
  var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79639
79705
  const bodyWidth = 1.3;
79640
79706
  const bodyLength10 = 2.9;
@@ -79644,8 +79710,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79644
79710
  const leadHeight = 0.95;
79645
79711
  const padContactLength = 0.4;
79646
79712
  const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
79647
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
79648
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79713
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
79714
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79649
79715
  SmdChipLead,
79650
79716
  {
79651
79717
  rotation: Math.PI,
@@ -79662,7 +79728,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79662
79728
  },
79663
79729
  1
79664
79730
  ),
79665
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79731
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79666
79732
  SmdChipLead,
79667
79733
  {
79668
79734
  rotation: Math.PI,
@@ -79679,7 +79745,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79679
79745
  },
79680
79746
  2
79681
79747
  ),
79682
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79748
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79683
79749
  SmdChipLead,
79684
79750
  {
79685
79751
  position: {
@@ -79695,7 +79761,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79695
79761
  },
79696
79762
  3
79697
79763
  ),
79698
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
79764
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79699
79765
  ChipBody,
79700
79766
  {
79701
79767
  center: { x: 0, y: 0, z: 0 },
@@ -79708,8 +79774,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
79708
79774
  };
79709
79775
 
79710
79776
  // lib/SOT-563.tsx
79711
- var import_jscad_fiber18 = __toESM(require_dist(), 1);
79712
- var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
79777
+ var import_jscad_fiber19 = __toESM(require_dist(), 1);
79778
+ var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
79713
79779
  var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
79714
79780
  const bodyWidth = 1.2;
79715
79781
  const bodyLength10 = 1.6;
@@ -79719,24 +79785,24 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
79719
79785
  const leadHeight = 0.13;
79720
79786
  const leadSpacing = 0.5;
79721
79787
  const bodyZOffset = -0.3;
79722
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
79723
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jscad_fiber18.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jscad_fiber18.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jscad_fiber18.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jscad_fiber18.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
79788
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
79789
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
79724
79790
  [-1, 0, 1].flatMap((yOffset, index) => [
79725
79791
  // Left lead
79726
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79727
- import_jscad_fiber18.Translate,
79792
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79793
+ import_jscad_fiber19.Translate,
79728
79794
  {
79729
79795
  center: [-bodyWidth / 2 - 0.03, yOffset * leadSpacing, 0],
79730
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jscad_fiber18.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79796
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79731
79797
  },
79732
79798
  `left-${index}`
79733
79799
  ),
79734
79800
  // Right lead
79735
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
79736
- import_jscad_fiber18.Translate,
79801
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79802
+ import_jscad_fiber19.Translate,
79737
79803
  {
79738
79804
  center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, 0],
79739
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jscad_fiber18.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79805
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79740
79806
  },
79741
79807
  `right-${index}`
79742
79808
  )
@@ -79745,8 +79811,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
79745
79811
  };
79746
79812
 
79747
79813
  // lib/SOT-723.tsx
79748
- var import_jscad_fiber19 = __toESM(require_dist(), 1);
79749
- var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
79814
+ var import_jscad_fiber20 = __toESM(require_dist(), 1);
79815
+ var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
79750
79816
  var getCcwSot723Coords = (pn) => {
79751
79817
  if (pn === 1) {
79752
79818
  return { x: 0, y: 0 };
@@ -79764,12 +79830,12 @@ var SOT723 = () => {
79764
79830
  const leadLength = 0.3;
79765
79831
  const leadHeight = 0.1;
79766
79832
  const centerLeadWidth = 0.42;
79767
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
79768
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
79833
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
79834
+ /* @__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.475, leadHeight / 2, -0.25], 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] }) }) }) }),
79769
79835
  [1, 2, 3].map((pn) => {
79770
79836
  const { x, y } = getCcwSot723Coords(pn);
79771
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jscad_fiber19.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
79772
- import_jscad_fiber19.Cuboid,
79837
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jscad_fiber20.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79838
+ import_jscad_fiber20.Cuboid,
79773
79839
  {
79774
79840
  size: [
79775
79841
  leadLength,
@@ -79783,7 +79849,7 @@ var SOT723 = () => {
79783
79849
  };
79784
79850
 
79785
79851
  // lib/sod-123.tsx
79786
- var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
79852
+ var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
79787
79853
  var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
79788
79854
  const bodyWidth = 2.9;
79789
79855
  const bodyLength10 = 1.3;
@@ -79795,8 +79861,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
79795
79861
  const leadYOffset = leadHeight / 1 - 0.4;
79796
79862
  const bodyYOffset = leadHeight / 2 - 0.4;
79797
79863
  const bodyDistance = (fullWidth - bodyWidth) / 2;
79798
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
79799
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79864
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
79865
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
79800
79866
  SmdChipLead,
79801
79867
  {
79802
79868
  position: {
@@ -79812,7 +79878,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
79812
79878
  },
79813
79879
  1
79814
79880
  ),
79815
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79881
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
79816
79882
  SmdChipLead,
79817
79883
  {
79818
79884
  rotation: Math.PI,
@@ -79829,7 +79895,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
79829
79895
  },
79830
79896
  2
79831
79897
  ),
79832
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
79898
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
79833
79899
  ChipBody,
79834
79900
  {
79835
79901
  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.25",
4
+ "version": "0.0.26",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "vite-tsconfig-paths": "^5.0.1"
33
33
  },
34
34
  "dependencies": {
35
- "@tscircuit/footprinter": "^0.0.124",
35
+ "@tscircuit/footprinter": "^0.0.132",
36
36
  "circuit-json": "^0.0.92"
37
37
  }
38
38
  }