Sigmajs.js 318 Bytes
Newer Older
Abinaya Sudhir's avatar
Abinaya Sudhir committed
1
'use strict';
2 3 4 5
exports.goToImpl = function(cam) {
  return function(props) {
    return cam.goTo(props);
  };
6
};
7 8 9 10 11 12 13 14 15 16 17
exports.pauseForceAtlas2 = function() {
  var s = window.sigmaGargInstance;
  if (s) {
    if (s.isForceAtlas2Running()) {
      s.stopForceAtlas2()
    }
    else {
      s.startForceAtlas2()
    }
  }
};