Crystal-Modeling / tasklist-theia-glsp

Primitive demo project aiming to use tasklist-lang (Langium LS) as a SourceModel server for GLSP Server
6 stars 1 forks source link

Layout new diagram elements with ELK #2

Closed hpopov closed 1 year ago

hpopov commented 1 year ago

Follow GLSP ELK discussion stream to implement ELK auto-layouting.

Subtasks:

hpopov commented 1 year ago

When implementing automatic layouting with ELK, I think you should preserve 2 distinct modes: 1) no layouting (current, can potentially be changed to layouting of the newly added element); 2) auto-layouting of all the elements (mimicking the behaviour of Sprotty Server). This way you can demonstrate that your solution is powerful -- in comparison with Sprotty Server, but also with GLSP-based EMS (node coordinates are persisted in .notation file)

hpopov commented 1 year ago

Launched glsp-server-node together with glsp-theia-integration. Though, layouting here is not as beautiful as one developed in Java-based GLSP server

hpopov commented 1 year ago

Autolayouting can be switched on or off with MANUAL or NONE layoutKind flag in TaskListDiagramConfiguration.