Skip to content

ele.renderedStyle(name?)

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

eles.renderedStyle — Collection › Style

Preview · Collection › Style

Read in the complete API reference · All API members

// Like style(), but with length props (width, height, border-width, font-size) scaled into rendered (on-screen) px by the zoom
ele.renderedStyle(name?: string): unknown

Like style(), but with length props (width, height, border-width, font-size) scaled into rendered (on-screen) px by the zoom.

Parameters
NameDescription
name: string?

a property name; omit for the whole group

Returns unknown

the rendered-space value, or the whole group's props

Example

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

Example graph and handle setup

Also spelled eles.renderedCss.