How to remove borders of a canvas-type text using Fabric.js ?
In this article, we are going to see how to remove the borders of a canvas-like text 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, hasBorders: boolean);
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- hasBorders: It specifies whether to enable or disable border, enabled by default.
Program: This example uses FabricJS to remove borders of canvas-like text. Note that you have to click on the text to see if its borders are visible or not.