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

[Bug] Zooming a Force Graph with layoutAnimation false breaks edges #20515

Open
tsaltena opened this issue Nov 14, 2024 · 1 comment
Open

[Bug] Zooming a Force Graph with layoutAnimation false breaks edges #20515

tsaltena opened this issue Nov 14, 2024 · 1 comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@tsaltena
Copy link

tsaltena commented Nov 14, 2024

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=graph-force&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZykBKA8uwCoD6ACgEEuACQAEAalEByAPS4ocKDKhIkzOQqUAbRkgC0wfGphQARjqQIAVklSEpAGlEAzAK6EAxnHx3RpYiYADhDkogDe1KKioJCwiBD4uIzYeERkVJGiAVDBCISoSZbOqDAAolAeEKRunt6-pPlJoRFRUY2MyCDApqhaAMr4AF6MogC8ogCsNFEAvhlRqIF1hGPhmVHecDoAXGutrXCMAB5wu1KYuqIAskaMJua6juutSK6mhydnACKMzlCuWjgoi0UBAqFccCe-w2izOPTgcFQwCh0J0zlO0hg-GIEEhzxmDmeiN63kCuzCBOeOiYhFwuwA2s8oi1oVEZDJRGodF5GLgrgVGGckGkdCjWfJFLtsrkPApGMQSvhdAhgDlqu4vD4VqQoM0mdCYMxXDAVlA8lBgIxpqzRHN9TNngBdQn7YxKpAM_Us1mEC2C6QXJDXW73Cxi6FwECBf1SaUQcP7EFgiFnYowDyMBOtCVQKVBCB5AVIF02rREADWHqy-YQZcIlZLrNlhwVWN0eZyBeb8sVukbBpwwF2cBgrkY_cTZkYWnJ-v2gVQwuWZyxOLxNttE9aaYzs43UUNgQBwrsuwAjAAGC9byfJuACQj4VXLlxQLRqG-2-1OzIza0xaB4GQZh2CWLVSEWZYMjmSggA

Steps to Reproduce

  1. Go to the sample graph-force example
  2. Add layoutAnimation: false to the force settings
  3. Zoom in the graph to get the result below:

image

Current Behavior

Zoom in the example, and see how the edges reset to some initial layout, that doesn't correspond with the edges.

Expected Behavior

We would expect the edges to zoom correctly.

Environment

tested on Chrome and Firefox.

Any additional comments?

This is the example used:
https://echarts.apache.org/examples/en/editor.html?c=graph-force

@tsaltena tsaltena added the bug label Nov 14, 2024
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Nov 14, 2024
@helgasoft
Copy link

Adding animation:false to option fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants