-
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
[Bug report]自定义边里面调用graphModel.getNodeModelById(),lf.changeNodeId()后会报错 #864
Labels
优化
New feature or request
Comments
目前是不支持这样调用,请问是什么情况需要在这里调用这些api? |
想在自定义边的getEdge方法里面通过graphModel.getNodeModelById获取开始节点的x坐标和y坐标,然后跟边的开始和结束坐标来比较判断边是从哪个锚点连出来的 |
可以从model.sourceAnchorId属性获取到边的起始锚点,辛苦看下是否满足诉求呢 |
getEdge() { |
确实有这个问题,这边排查下原因 |
DymoneLewis
pushed a commit
that referenced
this issue
Aug 13, 2024
Merged
boyongjiong
pushed a commit
that referenced
this issue
Aug 13, 2024
已发版 2.0.1,请升级后使用,如有问题再新建 issue 关联此 issue,先关闭本 issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
codesanbox地址:https://codesandbox.io/s/beautiful-benji-lr4cg4?file=/src/index.js:1255-1267
The text was updated successfully, but these errors were encountered: