Depth sorting while drawing lines

we have an application that draws points and these points are in the mesh or within the mesh/model coordinates. getting the points and drawing circles in that position is easy, also we need to draw a line that connects to these points
however my issue is, since these lines go thru the model, it has a problem of depth sorting such as bellow
image
we want the lines to be always in front, but we cannot just disable depth testing ( depthTest: false) for it as we dont want the lines to be visible if the model is rotated, it should be only always in front when it is facing the camera.

any help?