Home › Forums › JavaScript › SVG Position in Pixels › Reply To: SVG Position in Pixels
August 17, 2015 at 10:47 am
#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')),