Home
last modified time | relevance | path

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

/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerHeapSnapshot.ts92 textWidth: number | undefined; property in HeapSnapshotStruct
151 if (HeapSnapshotdata.textWidth === undefined) {
152 HeapSnapshotdata.textWidth = ctx.measureText(str).width;
154 let textWidth = Math.round(HeapSnapshotdata.textWidth / str.length);
156 if (HeapSnapshotdata.textWidth < maxTextWidth) {
157 let x = Math.floor(frame.width / 2 - HeapSnapshotdata.textWidth / 2 + frame.x + textPadding);
160 if (maxTextWidth >= textWidth) {
161 let characterNum = maxTextWidth / textWidth;
DProcedureWorkerSnapshot.ts240 textWidth: number = 0; property in SnapshotStruct
310 if (data.textWidth === undefined) {
311 data.textWidth = ctx.measureText(str).width;
313 let textWidth = Math.round(data.textWidth / str.length);
315 if (data.textWidth < fillTextWidth) {
316 let x = Math.floor(frame.width / 2 - data.textWidth / 2 + frame.x + textPadding);
319 if (fillTextWidth >= textWidth) {
320 let characterNum = fillTextWidth / textWidth;
DProcedureWorkerCommon.ts802 function setTextXY(rateList: number[], params: TraceRow<any>, textWidth: any) {
813 textWidth / 2;
823 const textWidth = context.measureText(avgFrameRate).width; constant
826 let textX = setTextXY(rateList, params, textWidth)[0];
827 const textY = setTextXY(rateList, params, textWidth)[1];
831 textX = textX + textWidth / 2 >= params.frame.width ? params.frame.width + 100 : textX;
835 …context.fillRect(textX - padding, textY - textHeight + padding, textWidth + padding * 2, textHeigh…
900 const textWidth = ctx.measureText(avgFrameRate).width; constant
912 textWidth / TEXT_WIDTH_HALF;
924 if (textX + textWidth / 2 >= selectParams.frame.width) {
[all …]
/developtools/smartperf_host/ide/test/trace/component/trace/sheet/vmtracker/
DTabPaneVmTrackerShmSelection.test.ts68 textWidth: 0,
78 textWidth: 0,
87 textWidth: 0,
/developtools/smartperf_host/ide/src/trace/component/trace/timer-shaft/
DSportRuler.ts248 let textWidth = this.context2D.measureText(txt).width;
249 if (lineWidth > textWidth) {
250 this.context2D.fillText(`${txt}`, start_X + (lineWidth - textWidth) / 2, this.frame.y + 20);
252 if (endX + textWidth >= this.frame.width) {
253 this.context2D.fillText(`${txt}`, start_X - 5 - textWidth, this.frame.y + 20);
603 let textWidth = this.context2D.measureText(text).width;
604 if (textWidth > 0) {
608 … this.context2D.fillText(`${text}`, startX + (lineWidth - textWidth) / 2, this.frame.y + 43);
610 if (endX + textWidth >= this.frame.width) {
611 this.context2D.fillText(`${text}`, startX - 5 - textWidth, this.frame.y + 43);
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/renderer/
DRadarChartRenderer.ets329 let textWidth=Utils.calcTextWidth(textPaint,content)*2+10;
334 textPaint.setWidth(textWidth+10)
336 textPaint.setX(pOut.x-textWidth/2-5)
337 textPaint.setY(pOut.y-textWidth+2)
342 imagePaint.setX(pOut.x-textWidth/2-5)
343 imagePaint.setY(pOut.y-textWidth-5)
344 imagePaint.setWidth(textWidth+10)
345 imagePaint.setHeight(textWidth)
/developtools/smartperf_host/ide/test/trace/component/chart/
DSpVmTrackerChart.test.ts135 textWidth: 0,
/developtools/smartperf_host/ide/src/base-ui/chart/pie/
DLitChartPie.ts362 let textWidth = metrics.width; variable
379 x: x3 - textWidth / 2,
381 w: textWidth,