Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update absolute positions before initial fitView #4670

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Conversation

peterkogo
Copy link
Member

@peterkogo peterkogo commented Sep 19, 2024

Currently initial fitView is broken for nodeOrigins other than [0,0] (!!!)

A nice side effect of this is that fitView now also respects any clamped positions based on extent.

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: d05a297

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@xyflow/svelte Patch
@xyflow/system Patch
@xyflow/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@moklick moklick merged commit 74262a7 into main Sep 23, 2024
1 check passed
@moklick moklick deleted the fix-fit-view-origin branch September 23, 2024 13:56
This was referenced Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants