idwall / idcrop

Polygonal image cropping plugin.
MIT License
18 stars 9 forks source link

Add "Infinity" option #16

Closed brizental closed 6 years ago

brizental commented 6 years ago

So, right now the cropper receives as a parameter the number of points the resulting cropper polygon will have. It would be nice if we could add Infinity as an option for the number of sizes.

If you do that how it is right now, the cropper doesn't return any errors, but it also never closes the polygon. So, if the user puts Infinity as the number of sizes, it probably would be nice for us to add a button that the user will click when done and then the polygon will close.

If anybody has a better idea on how to do it, it will be welcome.