Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
getBBox() is also supported, although there does seem to be something buggy about it. I haven't troubled to track it down, but I think it only works on visible, rendered objects. Yep, there is a problem in that you have to wait until *after* onload... but not in onload. So you have to settimeout in onload and hope that everything is rendered. So there is not a safe time to really check this per se... it may be right, it may not be for that brief startup moment. I believe that there is a bug filed on this already. Cheers, Jeff Rafter Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/
Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
Hi Jeff, On FF 1.5, you can't also do, for example : var myObj=document.createElementNS(NameSpace, 'rect') myObj.setAttribute('x',20) myObj.setAttribute('y',20) myObj.setAttribute('width',20) myObj.setAttribute('height',20) document.getElementById('WhereIputRects').appendChild(myObj) var bb=myObj.getBBox() Is it the same bug? Cheers Jérôme Jeff Rafter wrote: getBBox() is also supported, although there does seem to be something buggy about it. I haven't troubled to track it down, but I think it only works on visible, rendered objects. Yep, there is a problem in that you have to wait until *after* onload... but not in onload. So you have to settimeout in onload and hope that everything is rendered. So there is not a safe time to really check this per se... it may be right, it may not be for that brief startup moment. I believe that there is a bug filed on this already. Cheers, Jeff Rafter - 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 Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/
Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
This is a very unfortunate problem. :-( On 10/17/05, Jérôme Tricand de la Goutte [EMAIL PROTECTED] wrote: Hi Jeff, On FF 1.5, you can't also do, for example : var myObj=document.createElementNS(NameSpace, 'rect') myObj.setAttribute('x',20) myObj.setAttribute('y',20) myObj.setAttribute('width',20) myObj.setAttribute('height',20) document.getElementById('WhereIputRects').appendChild(myObj) Rendering is asynchronous so at the point in time the following line is called the 'rect' probably won't have been rendered. You could try calling document.documentElement.forceRedraw() here, but I don't think forceRedraw works properly either. :-( var bb=myObj.getBBox() Is it the same bug? Cheers Jérôme Jeff Rafter wrote: getBBox() is also supported, although there does seem to be something buggy about it. I haven't troubled to track it down, but I think it only works on visible, rendered objects. Yep, there is a problem in that you have to wait until *after* onload... but not in onload. So you have to settimeout in onload and hope that everything is rendered. So there is not a safe time to really check this per se... it may be right, it may not be for that brief startup moment. I believe that there is a bug filed on this already. Cheers, Jeff Rafter - 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 [Non-text portions of this message have been removed] Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/
Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
Hi Jeff, svg-developers@yahoogroups.com wrote on 10/17/2005 02:06:04 PM: Hmmm, forceRedraw *should* work in an ideal world-- but I haven't tested it. Essentially this is a problem with many implementations-- the DOM is lazy with respect to rendering hints. In SharpVectorGraphics I think that the bbox is a cached item-- if it is not found in the cache then we generate it on request (of course this implies a forced render). No it doesn't it implies that the geometry is calculated, nothing needs to be rendered. That is typically the act of putting bits on a device, and is generally much more expensive than just calculating the bbox of content. In general, I think that most implementations (other than Batik) do not rerender within a function block-- but do a complete rerender of changed portions at the end of the block when control is passed from the script. Batik maintains geometry as the DOM is manipulated, we do not 'rerender' on every change. Which is to say that this type of problem isn't unexpected-- but you have to be able to obtain those rendering properties on the fly. Even if you can do that though, the resulting page will likely be sub-optimal. In what sense 'sub-optimal'? You almost certainly need to calculate the BBox in order to render the content, so why does doing it before the rendering make it worse than during the render? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/
Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
On 16 oct. 2005, at 16:24, ddailey wrote: I tried to work around the aparent absence of these things with statements like: if (evt.getClientX()) { .. do something ...} getClientX() is not a standard method of the DOM, you should just use evt.clientX instead. I'm pretty sure that'll work in Firefox. Antoine -- Antoine Quint — Fuchsia Design SVG Client-side XML Consulting W3C SVG WG Invited Expert http://fuchsia-design.com Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/
Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
Thanks Antoine, but no luck. I tried this: function putit(evt){ alert(happy) alert(evt.clientX()) } The first alert() fires just fine -- the second is ignored (as is everything after it). Having not had experience with beta software for about 20 years, I went ahead and reported it to the Mozilla folks -- hopefully I was not too hasty. dd - Original Message - From: Antoine Quint [EMAIL PROTECTED] To: svg-developers@yahoogroups.com Sent: Sunday, October 16, 2005 10:34 AM Subject: Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5? On 16 oct. 2005, at 16:24, ddailey wrote: I tried to work around the aparent absence of these things with statements like: if (evt.getClientX()) { .. do something ...} getClientX() is not a standard method of the DOM, you should just use evt.clientX instead. I'm pretty sure that'll work in Firefox. Antoine Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/
RE: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?
Hi, David- It's not: evt.clientX(); it's: evt.clientX; getBBox() is also supported, although there does seem to be something buggy about it. I haven't troubled to track it down, but I think it only works on visible, rendered objects. This behavior may or may not be correct, but certainly is inconvenient when you are trying to predetermine, say, the size of a text block in order to wrap a rectangle around it... which means it will end up getting rendered twice, possibly with a flicker... so, another performance hit. Regards- Doug [EMAIL PROTECTED] www.vectoreal.com ...for scalable solutions. ddailey wrote: | | Thanks Antoine, but no luck. | | I tried this: | function putit(evt){ | alert(happy) | alert(evt.clientX()) | } | | The first alert() fires just fine -- the second is ignored | (as is everything after it). | | Having not had experience with beta software for about 20 | years, I went ahead and reported it to the Mozilla folks -- | hopefully I was not too hasty. | | dd | - Original Message - | From: Antoine Quint [EMAIL PROTECTED] | To: svg-developers@yahoogroups.com | Sent: Sunday, October 16, 2005 10:34 AM | Subject: Re: [svg-developers] getClientX() and getBBox() not | in Firefox 1.5? | | | On 16 oct. 2005, at 16:24, ddailey wrote: | | I tried to work around the aparent absence of these things with | statements | like: | | if (evt.getClientX()) { .. do something ...} | | getClientX() is not a standard method of the DOM, you should just use | evt.clientX instead. I'm pretty sure that'll work in Firefox. | | Antoine Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM ~- - 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/ * 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/