Searched refs:endPx (Results 1 – 6 of 6) sorted by relevance
/external/perfetto/ui/src/frontend/ |
D | checkerboard.ts | 51 endPx: number, 55 if (rightPx <= startPx || leftPx >= endPx) { 56 checkerboard(ctx, heightPx, startPx, endPx); 66 if (rightPx < endPx) { 67 checkerboard(ctx, heightPx, rightPx, endPx);
|
D | track.ts | 93 const endPx = Math.ceil(timeScale.timeToPx(visibleWindowTime.end)); constant 94 checkerboard(ctx, this.getHeight(), startPx, endPx); 116 const endPx = globals.frontendLocalState.timeScale.endPx; constant 117 if (xPos + rectWidth > endPx) { 118 xPos -= (xPos + rectWidth - endPx);
|
D | time_scale.ts | 79 get endPx(): number { method in TimeScale 88 const endPx = scale.endPx; constant 89 const deltaPx = endPx - startPx; 92 const clampedZoomPx = Math.max(startPx, Math.min(endPx, zoomPx));
|
D | viewer_page.ts | 159 newTime = Math.min(newTime, scale.pxToTime(scale.endPx)); 170 let endPx = Math.max(dragStartX, currentX) - TRACK_SHELL_WIDTH; variable 171 if (startPx < 0 && endPx < 0) return; 173 endPx = Math.min(endPx, scale.endPx); 175 scale.pxToTime(startPx), scale.pxToTime(endPx));
|
/external/perfetto/ui/src/tracks/counter/ |
D | frontend.ts | 147 const endPx = Math.floor(timeScale.timeToPx(visibleWindowTime.end)); constant 217 ctx.lineTo(endPx, lastDrawnY); 218 ctx.lineTo(endPx, zeroY); 228 ctx.lineTo(endPx, zeroY); 245 endPx : 278 const endPx = timeScale.timeToPx(visibleWindowTime.end); constant 280 Math.min(timeScale.timeToPx(this.config.endTs || Infinity), endPx); 283 if (counterEndPx < endPx) { 285 ctx.fillRect(counterEndPx, 0, endPx - counterEndPx, this.getHeight());
|
/external/perfetto/ui/src/tracks/cpu_freq/ |
D | frontend.ts | 69 const endPx = timeScale.timeToPx(visibleWindowTime.end); constant 130 const finalX = Math.min(calculateX(data.maxTsEnd), endPx); 133 ctx.lineTo(endPx, zeroY); 171 endPx :
|