How to make controlling corners opaque in text canvas using Fabric.js ?
In this article, we are going to see how to make controlling corners opaque of the canvas-like text using FabricJS. The canvas means text written is movable, rotatable, resizable, and can be stretched. But in this article, we will make controlling corners opaque. Further, the text itself cannot be edited like a textbox.
fabric.text(text :string, transparentCorners: boolean);
Parameters:This function accepts two parameters as mentioned above and described below:
- text: It specifies the text.
- transparentCorners: It specifies whether to keep controlling corners transparent or opaque.
Program: This example uses FabricJS to position relative to top of canvas-like text as given below.