Home
last modified time | relevance | path

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

/developtools/smartperf_host/ide/src/base-ui/chart/
Dhelper.ts18 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/
DTimerShaftElement.ts122 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值
DSpChartList.ts18 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/
DProcedureWorker.ts165 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/
DTraceRow.ts160 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值
DExtension.ts139 export function dpr() { function
/developtools/smartperf_host/ide/test/trace/database/ui-worker/
DProcedureWorkerFunc.test.ts165 dpr: 431,
DProcedureWorkerEnergyState.test.ts170 dpr: 1,
DProcedureWorkerFPS.test.ts165 dpr: 41,
DProcedureWorkerEnergySystem.test.ts244 dpr: 21,
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/
DTabPaneCurrentSelection.ts111 …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/
DSpSystemTrace.ts124 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());