swimlane/ngx-graph

Is there anyway to run the graph outside of the ngZone?

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
I'm looking to prevent the graphs mouse events from triggering change detection in the angular zone change detection life cycle.

Describe the solution you'd like
I'd like to instantiate the graph outside of the Angular zone. Using something like I do here with Plotly.

constructor(private zone: NgZone) { }

ngOnInit() {
 this.zone.runOutsideAngular(() => Plotly.newPlot('chart', data));
}