how can i draw a straight horizontal line using line widget?

I am trying to draw a line using line widget and want to set the line straight. Is the method [SetAlignToXAxis] available in vtk.js?? Also, are all of the methods mentioned in vtkLineWidget class( available for use in vtk.js?

Also, is there any documentation available to learn the functioning of the methods/functions of vtk.js?

Thanks in advance for all the information…