alibaba / GGEditor

A visual graph editor based on G6 and React
https://ggeditor.com
MIT License
3.41k stars 573 forks source link

请问一下Readme中这个Flow项目的源码有吗? #256

Open JYC-99 opened 5 years ago

JYC-99 commented 5 years ago

这个功能解决了什么问题

你所期望的 API 是怎样的

image 这个项目的代码地址,很多东西想学习一下。

xwg2015 commented 5 years ago

同问

joseahhj commented 4 years ago

同问,这上面的锚点是怎么控制的

JYC-99 commented 4 years ago

@JustLikeU @joseahhj 如果我没有猜错的话,作者贴错图了。实际上这个gif来自g6-editor,代码在这里:https://github.com/antvis/g6-editor/blob/master/demos/src/flow.js。我本地运行和这个截图一样

至于gg-editor对于锚点的支持很少。可以用这个事件 “dragedge:beforeshowanchor” 来控制锚点的高亮。e是事件对象,e.cancel=true可以取消高亮。

别的定制化需求,我这边的做法是用customNode画出假的的锚点。

希望后续版本能丰富对节点的支持吧。