Searched refs:dpr (Results 1 – 12 of 12) sorted by relevance
| /developtools/smartperf_host/ide/src/base-ui/chart/ |
| D | helper.ts | 18 let dpr = window.devicePixelRatio || 1; 19 c.width = Math.ceil(el.clientWidth * dpr); 20 c.height = Math.ceil(el.clientHeight * dpr); 23 c.getContext('2d', { alpha: true })?.scale(dpr, dpr);
|
| /developtools/smartperf_host/ide/src/trace/component/trace/ |
| D | TimerShaftElement.ts | 122 dpr = window.devicePixelRatio || 1; property in TimerShaftElement 331 this.dpr = window.devicePixelRatio || 1; 336 this.canvas!.width = Math.ceil(oldWidth * this.dpr); 337 this.canvas!.height = Math.ceil(oldHeight * this.dpr); 340 this.ctx?.scale(this.dpr, this.dpr); 407 this.dpr = window.devicePixelRatio || 1; 420 dpr: this.dpr, //屏幕dpr值
|
| D | SpChartList.ts | 18 import { dpr } from './base/Extension'; 515 this.canvas!.width = this.canvas?.clientWidth! * dpr(); 516 this.canvas!.height = this.clientHeight * dpr(); 517 this.canvas!.getContext('2d')!.scale(dpr(), dpr());
|
| /developtools/smartperf_host/ide/src/trace/database/ui-worker/ |
| D | ProcedureWorker.ts | 165 contextList[e.data.type].scale(e.data.params.dpr, e.data.params.dpr); 231 req.context.scale(e.data.params.dpr, e.data.params.dpr);
|
| /developtools/smartperf_host/ide/src/trace/component/trace/base/ |
| D | TraceRow.ts | 160 dpr = window.devicePixelRatio || 1; property in TraceRow 902 this.dpr = window.devicePixelRatio || 1; 908 this.canvasHeight = Math.ceil(tempHeight * this.dpr); 917 this.dpr = window.devicePixelRatio || 1; 936 this.canvasWidth = Math.ceil((width - (this.describeEl?.clientWidth || 248)) * this.dpr); 937 this.canvasHeight = Math.ceil(tempHeight * this.dpr); 1131 this.dpr = window.devicePixelRatio || 1; 1261 dpr: this.dpr, //屏幕dpr值
|
| D | Extension.ts | 139 export function dpr() { function
|
| /developtools/smartperf_host/ide/test/trace/database/ui-worker/ |
| D | ProcedureWorkerFunc.test.ts | 165 dpr: 431,
|
| D | ProcedureWorkerEnergyState.test.ts | 170 dpr: 1,
|
| D | ProcedureWorkerFPS.test.ts | 165 dpr: 41,
|
| D | ProcedureWorkerEnergySystem.test.ts | 244 dpr: 21,
|
| /developtools/smartperf_host/ide/src/trace/component/trace/sheet/ |
| D | TabPaneCurrentSelection.ts | 111 …private dpr: any = window.devicePixelRatio || window.webkitDevicePixelRatio || window.mozDevicePix… property in TabPaneCurrentSelection 1339 canvas.width = Math.round(Number(width.replace('px', '')) * this.dpr); 1340 canvas.height = Math.round(Number(200 * this.dpr)); 1343 canvas.getContext('2d')!.scale(this.dpr, this.dpr);
|
| /developtools/smartperf_host/ide/src/trace/component/ |
| D | SpSystemTrace.ts | 124 function dpr(): number { function 404 this.canvasPanel!.width = this.canvasPanel!.offsetWidth * dpr(); 405 this.canvasPanel!.height = this.canvasPanel!.offsetHeight * dpr(); 406 this.canvasPanelCtx!.scale(dpr(), dpr());
|