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

Using antv-dagre layout + custom node + polyline edge, the position is out of place when the element is expanded and collapsed #6389

Open
XKrabs opened this issue Oct 10, 2024 · 1 comment
Assignees

Comments

@XKrabs
Copy link

XKrabs commented Oct 10, 2024

Describe the bug / 问题描述

使用antv-dagre布局+自定义节点+polyline边,在对元素进行展开收起操作时位置错乱

Reproduction link / 重现链接

https://codesandbox.io/p/sandbox/confident-mountain-6r8x98?file=%2Findex.js

Steps to Reproduce the Bug or Issue / 重现步骤

点击中间的收起节点,然后在点击展开,

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

@github-actions github-actions bot changed the title 使用antv-dagre布局+自定义节点+polyline边,在对元素进行展开收起操作时位置错乱 Using antv-dagre layout + custom node + polyline edge, the position is out of place when the element is expanded and collapsed Oct 10, 2024
@yvonneyx
Copy link
Contributor

antv-dagre 布局每次数据变更后需要手动执行 graph.layout()

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

2 participants