jscad-electronics 0.0.121 → 0.0.123

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
@@ -1,5 +1,5 @@
1
1
  // lib/vanilla/h.ts
2
- var Fragment = Symbol("Fragment");
2
+ var Fragment = /* @__PURE__ */ Symbol("Fragment");
3
3
  function h(type, props, ...restChildren) {
4
4
  const provided = restChildren.length ? restChildren : props?.children !== void 0 ? [props.children] : [];
5
5
  const flatChildren = [];
@@ -22,20 +22,20 @@ function h(type, props, ...restChildren) {
22
22
  import { fp } from "@tscircuit/footprinter";
23
23
 
24
24
  // lib/vanilla/primitives.ts
25
- var Cuboid = Symbol("Cuboid");
26
- var Cube = Symbol("Cube");
27
- var Cylinder = Symbol("Cylinder");
28
- var Sphere = Symbol("Sphere");
29
- var RoundedCuboid = Symbol("RoundedCuboid");
30
- var Translate = Symbol("Translate");
31
- var Rotate = Symbol("Rotate");
32
- var Union = Symbol("Union");
33
- var Subtract = Symbol("Subtract");
34
- var Hull = Symbol("Hull");
35
- var Colorize = Symbol("Colorize");
36
- var Polygon = Symbol("Polygon");
37
- var ExtrudeLinear = Symbol("ExtrudeLinear");
38
- var RoundedCylinder = Symbol("RoundedCylinder");
25
+ var Cuboid = /* @__PURE__ */ Symbol("Cuboid");
26
+ var Cube = /* @__PURE__ */ Symbol("Cube");
27
+ var Cylinder = /* @__PURE__ */ Symbol("Cylinder");
28
+ var Sphere = /* @__PURE__ */ Symbol("Sphere");
29
+ var RoundedCuboid = /* @__PURE__ */ Symbol("RoundedCuboid");
30
+ var Translate = /* @__PURE__ */ Symbol("Translate");
31
+ var Rotate = /* @__PURE__ */ Symbol("Rotate");
32
+ var Union = /* @__PURE__ */ Symbol("Union");
33
+ var Subtract = /* @__PURE__ */ Symbol("Subtract");
34
+ var Hull = /* @__PURE__ */ Symbol("Hull");
35
+ var Colorize = /* @__PURE__ */ Symbol("Colorize");
36
+ var Polygon = /* @__PURE__ */ Symbol("Polygon");
37
+ var ExtrudeLinear = /* @__PURE__ */ Symbol("ExtrudeLinear");
38
+ var RoundedCylinder = /* @__PURE__ */ Symbol("RoundedCylinder");
39
39
 
40
40
  // lib/vanilla/react-shim.ts
41
41
  var Fragment2 = Fragment;
@@ -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,9 +4454,13 @@ 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
+ }
4456
4464
  }
4457
4465
  )
4458
4466
  ] });
@@ -4739,7 +4747,11 @@ var Footprinter3d = ({ footprint }) => {
4739
4747
  pinRowHoleEdgeToEdgeDist,
4740
4748
  nopin: fpJson.nopin,
4741
4749
  female: fpJson.female,
4742
- screen: fpJson.screen
4750
+ screen: fpJson.screen,
4751
+ screenWidth: fpJson.screenwidth,
4752
+ screenHeight: fpJson.screenheight,
4753
+ screenCenterOffsetX: fpJson.screencenteroffsetx,
4754
+ screenCenterOffsetY: fpJson.screencenteroffsety
4743
4755
  }
4744
4756
  );
4745
4757
  }