Skip to content

How to register a custom router in GLSP? #1440

Answered by tortmayr
rsoika asked this question in Q&A
Discussion options

You must be logged in to vote

Can you please explain why the GLSPManhattanEdgeRouter overwrite the method applyInnerHandleMoves? There are no comments in the code.

Looks like this was a workaround for eclipse-sprotty/sprotty#310.
Since this is now fixed directly in sprotty, the override is no longer necessary. Thanks for pointing that out,
we will remove this override

And I wonder if this is a good place to do my own customization of computing new routing points?
Unfortunately, I'm not that familiar with the details for the manhattan router or edge routers in general.
However, it seem to me like the routing points are computed in the route method:

 route(edge: SRoutableElementImpl): RoutedPoint[] {
        // ...

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tortmayr
Comment options

Answer selected by rsoika
@tortmayr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants