Commit 9553fc05 authored by Romain Loth's avatar Romain Loth

fix cancelSelection edge loop

parent 74cd2705
...@@ -19,13 +19,16 @@ function cancelSelection (fromTagCloud, settings) { ...@@ -19,13 +19,16 @@ function cancelSelection (fromTagCloud, settings) {
//Edges colors go back to normal //Edges colors go back to normal
if (TW.partialGraph.settings('drawEdges')) { if (TW.partialGraph.settings('drawEdges')) {
for(let i=0;i<TW.nEdges;i++){ for(let i in TW.edgeIds){
let e = TW.partialGraph.graph.edges(TW.edgeIds[i]) let e = TW.partialGraph.graph.edges(TW.edgeIds[i])
// console.log("cancelSelection: edge", e) // console.log("cancelSelection: edge", e)
if (e) { if (e) {
e.color = e.customAttrs['true_color']; e.color = e.customAttrs['true_color'];
e.customAttrs.grey = 0; e.customAttrs.grey = 0;
e.customAttrs.activeEdge = 0;
if (e.customAttrs.activeEdge) {
e.customAttrs.activeEdge = 0;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment