Fix single point arrow binding focus point

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
feat/remove-ga
Mark Tolmacs 6 days ago
parent 3895efecf1
commit 24118ec19b
No known key found for this signature in database

@ -69,6 +69,7 @@ import {
vectorScale,
vectorNormalize,
vectorCross,
pointsEqual,
} from "../../math";
import { intersectElementWithLineSegment } from "./collision";
import { distanceToBindableElement } from "./distance";
@ -1523,6 +1524,11 @@ const determineFocusDistance = (
element.x + element.width / 2,
element.y + element.height / 2,
);
if (pointsEqual(a, b)) {
return 0;
}
const intersection = [
linesIntersectAt(
line(a, b),

Loading…
Cancel
Save