You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When batch rendering is on the canvas renderer draws edges over nodes. This issue looks like similar with #220, but happens on canvas. Here is code to reproduce it:
I wanted to improve the performances of the canvas renderer, so I modified it such that, if the batchEdgesDrawing setting is falsy, nodes and edges are drawn on the same canvas. It uses two different canvases only if the edges are drawn by batches. Also, this distinction occurs at the initialization of the renderer.
In your code sample, you are setting the batchEdgesDrawing value after having initialized sigma and its renderer, which explains the weird behaviour.
Anyway, I am modifying the canvas renderer such that it always uses only one canvas, and it draws the edges behind the nodes using the ctx.globalCompositeOperation = 'destination-over' method.
When batch rendering is on the canvas renderer draws edges over nodes. This issue looks like similar with #220, but happens on canvas. Here is code to reproduce it:
The text was updated successfully, but these errors were encountered: