Home
last modified time | relevance | path

Searched refs:timeBounds (Results 1 – 1 of 1) sorted by relevance

/external/perfetto/ui/src/frontend/
Dtime_scale.ts26 private timeBounds: TimeSpan; property in TimeScale
31 constructor(timeBounds: TimeSpan, boundsPx: [number, number]) {
32 this.timeBounds = timeBounds;
39 this.secPerPx = this.timeBounds.duration / (this._endPx - this._startPx);
47 return this._startPx + (time - this.timeBounds.start) / this.secPerPx;
51 return this.timeBounds.start + (px - this._startPx) * this.secPerPx;
58 setTimeBounds(timeBounds: TimeSpan) {
59 this.timeBounds = timeBounds;
72 return this.timeBounds.isInBounds(time);