I am studing paper.js and don´t found how resolve my problem. See my application test in: http://www.plugbox.com.br/reta.htm
The red circle covers only the Y axis and blue circle covers only the X axis and the starting point and the end point of the line follow the red and blue points.
But the line is in front of circles. How do I set the "z-index" line by placing it in a layer behind the points?
Another question is:
How do I put a third point, for example, in the middle of the line and make it draggable only on the line?
Thank´s!