I am creating a diagram application in which I hide and show few elements e.g.
var c = paper.circle(10, 10, 10); c.hide() var c2 = paper.circle(10, 10, 10); c2.
I took a look at the documentation and source code and cooked this up (untested):
Raphael.el.is_visible = function() { return (this.node.style.display !== "none"); }
Call as follows:
var c = paper.circle(10, 10, 10); c.hide(); if (c.is_visible()) alert("Visible"); else alert("Invisible");