Skip to content

ele.renderedHeight()

eles.renderedHeight — Collection > Position and dimensions. Cytoscape.js signatures, parameters and return contract.

eles.renderedHeight — Collection › Position and dimensions

Preview · Collection › Position and dimensions

Read in the complete API reference · All API members

// height() scaled by the current zoom
ele.renderedHeight(): number | undefined

height() scaled by the current zoom.

Returns number | undefined

the rendered height, or undefined when empty or removed

Example

cy.zoom(2);
console.log(cy.getElementById('a').renderedHeight()); // 60

Example graph and handle setup