I changed the sample of swimlane layout a bit to change the position of nodes inside a lane, but irrespective of the value I am providing the nodes in lanes are coming in the start of the lane i.e top left.
Below are the screenshot of current behavior and desired behavior: Current Behavior:
I see you have completely redefined SwimlaneLayout so that it specifies the X and Y position for each node, regardless of which lane/Group it is in. Although I assume that’s just for demonstration purposes, the notion that you want to determine what’s in which lane by how the nodes are laid out means a lot of assumptions are no longer valid.
Notice what happens when you comment out the Placeholder from the “Lane” Group template. So there’s no point in having the “Pool” Group.layout being a PoolLayout. You should specify the position and desiredSize for each lane/group.
We are having similar kind of use case where in each lane we need to change the position of nodes based on it previous lane nodes, and it was working fine before we upgraded gojs from 2.1.54 to 2.3.11.
Now this is how it is behaving after upgrade:
If you have observed the above gif the lanes are starting from the place its initial node’s location and adjusting itself.
Sometimes the nodes are not plotting in desired location as shown below