Commit 92d508dc authored by Romain Loth's avatar Romain Loth

legacy lock flag not needed anymore since 2fc18ac6

parent 9a49c8f0
...@@ -789,8 +789,9 @@ function changeLevel(optionalTgtState) { ...@@ -789,8 +789,9 @@ function changeLevel(optionalTgtState) {
for(var nid in nodesToAdd) for(var nid in nodesToAdd)
add1Elem(nid) add1Elem(nid)
for(var eid in edgesToAdd) for(var eid in edgesToAdd) {
add1Elem(eid) add1Elem(eid)
}
// Adding intra-neighbors edges O(voisinage²) // Adding intra-neighbors edges O(voisinage²)
voisinage = Object.keys(voisinage) voisinage = Object.keys(voisinage)
...@@ -1134,7 +1135,7 @@ function EdgeWeightFilter(sliderDivID , reltypestr , criteria) { ...@@ -1134,7 +1135,7 @@ function EdgeWeightFilter(sliderDivID , reltypestr , criteria) {
var t0 = performance.now() var t0 = performance.now()
if (TW.partialGraph.graph.edges(eid)) { if (TW.partialGraph.graph.edges(eid)) {
TW.partialGraph.graph.edges(eid).hidden = true TW.partialGraph.graph.edges(eid).hidden = true
TW.Edges[eid].lock = true; // TW.Edges[eid].lock = true;
} }
var t1 = performance.now() var t1 = performance.now()
......
...@@ -806,7 +806,7 @@ function add1Elem(id) { ...@@ -806,7 +806,7 @@ function add1Elem(id) {
} else { // It's an edge! } else { // It's an edge!
if(!isUndef(TW.partialGraph.graph.edges(id))) return; if(!isUndef(TW.partialGraph.graph.edges(id))) return;
var e = TW.Edges[id] var e = TW.Edges[id]
if(e && !e.lock){ if(e){
// var anedge = { // var anedge = {
// id: id, // id: id,
// source: e.source, // source: e.source,
......
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