|
Re: How do I get this ELK layout in Sirius? [message #1826600 is a reply to message #1826544] |
Mon, 27 April 2020 15:34 |
Brandon Lewis Messages: 268 Registered: May 2012 |
Senior Member |
|
|
I can actually hear ELK laughing at me... taunting me from deep within its code. :-)
My trails with Elk Layered (which seems to be the one I want, because it looks the least worse)
I'll think of things such as "I'd like to have my Port labels on the OUTSIDE of my container", but I have to set the option to INSIDE for it to work. What?
Elk draws container and subcontainer ports on top of each other - even if I set Port Label Spacing to 100.0! I have to manually move subcontainers so ports aren't on top of each other.
Or I'll tell ELK to set the Edge Routing to SPLINES, but it will choose to use POLYLINES with annoying bend points. Until I ask Sirius to Align the border nodes and then I'll get splines. Annoying bent polylines with BK Edge Straightening set to IMRPOVE_STAIGHTNESS, Straighness Priority set to 100. Bent poly lines are the result.
I get edges that go outside of my container! Bent poly lines that exist my container, then bend back around to connect to the outside of a port? What?
And I'll ask ELK to CENTER the Port Alignment - which it ignores and just places ports anywhere and everywhere.
None of these arguments seem to do what I'm asking them. I've set Thoroughness to 1 bazillion too. :-)
Is Elk known to mock and mess with the user? :-)
[Updated on: Mon, 27 April 2020 15:40] Report message to a moderator
|
|
|
Re: How do I get this ELK layout in Sirius? [message #1826709 is a reply to message #1826600] |
Wed, 29 April 2020 10:17 |
|
Hello Brandon,
I have not worked on the Sirius/ELK integration, so my knowledge is a bit limited. However, what I understood is that some features that can be installed from the ELK have some impacts on GMF (An underlying graphical framework that Sirius relies on) that can break some integration between Sirius and ELK. I think that it will be easier that you start with the Obeo Designer Community Edition [1] bundle where we package Sirius with some other frameworks including ELK. The Sirius/ELK integration is better is the last version but it is still an experimental feature we are working on (well more my coworkers than me I have to admit). As it's experimental, you may need to go to the included Obeo Designer Community Edition update site in order to install more Sirius/ELF integration features.
On a diagram itself, it is not recommanded to activate the "snap to" function (On the properties view, it is in the "Rulers & Grid" tab) nor to have pinned elements (there is a pin.unpin tabbar action that list every diagram elements and there status) as these notiions are not yet supported in the Sirius/ELK integration.
Finally, you can also download the plugin "org.eclipse.sirius.diagram.elk.debug" from the Sirius git in order to check that the algorithm works properly.
Best regards,
Steve
[1] https://www.obeodesigner.com/en/download
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05189 seconds