You can set the stroke-width to the inverse of the
scale, so the line doesn't get fat.  This isn't
perfect, but it may provide what you are looking for. 
This works in ASVG3 and Sqiggle (The green line gets
fat, the red line does not.)

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"; width="100%"
height="100%">
        <desc>
                <!-- Illustrates line scaling -->
        </desc>
        <defs>
        <script type="text/ecmascript"><![CDATA[
function SyncZoom()
{
    var root = document.rootElement;
    var scaleUI = 1/parseFloat(root.currentScale);
        var obj =
document.getElementById("theseScale");
        if (obj != null){
            obj.setAttribute("stroke-width", scaleUI);
        }
}
document.rootElement.addEventListener( "SVGZoom",
SyncZoom, false );
        ]]>
        </script>
        </defs>
        <g id="theseScale">
                <line x1="100" y1="200" x2="300" y2="200"
stroke="red"/>
        </g>
        <g id="noScale">
                <line x1="200" y1="100" x2="200" y2="300"
stroke="green"/>
        </g>
</svg>



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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