From 5242128f2cbcb836685c09835598f37c2bf29f04 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Fri, 8 Mar 2024 12:54:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20style:=20prettify=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grapher/src/slopeCharts/SlopeChart.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx b/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx index fc85110fd11..0f563070ca7 100644 --- a/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx +++ b/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx @@ -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) }