Fabric.js Text lockRotation Property
In this article, we are going to see how to change the lockRotation of the text canvas using Fabric.js. The canvas means the text written is movable, rotatable, resizable, and can be stretched. Further, the text itself cannot be edited like a textbox.
fabric.Text(text, lockRotation: Boolean );
Parameters: This property accepts a single parameter as mentioned above and described below:
- lockRotation: This parameter takes a boolean value to lock the rotation.
Below is the example that illustrates the use of lockRotation property in Fabric.js: