Lines Matching refs:x
28 x: number;
34 x: number;
59 offset?: { x: number | undefined; y: number | undefined };
69 this.offset = { x: 60, y: 20 };
77 let x = ev.pageX - rect.left; variable
80 if (contains(it.bgFrame!, x, y)) {
96 this.tipTypeShow(x, y, pillars, innerHtml);
102 this.tipTypeShow(x, y, pillars, innerHtml);
113 private tipTypeShow(x: number, y: number, pillars: Pillar[], innerHtml: string): void {
114 if (x >= this.clientWidth - this.litChartColumnTipEL!.clientWidth) {
116 x - this.litChartColumnTipEL!.clientWidth - 10,
121 …this.showTip(x + 10, y - 20, this.litChartColumnCfg!.tip ? this.litChartColumnCfg!.tip(pillars) : …
212 let partWidth = (this.clientWidth - this.offset!.x!) / this.litChartColumnCfg!.data.length;
234 x: this.offset!.x! + partWidth * litChartColumnIndex,
239 centerX: this.offset!.x! + partWidth * litChartColumnIndex + partWidth / 2,
245 x: this.offset!.x! + partWidth * litChartColumnIndex + partWidth / 6, //@ts-ignore
274 x: this.offset!.x! + partWidth * reduceGroupIndex,
279 centerX: this.offset!.x! + partWidth * reduceGroupIndex + partWidth / 2,
286 x: this.offset!.x! + partWidth * reduceGroupIndex + partWidth / 6, //@ts-ignore
319 let partWidth = (this.clientWidth - this.offset!.x!) / Reflect.ownKeys(reduceGroup).length;
371 c.moveTo(this.offset!.x!, it.y);
374 c.fillText(it.label, this.offset!.x! - c.measureText(it.label).width - 2, it.y + 11);
376 c.fillText(it.label, this.offset!.x! - c.measureText(it.label).width - 2, it.y + 4);
387 c.fillRect(it.bgFrame!.x, it.bgFrame!.y, it.bgFrame!.w, it.bgFrame!.h);
394 c.fillRect(it.frame!.x, it.frame!.y + (it.frame!.h - it.height!), it.frame!.w, it.height!);
397 c.fillRect(it.frame!.x, it.frame!.y, it.frame!.w, it.frame!.h);
401 c.fillRect(it.frame!.x, it.frame!.y, it.frame!.w, it.frame!.h);
448 showTip(x: number, y: number, msg: string): void {
451 this.litChartColumnTipEL!.style.left = `${x}px`;
501 function contains(rect: { x: number; y: number; w: number; h: number }, x: number, y: number): bool…
502 return rect.x <= x && x <= rect.x + rect.w && rect.y <= y && y <= rect.y + rect.h;