feat(core): use nodes from state for getIntersectingNodes

This commit is contained in:
braks
2023-10-30 13:36:07 +01:00
committed by Braks
parent 85d60f3401
commit 03242dde9b
+1 -1
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) {