fixed errors but still WIP

This commit is contained in:
peterkogo
2024-04-10 09:30:00 +02:00
parent 47319ec747
commit 2d1d4717d9
16 changed files with 142 additions and 102 deletions
@@ -331,11 +331,12 @@ export function useSvelteFlow(): {
}
return (nodesToIntersect || get(nodes)).filter((n) => {
if (!isRect && (n.id === nodeOrRect.id || !n.computed?.positionAbsolute)) {
const internalNode = get(nodeLookup).get(n.id);
if (!internalNode || (!isRect && n.id === nodeOrRect.id)) {
return false;
}
const currNodeRect = nodeToRect(n);
const currNodeRect = nodeToRect(internalNode);
const overlappingArea = getOverlappingArea(currNodeRect, nodeRect);
const partiallyVisible = partially && overlappingArea > 0;