Hi, Philippe-

Philippe Lhoste wrote:
| 
<snip />
| 
|    <path d="M 140,70 l 30,15 l 15,17 l -15,24 l -18,20 l -17,-25 z"
|          fill="none" stroke="white" stroke-opacity="0"
|          marker-mid="url(#ArrowCirclesG)"/>
| 
<snip />
| 
| I had to put stroke-opacity to 0, because if I put 
| stroke="none", ASV doesn't render the markers. I don't see 
| why, except as an optimization (no fill nor stroke=no 
| visibility) but I feel this is another marker bug (saw 
| nothing in the spec. about this).

No, it's not a bug. The default scale for a marker, designated the
'markerUnits', is 'strokeWidth'. If there is no stroke, the marker won't
display. You can see what effect this has is the (crude) sample below: 


<svg xmlns='http://www.w3.org/2000/svg'
xmlns:xlink='http://www.w3.org/1999/xlink'>

   <title>markerUnits</title>

   <desc>Shows the size difference when using 'userSpaceOnUse' vs.
'strokeWidth' (default)</desc>


   <defs>
      <marker id='arrow1' viewBox='-13 -6 13 12'
            refX='0' refY='0' 
                markerWidth='10' markerHeight='20' 
                orient='auto'>
         <path d='M-12,-6 L0,0 -12,6 Z' 
                stroke='green' fill='lime'/>
      </marker>

      <marker id='arrow2' viewBox='-13 -6 13 12'
                markerUnits='userSpaceOnUse'
            refX='0' refY='0' 
                markerWidth='10' markerHeight='20' 
                orient='auto'>
         <path d='M-12,-6 L0,0 -12,6 Z' 
                stroke='green' fill='lime'/>
      </marker>
   </defs>

   <path id='path_1a' 
        stroke='blue' 
        fill='none'
      marker-start='url(#arrow1)' 
        marker-mid='url(#arrow1)' 
        marker-end='url(#arrow1)'
      d='M150,150 Q350,90 375,150 T400,150' />

   <path id='path_1b' 
        stroke='red'
        fill='none' 
        transform='translate(0,100)'
      marker-start='url(#arrow2)' 
        marker-mid='url(#arrow2)' 
        marker-end='url(#arrow2)'
      d='M150,150 Q350,90 375,150 T400,150' />


   <path id='path_1c' 
        stroke='blue' 
        stroke-width='3' 
        fill='none'
        transform='translate(0,300)'
      marker-start='url(#arrow1)' 
        marker-mid='url(#arrow1)' 
        marker-end='url(#arrow1)'
      d='M150,150 Q350,90 375,150 T400,150' />


   <path id='path_1d' 
        stroke='red' 
        stroke-width='3' 
        fill='none'
        transform='translate(0,400)'
      marker-start='url(#arrow2)' 
        marker-mid='url(#arrow2)' 
        marker-end='url(#arrow2)'
      d='M150,150 Q350,90 375,150 T400,150' />

</svg>


Regards-
Doug Schepers

doug . schepers  @ vectoreal.com
www.vectoreal.com

"...for scalable solutions"




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

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