Ah, there's the ticket.  Works like a charm; just added the creation of
my extraneous attributes to the call that appends the element to the
root of the document.

Michael Bishop

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 1:56 PM
To: [email protected]
Subject: Re: When does an SVGLocatable have a bounding box?

Hi Michael,

"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on

12/12/2005 01:22:59 PM:

> Must it be rendered to the JSVGCanvas first?  How can I derive the 
center 
> point of any given element as soon as the element has been created?

   It must be part of the rendering tree to have a bbox, it does not 
have to have been rendered yet.  So if you add it to the tree first
and then calculate the various transforms you should be fine.


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

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

Reply via email to