--- In [email protected], "ddailey" <[EMAIL PROTECTED]> wrote:
>
> rui.ramalho wrote:
> 
> ---------
> I'd like to know if there is a way of getting a path element height
> and width, without testing all its coordinates.
> i need to know it in order to get a FULL EXTENT tool...well, i could
> use some ajax to ask the server, but  with a lot of paths it would be
> expensive...
> I m enjoying this making svg maps scene.
> --------
> suppose 
>     P=document.getElementById("P") 
> 
> where
>     <path id="P" d="M 100 100 C 200 300 300 0 400 100" [and so forth] >
> 
> then R=P.getBoundingBox() will be a virtual rectangle
> 
> with R.x, R.y, R.width, and R.height giving numbers representing the
maximal extents reached by the path. This is supported by the major
browsers.
> 
> cheers,
> DD
> 
> [Non-text portions of this message have been removed]
>

thanks a lot DD :)
thats just what i was hopping for !
Rui Ramalho  



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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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