code: function () {
  		var wrapper = this,
  			translateX = wrapper.translateX || 0,
  			translateY = wrapper.translateY || 0,
  			inverted = wrapper.inverted,
  			rotation = wrapper.rotation,
  			transform = [];
  
  		// flipping affects translate as adjustment for flipping around the group's axis
  		if (inverted) {
  			translateX += wrapper.attr('width');
  			translateY += wrapper.attr('height');
  		}
  
  		// apply translate
  		if (translateX || translateY) {
  			transform.push('translate(' + translateX + ',' + translateY + ')');
  		}
  
  		// apply rotation
  		if (inverted) {
  			transform.push('rotate(90) scale(-1,1)');
  		} else if (rotation) { // text rotation
  			transform.push('rotate(' + rotation + ' ' + wrapper.x + ' ' + wrapper.y + ')');
  		}
  
  		if (transform.length) {
  			attr(wrapper.element, 'transform', transform.join(' '));
  		}
  	}
docs: Private method to update the transform attribute based on internal
  properties