vtk.js Poly line selecting actors

It seems that you want to do a 2D polyline that you want to extrude rather than a 3D polyline.
If I’m not mistaken, the widget state will give you all the xyz coordinates of that polyline.

With the camera you can convert xyz to display coordinates, in case that matter.

In either way, what you are trying to do is going to be tricky and not easy to implement out of the box.