Skip to content

Commit

Permalink
Enable coarse resolution update of time graph
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
  • Loading branch information
PatrickTasse committed Jun 17, 2022
1 parent 07c4084 commit f27def8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ type TimegraphOutputState = AbstractOutputState & {
columns: ColumnHeader[];
};

const COARSE_RESOLUTION_FACTOR = 8; // resolution factor to use for first (coarse) update

export class TimegraphOutputComponent extends AbstractTreeOutputComponent<TimegraphOutputProps, TimegraphOutputState> {
private totalHeight = 0;
private rowController: TimeGraphRowController;
Expand Down Expand Up @@ -110,7 +112,7 @@ export class TimegraphOutputComponent extends AbstractTreeOutputComponent<Timegr
};

this.rangeEventsLayer = new TimeGraphRangeEventsLayer('timeGraphRangeEvents', providers);
this.chartLayer = new TimeGraphChart('timeGraphChart', providers, this.rowController);
this.chartLayer = new TimeGraphChart('timeGraphChart', providers, this.rowController, COARSE_RESOLUTION_FACTOR);
this.arrowLayer = new TimeGraphChartArrows('timeGraphChartArrows', this.rowController);
this.vscrollLayer = new TimeGraphVerticalScrollbar('timeGraphVerticalScrollbar', this.rowController);
this.chartCursors = new TimeGraphChartCursors('chart-cursors', this.chartLayer, this.rowController, { color: this.props.style.cursorColor });
Expand Down

0 comments on commit f27def8

Please sign in to comment.