This does not happen with my code running gojs-angular 1 wrapper. It has started happening after the migration to gojs-angular 2.
If I have a process bigger than the diagram’s size, I zoom in and if drag around the diagram, it is not smooth at all and I get a lot of screen jittering.
If I drag around the diagram when not zooming (i.e my full process is visible in the diagram) then it seems fine.
This only occurs when the diagram grid is visible. If I turn it off, there is no issue…
In the code, I have the following :
grid: $(go.Panel, 'Grid',
$(go.Shape, 'LineH', { stroke: 'lightgray', strokeWidth: 0.5 }),
$(go.Shape, 'LineH', { stroke: 'gray', strokeWidth: 0.5, interval: 10 }),
$(go.Shape, 'LineV', { stroke: 'lightgray', strokeWidth: 0.5 }),
$(go.Shape, 'LineV', { stroke: 'gray', strokeWidth: 0.5, interval: 10 })
),
and this is where I check if the grid should be visible. I was thinking that this may be the issue, but again this works just fine with the previous version of gojs-angular
public ngDoCheck(): void {
if (this.myDiagramComponent && this.myDiagramComponent.diagram instanceof go.Diagram) {
this.myDiagramComponent.diagram.grid.visible = this.showGrid;
}
}