On Sun, 17 Feb 2008 12:58:07 +0100, Stefan Heinrichsen <[EMAIL PROTECTED]> wrote:
> Hello, > > I want to mark a svg element with a surrounding rectangle. The method > getBBox > sounded just perfect therefore until I recognized that it does not works > anymore with elements which are transformed in any way. SVG 1.2 has the > method getScreenBBox what is exactly what I need. But scince my > Application > is for use in browsers I can not use SVG 1.2. Opera 9.5 implements the getScreenBBox method. What you can do is test for the availability of said method, and fallback to something else if it's not there. > Does anyone knows how it is possible to implement this method in SVG 1.1 > and > ecma-script? > > Stefan See here: http://the.fuchsia-design.com/2006/12/getting-svg-elementss-full-bounding-box.html If you want that to work in ASV (which lacks the getScreenCTM method AFAIK) you need to implement that in javascript as well. I'm sure someone on this list can point to such a workaround, but the above code works fine in all svg browsers that implement getScreenCTM (e.g. Opera, Firefox, Batik and probably Safari). Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ----- 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/

