code: function _setLayout(layout) {
    var leafCount = _data.leafCount,
        dimention;
  
    // If count is even dummy will be replaced by output, so output would no more be leaf
    if(_data.tree.get('children.length') % 2 === 0) {
      leafCount--;
    }
    dimention = layout.projector(leafCount, _data.maxDepth - 1);
  
    _layout = layout;
  
    _width = dimention.x *= _layout.hSpacing;
    _height = dimention.y *= _layout.vSpacing;
  
    dimention = _layout.projector(dimention.x, dimention.y); // Because tree is always top to bottom
    _treeLayout = d3.layout.tree().size([dimention.x, dimention.y]);
  
    _update();
  }
docs: Sets the layout and update the display.
  @param layout {Object} One of the values defined in LAYOUTS object