-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
getVertices() 无法获取路由中的 vertices #3755
Comments
171h
changed the title
edge 的 getVertices() 方法返回值始终为 空数组
getVertices() 无法获取路由中的 vertices
Jul 9, 2023
可以通过视图 api 拿到路由顶点: const view = graph.findViewByCell(edge) as EdgeView
const points = view.routePoints 需要注意的是:调用视图相关的 api 需要等待节点完成渲染。 |
谢谢👍👍👍
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: vector ***@***.***>
发送时间: 2023年7月10日 17:23
收件人: antvis/X6 ***@***.***>
抄送: 171H ***@***.***>, Author ***@***.***>
主题: Re: [antvis/X6] getVertices() 无法获取路由中的 vertices (Issue #3755)
可以通过视图 api 拿到路由顶点:
const view = graph.findViewByCell(edge) as EdgeView const points = view.routePoints
需要注意的是:调用视图相关的 api 需要等待节点完成渲染。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
有没有方法可以如果获取路由中的 vertices 啊?getVertices() 只能获取自定义的 vertices.
Your Example Website or App
https://codesandbox.io/s/mo-ban-forked-qjddnq
Steps to Reproduce the Bug or Issue
.
Expected behavior
.
Screenshots or Videos
No response
Platform
.
Additional context
.
The text was updated successfully, but these errors were encountered: