demos/Collage/fabric.js
function() {
      this.oCoords || this.setCoords();
      var yCoords = [this.oCoords.tl.y, this.oCoords.tr.y, this.oCoords.br.y, this.oCoords.bl.y];
      var minY = fabric.util.array.min(yCoords);
      var maxY = fabric.util.array.max(yCoords);
      return Math.abs(minY - maxY);
    }
function() {
      this.oCoords || this.setCoords();
      var yCoords = [this.oCoords.tl.y, this.oCoords.tr.y, this.oCoords.br.y, this.oCoords.bl.y];
      var minY = fabric.util.array.min(yCoords);
      var maxY = fabric.util.array.max(yCoords);
      return Math.abs(minY - maxY);
    }
function ( ) { this . oCoords || this . setCoords ( ) ; var yCoords = [ this . oCoords . tl . y , this . oCoords . tr . y , this . oCoords . br . y , this . oCoords . bl . y ] ; var minY = fabric . util . array . min ( yCoords ) ; var maxY = fabric . util . array . max ( yCoords ) ; return Math . abs ( minY - maxY ) ; }
Returns height of an object's bounding rectangle
@method getBoundingRectHeight
@return {Number} height value
Returns height of an object s bounding rectangle