Skip to content

ele.outerWidth()

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

eles.outerWidth — Collection › Position and dimensions

Preview · Collection › Position and dimensions

Read in the complete API reference · All API members

// The full drawn width including the border — padded width plus the border width
ele.outerWidth(): number | undefined

The full drawn width including the border — padded width plus the border width. This is the box bounds and endpoint clipping use.

Returns number | undefined

the outer width, or undefined when empty or removed

Example

console.log(eles.outerWidth()); // 30

Example graph and handle setup