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(https://vtk.org/doc/nightly/html/classvtkLineWidget.html#aaa561f1a3cc726fdc7441a485959570a) 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…