AliasIO / Raphael.FreeTransform

Free transform tool for Raphaël elements.
http://elbertf.com
362 stars 107 forks source link

How can my JavaScript know when the freeTransform shape(object) have chnaged #152

Open SudarshanRaul opened 8 years ago

SudarshanRaul commented 8 years ago

I want to show the shape position and the size on the screen as soon as the user drags or scales the shapes.

Is there any event, using which I can know the updated positions and the size of the free transformed shapes.

I've below code-

ft = paper.freeTransform(this, { draw: 'bbox', boundary: false }, updateViewValues);

updateViewValues is function where I show the current position and the size of the shape. This works when the shape is moved, but when the shape is scaled or rotated it doesn't triggers.

Any suggestions on this.