title: Get position of object in a group in fabricjs relative to canvas after rotation of group via controls
body: <p>I've figured out from SO post <a href="https://stackoverflow.com/questions/29829475/how-to-get-the-canvas-relative-position-of-an-object-that-is-in-a-group">How to get the canvas-relative position of an object that is in a group?</a> how to get the co-ordinates. And I managed to do some experimentation to get the co-ordinates when the group is scaled.</p>
  
  <p>x = object.left  * object.group.scaleX + object.group.left +(object.group.width/2) * object.group.scaleX;</p>
  
  <p>y = object.top   * object.group.scaleY + object.group.top  + (object.group.height/2) * object.group.scaleY;</p>
  
  <p>How to get x &amp; y when the group is also rotated. I've come across the fabric.util.rotatePoint, but don't really know how to use it. I wish there was a function which would return the co-ordinates of a object relative to canvas taking account of where the originX, originY, scaling, rotation etc. Please do help. Thanks for reading.</p>