Raphael Position

javascript, raphael

Solution

getBBox() should give you position as well as x and y properties.

var bbox = el.getBBox();
alert([bbox.x, bbox.y]);

Problem

How can I get the position of an object in Raphael? I can get the size using getBBox(), but there appears to be no way to get the position?

Original source