-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
X6未来有支持从一条边上直接拖拽出一条边的功能吗 #4590
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
我也是要做电力图,现在折中的方案就是自定义线条的node,当作edge来使用 |
#2027 (comment) 还有一个删除原边添加中间端子的方法,都不太友好 |
点击画布空白处创建一个临时边,你可监听鼠标在画布空白处移动的事件,或者监听鼠标在浏览器上移动的事件,前者X6原生事件有缺陷,就是你必须按下鼠标移动才能触发,然后不断通过setTarget这个函数更新坐标就行了,再次点击屏幕空白把这个点定住就行。需要固定连接桩就要用到边工具,还有一个问题就是边外部是有一个包围盒的,你的鼠标要离创建出来的边有一定的距离,或者通过一些手段把那个包围盒去掉,大概是如下 document.addEventListener("mousemove", (e) => {
|
这东西X6不支持的,或是不符合图编辑设计理念,怎么整都有缺陷 |
感谢提供思路 |
功能描述
制作电力接线图会遇到大量边链接边的场景
期望解决方案
如图:
The text was updated successfully, but these errors were encountered: