Skip to content

Commit

Permalink
🤖 style: prettify code
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored and github-actions[bot] committed Mar 8, 2024
1 parent 225a57d commit 5242128
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1084,11 +1084,12 @@ class LabelledSlopes
}

// calculate the distance to the slope or label
const dist = PointVector.distanceFromPointToLineSegmentSq(
mouse,
p1,
p2
)
const dist =
PointVector.distanceFromPointToLineSegmentSq(
mouse,
p1,
p2
)
distToSlopeOrLabel.set(s, dist)
}

Expand Down

0 comments on commit 5242128

Please sign in to comment.