feat(core): use nodes from state for getIntersectingNodes
This commit is contained in:
@@ -672,7 +672,7 @@ export function useActions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// todo: rename to `findIntersectingNodes`
|
// 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)
|
const [nodeRect, node, isRect] = getNodeRect(nodeOrRect)
|
||||||
|
|
||||||
if (!nodeRect) {
|
if (!nodeRect) {
|
||||||
|
|||||||
Reference in New Issue
Block a user