Hi Mark,

Mark wrote on 09/13/2006 11:43:02 PM:

> >    It is possible.  Can you send a small standalone
> > example that shows the problem?
> 
> Certainly, here it is!

   Ok this is now fixed in SVN.

>        <!-- BTW, how do I make this transparent now?  -->
>        <rect style="fill: white" x="0" y="0" width="150" height="75"/>

    syle="fill:none; stroke:none"
or
    style="visibility:hidden"

BTW I used the following to get the Y0 and Y1 of the
text:

       var nch = text.getNumberOfChars();
       var r0  = text.getExtentOfChar(0);
       var r1  = text.getExtentOfChar(nch-1);
       var y0  = r0.y;
       var y1  = r1.y + r1.height;

If you want your output graphic to have this as it's height
you should set the 'height' attribute on the root SVG element
(you should also set the width of the root SVG element to
the width of your rect, but that doesn't need to be done
in script unless you want to):

        document.rootElement.setAttributeNS(null, "height", y1);
 
(This actually glosses over a number of things like possible
transform changes, the flowRoot element not starting at 0,0 etc.
But it sounds like you don't need to worry about most of those
things).

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

Reply via email to