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

One direction rotation

Open lempa opened this issue 13 years ago • 5 comments

Hi,

I tried to make a rotation only in one direction from 0 till 270 degrees. When I set the rotate range from 0 till 270 the rotation is jumping after 180 degrees.

Is this a bug or a feature? How can I fix this.

Thanks.

lempa avatar Oct 18 '12 22:10 lempa

FreeTransform converts angles to a value between -180 and 180 so try keeping the values between those. For instance -90, 0 might do what you need without jumping.

AliasIO avatar Oct 19 '12 22:10 AliasIO

Hi,

with the settings -90, 0 I get only a rotation between 0 and 90 degrees to the left. I need a rotation to the right. Do I need some other settings?

lempa avatar Oct 29 '12 22:10 lempa

Did you try some other combinations, e.g. 0, 90, 90, 180, -180, -90 etc.?

AliasIO avatar Oct 29 '12 22:10 AliasIO

I tried a lot of combinations. With the positive values I get rotations to the right and negative values rotations to the left.

lempa avatar Oct 29 '12 23:10 lempa

Right, so you want to rotate three quarters clock-wise. The current implementation doesn't allow you to do this, which I agree is a bug. I'll see if I can improve it.

AliasIO avatar Oct 30 '12 08:10 AliasIO