Open JYC-99 opened 5 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画出假的的锚点。
希望后续版本能丰富对节点的支持吧。
这个功能解决了什么问题
你所期望的 API 是怎样的
这个项目的代码地址,很多东西想学习一下。