Searched refs:timeToPx (Results 1 – 25 of 25) sorted by relevance
22 expect(scale.timeToPx(0)).toEqual(200);23 expect(scale.timeToPx(100)).toEqual(1000);24 expect(scale.timeToPx(50)).toEqual(600);43 expect(scale.timeToPx(0)).toEqual(100);46 expect(scale.timeToPx(0)).toEqual(200);47 expect(scale.timeToPx(100)).toEqual(1000);50 expect(scale.timeToPx(0)).toEqual(200);51 expect(scale.timeToPx(100)).toEqual(600);52 expect(scale.timeToPx(200)).toEqual(1000);
47 Math.max(timeScale.timeToPx(tStart), 0) + TRACK_SHELL_WIDTH;48 const rectEnd = timeScale.timeToPx(tEnd) + TRACK_SHELL_WIDTH;59 Math.max(timeScale.timeToPx(startSec), 0) + TRACK_SHELL_WIDTH;
114 const x = timeScale.timeToPx(timestamp);123 Math.floor(timeScale.timeToPx(area.endSec) + TRACK_SHELL_WIDTH),152 const x = timeScale.timeToPx(timestamp);247 const noteX = timeScale.timeToPx(getStartTimestamp(note));251 (timeScale.timeToPx(noteArea.endSec) > x &&252 x > timeScale.timeToPx(noteArea.endSec) - AREA_TRIANGLE_WIDTH);
105 const xStart = Math.floor(this.timeScale.timeToPx(loads[i].startSec));106 const xEnd = Math.ceil(this.timeScale.timeToPx(loads[i].endSec));203 Math.floor(timeScale.timeToPx(vizTime[0])),204 Math.ceil(timeScale.timeToPx(vizTime[1]))
92 const startPx = Math.floor(timeScale.timeToPx(visibleWindowTime.start));93 const endPx = Math.ceil(timeScale.timeToPx(visibleWindowTime.end));
165 const xPos = TRACK_SHELL_WIDTH + Math.floor(timeScale.timeToPx(ts));174 const xLeft = timeScale.timeToPx(span.start);175 const xRight = timeScale.timeToPx(span.end);
136 globals.frontendLocalState.timeScale.timeToPx(area.startSec),137 globals.frontendLocalState.timeScale.timeToPx(area.endSec),418 const startX = globals.frontendLocalState.timeScale.timeToPx(area.startSec);419 const endX = globals.frontendLocalState.timeScale.timeToPx(area.endSec);
24 const xPos = TRACK_SHELL_WIDTH + Math.floor(timeScale.timeToPx(time));
49 const start = globals.frontendLocalState.timeScale.timeToPx(area.startSec);50 const end = globals.frontendLocalState.timeScale.timeToPx(area.endSec);
46 timeToPx(time: number): number { method in TimeScale
83 xPos += Math.floor(timescale.timeToPx(timestamp));
167 localState.timeScale.timeToPx(selectedArea.startSec) +
144 return globals.frontendLocalState.timeScale.timeToPx(ts);
301 timeScale.timeToPx(selectedArea.startSec) + TRACK_SHELL_WIDTH,
63 timeScale.timeToPx(visibleWindowTime.start),64 timeScale.timeToPx(visibleWindowTime.end),65 timeScale.timeToPx(data.start),66 timeScale.timeToPx(data.end),82 const rectStart = timeScale.timeToPx(tStart);83 const rectEnd = timeScale.timeToPx(tEnd);111 Math.max(0 - EXCESS_WIDTH, timeScale.timeToPx(tStart));113 timeScale.timeToPx(visibleWindowTime.end) + EXCESS_WIDTH,114 timeScale.timeToPx(tEnd));
55 timeScale.timeToPx(visibleWindowTime.start),56 timeScale.timeToPx(visibleWindowTime.end),57 timeScale.timeToPx(data.start),58 timeScale.timeToPx(data.end));66 const startPx = Math.floor(timeScale.timeToPx(visibleWindowTime.start));85 lastX = Math.floor(timeScale.timeToPx(startTime));
69 const endPx = timeScale.timeToPx(visibleWindowTime.end);93 return Math.floor(timeScale.timeToPx(timestamp));150 const x = timeScale.timeToPx(data.timestamps[i]);153 timeScale.timeToPx(data.timestamps[i + 1]);169 const xStart = Math.floor(timeScale.timeToPx(this.hoveredTs));172 Math.floor(timeScale.timeToPx(this.hoveredTsEnd));212 timeScale.timeToPx(visibleWindowTime.start),213 timeScale.timeToPx(visibleWindowTime.end),214 timeScale.timeToPx(data.start),215 timeScale.timeToPx(data.end));
58 const dataStartPx = timeScale.timeToPx(data.start);59 const dataEndPx = timeScale.timeToPx(data.end);60 const visibleStartPx = timeScale.timeToPx(visibleWindowTime.start);61 const visibleEndPx = timeScale.timeToPx(visibleWindowTime.end);82 const px = Math.floor(timeScale.timeToPx(data.timestamps[i]));
66 timeScale.timeToPx(visibleWindowTime.start),67 timeScale.timeToPx(visibleWindowTime.end),68 timeScale.timeToPx(data.start),69 timeScale.timeToPx(data.end));95 const rectStart = timeScale.timeToPx(tStart);96 const rectEnd = timeScale.timeToPx(tEnd);160 const rectStart = timeScale.timeToPx(tStart);161 const rectEnd = timeScale.timeToPx(tEnd);172 const wakeupPos = timeScale.timeToPx(details.wakeupTs);202 const wakeupPos = Math.floor(timeScale.timeToPx(details.wakeupTs));
147 const endPx = Math.floor(timeScale.timeToPx(visibleWindowTime.end));190 return Math.floor(timeScale.timeToPx(ts));243 const xStart = Math.floor(timeScale.timeToPx(this.hoveredTs));246 Math.floor(timeScale.timeToPx(this.hoveredTsEnd));278 const endPx = timeScale.timeToPx(visibleWindowTime.end);280 Math.min(timeScale.timeToPx(this.config.endTs || Infinity), endPx);294 timeScale.timeToPx(visibleWindowTime.start),295 timeScale.timeToPx(visibleWindowTime.end),296 timeScale.timeToPx(data.start),297 timeScale.timeToPx(data.end));
63 timeScale.timeToPx(visibleWindowTime.start),64 timeScale.timeToPx(visibleWindowTime.end),65 timeScale.timeToPx(data.start),66 timeScale.timeToPx(data.end));86 const rectStart = timeScale.timeToPx(tStart);87 const rectEnd = timeScale.timeToPx(tEnd);
62 timeScale.timeToPx(visibleWindowTime.start),63 timeScale.timeToPx(visibleWindowTime.end),64 timeScale.timeToPx(data.start),65 timeScale.timeToPx(data.end),261 const pxEnd = timeScale.timeToPx(visibleWindowTime.end);262 const left = Math.max(timeScale.timeToPx(tStart), -TRACE_MARGIN_TIME_S);263 const right = Math.min(timeScale.timeToPx(tEnd), pxEnd);
36 [this.timeScale.timeToPx(tStart), this.timeScale.timeToPx(tEnd)];
68 timeScale.timeToPx(fromNs(centerX)),134 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[left]));140 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[right]));
71 timeScale.timeToPx(fromNs(centerX)),138 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[left]));144 const centerX = timeScale.timeToPx(fromNs(data.tsStarts[right]));