In canvas I draw line,rectange,triangle. canvas listener mousedown add two event listeners mousemove,mouseup. In listener mouseup event wan