I just found this [SOLVED] Get the sort order of the Swimlanes - #7 by simon
Would that mean that I need to keep&save the index myself manually based on a “loc” sorting function ?
In Pool layout, something like:
getLanesByOrder() {
const pool = this.group;
const lanes = [];
pool.memberParts.each( (lane) => {
if (!(lane instanceof go.Group)) return;
lanes.push(lane);
});
return lanes.sort((lane1, lane2) => {
const y1 = lane1.location.y;
const y2 = lane2.location.y;
if (y1 < y2) {
return -1;
}
if (y1 > y2) {
return 1;
}
return 0;
});
}
Then loop each lane memberParts and each node with findNodesOutOf and so on…