From acba901d861aa84cb5beba60b24fff4cfde7ada6 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Wed, 26 Mar 2025 12:57:16 +0100 Subject: [PATCH] make two seperate changesets for fix and the new features --- .changeset/hungry-shrimps-remain.md | 5 +++++ .changeset/poor-poems-visit.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/hungry-shrimps-remain.md diff --git a/.changeset/hungry-shrimps-remain.md b/.changeset/hungry-shrimps-remain.md new file mode 100644 index 00000000..abf4ef75 --- /dev/null +++ b/.changeset/hungry-shrimps-remain.md @@ -0,0 +1,5 @@ +--- +'@xyflow/react': minor +--- + +You can now express paddings in fitViewOptions as pixels ('30px'), as viewport percentages ('20%') and define different paddings for each side. diff --git a/.changeset/poor-poems-visit.md b/.changeset/poor-poems-visit.md index 4aeb827d..8a258582 100644 --- a/.changeset/poor-poems-visit.md +++ b/.changeset/poor-poems-visit.md @@ -1,7 +1,7 @@ --- -'@xyflow/react': minor +'@xyflow/react': patch '@xyflow/svelte': patch '@xyflow/system': patch --- -Fix fitView not working when adding new nodes +Fix fitView not working immediately after adding new nodes