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

Request change simple option

Open diogo-garcia opened this issue 10 years ago • 2 comments

Hello Elebert,

First of all, I'D like to thank you for your excellent work, I've recently found about your lib free transform and it works so perfectly, also, I would like to make you a question about it, I'm trying to do something simple, I'd like that plugin to add circle draw on 'rotate start' and remove it on 'rotate end' keeping the current draw bbox could you give me some help?

I tried some things like that on funcCallback if(events == 'rotate') ft.opts.draw = ['bbox','circle']; if(events == 'rotate end') ft.opts.draw = ['bbox',null]; ft.showHandles();

Because when I use setOpts it seems that it also looses the click event...

Thanks again, Yours, Diogo Araujo

diogo-garcia avatar Dec 02 '14 16:12 diogo-garcia

This kind of "set simple option" could allow me also for example on scale start if I press shift I could set something like that

if(events == 'scale') ft.opts.keepRatio = true; if(events == 'scale end') ft.opts.keepRatio = false;

So I would only keep the ratio if shift is pressed like in photoshop etc...

diogo-garcia avatar Dec 02 '14 16:12 diogo-garcia

It seems like that would work, what do you mean by it loses the click event? Note that showHandles actually deletes and re-creates the handles.

AliasIO avatar Dec 06 '14 06:12 AliasIO