Hi Witold,
Thank you for your interest in Syncfusion products.
You can achieve this requirement by customizing the LineTool, I have created a sample that explains the way to achieve you requirement.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Diagram_WF_CustomTool-1343334095.zipRegards,
Dinesh