Skip to content
Snippets Groups Projects
Commit 52659864 authored by Mathias Chouet's avatar Mathias Chouet Committed by mathias.chouet
Browse files

PreBarrage: sort graph nodes to prevent lines crossings

parent 71080937
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,12 @@ export class PbSchemaComponent implements AfterViewInit, AfterContentInit, OnIni
// store, to draw later
sortedWalls.push(c);
}
this.existingWalls[basinsPair]++;
// draw wall Node
def.push(`${c.uid}["${this.itemDesription(c)}"]`); // square edges
def.push(`class ${c.uid} wall;`);
// draw "arrow" with 2 lines
def.push(`${upstreamBasinId}---${c.uid}-->${downstreamBasinId}`);
}
// sort then draw walls
sortedWalls.sort(this.triCloisonsGaucheDroite);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment