One more question here.  How can a bounding box take rotation into
account?  If I draw an Element that's wider than it is tall, then draw a
bounding box around it, it looks fine.  If I rotate it 90 degrees so
it's taller than it is wide, the bounding box still conforms to the
element before rotating.  I don't want to rotate the bounding box; I
want it to be big enough to bound the element in any rotation.  Is there
a way to do this?

Michael Bishop

-----Original Message-----
From: Bishop, Michael W. CONTR J9C880
[mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 2:14 PM
To: [email protected]
Subject: RE: When does an SVGLocatable have a bounding box?

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]

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

Reply via email to