HTML5 Canvas Shape Resize and Transform Limits
To limit or change resize and transform behavior you can use boundBoxFunc
property.
It works a bit similar to dragBoundFunc.
Instructions: Try to resize a shape. You will see that its width is limited to 200.
Also you can control movement of every anchors individually. See Resize Snap Demo.
- Vanilla
- React
- Vue
</rewritten_file>