You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to force some port to be on the east side of a component (glsp 2.4.0, elkjs 0.10.0).
I already tried many things but without success.
This is the version, which to my understanding should work:
const builder = GNode.builder()
.type('node:componentnode')
.id(compNode.id)
.layout('hbox')
.addLayoutOption("elk.portConstraints", "FIXED_SIDE") // <-- force fixed side
.position(compNode.position);
const inPort: GPort = GPort.builder()
.id("port"+sub.id)
.type('node:inport')
.addLayoutOption('port.side', "EAST") // <-- ask for east side placement
.size(10, 10)
.addCssClass('inport')
.build();
builder.add(inPort)
However all my port are still on the WEST side...
I saw some examples looking like this in Java but not in node.
Any help is more than welcome
PS: I noticed when trying to use elkjs online on my underlying JSON that the structure is a bit different, typically, ports are stored into "children" while stored into "ports" in the examples. Not sure about the impact...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dear community,
I'm trying to force some port to be on the east side of a component (glsp 2.4.0, elkjs 0.10.0).
I already tried many things but without success.
This is the version, which to my understanding should work:
However all my port are still on the WEST side...
I saw some examples looking like this in Java but not in node.
Any help is more than welcome
PS: I noticed when trying to use elkjs online on my underlying JSON that the structure is a bit different, typically, ports are stored into "children" while stored into "ports" in the examples. Not sure about the impact...
Beta Was this translation helpful? Give feedback.
All reactions