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

[Feature] roam配置能否支持移动鼠标时,整个graph也跟着移动 #19902

Open
k644606347 opened this issue May 7, 2024 · 3 comments
Labels
new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@k644606347
Copy link

k644606347 commented May 7, 2024

What problem does this feature solve?

我想使用echarts绘制关系图,例如:https://echarts.apache.org/examples/zh/editor.html?c=graph;
我想实现移动鼠标时,整个graph也跟着移动,类似Antv/G6的能力:https://g6.antv.antgroup.com/zh/examples/interaction/customBehavior/#dragCanvasTwoFingers

但是我发现roam仅支持配置true / scale / move,均无法实现此类交互,必需按住触摸板后才能移动整个graph(我是mac);
想问下能否实现无需按住,就能直接就能移动整个graph的方法那?或者能否新增一个配置项来实现类似的交互?
感觉还是蛮有用的:) ,因为持续按住按键再移动的行为,容易疲劳;

What does the proposed API look like?

// 这仅是一个想法,希望鼠标移动时,整个graph也跟着移动,而无需按住触摸板
roam: "wheel"

@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label May 7, 2024
Copy link

echarts-bot bot commented May 7, 2024

@k644606347 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Feature] Can the roam configuration support the entire graph moving when the mouse is moved?

BODY

What problem does this feature solve?

I want to use echarts to draw a relationship diagram, for example: https://echarts.apache.org/examples/zh/editor.html?c=graph;
I want to realize that when the mouse is moved, the entire graph also moves, similar to the ability of Antv/G6: https://g6.antv.antgroup.com/zh/examples/interaction/customBehavior/#dragCanvasTwoFingers

However, I found that Roam only supports the configuration of true/scale/move, and cannot achieve such interaction. You must hold down the touchpad to move the entire graph (I am a Mac);
I would like to ask if there is a way to move the entire graph directly without holding down? Or can a new configuration item be added to achieve similar interaction? It feels quite useful :)

What does the proposed API look like?

// This is just an idea. I hope that when the mouse moves, the entire graph will also move without holding down the touchpad.
roam: "wheel"

@k644606347
Copy link
Author

有没有什么想法那?

@k644606347
Copy link
Author

如果这个想法不错,我愿意参与共建

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

No branches or pull requests

1 participant