theia-ide / sprotty

A next-gen web-based graphics framework
Apache License 2.0
138 stars 23 forks source link

ELK to Sprotty #176

Closed steffenkoenig closed 7 years ago

steffenkoenig commented 7 years ago

Hey, in the blogpost linked in the readme it is stated: "sprotty also comes with a bridge to the Eclipse Layout Kernel for sophisticated automatic diagram layout."

Does that mean there is a function to directly pass the ELK result in or do I have to transform the ELK result myself to the format of Sprotty?

JanKoehnlein commented 7 years ago

There is a default mapping of sprotty's SModelElements to ELK and back in ElkLayoutEngine.java. You can use this directly on the server or sublclass it for customization like in YANG LSP