@tscircuit/pcb-viewer 1.11.334 → 1.11.336

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/index.js CHANGED
@@ -8658,7 +8658,11 @@ function drawPcbBoardElements({
8658
8658
  drawer.realToCanvasMat = realToCanvasMat;
8659
8659
  const pcbBoardElements = elements.filter(isPcbBoardElement);
8660
8660
  for (const element of pcbBoardElements) {
8661
- drawer.drawElements([element], { layers, drawSoldermask });
8661
+ drawer.drawElements([element], {
8662
+ layers,
8663
+ drawSoldermask,
8664
+ minBoardOutlineStrokePx: 2
8665
+ });
8662
8666
  }
8663
8667
  }
8664
8668
 
@@ -11979,6 +11983,9 @@ var ErrorOverlay = ({
11979
11983
  x: port2.x,
11980
11984
  y: port2.y
11981
11985
  });
11986
+ if (!isShowingDRCErrors) {
11987
+ return null;
11988
+ }
11982
11989
  const canLineBeDrawn = !(isNaN(screenPort1.x) || isNaN(screenPort1.y) || isNaN(screenPort2.x) || isNaN(screenPort2.y));
11983
11990
  const errorCenter = {
11984
11991
  x: (screenPort1.x + screenPort2.x) / 2,
@@ -13884,7 +13891,7 @@ import { css as css3 } from "@emotion/css";
13884
13891
  // package.json
13885
13892
  var package_default = {
13886
13893
  name: "@tscircuit/pcb-viewer",
13887
- version: "1.11.333",
13894
+ version: "1.11.335",
13888
13895
  main: "dist/index.js",
13889
13896
  type: "module",
13890
13897
  repository: "tscircuit/pcb-viewer",
@@ -13938,7 +13945,7 @@ var package_default = {
13938
13945
  "@tscircuit/math-utils": "^0.0.29",
13939
13946
  "@vitejs/plugin-react": "^5.0.2",
13940
13947
  "circuit-json": "^0.0.374",
13941
- "circuit-to-canvas": "^0.0.67",
13948
+ "circuit-to-canvas": "^0.0.69",
13942
13949
  "circuit-to-svg": "^0.0.323",
13943
13950
  color: "^4.2.3",
13944
13951
  "react-supergrid": "^1.0.10",