Skip to content

eles.show()

eles.show — Collection > Visibility and emphasis. Cytoscape.js signatures, parameters and return contract.

eles.show — Collection › Visibility and emphasis

Preview · Collection › Visibility and emphasis

Read in the complete API reference · All API members

// Show these elements — the display tier
eles.show(): this

Show these elements — the display tier. Shown elements take up space again, rejoin bounds and fit, and re-fan their bezier bundles.

For paint-only invisibility that keeps space and bundle ranks, use the visibility style property instead, and for a fade use an opacity transition.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.show();
console.log(node.visible()); // true

Example graph and handle setup