UNPKG

1.24 kBTypeScriptView Raw
1import { AxisCfg, Datum, ListCfg, ListData } from '../interface';
2import View from '../chart/view';
3import { Facet } from './facet';
4/**
5 * @ignore
6 * 镜像分面
7 */
8export default class List extends Facet<ListCfg, ListData> {
9 protected getDefaultCfg(): any;
10 render(): void;
11 protected afterEachView(view: View, facet: ListData): void;
12 protected beforeEachView(view: View, facet: ListData): void;
13 protected generateFacets(data: Datum[]): ListData[];
14 /**
15 * 设置 x 坐标轴的文本、title 是否显示
16 * @param x
17 * @param axes
18 * @param option
19 * @param facet
20 */
21 protected getXAxisOption(x: string, axes: any, option: AxisCfg, facet: ListData): object;
22 /**
23 * 设置 y 坐标轴的文本、title 是否显示
24 * @param y
25 * @param axes
26 * @param option
27 * @param facet
28 */
29 protected getYAxisOption(y: string, axes: any, option: AxisCfg, facet: ListData): object;
30 /**
31 * facet title
32 */
33 private renderTitle;
34 /**
35 * 计算分页数
36 * @param total
37 * @param pageSize
38 */
39 private getPageCount;
40 /**
41 * 索引值在哪一页
42 * @param index
43 * @param pageSize
44 */
45 private getRowCol;
46}