echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] (Tree In the tree diagram, how do I obtain the positions offsetX and offsetY offset by node A when I click node A) Tree树图,点开A节点时,如何获取到A偏移后的位置offsetX和offsetY

Open BWA-579 opened this issue 1 year ago • 1 comments

What problem does this feature solve?

Tree 点开节点,被点的节点会自适应偏移一段距离,要使点击的节点做居中,单获取click事件的x和y不够准确,得获取偏移后的位置。

What does the proposed API look like?

希望能有个后after事件,或者有什么方案能解决当前问题。

BWA-579 avatar Oct 10 '24 03:10 BWA-579

https://echarts.apache.org/examples/zh/editor.html?c=tree-basic 偏移示例

BWA-579 avatar Oct 10 '24 03:10 BWA-579