W3C home > Mailing lists > Public > www-svg@w3.org > March 2003

element visibility only within the group, not whole document?

From: Mitch Germansky <mbg@dragon.rutgers.edu>
Date: Wed, 12 Mar 2003 14:32:55 -0500
Message-ID: <3E6F8B67.5070703@dragon.rutgers.edu>
To: www-svg@w3.org

i am trying to do an erase feature in my svg application. this 
application takes the svg produced by OO and allows a user to scribble 
on top of the slides with a mouse/pen. i have a <g> with a many <line>s 
representing pen strokes. each line uses <set> to animate playback. if 
after capturing the pen strokes the user wants to erase the lines, i 
currently add a second <set> tag to each <line> setting visibility to 
hidden at that time. i was hoping that another solution would be using a 
<rect> of all white. the problem is that my svg supports multiple <g>s 
of lines. and i only want the <rect> to "whiteout" the lines for the <g> 
it's contained in, but it "whitesout" the entire document. do you have a 
suggestion? i tried adding a <set> to the <g> (instead of all the 
<line>s), but the visibility there seems to be ignored, i.e. it appears 
that the <set> animations within each <line> supersede the <g> <set>. i 
am using batik in a java web start app.

sorry for my ignorance, i am new in this svg world.

Received on Wednesday, 12 March 2003 14:37:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:55 UTC