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

handleAfterLayout not working with graphin-force layout #395

Open
Junlol opened this issue May 12, 2022 · 0 comments
Open

handleAfterLayout not working with graphin-force layout #395

Junlol opened this issue May 12, 2022 · 0 comments

Comments

@Junlol
Copy link

Junlol commented May 12, 2022

Describe the bug

目前使用 graphin-force layout 搭配 MiniMap
但是 layout 完成後,MiniMap 沒有顯示當下的佈局的結果

爬文發現是因為效能考量,所以決定在 layout 完成後,手動更新 MiniMap

Graphin 本身提供的 handleAfterLayout 並不會在使用 graphin-force layout 的情況下被 trigger
而 G6 的 afteranimate 目前測試也是不會被 trigger

不曉得還有什麼方法可以做到?

Your Example Website or App

https://codesandbox.io/s/priceless-wind-r6werq?file=/App.tsx

Steps to Reproduce the Bug or Issue

直接參考連結

Expected behavior

MiniMap 在 layout 完成後更新

Screenshots or Videos

No response

Platform

Grahpin: 2.6.6

Additional context

No response

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

No branches or pull requests

1 participant