The previous helpers are back and cytoscape-canvas still doesn't make assumptions about the rendering engine meaning WebGL is still possible! The helpers are only available for CanvasRenderingContext2D
.
Breaking changes
cy.cyCanvas()
returns an object containing the API functions instead of returning the canvas directly. To get the canvas, call:cy.cyCanvas().getCanvas();
.- The helpers require a
CanvasRenderingContext2D
to be passed.