chore: Check debug

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2025-11-06 15:57:10 +01:00
parent dd70f4e00f
commit 11bb0860ea

View File

@@ -1,6 +1,7 @@
import {
KEYS,
arrayToMap,
debugDrawLine,
getFeatureFlag,
invariant,
isTransparent,
@@ -829,6 +830,10 @@ const projectFixedPointOntoDiagonal = (
const d1 = p1 && pointDistance(a, p1);
const d2 = p2 && pointDistance(a, p2);
debugDrawLine(diagonalOne, { color: "purple" });
debugDrawLine(diagonalTwo, { color: "purple" });
debugDrawLine(intersector, { color: "orange" });
if (d1 != null && d2 != null) {
return d1 < d2 ? p1 : p2;
}