How would I go about drawing a connection line in Raphael where the mousedown initiates the starting point of the line, the mousemove moves the end point without moving the start point and the mouseup leaves it as it is?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the source of http://www.warfuric.com/taitems/RaphaelJS/arrow_test.htm.
This might get you started.
EDIT
I made a quick example that will give you a head start (still need some work though: validation of parameters, adding comments, etcetera).
Note: you still have to adapt the path to raphael.js
See example: http://jsfiddle.net/rRtAq/9358/