tui.image-editor
tui.image-editor copied to clipboard
setCropzoneRect method name is misleading + need a real method to set the cropzone rect
Version 3.14.3
Development Environment Chrome on Ubuntu 20.04
Current Behavior
setCropzoneRect()
doesn't set the crop zone rectangle, instead it sets the ratio (should have been named setCropzoneRatio
maybe)
Expected Behavior
since getCropzoneRect
returns an object with top
, left
, width
and height
, one would expect setCropzoneRect
to take as an argument a similar object and would expect that function to programmatically set the cropzone rectangle (which is what I'm trying to do)
@Mouradif Thank you for your suggestion. I think that is a reasonable suggestion. I'll decide after having a meeting with the team.
I've started working on it while still discovering the code, it may take a little time but I'll send a PR if they are welcome
@Mouradif Contributing is always welcome. I'll be waiting for your PR.
Any updates?
My apologies, I got carried away with other stuff... I'll make the PR right away
Here: https://github.com/nhn/tui.image-editor/pull/742
@Mouradif Can these two functions be used now? Why did I use it and it didn't work?