Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 48) sorted by relevance

12

/developtools/smartperf_host/ide/test/trace/component/trace/timer-shaft/
DRect.test.ts20 let rect = new Rect(20, 20, 100, 100); variable
24 expect(rect.contains(4, 5)).toBeFalsy();
28 expect(Rect.contains(rect, 4, 4)).toBeFalsy();
32 expect(rect.containsWithPadding(4, 5, 2, 2)).toBeFalsy();
36 expect(Rect.containsWithPadding(rect, 4, 4, 2, 2)).toBeFalsy();
40 expect(rect.containsWithMargin(1, 2, 1, 2, 4, 5)).toBeFalsy();
48 expect(rect.intersect([])).toBeFalsy();
/developtools/profiler/host/smartperf/ide/src/base-ui/chart/pie/
DLitChartPie.ts175 let rect = this.getBoundingClientRect(); variable
176 let x = ev.pageX - rect.left - this.centerX!; variable
177 let y = ev.pageY - rect.top - this.centerY!; variable
188 let rect = this.getBoundingClientRect(); variable
189 let x = ev.pageX - rect.left - this.centerX!; variable
190 let y = ev.pageY - rect.top - this.centerY!; variable
200 ev.pageX - rect.left + 10,
322 let rect = this.correctRect({ variable
328 this.ctx?.fillText(text, rect.x, rect.y);
374 rect: Rectangle
[all …]
/developtools/smartperf_host/ide/src/base-ui/chart/pie/
DLitChartPie.ts179 let rect = this.getBoundingClientRect(); variable
180 let x = ev.pageX - rect.left - this.centerX!; variable
181 let y = ev.pageY - rect.top - this.centerY!; variable
192 let rect = this.getBoundingClientRect(); variable
193 let x = ev.pageX - rect.left - this.centerX!; variable
194 let y = ev.pageY - rect.top - this.centerY!; variable
204 ev.pageX - rect.left + 10,
326 let rect = this.correctRect({ variable
332 this.ctx?.fillText(text, rect.x, rect.y);
378 rect: Rectangle
[all …]
/developtools/smartperf_host/ide/test/trace/database/ui-worker/
DProcedureWorkerTimeline.test.ts46 let rect = new Rect(0, 10, 10, 10); variable
47 …timeline(timelineCanvas, ctx, 1, 100254, 100254, rect, null, null, null, null, null, null, 0, 0, (…
55 let rect = new Rect(0, 10, 10, 10); variable
56 let sportRuler = new SportRuler(canvas, ctx, rect);
71 let rect = new Rect(0, 20, 10, 20); variable
75 rect,
78 endX: rect.width,
111 let rect = new Rect(0, 50, 10, 50); variable
115 rect,
118 endX: rect.width,
DProcedureWorkerCommon.test.ts91 let rect = new Rect(); variable
157 expect(rect.contains(1, 2)).not.toBeUndefined();
161 expect(rect.containsWithPadding()).not.toBeUndefined();
170 let rect = new Rect(); variable
171 expect(Rect.contains(rect, 1, 2)).toBe(false);
175 let rect = new Rect(); variable
176 expect(Rect.containsWithPadding(rect, 1, 2, 1, 2)).toBe(false);
180 let rect = new Rect(); variable
181 expect(Rect.containsWithMargin(rect, 1, 2, 1, 2, 1, 1)).toBe(false);
185 let rect = new Rect(); variable
[all …]
DProcedureWorkerFrameDynamic.test.ts34 let rect = new Rect(341, 2, 10, 10); variable
70 frame: rect,
104 frame: rect,
114 frameDynamicRender.drawDynamicPointYStr(ctx, dataList, rect, 0, 20);
126 frame: rect,
140 frame: rect,
DProcedureWorkerFrameAnimation.test.ts31 let rect = new Rect(341, 2, 10, 10); variable
42 frame: rect,
52 frame: rect,
79 frame: rect,
DProcedureWorkerProcess.test.ts54 let rect = new Rect(0, 10, 10, 10); variable
55 proc(dataList, res, 1, 100254, 100254, rect);
70 let rect = new Rect(0, 10, 10, 50); variable
71 proc(processDataList, res, 1, 100254, 100254, rect);
DProcedureWorkerFunc.test.ts35 let rect = new Rect(0, 30, 30, 30); variable
44 func(funcDataList, res, 1, 100254, 100254, rect, true);
59 let rect = new Rect(30, 50, 53, 13); variable
68 func(funcDataList, res, 1, 100254, 100254, rect, false);
DProcedureWorkerFPS.test.ts38 let rect = new Rect(0, 10, 10, 10); variable
39 fps(dataList, [{ length: 1 }], 1, 100254, 100254, rect, true);
54 let rect = new Rect(0, 50, 50, 16); variable
55 fps(fpsDataList, [{ length: 0 }], 1, 100254, 100254, rect, false);
DProcedureWorkerHeap.test.ts40 let rect = new Rect(0, 10, 30, 10); variable
49 heap(heapDataList, res, 1, 100254, 100254, rect, true);
64 let rect = new Rect(0, 10, 10, 10); variable
73 heap(heapHataList, res, 1, 100254, 100254, rect, false);
DProcedureWorkerHeapTimeline.test.ts41 let rect = new Rect(0, 10, 10, 10); variable
42 HeapTimeline(heapTimelineCanvas, ctx, 1, 100254, 100254, rect, (e: any) => {});
/developtools/smartperf_host/ide/src/base-ui/
Dicon.svg4 …<rect id="rectangle" stroke="currentColor" opacity="0.899323091" x="2" y="2" width="12" height="12…
5 …<rect id="rectangle" fill="currentColor" opacity="0.802454776" x="4.00073886" y="7.50196767" width…
10 …<rect id="rectangle" stroke="currentColor" opacity="0.899323091" x="2" y="2" width="12" height="12…
65 …<rect id="rectangle" fill="#606060" fill-rule="nonzero" opacity="0" x="0" y="0" width="16" height=…
68 <rect id="rectangle" x="0" y="0" width="12" height="2"></rect>
82 <rect id="rectangle" x="0" y="0" width="16" height="16"></rect>
83 …<rect id="rectangle" fill="currentColor" opacity="0.600880941" x="1" y="2" width="14" height="2"><…
84 …<rect id="rectangle" fill="currentColor" opacity="0.600880941" x="1" y="7" width="14" height="2"><…
85 …<rect id="rectangle-2" fill="currentColor" opacity="0.600880941" x="1" y="12" width="14" height="2…
106rect id="rectangle" fill="#000000" transform="translate(12.002785, 12.003027) rotate(-315.000000) …
[all …]
/developtools/profiler/host/smartperf/ide/src/base-ui/
Dicon.svg4 …<rect id="rectangle" stroke="currentColor" opacity="0.899323091" x="2" y="2" width="12" height="12…
5 …<rect id="rectangle" fill="currentColor" opacity="0.802454776" x="4.00073886" y="7.50196767" width…
10 …<rect id="rectangle" stroke="currentColor" opacity="0.899323091" x="2" y="2" width="12" height="12…
65 …<rect id="rectangle" fill="#606060" fill-rule="nonzero" opacity="0" x="0" y="0" width="16" height=…
68 <rect id="rectangle" x="0" y="0" width="12" height="2"></rect>
82 <rect id="rectangle" x="0" y="0" width="16" height="16"></rect>
83 …<rect id="rectangle" fill="currentColor" opacity="0.600880941" x="1" y="2" width="14" height="2"><…
84 …<rect id="rectangle" fill="currentColor" opacity="0.600880941" x="1" y="7" width="14" height="2"><…
85 …<rect id="rectangle-2" fill="currentColor" opacity="0.600880941" x="1" y="12" width="14" height="2…
106rect id="rectangle" fill="#000000" transform="translate(12.002785, 12.003027) rotate(-315.000000) …
[all …]
/developtools/smartperf_host/ide/src/trace/component/chart/
DFrameChart.ts46 private rect: Rect = new Rect(0, 0, 0, 0); property in FrameChart
132 this.rect.width = this.canvas!.width;
133 this.rect.height = (this._maxDepth + 1) * 20 + scaleHeight; // 20px/depth and 30 is scale height
134 this.canvas!.style.height = this.rect!.height + 'px';
135 this.canvas!.height = Math.ceil(this.rect!.height);
206 let width = Math.round((nodeSize / this.currentSize) * this.rect!.width);
230 let width = Math.round((nodeCount / this.currentCount) * this.rect!.width);
254 let width = Math.round((nodeDur / this.currentDuration) * this.rect!.width);
310 this.canvas.style.height = this.rect!.height + 'px';
316 this.canvas.height = Math.ceil(this.rect!.height);
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/chart/
DFrameChart.ts46 private rect: Rect = new Rect(0, 0, 0, 0); property in FrameChart
132 this.rect.width = this.canvas!.width;
133 this.rect.height = (this._maxDepth + 1) * 20 + scaleHeight; // 20px/depth and 30 is scale height
134 this.canvas!.style.height = this.rect!.height + 'px';
135 this.canvas!.height = Math.ceil(this.rect!.height);
206 let width = Math.round((nodeSize / this.currentSize) * this.rect!.width);
230 let width = Math.round((nodeCount / this.currentCount) * this.rect!.width);
254 let width = Math.round((nodeDur / this.currentDuration) * this.rect!.width);
310 this.canvas.style.height = this.rect!.height + 'px';
316 this.canvas.height = Math.ceil(this.rect!.height);
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/
DProcedureWorkerCommon.ts245 export function ns2x(ns: number, startNS: number, endNS: number, duration: number, rect: any) {
250 let xSize: number = ((ns - startNS) * rect.width) / (endNS - startNS);
253 } else if (xSize > rect.width) {
254 xSize = rect.width;
288 static intersect(r1: Rect, rect: Rect): boolean {
289 let minX = r1.x <= rect.x ? r1.x : rect.x;
290 let minY = r1.y <= rect.y ? r1.y : rect.y;
291 let maxX = r1.x + r1.width >= rect.x + rect.width ? r1.x + r1.width : rect.x + rect.width;
292 let maxY = r1.y + r1.height >= rect.y + rect.height ? r1.y + r1.height : rect.y + rect.height;
293 if (maxX - minX <= rect.width + r1.width && maxY - minY <= r1.height + rect.height) {
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerCommon.ts264 export function ns2x(ns: number, startNS: number, endNS: number, duration: number, rect: any) {
269 let xSize: number = ((ns - startNS) * rect.width) / (endNS - startNS);
272 } else if (xSize > rect.width) {
273 xSize = rect.width;
307 static intersect(r1: Rect, rect: Rect): boolean {
308 let minX = r1.x <= rect.x ? r1.x : rect.x;
309 let minY = r1.y <= rect.y ? r1.y : rect.y;
310 let maxX = r1.x + r1.width >= rect.x + rect.width ? r1.x + r1.width : rect.x + rect.width;
311 let maxY = r1.y + r1.height >= rect.y + rect.height ? r1.y + r1.height : rect.y + rect.height;
312 if (maxX - minX <= rect.width + r1.width && maxY - minY <= r1.height + rect.height) {
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/base/
DExtension.ts81 let rect = this.getBoundingClientRect(); variable
83 ev.pageX >= rect.left + (cut?.left ?? 0) &&
84 ev.pageX <= rect.right - (cut?.right ?? 0) &&
85 ev.pageY >= rect.top + (cut?.top ?? 0) &&
86 ev.pageY <= rect.bottom - (cut?.bottom ?? 0)
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DExtension.ts82 let rect = this.getBoundingClientRect(); variable
84 ev.pageX >= rect.left + (cut?.left ?? 0) &&
85 ev.pageX <= rect.right - (cut?.right ?? 0) &&
86 ev.pageY >= rect.top + (cut?.top ?? 0) &&
87 ev.pageY <= rect.bottom - (cut?.bottom ?? 0)
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/components/
DPathView.ets145 rect: MyRect;
196 this.rect = this.lineData.mDisplayRect;
198 this.positionX = this.rect.left;
200 …this.xScale = (this.rect.right - this.rect.left)/(this.xAxis.getAxisMaximum()-this.xAxis.getAxisMi…
201 …this.yLeftScale = (this.rect.bottom - this.rect.top)/(this.yleftAxis.getAxisMaximum()-this.yleftAx…
203 …this.yRightScale = (this.rect.bottom - this.rect.top)/(this.yRightAxis.getAxisMaximum()-this.yRigh…
222 // let screenCenterX: number = (this.rect.right - this.rect.left) / 2;
223 // let screenCenterY: number = (this.rect.bottom - this.rect.top) / 2;
328 …is.clipPath='M'+Utils.convertDpToPixel(this.rect.left - this.positionX)+' '+Utils.convertDpToPixel…
329 …+'L'+Utils.convertDpToPixel(this.rect.right - this.positionX)+' '+Utils.convertDpToPixel(this.rect
[all …]
/developtools/smartperf_host/ide/src/base-ui/tree/
DLitTree.ts323 let rect = (ev.currentTarget! as any).getBoundingClientRect(); variable
324 …if (ev.clientX >= rect.left + rect.width / 3 && ev.clientX < rect.left + rect.width) { //bottom-ri…
327 } else if (ev.clientY >= rect.top && ev.clientY < rect.top + rect.height / 2) {//上面
330 } else if (ev.clientY <= rect.bottom && ev.clientY > rect.top + rect.height / 2) {//下面
/developtools/profiler/host/smartperf/ide/src/base-ui/chart/column/
DLitChartColumn.ts76 let rect = this.getBoundingClientRect(); variable
77 let x = ev.pageX - rect.left; variable
78 let y = ev.pageY - rect.top; variable
462 function contains(rect: { x: number; y: number; w: number; h: number }, x: number, y: number): bool…
463 return rect.x <= x && x <= rect.x + rect.w && rect.y <= y && y <= rect.y + rect.h;
/developtools/smartperf_host/ide/src/base-ui/chart/column/
DLitChartColumn.ts76 let rect = this.getBoundingClientRect(); variable
77 let x = ev.pageX - rect.left; variable
78 let y = ev.pageY - rect.top; variable
462 function contains(rect: { x: number; y: number; w: number; h: number }, x: number, y: number): bool…
463 return rect.x <= x && x <= rect.x + rect.w && rect.y <= y && y <= rect.y + rect.h;
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/charts/
DLineChart.ets283 let rect = this.lineData.mDisplayRect;
284 this.clipPath='M'+Utils.convertDpToPixel(rect.left)+' '+Utils.convertDpToPixel(0)
285 +'L'+Utils.convertDpToPixel(rect.right)+' '+Utils.convertDpToPixel(0)
286 +'L'+Utils.convertDpToPixel(rect.right)+' '+Utils.convertDpToPixel(this.height)
287 +'L'+Utils.convertDpToPixel(rect.left)+' '+Utils.convertDpToPixel(this.height)
292 let rect = this.lineData.mDisplayRect;
293 this.clipYPath='M'+Utils.convertDpToPixel(this.minOffset/2)+' '+Utils.convertDpToPixel(rect.top)
294 +'L'+Utils.convertDpToPixel(this.width - this.minOffset/2)+' '+Utils.convertDpToPixel(rect.top)
295 … +'L'+Utils.convertDpToPixel(this.width - this.minOffset/2)+' '+Utils.convertDpToPixel(rect.bottom)
296 +'L'+Utils.convertDpToPixel(this.minOffset/2)+' '+Utils.convertDpToPixel(rect.bottom)

12