Skip to content

How does the RouterKind.MANHATTAN work? #552

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

You must be logged in to vote

The implementation of the default routers and anchoring is located in Sprotty. Based on the registered edge routes (see the module where they are registered) and the router type of the edge in the GModel, the respective router implementation (e.g. Manhattan router) and anchoring (e.g. Manhattan anchor computer) is selected and applied on the client.

Of course, you can bind your own routers and anchor computers on the client. The GLSP client DI container is a set of Sprotty and GLSP DI modules and you can add your own (and even unload existing ones to replace modules). Thus, you can add your own module to your GLSP client container in which you bind your own router, either a new router imp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tortmayr
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