You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/04/06 08:49:49 UTC
[GitHub] [incubator-echarts] travis1111 opened a new issue #12389: Graph
force layout, drag multiple nodes - how to move multiple node positions?
travis1111 opened a new issue #12389: Graph force layout, drag multiple nodes - how to move multiple node positions?
URL: https://github.com/apache/incubator-echarts/issues/12389
### What problem does this feature solve?
ECharts only support drag a single node in graph force layout. I need to be able drag multiple nodes in my application.
Now I am able to use zrender to draw a rectangle box on the screen, and I have code to determine the nodes that are inside the rectangle box. Now I am stuck at how to move these nodes in the zrender's mousemove event callback.
I tried to call the `data.setItemLayout` but it seems the _itemLayout arrays are changed, but the nodes on the screen did not move.
So how can I move them?
I am also wondering if there is api for my to detect if mousedown is triggered on a node? (in this case, I should not draw the selection box).
Also, is there an API to determine whether a node is visible or not? I want to make sure when I select the nodes, I can ignore the ones that are invisible.
Thanks
### What does the proposed API look like?
NA
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12389:
Graph force layout,
drag multiple nodes - how to move multiple node positions?
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12389: Graph force layout, drag multiple nodes - how to move multiple node positions?
URL: https://github.com/apache/incubator-echarts/issues/12389#issuecomment-609661424
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org