Hi David,

no, currently it is not possible to have events on markers.

We discussed this at the SVG.Open 2003 in Vancouver, and I think we will 
revisit this issue 
again when working on SVG 1.2 full.

An alternative would be to have a DOM method like path.getClosestVertex(x,y) or 
path.getPathSegmentAtPoint(x,y) which would assist in finding the correct 
vertex or path 
segment, which I guess is really what you want.

SVG paths already have a useful set of DOM methods to access path geometry 
properties, 
read path segment data, modify and create path segments. So one could extend 
these 
methods.

Andreas

--- In [email protected], "ddailey" <[EMAIL PROTECTED]> wrote:
>
> Have just been playing a bit with <marker>s. I never really needed them 
> before.
> 
> Can one make them clickable? When I put a big fat one at the end (or middle) 
> of a path, and try and affiliate a mouseclick with it <marker onclick="f()"> 
> it doesn't seem to hear my mouse
> 
> or if I put an onclick on the path that the marker is affiliated with as 
> follows:
> <path d=something onclick="alert()" marker-start="url(#Arrow)" 
> marker-mid="url(#Arrow)" />
> 
> then clicks that are physically over the visible marker but off of the 
> associated path, result in no event. Even though the path "proper" is alive.
> 
> The darn thing must be there, so why can't it hear me?
> 
> I thought it might be handy for putting vertices on a hamiltonian graph, 
> since the hamiltonian path induces a unique marker per node, from which an 
> event like a mouseclick  could be used for node selection.
> 
> As it is something that is not really an object but is just, in some sense, 
> a style (like a gradient) I would not be surprised if it isn't clickworthy, 
> and so I will, if need be, draw real nodes instead of markers. That is to 
> say, I am prepared for the possibility that it cannot be done and will 
> encourage no one to lose sleep over the issue.
> 
> cheers,
> DD
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to