code: function() {
          // TODO: flatten output, likewise do it for Crafty.viewport.bounds
          // TODO: accept optional parameter to save result in
          this._updateBoundaries();
          var bounds = this.boundsCoords;
          return {
              min: {
                  x: bounds.minX,
                  y: bounds.minY
              },
              max: {
                  x: bounds.maxX,
                  y: bounds.maxY
              }
          };
      }
docs: @
  #Crafty.map.boundaries
  @comp Crafty.map
  @kind Method
  
  @sign public Object Crafty.map.boundaries()
  @returns An object with the following structure, which represents an MBR which contains all entities
  
  Return a copy of the minimum bounding rectangle encompassing all entities.
  
  ~~~
  {
  min: {
  x: val_x,
  y: val_y
  },
  max: {
  x: val_x,
  y: val_y
  }
  }
  ~~~