Mise à jour effectuée, merci de nous signaler tout dysfonctionnement ! | Upgrade done, please let us know about any dysfunction!

Hide edges completly when centering camera

parent 1a838e13
......@@ -237,12 +237,14 @@ function displayGraph(s){
}
// Function to center the camera
function centerCamera(){
function centerCamera(e){
if(e){edgesWereDisplayed = s.settings('drawEdges');displayEdges(false);}
sigma.misc.animation.camera(
cam,
{x: 0, y: 0, angle: 0, ratio: 1},
{duration: 1500}
);
if(e && edgesWereDisplayed){setTimeout(function(){displayEdges(true);}, 1500);}
}
// Function to display/hide a node with his neighboors
......
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