@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
89 lines (88 loc) • 2.59 kB
TypeScript
import ComboPlot, { ComboPlotConfig } from './base';
import { Group } from '@antv/g';
import Layer from '../base/layer';
import '../plots/index';
export declare type OverlappedComboPlotConfig = ComboPlotConfig;
export default class OverlappedComboPlot<T extends OverlappedComboPlotConfig = OverlappedComboPlotConfig> extends ComboPlot<T> {
protected isOverlapped: boolean;
protected topLayer: Layer;
protected backLayer: Layer;
protected legendInfo: any[];
protected axisInfo: any[];
protected legendContainer: Group;
protected paddingComponents: any[];
protected globalOptions: any;
protected globalComponents: any[];
protected singleGeomCount: number;
getDefaultOptions(): {
xAxis: {
visible: boolean;
autoHideLabel: boolean;
autoRotateLabel: boolean;
autoRotateTitle: boolean;
grid: {
visible: boolean;
};
line: {
visible: boolean;
};
tickLine: {
visible: boolean;
};
label: {
visible: boolean;
};
title: {
visible: boolean;
offset: number;
};
};
yAxis: {
visible: boolean;
autoHideLabel: boolean;
autoRotateLabel: boolean;
autoRotateTitle: boolean;
grid: {
visible: boolean;
};
line: {
visible: boolean;
};
tickLine: {
visible: boolean;
};
label: {
visible: boolean;
};
title: {
visible: boolean;
offset: number;
};
colorMapping: boolean;
synchroTick: boolean;
};
label: {
visible: boolean;
};
tooltip: {
visible: boolean;
sort: boolean;
};
legend: {
visible: boolean;
position: string;
};
};
constructor(container: HTMLElement, props: T);
protected createComboLayers(): void;
/** 图层叠加时的layer config */
protected getOverlappedConfig(layerCfg: any): any;
protected overlappingLegend(): {
position: any;
component: import("@antv/component/lib/legend").CanvasCategory;
getBBox: () => any;
};
render(): void;
protected doDestroy(): void;
protected clearComponents(): void;
}