Skip to content

ele.renderedOuterWidth()

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

eles.renderedOuterWidth — Collection › Position and dimensions

Preview · Collection › Position and dimensions

Read in the complete API reference · All API members

// outerWidth() scaled by the current zoom
ele.renderedOuterWidth(): number | undefined

outerWidth() scaled by the current zoom.

Returns number | undefined

the rendered outer width, or undefined when empty or removed

Example

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

Example graph and handle setup