fabric.Text(text, cornerStyle: string);
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- cornerStyle: It specifies the corner style which can be ‘rect’ or ‘circle’ where ‘rect’ is the default style.
Program: This example uses FabricJS to change corner style of canvas-like text.