Skip to content

Commit

Permalink
Allow setting of animation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
asterixslashstar committed Nov 9, 2018
1 parent 8a2e415 commit 6cdb11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cytoscape-expand-collapse.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/expandCollapseUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ return {
commonExpandOperation(node, applyFishEyeView, single, animate, layoutBy);
}
}, {
duration: 1000
duration: animate > 1 ? animate : 1000
});
}
else {
Expand Down Expand Up @@ -498,7 +498,7 @@ return {

}
}, {
duration: 1000
duration: animate > 1 ? animate : 1000
});
}
}
Expand Down

0 comments on commit 6cdb11b

Please sign in to comment.