Hi Archie,

[EMAIL PROTECTED] wrote on 10/26/2006 09:48:23 AM:

> On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > The logic is simply that two consecutive path elements will be 
> > > consolidated if they have the exact same set of attributes, 
> > > other than the "d" and "pathLength" attributes.
> >
> >    Ohh, this won't even work for normal elements if they have a
> > stroke, unless the element's don't overlap.
 
> I'm not sure I understand.. could you give a small example?

   I thought I had (duh!).


<svg width="400" height="400"
     xmlns="http://www.w3.org/2000/svg"; 
     xmlns:xlink="http://www.w3.org/1999/xlink";>

  <!-- outline issue -->
  <g transform="translate(0, 0)">
    <!-- two elements -->
    <path fill="#DDD" stroke="#000" d="m0,0 100,0 0,100 -100,0 z"/>
    <path fill="#DDD" stroke="#000" d="m50,50 100,0 0,100 -100,0 z"/>
  </g>

  <g transform="translate(200, 0)">
    <!-- one element -->
    <path fill="#DDD" stroke="#000" 
          d="m0,0 100,0 0,100 -100,0 z
             m50,50 100,0 0,100 -100,0 z"/>
  </g>

  <g transform="translate(0, 200)">
     <style type="text/css">
       path.button        { fill: #00F; }
       path + path.button { fill: #888; }
     </style>

     <!-- this will be blue -->
     <path class="button" fill="#F00" d="m0,0 100,0 0,100 -100,0 z"/>
     <!-- this will be grey -->
     <path class="button" fill="#F00" d="m50,50 100,0 0,100 -100,0 z"/>
  </g>
</svg>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to