Skip to content

ele.emphasized()

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

eles.emphasized — Collection › Visibility and emphasis

Preview · Collection › Visibility and emphasis

Read in the complete API reference · All API members

// Whether the first element is in the current emphasis — the set the last cy.emphasize( eles) named
ele.emphasized(): boolean

Whether the first element is in the current emphasis — the set the last cy.emphasize( eles) named.

Returns boolean

the element's emphasized flag; false for a removed element and while no emphasis is set. An element outside a set emphasis is the one the renderer dims — derived, so there is no dimmed()

Example

console.log(eles.emphasized()); // false

Example graph and handle setup