// The viewport height in CSS px
ctx.height(): numberThe viewport height in CSS px.
Returns
numberthe viewport height
Example
// Inside a custom layout, ctx is supplied by the library.cy.layout({ impl: { run(ctx) { console.log(ctx.height()); // 600} } }).run();