Fabric.js Text MIN_TEXT_WIDTH Property
In this article, we are going to see how to change the MIN_TEXT_WIDTH 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, MIN_TEXT_WIDTH: Number );
Parameters: This property accepts a single parameter as mentioned above and described below:
- MIN_TEXT_WIDTH: It accepts a numeric value that specifies the minimum width of the canvas text.
Below is the example that illustrates the use of MIN_TEXT_WIDTH property in Fabric.js: