@tscircuit/pcb-viewer 1.4.5 → 1.4.6

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
@@ -13290,7 +13290,7 @@ var import_soup2 = __toESM(require_dist());
13290
13290
  // package.json
13291
13291
  var package_default = {
13292
13292
  name: "@tscircuit/pcb-viewer",
13293
- version: "1.4.4",
13293
+ version: "1.4.5",
13294
13294
  main: "dist/index.js",
13295
13295
  repository: "tscircuit/pcb-viewer",
13296
13296
  license: "MIT",
@@ -13669,10 +13669,7 @@ var ErrorOverlay = function(param) {
13669
13669
  y: port2.y
13670
13670
  });
13671
13671
  var canLineBeDrawn = !(isNaN(screenPort1.x) || isNaN(screenPort1.y) || isNaN(screenPort2.x) || isNaN(screenPort2.y));
13672
- var errorCenter = el.center ? (0, import_transformation_matrix4.applyToPoint)(transform, {
13673
- x: el.center.x,
13674
- y: el.center.y
13675
- }) : {
13672
+ var errorCenter = {
13676
13673
  x: (screenPort1.x + screenPort2.x) / 2,
13677
13674
  y: (screenPort1.y + screenPort2.y) / 2
13678
13675
  };