Skip to content

Commit

Permalink
Set offset in time graph unit controller
Browse files Browse the repository at this point in the history
This allows it to create gridlines on rounded absolute times.

Signed-off-by: Patrick Tasse <patrick.tasse@ericsson.com>
  • Loading branch information
PatrickTasse committed Jan 5, 2022
1 parent 2989d9b commit ba60c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export class TraceContextComponent extends React.Component<TraceContextProps, Tr
await this.updateTrace();
this.unitController.absoluteRange = this.state.experiment.end - this.state.timeOffset;
this.unitController.viewRange = { start: BigInt(0), end: this.state.experiment.end - this.state.timeOffset };
this.unitController.offset = this.state.timeOffset;
}

private async updateTrace() {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17822,9 +17822,9 @@ timed-out@^4.0.0, timed-out@^4.0.1:
integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=

timeline-chart@next:
version "0.3.0-next.dbafac0.0"
resolved "https://registry.yarnpkg.com/timeline-chart/-/timeline-chart-0.3.0-next.dbafac0.0.tgz#c25c2b4f8629373a9585a6fc721d9e6d4e1f8ad6"
integrity sha512-6dppRZgxgLYBmy9GErhMi8UJMR5tL4xRZ4uv2G4fz5WlmelgaA75daYQQK9awum1/j0fcB/vTq1fmqA+cojc/A==
version "0.3.0-next.5330875.0"
resolved "https://registry.yarnpkg.com/timeline-chart/-/timeline-chart-0.3.0-next.5330875.0.tgz#35df9ff9280ead43ca2ceab6bce82bda605bf12a"
integrity sha512-Ppo7YJF6tHZn6MwP2nXPWCFW8y6/r+XXrCzRBtQ2LQmeOJzA9fybW1IiCC2a+QcshdZORJrPpyqxQ6tUCc4PQQ==
dependencies:
"@types/lodash.throttle" "^4.1.4"
glob "^7.1.6"
Expand Down

0 comments on commit ba60c5e

Please sign in to comment.