Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Request change simple option #138

Open
diogo-garcia opened this issue Dec 2, 2014 · 2 comments
Open

Request change simple option #138

diogo-garcia opened this issue Dec 2, 2014 · 2 comments

Comments

@diogo-garcia
Copy link

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
Copy link
Author

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...

@AliasIO
Copy link
Owner

AliasIO commented Dec 6, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants