Hi HardCod3r, hardc0d3r <[EMAIL PROTECTED]> wrote on 07/15/2008 04:09:11 AM:
> Thanks! That solved the problem! Another question.. How do i convert the > coordinates of the element to the coordinates of the screen/overlay? What > classes and/or methods do i use? I would suggest using the SVG DOM 'getScreenCTM' method to get the transform to the screen coordinate system. Then you can run your points through that transform to get the screen coordinate for them. You need to take some care with what attributes you do this with, some attributes are in the element's local coordinate system (i.e. rect elements 'x', 'y') and some attributes 'define' the element's local coordinate system (i.e. the use element's 'x' & 'y' attributes).
