Skip to content
maxkfranz edited this page Dec 1, 2011 · 1 revision

ele.visible()

Get whether the element is visible.

ele.visible()

Gets whether the element is visible

Details

This function returns true if the renderer determines that the element is visible. The default SVG renderer determines that an element is visible if in its calculated visual style, visibility is visible. The opacity visual property does not come into play: An element with opacity set to 0 is still considered visible if visibility is visible.

For a collection, whether the first element is visible is returned.

Examples

var isN1Visible = cy.nodes("#n1").visible();

Clone this wiki locally