demos/Collage/fabric.js
function(ctx, noTransform) {
      ctx.save();
      this.transform(ctx);

      var groupScaleFactor = Math.max(this.scaleX, this.scaleY);

      for (var i = 0, len = this.objects.length, object; object = this.objects[i]; i++) {
        var originalScaleFactor = object.borderScaleFactor;
        object.borderScaleFactor = groupScaleFactor;
        object.render(ctx);
        object.borderScaleFactor = originalScaleFactor;
      }
      if (!noTransform && this.active) {
        this.drawBorders(ctx);
        this.hideCorners || this.drawCorners(ctx);
      }
      ctx.restore();
      this.setCoords();
    }
function(ctx, noTransform) {
      ctx.save();
      this.transform(ctx);

      var groupScaleFactor = Math.max(this.scaleX, this.scaleY);

      for (var i = 0, len = this.objects.length, object; object = this.objects[i]; i++) {
        var originalScaleFactor = object.borderScaleFactor;
        object.borderScaleFactor = groupScaleFactor;
        object.render(ctx);
        object.borderScaleFactor = originalScaleFactor;
      }
      if (!noTransform && this.active) {
        this.drawBorders(ctx);
        this.hideCorners || this.drawCorners(ctx);
      }
      ctx.restore();
      this.setCoords();
    }
function ( ctx , noTransform ) { ctx . save ( ) ; this . transform ( ctx ) ; var groupScaleFactor = Math . max ( this . scaleX , this . scaleY ) ; for ( var i = 0 , len = this . objects . length , object ; object = this . objects [ i ] ; i ++ ) { var originalScaleFactor = object . borderScaleFactor ; object . borderScaleFactor = groupScaleFactor ; object . render ( ctx ) ; object . borderScaleFactor = originalScaleFactor ; } if ( ! noTransform && this . active ) { this . drawBorders ( ctx ) ; this . hideCorners || this . drawCorners ( ctx ) ; } ctx . restore ( ) ; this . setCoords ( ) ; }
Renders instance on a given context
@method render
@param {CanvasRenderingContext2D} ctx context to render instance on
Renders instance on a given context