src/Layout/index.js
function() {
      if (options.fit) {
        options.cy.fit(options.eles.nodes(), options.padding);
      }

      if (!ready) {
        ready = true;
        self.cy.one('layoutready', options.ready);
        self.cy.trigger({type: 'layoutready', layout: self});
      }
    }
function() {
      if (options.fit) {
        options.cy.fit(options.eles.nodes(), options.padding);
      }

      if (!ready) {
        ready = true;
        self.cy.one('layoutready', options.ready);
        self.cy.trigger({type: 'layoutready', layout: self});
      }
    }
function ( ) { if ( options . fit ) { options . cy . fit ( options . eles . nodes ( ) , options . padding ) ; } if ( ! ready ) { ready = true ; self . cy . one ( 'layoutready' , options . ready ) ; self . cy . trigger ( { type : 'layoutready' , layout : self } ) ; } }
Thigs to perform after nodes are repositioned on screen
Thigs to perform after nodes are repositioned on screen