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

PreBarrage: sort graph nodes to prevent lines crossings

parent b8a11f94
No related branches found
No related tags found
1 merge request!93Resolve "Ajout du module Prébarrage"
......@@ -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