elk icon indicating copy to clipboard operation
elk copied to clipboard

Need a way to avoid bendpoints from getting created

Open badrinarayan-R83 opened this issue 1 year ago • 2 comments

We are using elk layout for glsp based diagrams. We use ElkLayoutEngine.initialize(new LayeredMetaDataProvider()); to use layered algorithm The layout is fine for shapes and layered algorithm suits our requirement

image

But when we move the shape State2 down, an unnecessary bendpoint is created as highlighted in red. The bendpoint is created at the point where the shape existed before the movement. image

We would have wanted a direct connection from circle to shape State2 without any bendpoint. Something like this image

Do you know how we can fix this issue (like setting some elk property) ? Note: FixedLayout doesn't work fine for our requirement

badrinarayan-R83 avatar Apr 30 '24 13:04 badrinarayan-R83

Hi, any update ?

badrinarayan-R83 avatar May 02 '24 05:05 badrinarayan-R83

Hi @badrinarayan-R83, as far as I'm aware there is no way to do this directly in ELK using the layered algorithm as the algorithm was developed with clean and readable edge routing in mind. The easiest way to achieve your goal would probably to remove the bendpoints in a post-processing step if you are certain you don't need them.

I don't really know how glsp uses elk though. Ideally you should recreate your graph in elk-live so we can see what options you are using and what your graph looks like.

Eddykasp avatar May 02 '24 13:05 Eddykasp

This is a duplicate of #1001

soerendomroes avatar Sep 06 '24 12:09 soerendomroes