demos/Collage/fabric.js
function() {
      var angle = this.getAngle();
      return [
        "translate(", toFixed(this.left, 2), " ", toFixed(this.top, 2), ")",
        angle !== 0 ? (" rotate(" + toFixed(angle, 2) + ")") : '',
        (this.scaleX === 1 && this.scaleY === 1) ? '' : (" scale(" + toFixed(this.scaleX, 2) + " " + toFixed(this.scaleY, 2) + ")")
      ].join('');
    }
function() {
      var angle = this.getAngle();
      return [
        "translate(", toFixed(this.left, 2), " ", toFixed(this.top, 2), ")",
        angle !== 0 ? (" rotate(" + toFixed(angle, 2) + ")") : '',
        (this.scaleX === 1 && this.scaleY === 1) ? '' : (" scale(" + toFixed(this.scaleX, 2) + " " + toFixed(this.scaleY, 2) + ")")
      ].join('');
    }
function ( ) { var angle = this . getAngle ( ) ; return [ "translate(" , toFixed ( this . left , 2 ) , " " , toFixed ( this . top , 2 ) , ")" , angle !== 0 ? ( " rotate(" + toFixed ( angle , 2 ) + ")" ) : '' , ( this . scaleX === 1 && this . scaleY === 1 ) ? '' : ( " scale(" + toFixed ( this . scaleX , 2 ) + " " + toFixed ( this . scaleY , 2 ) + ")" ) ] . join ( '' ) ; }
Returns transform-string for svg-export
@method getSvgTransform
@return {string}
Returns transform - string for svg - export