element visibility only within the group, not whole document?

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.

thanks.

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