Open ferose-chooch opened 2 years ago
I agree, this would be a sensible addition. Thanks for posting!
Are these methods related to this problem or do I misinterpret their meaning? If so, what are they intended to do? .fitBounds .fitBoundsWithConstraints P.S. Sorry, I have experimented with these methods and now understand their purpose. With regards to the original problem of restricting selection frame to the image boundaries, I noticed that it's impossible to move the frame beyond image borders when I move it around as a whole, but it is possible to do so when I drag by one of the corners. Is it possible to somehow adopt this restriction mechanism for the case of reshaping the frame with corner-drag?
As of now, we can initially draw outside the image by zooming out. It would be better if we can restrict it.