Fabric.js line x1 Property
In this article, we are going to use x1 property to get the x1 of the canvas line in FabricJS. The canvas line means the line is movable and can be stretched according to requirement. Further, the line can be customized when it comes to initial stroke color, height, width, fill color, or stroke width.
var x = line.x1
Parameters: This property accepts a single parameter as mentioned above and described below:
- x1 : It specifies the x1 of the canvas line. It contains a numerical value.