Merge pull request #4670 from xyflow/fix-fit-view-origin

Update absolute positions before initial fitView
This commit is contained in:
Moritz Klack
2024-09-23 15:55:59 +02:00
committed by GitHub
4 changed files with 24 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@xyflow/svelte': patch
'@xyflow/system': patch
'@xyflow/react': patch
---
Fix initial `fitView` not working correctly for `nodeOrigin` other than [0,0]
+6
View File
@@ -0,0 +1,6 @@
---
'@xyflow/svelte': patch
'@xyflow/react': patch
---
Improve `fitView` to respect clamped node positions based on `nodeExtent`