apache / apache/echarts

为什么在graph 布局中,移动节点后node 的x y 没有改变?

Open
#12,349 6 comments 0 reactions 0 assignees View on GitHub
new-feature topic: graph
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?
我用mouseDown 和mouseUp 两个event 查看node 移动后的坐标,可以我用鼠标移动后,节点坐标却没有改变?

MouseDown 时候的坐标:

```sh
x=987.0136108398438,349.69110107421875
y=933.5626831054688,356.38458251953125
```

把节点移动很远后,查看坐标,没有变化

```sh
nx=987.0136108398438,349.69110107421875
ny=933.5626831054688,356.38458251953125
```

我怎么才能知道节点 x y 移动距离?

这个x 和 y 的坐标为什么是个array ?

谢谢

### What does the proposed API look like?
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.