jscad-electronics 0.0.122 → 0.0.124

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/vanilla.js CHANGED
@@ -4294,7 +4294,11 @@ var MountedPcbModule = ({
4294
4294
  pinRowHoleEdgeToEdgeDist = 2,
4295
4295
  female,
4296
4296
  nopin,
4297
- screen
4297
+ screen,
4298
+ screenWidth,
4299
+ screenHeight,
4300
+ screenCenterOffsetX,
4301
+ screenCenterOffsetY
4298
4302
  }) => {
4299
4303
  const showScreen = screen ?? false;
4300
4304
  const boardCenterZ = boardThickness / 2;
@@ -4450,13 +4454,71 @@ var MountedPcbModule = ({
4450
4454
  showScreen && /* @__PURE__ */ jsx(
4451
4455
  Screen,
4452
4456
  {
4453
- width: finalWidth * 0.8,
4454
- height: finalHeight * 0.6,
4455
- offset: { x: 0, y: 0, z: boardTopZ }
4457
+ width: screenWidth ?? finalWidth * 0.8,
4458
+ height: screenHeight ?? finalHeight * 0.6,
4459
+ offset: {
4460
+ x: screenCenterOffsetX ?? 0,
4461
+ y: screenCenterOffsetY ?? 0,
4462
+ z: boardTopZ
4463
+ }
4464
+ }
4465
+ )
4466
+ ] });
4467
+ };
4468
+
4469
+ // lib/SOD723.tsx
4470
+ var SOD723 = () => {
4471
+ const fullWidth = 1.4;
4472
+ const bodyLength10 = 0.6;
4473
+ const bodyHeight = 0.5;
4474
+ const padWidth = 0.28;
4475
+ const padLength = 0.5;
4476
+ const padThickness = 0.12;
4477
+ const bodyWidth = fullWidth - padLength;
4478
+ const leftPadCenterX = -bodyWidth / 2 + padLength / 2 - 0.15;
4479
+ const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
4480
+ const taperOffset = 0.2;
4481
+ const straightHeight = bodyHeight * 0.24;
4482
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
4483
+ /* @__PURE__ */ jsx(
4484
+ Cuboid,
4485
+ {
4486
+ color: "#ccc",
4487
+ size: [padLength, padWidth, padThickness],
4488
+ center: [leftPadCenterX, 0, padThickness / 2]
4489
+ }
4490
+ ),
4491
+ /* @__PURE__ */ jsx(
4492
+ Cuboid,
4493
+ {
4494
+ color: "#ccc",
4495
+ size: [padLength, padWidth, padThickness],
4496
+ center: [rightPadCenterX, 0, padThickness / 2]
4497
+ }
4498
+ ),
4499
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsxs(Union, { children: [
4500
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight / 2, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
4501
+ /* @__PURE__ */ jsxs(Hull, { children: [
4502
+ /* @__PURE__ */ jsx(Translate, { z: straightHeight, children: /* @__PURE__ */ jsx(Cuboid, { size: [bodyWidth, bodyLength10, 0.01] }) }),
4503
+ /* @__PURE__ */ jsx(Translate, { z: bodyHeight, children: /* @__PURE__ */ jsx(
4504
+ Cuboid,
4505
+ {
4506
+ size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
4507
+ }
4508
+ ) })
4509
+ ] })
4510
+ ] }) }),
4511
+ /* @__PURE__ */ jsx(
4512
+ Cuboid,
4513
+ {
4514
+ color: "#777",
4515
+ size: [fullWidth / 6, bodyLength10 - taperOffset, 0.02],
4516
+ center: [-bodyWidth / 4, 0, bodyHeight]
4456
4517
  }
4457
4518
  )
4458
4519
  ] });
4459
4520
  };
4521
+ var SOD723_default = SOD723;
4460
4522
 
4461
4523
  // lib/Footprinter3d.tsx
4462
4524
  var Footprinter3d = ({ footprint }) => {
@@ -4641,6 +4703,8 @@ var Footprinter3d = ({ footprint }) => {
4641
4703
  );
4642
4704
  case "sod523":
4643
4705
  return /* @__PURE__ */ jsx(SOD523, {});
4706
+ case "sod723":
4707
+ return /* @__PURE__ */ jsx(SOD723_default, {});
4644
4708
  case "sod882":
4645
4709
  return /* @__PURE__ */ jsx(SOD882, {});
4646
4710
  case "sma":
@@ -4739,7 +4803,11 @@ var Footprinter3d = ({ footprint }) => {
4739
4803
  pinRowHoleEdgeToEdgeDist,
4740
4804
  nopin: fpJson.nopin,
4741
4805
  female: fpJson.female,
4742
- screen: fpJson.screen
4806
+ screen: fpJson.screen,
4807
+ screenWidth: fpJson.screenwidth,
4808
+ screenHeight: fpJson.screenheight,
4809
+ screenCenterOffsetX: fpJson.screencenteroffsetx,
4810
+ screenCenterOffsetY: fpJson.screencenteroffsety
4743
4811
  }
4744
4812
  );
4745
4813
  }