The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript SVG Position in Pixels Reply To: SVG Position in Pixels


Sure, no problem. Could it be you’re looking for the offset related to the parent? That would be position() because offset() refers to the window. I made a pen to check before and it seemed correct. If you mean something different, you could always post another small example and we could troubleshoot some more.