Raphael.FreeTransform icon indicating copy to clipboard operation
Raphael.FreeTransform copied to clipboard

pivot point

Open mkozakov opened this issue 13 years ago • 3 comments

does free transform support changing the rotation pivot point?

mkozakov avatar Jun 20 '12 23:06 mkozakov

FreeTransform always uses the center point for rotation but you could try changing the value of attrs.center and/or attrs.offset.translate, e.g. something like this:

var ft = paper.freeTransform(rect);

ft.attrs.center = { x: 50, y: 50 };

ft.attrs.rotate += 45;

ft.apply();

AliasIO avatar Jun 20 '12 23:06 AliasIO

that works. would be amazing if you could do something like ft.attrs.rotate = "45,50,50"

mkozakov avatar Jun 20 '12 23:06 mkozakov

I'll consider implementing that. I'll leave this issue open for now.

AliasIO avatar Jun 20 '12 23:06 AliasIO