Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API methods for aspectRatio, minSize & maxSize #144

Closed
guidobouman opened this issue Apr 11, 2014 · 3 comments
Closed

Add API methods for aspectRatio, minSize & maxSize #144

guidobouman opened this issue Apr 11, 2014 · 3 comments

Comments

@guidobouman
Copy link

Example:

api.setAspectRatio(crop.width / crop.height);
api.setMinSize([crop.width, crop.height]);
@icreatestuff
Copy link

I had a sneak peak at the source code and found a 'setOptions' method that looks like it'll take any of the initialization options and override them.

For example:

api.setOptions({aspectRatio: 1});

@morenoh149
Copy link

yep I used that to declare I only wanted north and south handles. I thought the default 8 handle setup was dated and ugly

@guidobouman
Copy link
Author

Ended up using that same method. =]

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

No branches or pull requests

3 participants