diff --git a/.changeset/many-emus-begin.md b/.changeset/many-emus-begin.md new file mode 100644 index 00000000..3388e71a --- /dev/null +++ b/.changeset/many-emus-begin.md @@ -0,0 +1,6 @@ +--- +'@xyflow/react': patch +'@xyflow/svelte': patch +--- + +Fix intersections for nodes with origins other than [0,0]. Thanks [@gmvrpw](https://github.com/gmvrpw)! diff --git a/packages/react/src/hooks/useReactFlow.ts b/packages/react/src/hooks/useReactFlow.ts index c4d81e2d..2045761d 100644 --- a/packages/react/src/hooks/useReactFlow.ts +++ b/packages/react/src/hooks/useReactFlow.ts @@ -55,11 +55,10 @@ export function useReactFlow