Skip to content

ele.takesUpSpace()

eles.takesUpSpace — Collection > Style. Cytoscape.js signatures, parameters and return contract.

eles.takesUpSpace — Collection › Style

Preview · Collection › Style

Read in the complete API reference · All API members

// The space tier: shown elements occupy space — they join bb/fit and size their compound parents — even when visibility: 'hidden' keeps them from rendering
ele.takesUpSpace(): boolean

The space tier: shown elements occupy space — they join bb/fit and size their compound parents — even when visibility: 'hidden' keeps them from rendering. display-tier hide() clears it.

Returns boolean

whether the element occupies space — this can differ from visible(), which is the paint tier

Example

console.log(eles.takesUpSpace()); // true

Example graph and handle setup