Fernando Silva schrieb:

> Hi,
>
> I have created a "symbol" element that contains several basic shapes
> (lines, polygons) and those shapes have several markers attached to
> them. I also use that "symbol" (contained inside the "defs" section of
> the svg document) by referencing it with the "use" element.
>
> 1º Is it possible to change some of the markers (by changing the
> symbol) without affecting all document? What I need is to use the
> "use" element mouse event to detect when is over the element and them
> make some "animations" only to that instance.


what do you mean by animations ? you could just put an animate inside 
the use element, to animate it.
but then again, the controll of what can change inside this symbol is 
very limited with use.
basicly you can only work with CSS inheritance, like you have a rect in 
your symbol, without a fill.
then you can set a different fill for each use element.

>
> 2º Is there any way to get the full list of markers for one symbol and
> there postions? It seems that I have to start from the "use" element,
> go to "InstanceRoot" (the symbol) and then foreach "symbol" element
> get the available markers. Any idea?


markers are positioned on the edges of shapes. the position is easy to 
find for rect , line, polyline and polygon elements, but its a bit 
harder for pathes.
what you would need is the SVGPathSegList interface[1], which 
unfortunatly is not implemented in ASV. you would have to use firefox 
native SVG or Batik
to get the positions of the marker elements without writing your own 
path parser.

[1] http://www.w3.org/TR/SVG/paths.html#InterfaceSVGPathSegList

>
> Thanks,
>   Fernando Silva
>
>
> -----
> 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
>
>     *  Visit your group "svg-developers
>       <http://groups.yahoo.com/group/svg-developers>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
>       <mailto:[EMAIL PROTECTED]>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h564b7s/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123323163/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

-----
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