@tscircuit/schematic-trace-solver 0.0.150 → 0.0.151

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.
@@ -99,7 +99,7 @@ orientation: x-" data-x="4.5" data-y="-6.3" cx="234.0382716049383" cy="588.24691
99
99
  const h = svg.getElementById('crosshair-h');
100
100
  const v = svg.getElementById('crosshair-v');
101
101
  const coords = svg.getElementById('coordinates');
102
-
102
+
103
103
  crosshair.style.display = 'block';
104
104
  h.setAttribute('x1', '0');
105
105
  h.setAttribute('x2', '640');
@@ -118,13 +118,13 @@ orientation: x-" data-x="4.5" data-y="-6.3" cx="234.0382716049383" cy="588.24691
118
118
  // y' = (y - ty) / sy
119
119
  const sx = matrix.a;
120
120
  const sy = matrix.d;
121
- const tx = matrix.e;
121
+ const tx = matrix.e;
122
122
  const ty = matrix.f;
123
123
  const realPoint = {
124
124
  x: (x - tx) / sx,
125
125
  y: (y - ty) / sy // Flip y back since we used negative scale
126
126
  }
127
-
127
+
128
128
  coords.textContent = `(${realPoint.x.toFixed(2)}, ${realPoint.y.toFixed(2)})`;
129
129
  coords.setAttribute('x', (x + 5).toString());
130
130
  coords.setAttribute('y', (y - 5).toString());