feat(core): use nodes from state for getIntersectingNodes

This commit is contained in:
braks
2023-10-17 19:18:55 +02:00
committed by Braks
parent 85d60f3401
commit 03242dde9b

View File

@@ -672,7 +672,7 @@ export function useActions(
}
// todo: rename to `findIntersectingNodes`
const getIntersectingNodes: Actions['getIntersectingNodes'] = (nodeOrRect, partially = true, nodes) => {
const getIntersectingNodes: Actions['getIntersectingNodes'] = (nodeOrRect, partially = true, nodes = state.nodes) => {
const [nodeRect, node, isRect] = getNodeRect(nodeOrRect)
if (!nodeRect) {