mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-13 09:14:15 +01:00
@@ -1,6 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
KEYS,
|
KEYS,
|
||||||
arrayToMap,
|
arrayToMap,
|
||||||
|
debugDrawLine,
|
||||||
getFeatureFlag,
|
getFeatureFlag,
|
||||||
invariant,
|
invariant,
|
||||||
isTransparent,
|
isTransparent,
|
||||||
@@ -829,6 +830,10 @@ const projectFixedPointOntoDiagonal = (
|
|||||||
const d1 = p1 && pointDistance(a, p1);
|
const d1 = p1 && pointDistance(a, p1);
|
||||||
const d2 = p2 && pointDistance(a, p2);
|
const d2 = p2 && pointDistance(a, p2);
|
||||||
|
|
||||||
|
debugDrawLine(diagonalOne, { color: "purple" });
|
||||||
|
debugDrawLine(diagonalTwo, { color: "purple" });
|
||||||
|
debugDrawLine(intersector, { color: "orange" });
|
||||||
|
|
||||||
if (d1 != null && d2 != null) {
|
if (d1 != null && d2 != null) {
|
||||||
return d1 < d2 ? p1 : p2;
|
return d1 < d2 ? p1 : p2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user