Skip to content
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

@a-silent-guy 所以还是建议如果要保留边的话,可以先通过 edge.setSource 或者 edge.setTarget 等方法先将边和节点解绑。 #4322

Closed
cluck0428 opened this issue May 23, 2024 · 2 comments

Comments

@cluck0428
Copy link

          @a-silent-guy 所以还是建议如果要保留边的话,可以先通过 `edge.setSource` 或者 `edge.setTarget` 等方法先将边和节点解绑。

Originally posted by @NewByVector in #3005 (comment)

@cluck0428
Copy link
Author

如果边连接的是节点的连接桩,那么如何获取对应port的坐标

@cluck0428
Copy link
Author

let edgeView = graph.findViewByCell(edge)
edgeView.sourcePoint或edgeView.getTerminalConnectionPoint('source')
就可以获取边起点或终点的具体坐标了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant