-
Notifications
You must be signed in to change notification settings - Fork 68
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
How to limit the boundary when changing the size #68
Comments
Where did you see the relevant code? Can you link it? Because I cant find it |
I saw that the box in the movePoint function in the Resizehandler.js file uses the maxBoxFromPoints method, maybe I misunderstood. My main question is what parameter or method is being used to replace the constraint parameter after it is removed |
In version 2.0.1, how do I need to achieve the same effect as constraint parameters |
None, it was removed. rect.on('resize', (event) => {
console.log(event.detail.box)
if (event.detail.box.width > 300) event.preventDefault()
}) |
Ok, thank you very much |
I have looked at the demo and readme documentation and found no parameters that can configure the boundary limit, but after looking at the source code, it seems that I have seen the relevant boundary limit, but do not know how to configure it
The text was updated successfully, but these errors were encountered: