Skip to content

ctx.cy

ctx.cy — Extensions > Layout context > Scope. Cytoscape.js signatures, parameters and return contract.

ctx.cy — Extensions › Layout context › Scope

Preview · Extensions › Layout context › Scope

Read in the complete API reference · All API members

// the core being laid out
ctx.cy: Core

the core being laid out

Returns Core

Example

cy.layout({ impl: { run(ctx) {
console.log(ctx.cy === cy); // true
} } }).run();

Example graph and handle setup