Re: SVG position in parent document
Tony Cox <[email protected]> Fri, 11 Sep 2009 07:52:20 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On 11 Sep, 15:02, HelderMagalhaes <[email protected]> wrote: > Hi Tony, > > > Could somebody advise me how to do that > > please or point me to an example? > > This might help: > http://www.codedread.com/code.php#dragsvg > > > thanks > > Hope this helps, > Helder aha, yes, the magic incantation is getScreenCTM() many thanks! Tony p.x = evt.clientX; p.y = evt.clientY; screenCTMInv = getScreenCTM().inverse(); p = p.matrixTransform(screenCTMInv);