UNPKG

1.04 kBTypeScriptView Raw
1import { AxisCfg, Datum, MatrixCfg, MatrixData } from '../interface';
2import View from '../chart/view';
3import { Facet } from './facet';
4/**
5 * @ignore
6 * 镜像分面
7 */
8export default class Matrix extends Facet<MatrixCfg, MatrixData> {
9 protected getDefaultCfg(): any;
10 render(): void;
11 protected afterEachView(view: View, facet: MatrixData): void;
12 protected beforeEachView(view: View, facet: MatrixData): void;
13 protected generateFacets(data: Datum[]): MatrixData[];
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: MatrixData): 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: MatrixData): object;
30 /**
31 * facet title
32 */
33 private renderTitle;
34}