[Question] Is there a way/an option to "force" position coordinates from an ELK layout to be considered as an "Integer" (without digit after comma)? #1126
Labels
question
Request for support in using ELK.
Milestone
Ask your questions
As discussed in forum today, I have a problem indirectly caused by the floating coordinates.
I have no simple reproduction use case. In ELK everything is OK. But after that, I "translate" ELK graph to a GMF graph and there are some glitches on edges (of one pixel). Because the source node have not the same absolute y location than the target node (because of coordinates with xxx.5)
Reproduction use case files
The following zip contains three ELKT files:
elktSampleFiles.zip
The graph seems to be too big to be sent with "ELK live" links.
Screenshots

The ELK result is like this:
The edge "toA1", between "C111" and "A1", is a straight edge.
The absolute y coordinate of C111 is 116.5+44.5+33+33=227.
The absolute y coordinate of A1 is 138+89=227.
But after conversion to GMF, C111 absolute y coordinate is 228 and the edge "toA1" has a bendpoint of one pixel.
I manually simulate the observed result in GMF. It is like this:
The text was updated successfully, but these errors were encountered: