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