如何使用 Raphael.js(当用户点击 SVG 路径时)找出点击是在笔划上?
这是路径:
var polycoords = [['M',10,10],['L',30,10],['L',35,50],['L',5,45],['Z]];
var poly = paper.path(polycoords).attr({'stroke':'#00f','stroke-width':5});
poly.click(function(e) {
// I think here can I find it somehow...
});