-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] 版本能否内置一个连线优化的功能 #1230
Comments
可以尝试通过自定义边,重写updatePoints方法,自行决定连线路径 |
如果是polyline只需要根据自己的规则算出点并赋值给this.pointsList就行;getBezierControlPoints 和 getControls是用来 获取beizer曲线控制点的,计算逻辑比较简单,可以直接从源码里复制出来用,也可以按自己的逻辑算出来,可以参考https://juejin.cn/post/6942727734518874142?searchId=20230717155523FF2BD606640B7E05D760#heading-3 |
「重写后无法连线」检查写法是否有问题 👀 #1232 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题背景
LogicFlow feature版本能否内置一个连线优化的功能,目前的连线方案, 在视图拖拽之后略显呆板。
提案
比如现在创建一个连线,如下:
拖拽之后现状,如下:
期望:
继续拖动,期望:
位置拖拽后,视图更新希望连接锚点会随着始、末节点的相对位置进行动态优化, 来达到连线更符合用户直觉。
The text was updated successfully, but these errors were encountered: