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