How to rotate a text canvas using Fabric.js ?
In this article, we are going to see how to rotate a text canvas using FabricJS. The canvas means text written is movable and can be stretched according to requirement. Further, the text itself cannot be edited like a textbox.
fabric.Text(text, angle: Number);
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- options: It specifies the additional options to be applied and we are using the angle option for this example.
Program: This example uses FabricJS to create simple editable text canvas.