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

Feature to initialise with specific dimensions #37

Open
stonebinox opened this issue May 23, 2018 · 0 comments
Open

Feature to initialise with specific dimensions #37

stonebinox opened this issue May 23, 2018 · 0 comments

Comments

@stonebinox
Copy link

stonebinox commented May 23, 2018

It would be great to provide an option to initialise the rectangle with fixed dimensions and maybe even a fixed rotational angle.

Something along the lines of:
width: 200, height: 300, angle: 0, allowResize: true|false

allowResize can be key to allowing the drag functionality to resize using the edges. If this is set to false, the rectangle can be placed onclick, instead of click and drag.

Ran into this problem yesterday while hunting for a solution with this plugin. I'll mostly try to modify the plugin myself for now.

Edit: After thinking it through, I think it makes sense to also provide an option to initialise at a specific coordinate as well.

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

1 participant