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

getVertices() 无法获取路由中的 vertices #3755

Closed
171h opened this issue Jul 9, 2023 · 3 comments
Closed

getVertices() 无法获取路由中的 vertices #3755

171h opened this issue Jul 9, 2023 · 3 comments

Comments

@171h
Copy link

171h commented Jul 9, 2023

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

.

@171h 171h changed the title edge 的 getVertices() 方法返回值始终为 空数组 getVertices() 无法获取路由中的 vertices Jul 9, 2023
@NewByVector
Copy link
Contributor

可以通过视图 api 拿到路由顶点:

const view = graph.findViewByCell(edge) as EdgeView
const points = view.routePoints

需要注意的是:调用视图相关的 api 需要等待节点完成渲染。

@171h
Copy link
Author

171h commented Jul 10, 2023 via email

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 10, 2024

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.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants