Forums

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

#206665
Shikkediel
Participant

This should give the correct output :

x = svgPos.left + parseFloat($(ev.target).attr('cx')),
y = svgPos.top + parseFloat($(ev.target).attr('cy')),