echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open k644606347 opened this issue 1 year ago • 3 comments

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"

k644606347 avatar May 07 '24 11:05 k644606347

@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"

echarts-bot[bot] avatar May 07 '24 11:05 echarts-bot[bot]

有没有什么想法那?

k644606347 avatar May 09 '24 03:05 k644606347

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

k644606347 avatar May 10 '24 08:05 k644606347