fix: Lint

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2026-07-06 16:04:18 +00:00
parent 360e9666cf
commit 7404673525
+2 -8
View File
@@ -402,14 +402,8 @@ export const getHoveredElementForBinding = (
}
const [x1, y1, x2, y2] = getElementBounds(c.element, elementsMap);
const overlapWidth = Math.max(
0,
Math.min(x2, cx2) - Math.max(x1, cx1),
);
const overlapHeight = Math.max(
0,
Math.min(y2, cy2) - Math.max(y1, cy1),
);
const overlapWidth = Math.max(0, Math.min(x2, cx2) - Math.max(x1, cx1));
const overlapHeight = Math.max(0, Math.min(y2, cy2) - Math.max(y1, cy1));
const area = Math.max(0.00001, Math.abs(x2 - x1) * Math.abs(y2 - y1));
const overlapPercent = (overlapHeight * overlapWidth) / area;