We have recently upgraded gojs version from 2.1.56 to 2.3.1. After the the version update gojs overview background turns gray. The diagram has more than 600 group nodes on the canvas.
When the user collapses all the group nodes the gray background is removed. Expanding back the nodes add the gray background again.
As i was looking for a solution, i figured out that some of the gojs sample diagrams also has this gray background issue, when the diagram is substantially zoomed out. two examples are as follows.
My guess is that your observed Diagram has a grid pattern, and your Overview is showing it at a small scale, which makes the background grayish. It depends on the grid frequency and color, of course.
Either set Overview.drawsTemporaryLayers to false or Overview.drawsGrid to false.
Yes the diagram canvas wrapper div has a css background-image property.
I have tried setting the Overview.drawsTemporaryLayers or Overview.drawsGrid to false, but it does not fix the problem.
I have also removed the grid pattern css class but it still appears like this.
The Overview won’t be sharing any background-image of the Diagram’s Div.
So is it true that you have not set or shown the Diagram.grid in the observed Diagram?
What does an instance of a non-collapsed Group look like?
Hmmm, very odd. Is there any way for us to reproduce the problem?
Also, if you try using GoJS version 2.2.23, do you have the same problem?
I’m wondering if it’s a bug that we introduced when we added the option of rendering as SVG in v2.3.