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

X6力导图的demo拖拽节点的时候整个页面能有动态的效果吗 #3858

Closed
kevindurant-source opened this issue Aug 16, 2023 · 4 comments

Comments

@kevindurant-source
Copy link

问题描述

https://g6.antv.antgroup.com/zh/examples/net/forceDirected/#basicForceDirectedDragFix G6的整个拖拽某个节点,其他节点都有动态拖拽的效果,但是X6的官方demo没有https://x6.antv.antgroup.com/zh/examples/layout/general#force。
image
好像是这几行代码生效,拖动节点,重新布局,但是X6里面我看好像不行。目前能支持吗一下。

重现链接

https://g6.antv.antgroup.com/zh/examples/net/forceDirected/#basicForceDirectedDragFix

重现步骤

https://g6.antv.antgroup.com/zh/examples/net/forceDirected/#basicForceDirectedDragFix G6的整个拖拽某个节点,其他节点都有动态拖拽的效果,但是X6的官方demo没有https://x6.antv.antgroup.com/zh/examples/layout/general#force。
image
好像是这几行代码生效,拖动节点,重新布局,但是X6里面我看好像不行。目前能支持吗一下。

预期行为

X6力导图类似G6这种拖拽节点,其他节点重新布局https://g6.antv.antgroup.com/zh/examples/net/forceDirected/#basicForceDirectedDragFix

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 16, 2023

👋 @kevindurant-source

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@xxuyang
Copy link

xxuyang commented Aug 31, 2023

试试监听node:mousemove,节点按下并移动时触发

@NewByVector
Copy link
Contributor

其实就是在布局 tick 回调中一直修改节点位置就行。

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 7, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants