mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-08 06:44:23 +01:00
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user