demos/Collage/fabric.js
function () {
      return this.getObjects().reduce(function (memo, current) {
        memo += current.complexity ? current.complexity() : 0;
        return memo;
      }, 0);
    }
function () {
      return this.getObjects().reduce(function (memo, current) {
        memo += current.complexity ? current.complexity() : 0;
        return memo;
      }, 0);
    }
function ( ) { return this . getObjects ( ) . reduce ( function ( memo , current ) { memo += current . complexity ? current . complexity ( ) : 0 ; return memo ; } , 0 ) ; }
Returns number representation of an instance complexity
@method complexity
@return {Number} complexity
Returns number representation of an instance complexity