-
So far I've got a serverside autolayouting action running on the glsp-server, when the client opens a file with a missing enotation file (see discussion here: https://spectrum.chat/emfcloud/general/freshly-opened-diagramm-is-deflated~e7a15d77-cb9b-4836-a7c1-35c040775fc8?m=MTU3MzcyODczNTAyNw==) Currently I am having an issue, that the ELK formatter does not have the current positions of the diagram's nodes and edges, thus the rendering is only done in the way of using the default distance. Do you know whether it is at all possible to layout a diagram solemnly in the server and if so do you have an Idea how to get the correct positions? original thread by Jonas Ebel |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think @tortmayr can best answer this, but here is my shot at it. :) |
Beta Was this translation helpful? Give feedback.
-
Once the server receives the |
Beta Was this translation helpful? Give feedback.
Once the server receives the
ComputedBoundsAction
, it'll put the computed values into the GModel in the graphical model state:https://github.com/eclipsesource/graphical-lsp/blob/master/server/glsp-server/src/main/java/com/eclipsesource/glsp/server/actionhandler/ComputedBoundsActionHandler.java
Then you should be able to run a layout based on ELK, see also
https://github.com/eclipsesource/graphical-lsp/blob/master/server/glsp-server/src/main/java/com/eclipsesource/glsp/server/actionhandler/LayoutActionHandler.java