From 7de640685a2c39b60bc550858d2a6e6951184a95 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Mon, 9 Dec 2024 12:30:05 +0100 Subject: [PATCH 1/3] Fix origin not being respected, when calulating rect --- packages/react/src/hooks/useReactFlow.ts | 3 +-- packages/svelte/src/lib/hooks/useSvelteFlow.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) 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 Date: Mon, 9 Dec 2024 12:31:10 +0100 Subject: [PATCH 2/3] chore(changeset) add --- .changeset/many-emus-begin.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/many-emus-begin.md diff --git a/.changeset/many-emus-begin.md b/.changeset/many-emus-begin.md new file mode 100644 index 00000000..ea5fd7fa --- /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]. From 35c8b6f403d8404250970b65f20a16a512b9f217 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Mon, 9 Dec 2024 12:35:24 +0100 Subject: [PATCH 3/3] adjust changelog --- .changeset/many-emus-begin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/many-emus-begin.md b/.changeset/many-emus-begin.md index ea5fd7fa..3388e71a 100644 --- a/.changeset/many-emus-begin.md +++ b/.changeset/many-emus-begin.md @@ -3,4 +3,4 @@ '@xyflow/svelte': patch --- -Fix intersections for nodes with origins other than [0,0]. +Fix intersections for nodes with origins other than [0,0]. Thanks [@gmvrpw](https://github.com/gmvrpw)!