问题
Using imgAreaSelect, I'd like to restrict the area that is being selected directly while selecting.
The reason behind that is that I display a graph and the image includes the legend and the axis. I want to select only the graph area to later reload the graph zoomed on that area.
So when the user is selecting an area on the image, the selection should not go outside certain bounds.
Is this possible?
Thanks!
回答1:
The documentation tells me that you can set the coordinates of the selection area with x1, x2, y1 and y2.
来源:https://stackoverflow.com/questions/27600781/restrict-selectable-image-area-with-imgareaselect