[svg-developers] SVG widthout using IDs

2011-01-08 Thread holdenru
for example we have defs and rect separately, so we must use ID How can I do the same but without using ID (MyGradient). Maybe with JavaScript? something like this doesn't work :( [Non-text portions of this message have been removed]

RE: [svg-developers] Divide objects below the specified path

2011-01-08 Thread John Delacour
At 17:00 +0100 08/01/2011, honyk wrote: >Please see my simplified use case http://skibob.dobruska.cz/other/clip.svg - >I'd like to have that triangle transparent. It is impossible to do it with a >single path (with multiple contours) as I need different fill styles of >individual objects. Why can

RE: [svg-developers] Divide objects below the specified path

2011-01-08 Thread honyk
Hi David, > I've made your triangle black and put it in a mask with > a big white rectangle underneath I had to mess with > coordinates a bit to get it all to line up. The mask is > then applied to your group. In this way masks can be > tricked into acting like inverse clip-paths. it look

Re: [svg-developers] Divide objects below the specified path

2011-01-08 Thread ddailey
Ooops! I forgot to paste in the code: - Original Message - From: ddailey To: svg-developers@yahoogroups.com Sent: Saturday, January 08, 2011 12:01 PM Subject: Re: [svg-developers] Divide objects below the specified path Perha

Re: [svg-developers] Divide objects below the specified path

2011-01-08 Thread ddailey
Perhaps something like this is what you have in mind accomplishing: I've made your triangle black and put it in a mask with a big white rectangle underneath I had to mess with coordinates a bit to get it all to line up. The mask is then applied to your group. In this way masks can be tricked

RE: [svg-developers] Divide objects below the specified path

2011-01-08 Thread honyk
Hi David, > I'm not sure if I quite understand your scenario Please see my simplified use case http://skibob.dobruska.cz/other/clip.svg - I'd like to have that triangle transparent. It is impossible to do it with a single path (with multiple contours) as I need different fill styles of individual

Re: [svg-developers] Divide objects below the specified path

2011-01-08 Thread ddailey
Hi Jan, I'm not sure if I quite understand your scenario, but a couple of quick responses: first of all a path can have multiple M subcommands: draws a triangle with a square hole in the middle. The background will shine through the hole as though it is transparent. While there has been som