Commit 00e97c7a authored by Jean-Clement Gallardo's avatar Jean-Clement Gallardo
Browse files

Finish SyntaxCorrection

parents 35a793e8 b6ddcf62
...@@ -405,7 +405,7 @@ metExploreD3.GraphPanel = { ...@@ -405,7 +405,7 @@ metExploreD3.GraphPanel = {
jsonParsed.reactionStyle.labelOpacity, jsonParsed.reactionStyle.labelOpacity,
jsonParsed.reactionStyle.label, jsonParsed.reactionStyle.label,
jsonParsed.reactionStyle.useAlias); jsonParsed.reactionStyle.useAlias);
metExploreD3.setReactionStyle(reactionStyle); metExploreD3.setReactionStyle(reactionStyle);
} }
...@@ -594,9 +594,9 @@ metExploreD3.GraphPanel = { ...@@ -594,9 +594,9 @@ metExploreD3.GraphPanel = {
var jsonParsed = metExploreD3.GraphUtils.decodeJSON(json); var jsonParsed = metExploreD3.GraphUtils.decodeJSON(json);
if(jsonParsed){ if(jsonParsed){
var networkVizSession = _metExploreViz.getSessionById("viz"); var networkVizSession = _metExploreViz.getSessionById("viz");
var networkData = networkVizSession.getD3Data(); var networkData = networkVizSession.getD3Data();
_metExploreViz.resetOldCoodinates(); _metExploreViz.resetOldCoodinates();
networkData.getNodes().forEach(function(node){ networkData.getNodes().forEach(function(node){
_metExploreViz.addOldCoodinates({"id":node.getId(), "x":node.x, "px":node.px, "y":node.y, "py":node.py}); _metExploreViz.addOldCoodinates({"id":node.getId(), "x":node.x, "px":node.px, "y":node.y, "py":node.py});
...@@ -668,7 +668,7 @@ metExploreD3.GraphPanel = { ...@@ -668,7 +668,7 @@ metExploreD3.GraphPanel = {
} }
if(overlap && !metExploreD3.getGeneralStyle().windowsAlertIsDisable()){ if(overlap && !metExploreD3.getGeneralStyle().windowsAlertIsDisable()){
metExploreD3.displayMessageYesNo("Coodinates",'Do you want keep node coordinates.',function(btn){ metExploreD3.displayMessageYesNo("Coordinates",'Do you want to keep nodes coordinates.',function(btn){
if(btn=="yes") if(btn=="yes")
{ {
var selected = []; var selected = [];
...@@ -680,13 +680,13 @@ metExploreD3.GraphPanel = { ...@@ -680,13 +680,13 @@ metExploreD3.GraphPanel = {
node.px = coor.px; node.px = coor.px;
node.py = coor.py; node.py = coor.py;
selected.push(coor.id); selected.push(coor.id);
} }
}); });
d3.select("#viz").select("#graphComponent") d3.select("#viz").select("#graphComponent")
.selectAll("g.node") .selectAll("g.node")
.filter(function(d) { return selected.indexOf(d.id)!=-1; }) .filter(function(d) { return selected.indexOf(d.id)!=-1; })
.each(function(d) { .each(function(d) {
d.setLocked(!d.isLocked()); d.setLocked(!d.isLocked());
d.fixed=d.isLocked(); d.fixed=d.isLocked();
if(d.isLocked()) if(d.isLocked())
...@@ -705,7 +705,7 @@ metExploreD3.GraphPanel = { ...@@ -705,7 +705,7 @@ metExploreD3.GraphPanel = {
} }
} }
if(_metExploreViz.getMappingsLength()>0) if(_metExploreViz.getMappingsLength()>0)
{ {
...@@ -720,7 +720,7 @@ metExploreD3.GraphPanel = { ...@@ -720,7 +720,7 @@ metExploreD3.GraphPanel = {
metExploreD3.GraphNetwork.tick("viz"); metExploreD3.GraphNetwork.tick("viz");
} }
} }
func(); func();
}, },
/***************************************************** /*****************************************************
...@@ -737,7 +737,7 @@ metExploreD3.GraphPanel = { ...@@ -737,7 +737,7 @@ metExploreD3.GraphPanel = {
// that what is this test for // that what is this test for
_metExploreViz.setLaunched(true); _metExploreViz.setLaunched(true);
if (vizEngine === 'D3') { if (vizEngine === 'D3') {
metExploreD3.GraphNetwork.delayedInitialisation('viz'); metExploreD3.GraphNetwork.delayedInitialisation('viz');
} }
}, },
...@@ -798,4 +798,3 @@ metExploreD3.GraphPanel = { ...@@ -798,4 +798,3 @@ metExploreD3.GraphPanel = {
}); });
}, },
}; };
Supports Markdown
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