Hi Manfred,
you only need to test if the method exists :
var myElmt = document.getElementById('myElmt');
var box;
if (myElmt.getScreenBBox) {
box = myElmt.getScreenBBox();
} else {
/* fallback */
}
Cheers,
Yannick
----- Mail original -----
De: "Manfred Staudinger" <[email protected]>
À: [email protected]
Envoyé: Vendredi 1 Juin 2012 00:34:20
Objet: Re: [svg-developers] Methods getScreenBBox(), getBBox(), getScreenCTM() ?
Hi Yannick,
thanks for the fast answer: so the problem is reduced to getScreenBBox
and I'll try your proposed getBoundingClientRect method. Do you know a
feature string to test for the getScreenBBox method?
Regards,
Manfred
On 31/05/2012, [email protected] < [email protected] > wrote:
> Hi Manfred,
> getBBox and getScreenCTM are implemented in all modern browsers (IE>=9).
> Unfortunately there's no ideal workaround for getScreenBBox, as you can read
> here :
> http://groups.google.com/group/lib-gwt-svg/browse_thread/thread/1560b1282433fbd5
>
> The simpliest is probably to use the getBoundingClientRect method.
> Regards,
> Yannick
>
> ----- Mail original -----
> De: "Manfred Staudinger" < [email protected] >
> À: "svg-developers" < [email protected] >
> Envoyé: Jeudi 31 Mai 2012 12:57:25
> Objet: [svg-developers] Methods getScreenBBox(), getBBox(), getScreenCTM()
> ?
>
>
>
>
>
>
> Hi,
> Where to find the feature strings to test if the methods
> getScreenBBox(), getBBox(), getScreenCTM() are available? Looking also
> for scriptbased fallback solutions.
>
> Regards,
> Manfred
>
>
>
>
> ------------------------------------
>
> -----
> 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 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:
[email protected]
[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/