feat(graph): simple graph draggable

孔恩培 requested to merge feat-simple-graph-draggable into next

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

make graph node draggable when layout: 'none' and layout: 'circular'

Fixed issues

  • #14510

Details

Before: What was the problem?

Currently, draggable only work in layout: 'force'

After: How is it fixed in this PR?

  • set node draggable
  • update node layout, then recalculate edge layout
  • update the graph

Misc

  • The API has been changed (apache/echarts-doc#xxx).
  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

test/graph-draggable.html

Others

Merging options

  • Please squash the commits into a single one when merge.

Other information

Merge request reports