lib/d3-flextree.js
function addChildSpacing(wt) {
    var d = 0, modsumdelta = 0;                                    
    for (var i = 0; i < wt.num_children; i++) {                                  
      d += wt.children[i].shift;                                               
      modsumdelta += d + wt.children[i].change;                                
      wt.children[i].mod += modsumdelta;                                       
    }                                                                 
  }
function addChildSpacing(wt) {
    var d = 0, modsumdelta = 0;                                    
    for (var i = 0; i < wt.num_children; i++) {                                  
      d += wt.children[i].shift;                                               
      modsumdelta += d + wt.children[i].change;                                
      wt.children[i].mod += modsumdelta;                                       
    }                                                                 
  }
function addChildSpacing ( wt ) { var d = 0 , modsumdelta = 0 ; for ( var i = 0 ; i < wt . num_children ; i ++ ) { d += wt . children [ i ] . shift ; modsumdelta += d + wt . children [ i ] . change ; wt . children [ i ] . mod += modsumdelta ; } }
Process change and shift to add intermediate spacing to mod.
Process change and shift to add intermediate spacing to mod .